From 472b6c162ee9a7da6005cf871a4dcaf4dbdd970c Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 1 Aug 2024 15:14:44 +0800 Subject: [PATCH 01/35] Support RLC Changelog Generation Based on Inline Usage --- tools/js-sdk-release-tools/package-lock.json | 801 +++++++++++------- tools/js-sdk-release-tools/package.json | 7 +- .../src/changelog/changelogGenerator.ts | 148 +++- .../js-sdk-release-tools/src/common/utils.ts | 4 + ...utomaticGenerateChangeLogAndBumpVersion.ts | 6 +- .../llc/apiVersion/apiVersionTypeExtractor.ts | 25 + .../mlc/apiVersion/apiVersionTypeExtractor.ts | 87 +- .../apiVersion/apiVersionExtractor.test.ts | 3 +- .../xlc/apiVersion/apiVersionTypeExtractor.ts | 3 + .../src/xlc/apiVersion/utils.ts | 87 ++ 10 files changed, 729 insertions(+), 442 deletions(-) create mode 100644 tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts create mode 100644 tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index c102ce90792..69840e48c46 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -20,7 +20,7 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^12.0.0", - "tslib": "^1.9.3", + "typescript-codegen-breaking-change-detector": "^0.3.0", "yaml": "^1.10.2" }, "bin": { @@ -33,13 +33,53 @@ "devDependencies": { "@types/node": "^20.12.12", "@types/shelljs": "^0.8.15", - "nodemon": "^3.1.0", "rimraf": "^3.0.2", - "ts-node": "^10.9.2", + "tsx": "^4.16.3", "typescript": "^5.4.5", "vitest": "^1.6.0" } }, + "../../../../typescript-codegen-breaking-change-detector": { + "version": "0.3.0", + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" + }, + "devDependencies": { + "@azure-rest/core-client": "^2.0.0", + "@azure/core-client": "^1.9.2", + "@rollup/plugin-commonjs": "^26.0.1", + "@types/eslint": "^8.56.10", + "@types/eslint-scope": "^3.7.7", + "@types/fs-extra": "^11.0.4", + "@types/to-json-schema": "^0.2.4", + "@typescript-eslint/eslint-plugin": "^7.17.0", + "@typescript-eslint/parser": "^7.17.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "husky": "^9.0.11", + "onchange": "^7.1.0", + "prettier": "3.3.2", + "rimraf": "^5.0.7", + "run-script-os": "^1.1.6", + "tsx": "^4.16.2", + "vitest": "^2.0.4" + } + }, "node_modules/@azure-tools/openapi-tools-common": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/@azure-tools/openapi-tools-common/-/openapi-tools-common-1.2.2.tgz", @@ -152,18 +192,6 @@ "tslib": "^1.9.3" } }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@esbuild/aix-ppc64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", @@ -568,31 +596,12 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", "dev": true }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, "node_modules/@kwsites/file-exists": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz", @@ -937,30 +946,6 @@ "path-browserify": "^1.0.1" } }, - "node_modules/@tsconfig/node10": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", - "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "dev": true - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true - }, "node_modules/@types/archiver": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/@types/archiver/-/archiver-2.1.3.tgz", @@ -1289,19 +1274,6 @@ "node": ">=4" } }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/archiver": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/archiver/-/archiver-3.1.1.tgz", @@ -1366,12 +1338,6 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -1437,18 +1403,6 @@ "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-1.4.0.tgz", "integrity": "sha512-l5r9ir56nda3qu14nAXIlyq1MmUSs0meCIaFAh8HwkFwP1F8eToOuS3ah2VAHHcY04jaYD7FpJC5JTXHYRbkzg==" }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", @@ -1561,30 +1515,6 @@ "node": ">=6" } }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, "node_modules/clean-git-ref": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/clean-git-ref/-/clean-git-ref-1.0.3.tgz", @@ -1767,12 +1697,6 @@ "node": ">= 6.9.0" } }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, "node_modules/cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", @@ -1839,15 +1763,6 @@ "node": ">=0.4.0" } }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, "node_modules/diff-lines": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/diff-lines/-/diff-lines-1.1.1.tgz", @@ -1995,9 +1910,9 @@ } }, "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.2", + "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -2138,6 +2053,18 @@ "node": ">=6" } }, + "node_modules/get-tsconfig": { + "version": "4.7.6", + "resolved": "https://registry.npmmirror.com/get-tsconfig/-/get-tsconfig-4.7.6.tgz", + "integrity": "sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==", + "dev": true, + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, "node_modules/git-apply-delta": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/git-apply-delta/-/git-apply-delta-0.0.7.tgz", @@ -2203,15 +2130,6 @@ "node": ">= 0.4.0" } }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/has-own-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-own-prop/-/has-own-prop-2.0.0.tgz", @@ -2302,12 +2220,6 @@ "node": ">= 4" } }, - "node_modules/ignore-by-default": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", - "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", - "dev": true - }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -2338,18 +2250,6 @@ "node": ">=4" } }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/is-core-module": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", @@ -2604,12 +2504,6 @@ "@jridgewell/sourcemap-codec": "^1.4.15" } }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, "node_modules/map-age-cleaner": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", @@ -2821,34 +2715,6 @@ } } }, - "node_modules/nodemon": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.0.tgz", - "integrity": "sha512-xqlktYlDMCepBJd43ZQhjWwMw2obW/JRvkrLxq5RCNcuDDX1DbcPT+qT1IlIIdf+DhnWs90JpTMe+Y5KxOchvA==", - "dev": true, - "dependencies": { - "chokidar": "^3.5.2", - "debug": "^4", - "ignore-by-default": "^1.0.1", - "minimatch": "^3.1.2", - "pstree.remy": "^1.1.8", - "semver": "^7.5.3", - "simple-update-notifier": "^2.0.0", - "supports-color": "^5.5.0", - "touch": "^3.1.0", - "undefsafe": "^2.0.5" - }, - "bin": { - "nodemon": "bin/nodemon.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/nodemon" - } - }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -3151,12 +3017,6 @@ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, - "node_modules/pstree.remy": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", - "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", - "dev": true - }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -3205,18 +3065,6 @@ "node": ">= 6" } }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, "node_modules/rechoir": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", @@ -3265,6 +3113,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, "node_modules/retry": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", @@ -3497,18 +3354,6 @@ "url": "https://github.com/steveukx/git-js?sponsor=1" } }, - "node_modules/simple-update-notifier": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", - "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", - "dev": true, - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/source-map-js": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", @@ -3608,18 +3453,6 @@ "url": "https://github.com/sponsors/antfu" } }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", @@ -3689,15 +3522,6 @@ "resolved": "https://registry.npmjs.org/to-utf8/-/to-utf8-0.0.1.tgz", "integrity": "sha512-zks18/TWT1iHO3v0vFp5qLKOG27m67ycq/Y7a7cTiRuUNlc4gf3HGnkRgMv0NyhnfTamtkYBJl+YeD1/j07gBQ==" }, - "node_modules/touch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", - "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", - "dev": true, - "bin": { - "nodetouch": "bin/nodetouch.js" - } - }, "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", @@ -3712,53 +3536,435 @@ "code-block-writer": "^10.1.1" } }, - "node_modules/ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/tsx": { + "version": "4.16.3", + "resolved": "https://registry.npmmirror.com/tsx/-/tsx-4.16.3.tgz", + "integrity": "sha512-MP8AEUxVnboD2rCC6kDLxnpDBNWN9k3BSVU/0/nNxgm70bPBnfn+yCKcnOsIVPQwdkbKYoFOlKjjWZWJ2XCXUg==", "dev": true, "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" + "esbuild": "~0.21.5", + "get-tsconfig": "^4.7.5" }, "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" + "tsx": "dist/cli.mjs" }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" + "engines": { + "node": ">=18.0.0" }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } + "optionalDependencies": { + "fsevents": "~2.3.3" } }, - "node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "node_modules/tsx/node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } }, "node_modules/tunnel": { "version": "0.0.6", @@ -3779,9 +3985,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.5.3", + "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -3791,6 +3997,10 @@ "node": ">=14.17" } }, + "node_modules/typescript-codegen-breaking-change-detector": { + "resolved": "../../../../typescript-codegen-breaking-change-detector", + "link": true + }, "node_modules/typical": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", @@ -3806,12 +4016,6 @@ "dev": true, "license": "MIT" }, - "node_modules/undefsafe": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", - "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", - "dev": true - }, "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", @@ -3843,12 +4047,6 @@ "uuid": "dist/bin/uuid" } }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, "node_modules/varint": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/varint/-/varint-0.0.3.tgz", @@ -4400,15 +4598,6 @@ "decamelize": "^1.2.0" } }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/zip-stream": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-2.1.3.tgz", diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index a0f6c6266bd..cad1f2d1c72 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -3,7 +3,7 @@ "version": "2.7.11", "description": "", "scripts": { - "dev": "nodemon src/changelogToolCli.ts", + "dev": "tsx watch src/changelogToolCli.ts", "start": "node dist/changelogToolCli.js", "debug": "node --inspect-brk dist/changelogToolCli.js", "build": "rimraf dist && tsc -p .", @@ -33,15 +33,14 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^12.0.0", - "tslib": "^1.9.3", + "typescript-codegen-breaking-change-detector": "^0.3.0", "yaml": "^1.10.2" }, "devDependencies": { "@types/node": "^20.12.12", "@types/shelljs": "^0.8.15", - "nodemon": "^3.1.0", "rimraf": "^3.0.2", - "ts-node": "^10.9.2", + "tsx": "^4.16.3", "typescript": "^5.4.5", "vitest": "^1.6.0" } diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index cb1c37a5589..cf61726fc49 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -9,34 +9,42 @@ import { TypeLiteralDeclaration } from "parse-ts-to-ast/build/declarations/TypeL import { TSExportedMetaData } from "./extractMetaData"; import { SDKType } from "../common/types"; import { logger } from "../utils/logger"; +import { detectBreakingChangesBetweenPackages, InlineDeclarationNameSetMessage, RuleMessage, RuleMessageKind } from "typescript-codegen-breaking-change-detector"; + +interface ChangelogItem { + line: string; + name?: string; + baselineName?: string; + currentName?: string; +} export class Changelog { // features - public addedOperationGroup: string[] = []; + public addedOperationGroup: ChangelogItem[] = []; public addedOperation: string[] = []; - public addedInterface: string[] = []; + public addedInterface: ChangelogItem[] = []; public addedClass: string[] = []; public addedTypeAlias: string[] = []; public interfaceAddOptionalParam: string[] = []; - public interfaceParamTypeExtended: string[] = []; - public typeAliasAddInherit: string[] = []; + public interfaceParamTypeExtended: ChangelogItem[] = []; + public typeAliasAddInherit: ChangelogItem[] = []; public typeAliasAddParam: string[] = []; public addedEnum: string[] = []; public addedEnumValue: string[] = []; public addedFunction: string[] = []; // breaking changes - public removedOperationGroup: string[] = []; + public removedOperationGroup: ChangelogItem[] = []; public removedOperation: string[] = []; public operationSignatureChange: string[] = []; public deletedClass: string[] = []; public classSignatureChange: string[] = []; public interfaceParamDelete: string[] = []; public interfaceParamAddRequired: string[] = []; - public interfaceParamTypeChanged: string[] = []; + public interfaceParamTypeChanged: ChangelogItem[] = []; public interfaceParamChangeRequired: string[] = []; public classParamDelete: string[] = []; public classParamChangeRequired: string[] = []; - public typeAliasDeleteInherit: string[] = []; + public typeAliasDeleteInherit: ChangelogItem[] = []; public typeAliasParamDelete: string[] = []; public typeAliasAddRequiredParam: string[] = []; public typeAliasParamChangeRequired: string[] = []; @@ -83,7 +91,7 @@ export class Changelog { public getBreakingChangeItems(): string[] { let items: string[] = []; if (this.hasBreakingChange) { - this.removedOperationGroup + this.removedOperationGroup.map(i => i.line) .concat(this.removedOperation) .concat(this.operationSignatureChange) .concat(this.deletedClass) @@ -91,10 +99,10 @@ export class Changelog { .concat(this.interfaceParamDelete) .concat(this.interfaceParamAddRequired) .concat(this.interfaceParamChangeRequired) - .concat(this.interfaceParamTypeChanged) + .concat(this.interfaceParamTypeChanged.map(i => i.line)) .concat(this.classParamDelete) .concat(this.classParamChangeRequired) - .concat(this.typeAliasDeleteInherit) + .concat(this.typeAliasDeleteInherit.map(i => i.line)) .concat(this.typeAliasParamDelete) .concat(this.typeAliasAddRequiredParam) .concat(this.typeAliasParamChangeRequired) @@ -113,14 +121,14 @@ export class Changelog { if (this.hasFeature) { display.push('### Features Added'); display.push(''); - this.addedOperationGroup + this.addedOperationGroup.map(i => i.line) .concat(this.addedOperation) - .concat(this.addedInterface) + .concat(this.addedInterface.map(i => i.line)) .concat(this.addedClass) .concat(this.addedTypeAlias) .concat(this.interfaceAddOptionalParam) - .concat(this.interfaceParamTypeExtended) - .concat(this.typeAliasAddInherit) + .concat(this.interfaceParamTypeExtended.map(i => i.line)) + .concat(this.typeAliasAddInherit.map(i => i.line)) .concat(this.typeAliasAddParam) .concat(this.addedEnum) .concat(this.addedEnumValue) @@ -134,7 +142,7 @@ export class Changelog { if (this.hasFeature) display.push(''); display.push('### Breaking Changes'); display.push(''); - this.removedOperationGroup + this.removedOperationGroup.map(i => i.line) .concat(this.removedOperation) .concat(this.operationSignatureChange) .concat(this.deletedClass) @@ -142,10 +150,10 @@ export class Changelog { .concat(this.interfaceParamDelete) .concat(this.interfaceParamAddRequired) .concat(this.interfaceParamChangeRequired) - .concat(this.interfaceParamTypeChanged) + .concat(this.interfaceParamTypeChanged.map(i => i.line)) .concat(this.classParamDelete) .concat(this.classParamChangeRequired) - .concat(this.typeAliasDeleteInherit) + .concat(this.typeAliasDeleteInherit.map(i => i.line)) .concat(this.typeAliasParamDelete) .concat(this.typeAliasAddRequiredParam) .concat(this.typeAliasParamChangeRequired) @@ -159,6 +167,54 @@ export class Changelog { return display.join('\n'); } + + // TODO: add modular + public async postProcess(baselinePackageRoot: string, currentPackageRoot: string, sdkType: SDKType): Promise { + if (sdkType !== SDKType.RestLevelClient) { + logger.logWarn(`No need to post process changelog for ${sdkType}.`) + return; + } + try { + const messageMap = await detectBreakingChangesBetweenPackages(baselinePackageRoot, currentPackageRoot, baselinePackageRoot, true); + + switch (sdkType) { + case SDKType.RestLevelClient: + await this.postProcessForRestLevelClient(messageMap); + break; + } + } catch (err) { + throw new Error(`Failed to apply special breaking change rules to ${sdkType}`); + } + } + + private processInlineMessage(messages: InlineDeclarationNameSetMessage[]) { + logger.logInfo('Before post process rename messages in changelog') + logger.logGreen(this.displayChangeLog()); + messages.forEach(message => { + // operation groups + this.addedOperationGroup = this.addedOperationGroup.filter(i => i.name && !message.current.has(i.name)) + this.removedOperationGroup = this.removedOperationGroup.filter(i => i.name && !message.baseline.has(i.name)) + // internal types, request type, response type + this.addedInterface = this.addedInterface.filter(i => i.name && !message.current.has(i.name)) + this.typeAliasAddInherit = this.typeAliasAddInherit.filter(i => i.name && !message.current.has(i.name)) + this.typeAliasDeleteInherit = this.typeAliasDeleteInherit.filter(i => i.name && !message.baseline.has(i.name)) + this.interfaceParamTypeChanged = this.interfaceParamTypeChanged.filter(i => i.baselineName && !message.baseline.has(i.baselineName)) + this.interfaceParamTypeChanged = this.interfaceParamTypeChanged.filter(i => i.currentName && !message.current.has(i.currentName)) + this.interfaceParamTypeExtended = this.interfaceParamTypeExtended.filter(i => i.baselineName && !message.baseline.has(i.baselineName)) + this.interfaceParamTypeExtended = this.interfaceParamTypeExtended.filter(i => i.currentName && !message.current.has(i.currentName)) + }) + logger.logInfo('After post process rename messages in changelog') + logger.logGreen(this.displayChangeLog()); + } + + private async postProcessForRestLevelClient(messageMap: Map) { + // RLC only has 1 api view + const key = Array.from(messageMap.keys())[0] + const messages = messageMap.get(key)! + const inlineMessages = messages.filter(m => m.kind === RuleMessageKind.InlineDeclarationNameSetMessage).map(m => m as InlineDeclarationNameSetMessage) + this.processInlineMessage(inlineMessages) + } + } // todo: special rules for HLC convert to Modular, will use a more generic method to replace @@ -174,13 +230,13 @@ function getRenamedOperationGroupFromToMap(from: TSExportedMetaData): { [id: str const findAddedOperationGroup = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData, oldSdkType: SDKType, newSdkType: SDKType -): string[] => { +): ChangelogItem[] => { const newToOldMap = getRenamedOperationGroupFromToMap(metaDataNew); - const addOperationGroup: string[] = []; + const addOperationGroup: ChangelogItem[] = []; Object.keys(metaDataNew.operationInterface).forEach(operationGroup => { const oldName = oldSdkType === newSdkType ? operationGroup : newToOldMap[operationGroup]; if (!metaDataOld.operationInterface[oldName]) { - addOperationGroup.push('Added operation group ' + operationGroup); + addOperationGroup.push({ line: 'Added operation group ' + operationGroup, name: operationGroup }); } }); return addOperationGroup; @@ -212,11 +268,11 @@ const findAddedOperation = (metaDataOld: TSExportedMetaData, metaDataNew: TSExpo return addOperation; }; -const findAddedInterface = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const addInterface: string[] = []; +const findAddedInterface = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const addInterface: ChangelogItem[] = []; Object.keys(metaDataNew.modelInterface).forEach(model => { if (!metaDataOld.modelInterface[model]) { - addInterface.push('Added Interface ' + model); + addInterface.push({ line: 'Added Interface ' + model, name: model }); } }); return addInterface; @@ -267,8 +323,8 @@ const findInterfaceAddOptinalParam = (metaDataOld: TSExportedMetaData, metaDataN return interfaceAddedParam; }; -const findInterfaceParamTypeExtended = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const interfaceParamTypeExtended: string[] = []; +const findInterfaceParamTypeExtended = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const interfaceParamTypeExtended: ChangelogItem[] = []; Object.keys(metaDataNew.modelInterface).forEach(model => { if (metaDataOld.modelInterface[model]) { const modelFromOld = metaDataOld.modelInterface[model] as InterfaceDeclaration; @@ -289,7 +345,7 @@ const findInterfaceParamTypeExtended = (metaDataOld: TSExportedMetaData, metaDat } } if (allFind) { - interfaceParamTypeExtended.push(`Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`); + interfaceParamTypeExtended.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, currentName: pNew.type, baselineName: pOld.type }); } } } @@ -303,8 +359,8 @@ const findInterfaceParamTypeExtended = (metaDataOld: TSExportedMetaData, metaDat return interfaceParamTypeExtended; }; -const findTypeAliasAddInherit = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const typeAliasAddInherit: string[] = []; +const findTypeAliasAddInherit = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const typeAliasAddInherit: ChangelogItem[] = []; Object.keys(metaDataNew.typeAlias).forEach(typeAlias => { if (metaDataOld.typeAlias[typeAlias]) { const typeAliasFromOld = metaDataOld.typeAlias[typeAlias] as TypeAliasDeclaration; @@ -314,18 +370,20 @@ const findTypeAliasAddInherit = (metaDataOld: TSExportedMetaData, metaDataNew: T typeAliasFromNew.type.inherits.forEach(inherit => { if (typeof inherit === 'string') { if (typeAliasFromOld.type instanceof IntersectionDeclaration) { + // strange behavior, 'ClustersUpdateMediaTypesParam_CCC' is in intersection type, but it's in 'inherits' + // export type ClustersUpdateParameters = ClustersUpdateMediaTypesParam_CCC & ClustersUpdateBodyParam & RequestParameters; if (typeAliasFromOld.type.inherits) { if (!typeAliasFromOld.type.inherits.includes(inherit)) { - typeAliasAddInherit.push('Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias); + typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, name: inherit }); } } else { - typeAliasAddInherit.push('Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias); + typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, name: inherit }); } } else if (typeAliasFromOld.type instanceof TypeLiteralDeclaration) { - typeAliasAddInherit.push('Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias); + typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, name: inherit }); } else if (typeof typeAliasFromOld.type === 'string') { if (typeAliasFromOld.type !== inherit) { - typeAliasAddInherit.push('Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias); + typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, name: inherit }); } } } @@ -459,13 +517,13 @@ const findAddedFunction = (metaDataOld: TSExportedMetaData, metaDataNew: TSExpor const findRemovedOperationGroup = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData, oldSdkType: SDKType, newSdkType: SDKType -): string[] => { +): ChangelogItem[] => { const oldToNew = getRenamedOperationGroupFromToMap(metaDataOld); - const removedOperationGroup: string[] = []; + const removedOperationGroup: ChangelogItem[] = []; Object.keys(metaDataOld.operationInterface).forEach(oldOperationGroup => { const newOperationGroup = oldSdkType === newSdkType ? oldOperationGroup : oldToNew[oldOperationGroup]; if (!metaDataNew.operationInterface[newOperationGroup]) { - removedOperationGroup.push('Removed operation group ' + oldOperationGroup); + removedOperationGroup.push({ line: 'Removed operation group ' + oldOperationGroup, name: oldOperationGroup }); } }); return removedOperationGroup; @@ -679,8 +737,8 @@ const findInterfaceParamChangeRequired = (metaDataOld: TSExportedMetaData, metaD return interfaceParamChangeRequired; }; -const findInterfaceParamTypeChanged = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const interfaceParamTypeChanged: string[] = []; +const findInterfaceParamTypeChanged = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const interfaceParamTypeChanged: ChangelogItem[] = []; Object.keys(metaDataNew.modelInterface).forEach(model => { if (metaDataOld.modelInterface[model]) { const modelFromOld = metaDataOld.modelInterface[model] as InterfaceDeclaration; @@ -695,13 +753,13 @@ const findInterfaceParamTypeChanged = (metaDataOld: TSExportedMetaData, metaData if (!!newTypes && !!oldTypes) { for (const t of oldTypes) { if (!newTypes.includes(t)) { - interfaceParamTypeChanged.push(`Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`); + interfaceParamTypeChanged.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, baselineName: pOld.type, currentName: pNew.type }); break; } } } } else { - interfaceParamTypeChanged.push(`Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`); + interfaceParamTypeChanged.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, baselineName: pOld.type, currentName: pNew.type }); } } return; @@ -759,8 +817,8 @@ const findClassParamChangeRequired = (metaDataOld: TSExportedMetaData, metaDataN return classParamChangeRequired; }; -const findTypeAliasDeleteInherit = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const typeAliasDeleteInherit: string[] = []; +const findTypeAliasDeleteInherit = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const typeAliasDeleteInherit: ChangelogItem[] = []; Object.keys(metaDataNew.typeAlias).forEach(typeAlias => { if (metaDataOld.typeAlias[typeAlias]) { const typeAliasFromOld = metaDataOld.typeAlias[typeAlias] as TypeAliasDeclaration; @@ -772,16 +830,16 @@ const findTypeAliasDeleteInherit = (metaDataOld: TSExportedMetaData, metaDataNew if (typeAliasFromNew.type instanceof IntersectionDeclaration) { if (typeAliasFromNew.type.inherits) { if (!typeAliasFromNew.type.inherits.includes(inherit)) { - typeAliasDeleteInherit.push('Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias); + typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, name: inherit }); } } else { - typeAliasDeleteInherit.push('Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias); + typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, name: inherit }); } } else if (typeAliasFromNew.type instanceof TypeLiteralDeclaration) { - typeAliasDeleteInherit.push('Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias); + typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, name: inherit }); } else if (typeof typeAliasFromNew.type === 'string') { if (typeAliasFromNew.type !== inherit) { - typeAliasDeleteInherit.push('Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias); + typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, name: inherit }); } } } diff --git a/tools/js-sdk-release-tools/src/common/utils.ts b/tools/js-sdk-release-tools/src/common/utils.ts index e9437249630..705602c821e 100644 --- a/tools/js-sdk-release-tools/src/common/utils.ts +++ b/tools/js-sdk-release-tools/src/common/utils.ts @@ -13,6 +13,10 @@ export function getClassicClientParametersPath(packageRoot: string): string { export function getSDKType(packageRoot: string): SDKType { const paraPath = getClassicClientParametersPath(packageRoot); + const packageName = getNpmPackageName(packageRoot); + if (packageName.startsWith('@azure-rest/')) { + return SDKType.RestLevelClient; + } const exist = shell.test('-e', paraPath); const type = exist ? SDKType.HighLevelClient : SDKType.ModularClient; logger.logInfo(`SDK type: ${type} detected in ${packageRoot}`); diff --git a/tools/js-sdk-release-tools/src/hlc/utils/automaticGenerateChangeLogAndBumpVersion.ts b/tools/js-sdk-release-tools/src/hlc/utils/automaticGenerateChangeLogAndBumpVersion.ts index cdb02311ae4..ef1aac207cd 100644 --- a/tools/js-sdk-release-tools/src/hlc/utils/automaticGenerateChangeLogAndBumpVersion.ts +++ b/tools/js-sdk-release-tools/src/hlc/utils/automaticGenerateChangeLogAndBumpVersion.ts @@ -20,7 +20,7 @@ import { } from "../../utils/version"; import { execSync } from "child_process"; import { getversionDate } from "../../utils/version"; -import { ApiVersionType } from "../../common/types" +import { ApiVersionType, SDKType } from "../../common/types" import { getApiVersionType } from '../../xlc/apiVersion/apiVersionTypeExtractor' import { fixChangelogFormat, getApiReviewPath, getNpmPackageName, getSDKType, tryReadNpmPackageChangelog } from '../../common/utils'; @@ -57,7 +57,8 @@ export async function generateChangelogAndBumpVersion(packageFolderPath: string) // only track2 sdk includes sdk-type with value mgmt const sdkType = JSON.parse(fs.readFileSync(path.join(packageFolderPath, 'changelog-temp', 'package', 'package.json'), {encoding: 'utf-8'}))['sdk-type']; - if (sdkType && sdkType === 'mgmt') { + const clientType = getSDKType(packageFolderPath); + if (sdkType && sdkType === 'mgmt' || clientType === SDKType.RestLevelClient) { logger.log(`Package ${packageName} released before is track2 sdk`); logger.log('Generating changelog by comparing api.md...'); const npmPackageRoot = path.join(packageFolderPath, 'changelog-temp', 'package'); @@ -101,6 +102,7 @@ export async function generateChangelogAndBumpVersion(packageFolderPath: string) } makeChangesForPatchReleasingTrack2(packageFolderPath, newVersion); } else { + await changelog.postProcess(npmPackageRoot, packageFolderPath, clientType) const newVersion = getNewVersion(stableVersion, usedVersions, changelog.hasBreakingChange, isStableRelease); makeChangesForReleasingTrack2(packageFolderPath, newVersion, changelog, originalChangeLogContent,stableVersion); logger.log('Generate changelogs and setting version for track2 release successfully'); diff --git a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts new file mode 100644 index 00000000000..63932b1fcb2 --- /dev/null +++ b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts @@ -0,0 +1,25 @@ +import shell from "shelljs"; +import path from "path"; +import { ApiVersionType } from "../../common/types"; +import { IApiVersionTypeExtractor } from "../../common/interfaces"; +import { getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; + +const findRestClientPath = (packageRoot: string): string => { + const restPath = path.join(packageRoot, "src/"); + const fileNames = shell.ls(restPath); + const clientFiles = fileNames.filter((f) => f.endsWith("Client.ts")); + if (clientFiles.length !== 1) + throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); + + const clientPath = path.join(restPath, clientFiles[0]); + return clientPath; +}; + +export const getApiVersionType: IApiVersionTypeExtractor = ( + packageRoot: string +): ApiVersionType => { + const relativeRestSrcFolder = "src/"; + const typeFromClient = getApiVersionTypeFromRestClient(packageRoot, relativeRestSrcFolder, findRestClientPath); + if (typeFromClient !== ApiVersionType.None) return typeFromClient; + return ApiVersionType.Stable; +}; diff --git a/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts index d03678606b9..472cc967b80 100644 --- a/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts @@ -1,91 +1,9 @@ import { SourceFile, SyntaxKind } from "ts-morph"; -import shell from "shelljs"; import path from "path"; -import * as ts from "typescript"; - import { ApiVersionType } from "../../common/types"; import { IApiVersionTypeExtractor } from "../../common/interfaces"; import { getTsSourceFile } from "../../common/utils"; -import { readFileSync } from "fs"; - -const findRestClientPath = (packageRoot: string): string => { - const restPath = path.join(packageRoot, "src/rest/"); - const fileNames = shell.ls(restPath); - const clientFiles = fileNames.filter((f) => f.endsWith("Client.ts")); - if (clientFiles.length !== 1) - throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); - - const clientPath = path.join(restPath, clientFiles[0]); - return clientPath; -}; - -const findApiVersionInRestClientV1 = ( - clientPath: string -): string | undefined => { - const sourceFile = getTsSourceFile(clientPath); - const createClientFunction = sourceFile?.getFunction("createClient"); - if (!createClientFunction) - throw new Error("Function 'createClient' not found."); - - const apiVersionStatements = createClientFunction - .getStatements() - .filter((s) => s.getText().includes("options.apiVersion")); - if (apiVersionStatements.length === 0) { - return undefined; - } - const text = - apiVersionStatements[apiVersionStatements.length - 1].getText(); - return extractApiVersionFromText(text); -}; - -const extractApiVersionFromText = (text: string): string | undefined => { - const begin = text.indexOf('"'); - const end = text.lastIndexOf('"'); - return text.substring(begin + 1, end); -}; - -// new ways in @autorest/typespec-ts emitter to set up api-version -const findApiVersionInRestClientV2 = (clientPath: string): string | undefined => { - const sourceCode= readFileSync(clientPath, {encoding: 'utf-8'}) - const sourceFile = ts.createSourceFile("example.ts", sourceCode, ts.ScriptTarget.Latest, true); - const createClientFunction = sourceFile.statements.filter(s => (s as ts.FunctionDeclaration)?.name?.escapedText === 'createClient').map(s => (s as ts.FunctionDeclaration))[0]; - let apiVersion: string | undefined = undefined; - createClientFunction.parameters.forEach(p => { - const isBindingPattern = node => node && typeof node === "object" && "elements" in node && "parent" in node && "kind" in node; - if (!isBindingPattern(p.name)) { - return; - } - const binding = p.name as ts.ObjectBindingPattern; - const apiVersionTexts = binding.elements?.filter(e => (e.name as ts.Identifier)?.escapedText === "apiVersion").map(e => e.initializer?.getText()); - // apiVersionTexts.length must be 0 or 1, otherwise the binding pattern contains the same keys, which causes a ts error - if (apiVersionTexts.length === 1 && apiVersionTexts[0]) { - apiVersion = extractApiVersionFromText(apiVersionTexts[0]); - } - }); - return apiVersion; -}; - -// workaround for createClient function changes it's way to setup api-version -export const findApiVersionInRestClient = (clientPath: string): string | undefined => { - const version2 = findApiVersionInRestClientV2(clientPath); - if (version2) { - return version2; - } - const version1 = findApiVersionInRestClientV1(clientPath); - return version1; -}; - -const getApiVersionTypeFromRestClient: IApiVersionTypeExtractor = ( - packageRoot: string -): ApiVersionType => { - const clientPath = findRestClientPath(packageRoot); - const apiVersion = findApiVersionInRestClient(clientPath); - if (apiVersion && apiVersion.indexOf("-preview") >= 0) - return ApiVersionType.Preview; - if (apiVersion && apiVersion.indexOf("-preview") < 0) - return ApiVersionType.Stable; - return ApiVersionType.None; -}; +import { findRestClientPath, getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; const findApiVersionsInOperations = ( sourceFile: SourceFile | undefined @@ -127,7 +45,8 @@ const getApiVersionTypeFromOperations: IApiVersionTypeExtractor = ( export const getApiVersionType: IApiVersionTypeExtractor = ( packageRoot: string ): ApiVersionType => { - const typeFromClient = getApiVersionTypeFromRestClient(packageRoot); + const relativeRestSrcFolder = "src/rest/"; + const typeFromClient = getApiVersionTypeFromRestClient(packageRoot, relativeRestSrcFolder, findRestClientPath); if (typeFromClient !== ApiVersionType.None) return typeFromClient; const typeFromOperations = getApiVersionTypeFromOperations(packageRoot); if (typeFromOperations !== ApiVersionType.None) return typeFromOperations; diff --git a/tools/js-sdk-release-tools/src/test/apiVersion/apiVersionExtractor.test.ts b/tools/js-sdk-release-tools/src/test/apiVersion/apiVersionExtractor.test.ts index 2788820487b..fcb4424840c 100644 --- a/tools/js-sdk-release-tools/src/test/apiVersion/apiVersionExtractor.test.ts +++ b/tools/js-sdk-release-tools/src/test/apiVersion/apiVersionExtractor.test.ts @@ -1,7 +1,8 @@ import { expect, test } from "vitest"; -import { findApiVersionInRestClient, getApiVersionType } from "../../mlc/apiVersion/apiVersionTypeExtractor"; +import { getApiVersionType } from "../../mlc/apiVersion/apiVersionTypeExtractor"; import { join } from "path"; import { ApiVersionType } from "../../common/types"; +import { findApiVersionInRestClient } from "../../xlc/apiVersion/utils"; test("MLC api-version Extractor: new createClient function", async () => { const clientPath = join(__dirname, 'testCases/new/src/rest/newClient.ts'); diff --git a/tools/js-sdk-release-tools/src/xlc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/xlc/apiVersion/apiVersionTypeExtractor.ts index 797b0340c2e..a309a3e5517 100644 --- a/tools/js-sdk-release-tools/src/xlc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/xlc/apiVersion/apiVersionTypeExtractor.ts @@ -3,6 +3,7 @@ import { ApiVersionType, SDKType } from "../../common/types"; import { IApiVersionTypeExtractor } from "../../common/interfaces"; import * as mlcApi from '../../mlc/apiVersion/apiVersionTypeExtractor' import * as hlcApi from '../../hlc/apiVersion/apiVersionTypeExtractor' +import * as rlcApi from '../../llc/apiVersion/apiVersionTypeExtractor' // TODO: move to x-level-client folder export const getApiVersionType: IApiVersionTypeExtractor = (packageRoot: string): ApiVersionType => { @@ -12,6 +13,8 @@ export const getApiVersionType: IApiVersionTypeExtractor = (packageRoot: string) return mlcApi.getApiVersionType(packageRoot); case SDKType.HighLevelClient: return hlcApi.getApiVersionType(packageRoot); + case SDKType.RestLevelClient: + return rlcApi.getApiVersionType(packageRoot); default: console.warn(`Unsupported SDK type ${sdkType} to get detact api version`); return ApiVersionType.None; diff --git a/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts b/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts new file mode 100644 index 00000000000..3daacb7a669 --- /dev/null +++ b/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts @@ -0,0 +1,87 @@ +import { readFileSync } from "node:fs"; +import { getTsSourceFile } from "../../common/utils"; +import { ApiVersionType } from "../../common/types"; +import * as ts from "typescript"; +import path from "node:path"; +import shell from "shelljs"; + +const findApiVersionInRestClientV1 = ( + clientPath: string +): string | undefined => { + const sourceFile = getTsSourceFile(clientPath); + const createClientFunction = sourceFile?.getFunction("createClient"); + if (!createClientFunction) + throw new Error("Function 'createClient' not found."); + + const apiVersionStatements = createClientFunction + .getStatements() + .filter((s) => s.getText().includes("options.apiVersion")); + if (apiVersionStatements.length === 0) { + return undefined; + } + const text = + apiVersionStatements[apiVersionStatements.length - 1].getText(); + return extractApiVersionFromText(text); +}; + +const extractApiVersionFromText = (text: string): string | undefined => { + const begin = text.indexOf('"'); + const end = text.lastIndexOf('"'); + return text.substring(begin + 1, end); +}; + +// new ways in @autorest/typespec-ts emitter to set up api-version +const findApiVersionInRestClientV2 = (clientPath: string): string | undefined => { + const sourceCode= readFileSync(clientPath, {encoding: 'utf-8'}) + const sourceFile = ts.createSourceFile("example.ts", sourceCode, ts.ScriptTarget.Latest, true); + const createClientFunction = sourceFile.statements.filter(s => (s as ts.FunctionDeclaration)?.name?.escapedText === 'createClient').map(s => (s as ts.FunctionDeclaration))[0]; + let apiVersion: string | undefined = undefined; + createClientFunction.parameters.forEach(p => { + const isBindingPattern = node => node && typeof node === "object" && "elements" in node && "parent" in node && "kind" in node; + if (!isBindingPattern(p.name)) { + return; + } + const binding = p.name as ts.ObjectBindingPattern; + const apiVersionTexts = binding.elements?.filter(e => (e.name as ts.Identifier)?.escapedText === "apiVersion").map(e => e.initializer?.getText()); + // apiVersionTexts.length must be 0 or 1, otherwise the binding pattern contains the same keys, which causes a ts error + if (apiVersionTexts.length === 1 && apiVersionTexts[0]) { + apiVersion = extractApiVersionFromText(apiVersionTexts[0]); + } + }); + return apiVersion; +}; + +// workaround for createClient function changes it's way to setup api-version +export const findApiVersionInRestClient = (clientPath: string): string | undefined => { + const version2 = findApiVersionInRestClientV2(clientPath); + if (version2) { + return version2; + } + const version1 = findApiVersionInRestClientV1(clientPath); + return version1; +}; + +export const findRestClientPath = (packageRoot: string, relativeRestSrcFolder: string): string => { + const restPath = path.join(packageRoot, relativeRestSrcFolder); + const fileNames = shell.ls(restPath); + const clientFiles = fileNames.filter((f) => f.endsWith("Client.ts")); + if (clientFiles.length !== 1) + throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); + + const clientPath = path.join(restPath, clientFiles[0]); + return clientPath; +}; + +export const getApiVersionTypeFromRestClient = ( + packageRoot: string, + relativeRestSrcFolder: string, + findRestClientPath: (packageRoot: string, relativeRestSrcFolder: string) => string +): ApiVersionType => { + const clientPath = findRestClientPath(packageRoot, relativeRestSrcFolder); + const apiVersion = findApiVersionInRestClient(clientPath); + if (apiVersion && apiVersion.indexOf("-preview") >= 0) + return ApiVersionType.Preview; + if (apiVersion && apiVersion.indexOf("-preview") < 0) + return ApiVersionType.Stable; + return ApiVersionType.None; +}; \ No newline at end of file From 0e2560d8906bfbb1cb7a9c1d353619418bce0ab0 Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 1 Aug 2024 15:30:37 +0800 Subject: [PATCH 02/35] Fixed test --- .../src/test/changelog/changelogGenerator.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts b/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts index 13d2f7edddd..bf3eb69c1fb 100644 --- a/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts +++ b/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts @@ -126,10 +126,10 @@ describe("Breaking change detection", () => { expect(changelog.operationSignatureChange.length).toBe(1); - expect(changelog.addedOperationGroup[0]).toBe( + expect(changelog.addedOperationGroup[0].line).toBe( "Added operation group DataProductsCatalogs_add" ); - expect(changelog.removedOperationGroup[0]).toBe( + expect(changelog.removedOperationGroup[0].line).toBe( "Removed operation group DataProductsCatalogs_remove" ); expect(changelog.operationSignatureChange[0]).toBe( From 86b2040acce19b30daa16b5bf41b5850ede7ecbd Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 1 Aug 2024 16:25:10 +0800 Subject: [PATCH 03/35] Updated version --- tools/js-sdk-release-tools/package-lock.json | 8 ++------ tools/js-sdk-release-tools/package.json | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index 69840e48c46..c4de993dd62 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -20,7 +20,7 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^12.0.0", - "typescript-codegen-breaking-change-detector": "^0.3.0", + "typescript-codegen-breaking-change-detector": "^0.3.2", "yaml": "^1.10.2" }, "bin": { @@ -40,7 +40,7 @@ } }, "../../../../typescript-codegen-breaking-change-detector": { - "version": "0.3.0", + "version": "0.3.2", "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", @@ -60,13 +60,10 @@ "typescript-eslint": "^7.17.0" }, "devDependencies": { - "@azure-rest/core-client": "^2.0.0", - "@azure/core-client": "^1.9.2", "@rollup/plugin-commonjs": "^26.0.1", "@types/eslint": "^8.56.10", "@types/eslint-scope": "^3.7.7", "@types/fs-extra": "^11.0.4", - "@types/to-json-schema": "^0.2.4", "@typescript-eslint/eslint-plugin": "^7.17.0", "@typescript-eslint/parser": "^7.17.0", "eslint-config-prettier": "^9.1.0", @@ -75,7 +72,6 @@ "onchange": "^7.1.0", "prettier": "3.3.2", "rimraf": "^5.0.7", - "run-script-os": "^1.1.6", "tsx": "^4.16.2", "vitest": "^2.0.4" } diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index cad1f2d1c72..8d3d85b8ec0 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -33,7 +33,7 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^12.0.0", - "typescript-codegen-breaking-change-detector": "^0.3.0", + "typescript-codegen-breaking-change-detector": "^0.3.2", "yaml": "^1.10.2" }, "devDependencies": { From a16f0d89e931d18d51e6aa25f85eae911afd08d3 Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 1 Aug 2024 16:37:12 +0800 Subject: [PATCH 04/35] Updated ts config --- tools/js-sdk-release-tools/tsconfig.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/js-sdk-release-tools/tsconfig.json b/tools/js-sdk-release-tools/tsconfig.json index 8cf41ce5cb0..4342ba9833e 100644 --- a/tools/js-sdk-release-tools/tsconfig.json +++ b/tools/js-sdk-release-tools/tsconfig.json @@ -4,14 +4,13 @@ /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ - "target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, - "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, - "lib": ["ES6"] /* Specify library files to be included in the compilation. */, + "target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, + "module": "NodeNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */ "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ "sourceMap": true /* Generates corresponding '.map' file. */, // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./dist" /* Redirect output structure to the directory. */, @@ -43,7 +42,7 @@ // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */ /* Module Resolution Options */ - // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + "moduleResolution": "NodeNext", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ From e2a148902c33bba1da096ad3b3aa577d43bfaaa0 Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 1 Aug 2024 16:48:54 +0800 Subject: [PATCH 05/35] Update --- tools/js-sdk-release-tools/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index 8d3d85b8ec0..a514f984d41 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -33,7 +33,7 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^12.0.0", - "typescript-codegen-breaking-change-detector": "^0.3.2", + "typescript-codegen-breaking-change-detector": "^0.3.3", "yaml": "^1.10.2" }, "devDependencies": { From 9dc4012573991e28f63d1383ab2af026cb07235e Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 1 Aug 2024 18:00:44 +0800 Subject: [PATCH 06/35] Updated --- .../src/changelog/changelogGenerator.ts | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index cf61726fc49..7726d92b2d9 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -24,7 +24,7 @@ export class Changelog { public addedOperation: string[] = []; public addedInterface: ChangelogItem[] = []; public addedClass: string[] = []; - public addedTypeAlias: string[] = []; + public addedTypeAlias: ChangelogItem[] = []; public interfaceAddOptionalParam: string[] = []; public interfaceParamTypeExtended: ChangelogItem[] = []; public typeAliasAddInherit: ChangelogItem[] = []; @@ -35,7 +35,7 @@ export class Changelog { // breaking changes public removedOperationGroup: ChangelogItem[] = []; public removedOperation: string[] = []; - public operationSignatureChange: string[] = []; + public operationSignatureChange: ChangelogItem[] = []; public deletedClass: string[] = []; public classSignatureChange: string[] = []; public interfaceParamDelete: string[] = []; @@ -93,7 +93,7 @@ export class Changelog { if (this.hasBreakingChange) { this.removedOperationGroup.map(i => i.line) .concat(this.removedOperation) - .concat(this.operationSignatureChange) + .concat(this.operationSignatureChange.map(i => i.line)) .concat(this.deletedClass) .concat(this.classSignatureChange) .concat(this.interfaceParamDelete) @@ -125,7 +125,7 @@ export class Changelog { .concat(this.addedOperation) .concat(this.addedInterface.map(i => i.line)) .concat(this.addedClass) - .concat(this.addedTypeAlias) + .concat(this.addedTypeAlias.map(i => i.line)) .concat(this.interfaceAddOptionalParam) .concat(this.interfaceParamTypeExtended.map(i => i.line)) .concat(this.typeAliasAddInherit.map(i => i.line)) @@ -144,7 +144,7 @@ export class Changelog { display.push(''); this.removedOperationGroup.map(i => i.line) .concat(this.removedOperation) - .concat(this.operationSignatureChange) + .concat(this.operationSignatureChange.map(i => i.line)) .concat(this.deletedClass) .concat(this.classSignatureChange) .concat(this.interfaceParamDelete) @@ -202,6 +202,8 @@ export class Changelog { this.interfaceParamTypeChanged = this.interfaceParamTypeChanged.filter(i => i.currentName && !message.current.has(i.currentName)) this.interfaceParamTypeExtended = this.interfaceParamTypeExtended.filter(i => i.baselineName && !message.baseline.has(i.baselineName)) this.interfaceParamTypeExtended = this.interfaceParamTypeExtended.filter(i => i.currentName && !message.current.has(i.currentName)) + this.addedTypeAlias = this.addedTypeAlias.filter(i => i.currentName && !message.current.has(i.currentName)) + this.operationSignatureChange = this.operationSignatureChange.filter(i => i.currentName && !message.current.has(i.currentName)) }) logger.logInfo('After post process rename messages in changelog') logger.logGreen(this.displayChangeLog()); @@ -288,11 +290,11 @@ const findAddedClass = (metaDataOld: TSExportedMetaData, metaDataNew: TSExported return addClass; }; -const findAddedTypeAlias = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const addModel: string[] = []; +const findAddedTypeAlias = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const addModel: ChangelogItem[] = []; Object.keys(metaDataNew.typeAlias).forEach(typeAlias => { if (!metaDataOld.typeAlias[typeAlias]) { - addModel.push('Added Type Alias ' + typeAlias); + addModel.push({ line: 'Added Type Alias ' + typeAlias, name: typeAlias }); } }); return addModel; @@ -551,9 +553,9 @@ const findRemovedOperation = (metaDataOld: TSExportedMetaData, metaDataNew: TSEx }; const findOperationSignatureChange = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData, - oldSdkType: SDKType, newSdkType: SDKType): string[] => { + oldSdkType: SDKType, newSdkType: SDKType): ChangelogItem[] => { const newToOld = getRenamedOperationGroupFromToMap(metaDataNew); - const operationSignatureChange: string[] = []; + const operationSignatureChange: ChangelogItem[] = []; Object.keys(metaDataNew.operationInterface).forEach(newOperationGroup => { const oldOperationGroup = oldSdkType === newSdkType ? newOperationGroup : newToOld[newOperationGroup]; if (!metaDataOld.operationInterface[oldOperationGroup]) { @@ -591,13 +593,13 @@ const findOperationSignatureChange = (metaDataOld: TSExportedMetaData, metaDataN const parametersOld = mOld.parameters; const parametersNew = mNew.parameters; if (parametersNew.length !== parametersOld.length) { - operationSignatureChange.push('Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature'); + operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', name: mNew.type }); } else { for (let index = 0; index < parametersNew.length; index++) { const pOld = parametersOld[index]; const pNew = parametersNew[index]; if (pOld.type !== pNew.type || pOld.isOptional !== pNew.isOptional) { - operationSignatureChange.push('Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature'); + operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', name: mNew.type }); return; } } From ec84c885f9f78ea5c100d9b252eb1025638797d5 Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 1 Aug 2024 18:05:47 +0800 Subject: [PATCH 07/35] Updated test --- .../src/test/changelog/changelogGenerator.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts b/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts index bf3eb69c1fb..3f764b3bc33 100644 --- a/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts +++ b/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts @@ -132,7 +132,7 @@ describe("Breaking change detection", () => { expect(changelog.removedOperationGroup[0].line).toBe( "Removed operation group DataProductsCatalogs_remove" ); - expect(changelog.operationSignatureChange[0]).toBe( + expect(changelog.operationSignatureChange[0].line).toBe( "Operation DataProductsCatalogs_sig_change.get has a new signature" ); }); From 7fffccfa28f7237aca25121c26ab939481650808 Mon Sep 17 00:00:00 2001 From: wanl Date: Fri, 2 Aug 2024 16:30:10 +0800 Subject: [PATCH 08/35] Updated for all kinds of changelog items --- tools/js-sdk-release-tools/package-lock.json | 113 +++-- tools/js-sdk-release-tools/package.json | 4 +- .../RestLevelClientChangelogPostProcessor.ts | 122 +++++ .../src/changelog/changelogGenerator.ts | 442 +++++++++--------- 4 files changed, 411 insertions(+), 270 deletions(-) create mode 100644 tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index c4de993dd62..04fd1faa176 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -19,8 +19,8 @@ "semver": "^7.3.5", "shelljs": "^0.8.4", "simple-git": "^3.5.0", - "ts-morph": "^12.0.0", - "typescript-codegen-breaking-change-detector": "^0.3.2", + "ts-morph": "^23.0.0", + "typescript-codegen-breaking-change-detector": "^0.4.3", "yaml": "^1.10.2" }, "bin": { @@ -40,7 +40,7 @@ } }, "../../../../typescript-codegen-breaking-change-detector": { - "version": "0.3.2", + "version": "0.4.3", "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", @@ -613,7 +613,7 @@ }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dependencies": { "@nodelib/fs.stat": "2.0.5", @@ -625,7 +625,7 @@ }, "node_modules/@nodelib/fs.stat": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "engines": { "node": ">= 8" @@ -633,7 +633,7 @@ }, "node_modules/@nodelib/fs.walk": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dependencies": { "@nodelib/fs.scandir": "2.1.5", @@ -932,16 +932,38 @@ } }, "node_modules/@ts-morph/common": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.11.1.tgz", - "integrity": "sha512-7hWZS0NRpEsNV8vWJzg7FEz6V8MaLNeJOmwmghqUXTpzk16V1LLZhdo+4QvE/+zv4cVci0OviuJFnqhEfoV3+g==", + "version": "0.24.0", + "resolved": "https://registry.npmmirror.com/@ts-morph/common/-/common-0.24.0.tgz", + "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", "dependencies": { - "fast-glob": "^3.2.7", - "minimatch": "^3.0.4", - "mkdirp": "^1.0.4", + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", "path-browserify": "^1.0.1" } }, + "node_modules/@ts-morph/common/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@types/archiver": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/@types/archiver/-/archiver-2.1.3.tgz", @@ -1429,7 +1451,7 @@ }, "node_modules/braces": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { "fill-range": "^7.1.1" @@ -1527,9 +1549,9 @@ } }, "node_modules/code-block-writer": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-10.1.1.tgz", - "integrity": "sha512-67ueh2IRGst/51p0n6FvPrnRjAGHY5F8xdjkgrYE7DDzpJe6qA07RYQ9VcoUeo5ATOjSOiWpSL3SWBRRbempMw==" + "version": "13.0.2", + "resolved": "https://registry.npmmirror.com/code-block-writer/-/code-block-writer-13.0.2.tgz", + "integrity": "sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==" }, "node_modules/code-point-at": { "version": "1.1.0", @@ -1921,16 +1943,16 @@ } }, "node_modules/fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "version": "1.17.1", + "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dependencies": { "reusify": "^1.0.4" } }, "node_modules/fill-range": { "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" @@ -2091,7 +2113,7 @@ }, "node_modules/glob-parent": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dependencies": { "is-glob": "^4.0.1" @@ -2259,7 +2281,7 @@ }, "node_modules/is-extglob": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "engines": { "node": ">=0.10.0" @@ -2275,7 +2297,7 @@ }, "node_modules/is-glob": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dependencies": { "is-extglob": "^2.1.1" @@ -2286,7 +2308,7 @@ }, "node_modules/is-number": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "engines": { "node": ">=0.12.0" @@ -2551,18 +2573,18 @@ }, "node_modules/merge2": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "engines": { "node": ">= 8" } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.7", + "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -2640,14 +2662,17 @@ } }, "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", "bin": { - "mkdirp": "bin/cmd.js" + "mkdirp": "dist/cjs/src/bin.js" }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/mlly": { @@ -2874,7 +2899,7 @@ }, "node_modules/path-browserify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "resolved": "https://registry.npmmirror.com/path-browserify/-/path-browserify-1.0.1.tgz", "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" }, "node_modules/path-exists": { @@ -2922,7 +2947,7 @@ }, "node_modules/picomatch": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "engines": { "node": ">=8.6" @@ -3024,7 +3049,7 @@ }, "node_modules/queue-microtask": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "funding": [ { @@ -3128,7 +3153,7 @@ }, "node_modules/reusify": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "engines": { "iojs": ">=1.0.0", @@ -3188,7 +3213,7 @@ }, "node_modules/run-parallel": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "funding": [ { @@ -3504,7 +3529,7 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dependencies": { "is-number": "^7.0.0" @@ -3524,12 +3549,12 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/ts-morph": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-12.2.0.tgz", - "integrity": "sha512-WHXLtFDcIRwoqaiu0elAoZ/AmI+SwwDafnPKjgJmdwJ2gRVO0jMKBt88rV2liT/c6MTsXyuWbGFiHe9MRddWJw==", + "version": "23.0.0", + "resolved": "https://registry.npmmirror.com/ts-morph/-/ts-morph-23.0.0.tgz", + "integrity": "sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==", "dependencies": { - "@ts-morph/common": "~0.11.1", - "code-block-writer": "^10.1.1" + "@ts-morph/common": "~0.24.0", + "code-block-writer": "^13.0.1" } }, "node_modules/tslib": { diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index a514f984d41..0fc0e1325c8 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -32,8 +32,8 @@ "semver": "^7.3.5", "shelljs": "^0.8.4", "simple-git": "^3.5.0", - "ts-morph": "^12.0.0", - "typescript-codegen-breaking-change-detector": "^0.3.3", + "ts-morph": "^23.0.0", + "typescript-codegen-breaking-change-detector": "^0.4.3", "yaml": "^1.10.2" }, "devDependencies": { diff --git a/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts b/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts new file mode 100644 index 00000000000..c2c0f94c6be --- /dev/null +++ b/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts @@ -0,0 +1,122 @@ +import { InlineDeclarationNameSetMessage, NodeContext } from 'typescript-codegen-breaking-change-detector'; +import { Changelog, ChangelogItem } from './changelogGenerator'; + +export class RestLevelClientChangelogPostProcessor { + private changelog: Changelog; + private message: InlineDeclarationNameSetMessage; + constructor(changelog: Changelog, message: InlineDeclarationNameSetMessage) { + this.changelog = changelog; + this.message = message; + } + + public run() { + this.handleChangelogItems(this.changelog.addedOperationGroup); + this.handleChangelogItems(this.changelog.removedOperationGroup); + this.handleChangelogItems(this.changelog.addedOperation); + this.handleChangelogItems(this.changelog.addedInterface); + this.handleChangelogItems(this.changelog.addedClass); + this.handleChangelogItems(this.changelog.addedTypeAlias); + this.handleChangelogItems(this.changelog.interfaceAddOptionalParam); + this.handleChangelogItems(this.changelog.interfaceParamTypeExtended); + this.handleChangelogItems(this.changelog.typeAliasAddInherit); + this.handleChangelogItems(this.changelog.typeAliasAddParam); + this.handleChangelogItems(this.changelog.addedEnum); + this.handleChangelogItems(this.changelog.addedEnumValue); + this.handleChangelogItems(this.changelog.addedFunction); + this.handleChangelogItems(this.changelog.removedOperation); + this.handleChangelogItems(this.changelog.operationSignatureChange); + this.handleChangelogItems(this.changelog.deletedClass); + this.handleChangelogItems(this.changelog.classSignatureChange); + this.handleChangelogItems(this.changelog.interfaceParamDelete); + this.handleChangelogItems(this.changelog.interfaceParamAddRequired); + this.handleChangelogItems(this.changelog.interfaceParamTypeChanged); + this.handleChangelogItems(this.changelog.interfaceParamChangeRequired); + this.handleChangelogItems(this.changelog.classParamDelete); + this.handleChangelogItems(this.changelog.classParamChangeRequired); + this.handleChangelogItems(this.changelog.typeAliasDeleteInherit); + this.handleChangelogItems(this.changelog.typeAliasParamDelete); + this.handleChangelogItems(this.changelog.typeAliasAddRequiredParam); + this.handleChangelogItems(this.changelog.typeAliasParamChangeRequired); + this.handleChangelogItems(this.changelog.removedEnum); + this.handleChangelogItems(this.changelog.removedEnumValue); + this.handleChangelogItems(this.changelog.removedFunction); + } + + private getCurrentNodeContext(name: string | undefined): NodeContext | undefined { + if (!name) return undefined; + return this.message.current.get(name); + } + + private getBaselineNodeContext(name: string | undefined): NodeContext | undefined { + if (!name) return undefined; + return this.message.baseline.get(name); + } + + private findCompatibleNodeContext( + inputContext: NodeContext, + contextMapToFind: Map, + checkAssignableFromInputToFound: boolean + ): NodeContext | undefined { + for (const [_, foundContext] of contextMapToFind) { + const isCompatible = checkAssignableFromInputToFound + ? inputContext.node.getType().isAssignableTo(foundContext.node.getType()) + : foundContext.node.getType().isAssignableTo(inputContext.node.getType()); + if (isCompatible) return foundContext; + } + return undefined; + } + + private tryIgnoreInlineTypeInChangelogItem( + inputContext: NodeContext, + nodeContextMapToFind: Map, + checkAssignableFromInputToFound: boolean, + item: ChangelogItem + ) { + if (!inputContext) return; + const foundContext = this.findCompatibleNodeContext( + inputContext, + nodeContextMapToFind, + checkAssignableFromInputToFound + ); + if (foundContext) { + inputContext.used = true; + foundContext.used = true; + item.toDelete = true; + } + return; + } + + private handleChangelogItems(items: ChangelogItem[]) { + items.forEach((item) => { + if (!item.oldName && !item.newName) return; + + if (item.newName && item.oldName) { + const currentContext = this.getCurrentNodeContext(item.newName); + if (!currentContext) return; + const baselineContext = this.getBaselineNodeContext(item.oldName); + if (!baselineContext) return; + const currentType = currentContext.node.getType(); + const baselineType = baselineContext.node.getType(); + if (currentType.isAssignableTo(baselineType)) { + item.toDelete = true; + currentContext.used = true; + baselineContext.used = true; + } + return; + } + + if (item.newName) { + const inputContext = this.getCurrentNodeContext(item.newName); + if (!inputContext) return; + this.tryIgnoreInlineTypeInChangelogItem(inputContext, this.message.baseline, true, item); + return; + } + + // item.baselineName exists + const inputContext = this.getBaselineNodeContext(item.oldName); + if (!inputContext) return; + this.tryIgnoreInlineTypeInChangelogItem(inputContext, this.message.current, false, item); + return; + }); + } +} diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index 7726d92b2d9..d52f146f2a9 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -10,105 +10,106 @@ import { TSExportedMetaData } from "./extractMetaData"; import { SDKType } from "../common/types"; import { logger } from "../utils/logger"; import { detectBreakingChangesBetweenPackages, InlineDeclarationNameSetMessage, RuleMessage, RuleMessageKind } from "typescript-codegen-breaking-change-detector"; +import { RestLevelClientChangelogPostProcessor } from "./RestLevelClientChangelogPostProcessor"; -interface ChangelogItem { +export interface ChangelogItem { line: string; - name?: string; - baselineName?: string; - currentName?: string; + oldName?: string; + newName?: string; + toDelete?: boolean; } export class Changelog { // features public addedOperationGroup: ChangelogItem[] = []; - public addedOperation: string[] = []; + public addedOperation: ChangelogItem[] = []; public addedInterface: ChangelogItem[] = []; - public addedClass: string[] = []; + public addedClass: ChangelogItem[] = []; public addedTypeAlias: ChangelogItem[] = []; - public interfaceAddOptionalParam: string[] = []; + public interfaceAddOptionalParam: ChangelogItem[] = []; public interfaceParamTypeExtended: ChangelogItem[] = []; public typeAliasAddInherit: ChangelogItem[] = []; - public typeAliasAddParam: string[] = []; - public addedEnum: string[] = []; - public addedEnumValue: string[] = []; - public addedFunction: string[] = []; + public typeAliasAddParam: ChangelogItem[] = []; + public addedEnum: ChangelogItem[] = []; + public addedEnumValue: ChangelogItem[] = []; + public addedFunction: ChangelogItem[] = []; // breaking changes public removedOperationGroup: ChangelogItem[] = []; - public removedOperation: string[] = []; + public removedOperation: ChangelogItem[] = []; public operationSignatureChange: ChangelogItem[] = []; - public deletedClass: string[] = []; - public classSignatureChange: string[] = []; - public interfaceParamDelete: string[] = []; - public interfaceParamAddRequired: string[] = []; + public deletedClass: ChangelogItem[] = []; + public classSignatureChange: ChangelogItem[] = []; + public interfaceParamDelete: ChangelogItem[] = []; + public interfaceParamAddRequired: ChangelogItem[] = []; public interfaceParamTypeChanged: ChangelogItem[] = []; - public interfaceParamChangeRequired: string[] = []; - public classParamDelete: string[] = []; - public classParamChangeRequired: string[] = []; + public interfaceParamChangeRequired: ChangelogItem[] = []; + public classParamDelete: ChangelogItem[] = []; + public classParamChangeRequired: ChangelogItem[] = []; public typeAliasDeleteInherit: ChangelogItem[] = []; - public typeAliasParamDelete: string[] = []; - public typeAliasAddRequiredParam: string[] = []; - public typeAliasParamChangeRequired: string[] = []; - public removedEnum: string[] = []; - public removedEnumValue: string[] = []; - public removedFunction: string[] = []; + public typeAliasParamDelete: ChangelogItem[] = []; + public typeAliasAddRequiredParam: ChangelogItem[] = []; + public typeAliasParamChangeRequired: ChangelogItem[] = []; + public removedEnum: ChangelogItem[] = []; + public removedEnumValue: ChangelogItem[] = []; + public removedFunction: ChangelogItem[] = []; public get hasBreakingChange() { - return this.removedOperationGroup.length > 0 || - this.removedOperation.length > 0 || - this.operationSignatureChange.length > 0 || - this.deletedClass.length > 0 || - this.classSignatureChange.length > 0 || - this.interfaceParamDelete.length > 0 || - this.interfaceParamAddRequired.length > 0 || - this.interfaceParamChangeRequired.length > 0 || - this.interfaceParamTypeChanged.length > 0 || - this.classParamDelete.length > 0 || - this.classParamChangeRequired.length > 0 || - this.typeAliasDeleteInherit.length > 0 || - this.typeAliasParamDelete.length > 0 || - this.typeAliasAddRequiredParam.length > 0 || - this.typeAliasParamChangeRequired.length > 0 || - this.removedEnum.length > 0 || - this.removedEnumValue.length > 0; - this.removedFunction.length > 0; + return this.removedOperationGroup.filter(i => !i.toDelete).length > 0 || + this.removedOperation.filter(i => !i.toDelete).length > 0 || + this.operationSignatureChange.filter(i => !i.toDelete).length > 0 || + this.deletedClass.filter(i => !i.toDelete).length > 0 || + this.classSignatureChange.filter(i => !i.toDelete).length > 0 || + this.interfaceParamDelete.filter(i => !i.toDelete).length > 0 || + this.interfaceParamAddRequired.filter(i => !i.toDelete).length > 0 || + this.interfaceParamChangeRequired.filter(i => !i.toDelete).length > 0 || + this.interfaceParamTypeChanged.filter(i => !i.toDelete).length > 0 || + this.classParamDelete.filter(i => !i.toDelete).length > 0 || + this.classParamChangeRequired.filter(i => !i.toDelete).length > 0 || + this.typeAliasDeleteInherit.filter(i => !i.toDelete).length > 0 || + this.typeAliasParamDelete.filter(i => !i.toDelete).length > 0 || + this.typeAliasAddRequiredParam.filter(i => !i.toDelete).length > 0 || + this.typeAliasParamChangeRequired.filter(i => !i.toDelete).length > 0 || + this.removedEnum.filter(i => !i.toDelete).length > 0 || + this.removedEnumValue.filter(i => !i.toDelete).length > 0; + this.removedFunction.filter(i => !i.toDelete).length > 0; } public get hasFeature() { - return this.addedOperationGroup.length > 0 || - this.addedOperation.length > 0 || - this.addedInterface.length > 0 || - this.addedClass.length > 0 || - this.addedTypeAlias.length > 0 || - this.interfaceAddOptionalParam.length > 0 || - this.interfaceParamTypeExtended.length > 0 || - this.typeAliasAddInherit.length > 0 || - this.typeAliasAddParam.length > 0 || - this.addedEnum.length > 0 || - this.addedEnumValue.length > 0; - this.addedFunction.length > 0; + return this.addedOperationGroup.filter(i => !i.toDelete).length > 0 || + this.addedOperation.filter(i => !i.toDelete).length > 0 || + this.addedInterface.filter(i => !i.toDelete).length > 0 || + this.addedClass.filter(i => !i.toDelete).length > 0 || + this.addedTypeAlias.filter(i => !i.toDelete).length > 0 || + this.interfaceAddOptionalParam.filter(i => !i.toDelete).length > 0 || + this.interfaceParamTypeExtended.filter(i => !i.toDelete).length > 0 || + this.typeAliasAddInherit.filter(i => !i.toDelete).length > 0 || + this.typeAliasAddParam.filter(i => !i.toDelete).length > 0 || + this.addedEnum.filter(i => !i.toDelete).length > 0 || + this.addedEnumValue.filter(i => !i.toDelete).length > 0; + this.addedFunction.filter(i => !i.toDelete).length > 0; } public getBreakingChangeItems(): string[] { let items: string[] = []; if (this.hasBreakingChange) { - this.removedOperationGroup.map(i => i.line) - .concat(this.removedOperation) - .concat(this.operationSignatureChange.map(i => i.line)) - .concat(this.deletedClass) - .concat(this.classSignatureChange) - .concat(this.interfaceParamDelete) - .concat(this.interfaceParamAddRequired) - .concat(this.interfaceParamChangeRequired) - .concat(this.interfaceParamTypeChanged.map(i => i.line)) - .concat(this.classParamDelete) - .concat(this.classParamChangeRequired) - .concat(this.typeAliasDeleteInherit.map(i => i.line)) - .concat(this.typeAliasParamDelete) - .concat(this.typeAliasAddRequiredParam) - .concat(this.typeAliasParamChangeRequired) - .concat(this.removedEnum) - .concat(this.removedEnumValue) - .concat(this.removedFunction) + this.removedOperationGroup.filter(i => !i.toDelete).map(i => i.line) + .concat(this.removedOperation.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.operationSignatureChange.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.deletedClass.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.classSignatureChange.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamDelete.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamAddRequired.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamChangeRequired.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamTypeChanged.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.classParamDelete.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.classParamChangeRequired.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasDeleteInherit.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasParamDelete.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasAddRequiredParam.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasParamChangeRequired.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.removedEnum.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.removedEnumValue.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.removedFunction.filter(i => !i.toDelete).map(i => i.line)) .forEach(e => { items.push(e); }); @@ -121,18 +122,18 @@ export class Changelog { if (this.hasFeature) { display.push('### Features Added'); display.push(''); - this.addedOperationGroup.map(i => i.line) - .concat(this.addedOperation) - .concat(this.addedInterface.map(i => i.line)) - .concat(this.addedClass) - .concat(this.addedTypeAlias.map(i => i.line)) - .concat(this.interfaceAddOptionalParam) - .concat(this.interfaceParamTypeExtended.map(i => i.line)) - .concat(this.typeAliasAddInherit.map(i => i.line)) - .concat(this.typeAliasAddParam) - .concat(this.addedEnum) - .concat(this.addedEnumValue) - .concat(this.addedFunction) + this.addedOperationGroup.filter(i => !i.toDelete).map(i => i.line) + .concat(this.addedOperation.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.addedInterface.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.addedClass.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.addedTypeAlias.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceAddOptionalParam.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamTypeExtended.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasAddInherit.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasAddParam.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.addedEnum.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.addedEnumValue.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.addedFunction.filter(i => !i.toDelete).map(i => i.line)) .forEach(e => { display.push(' - ' + e); }); @@ -142,24 +143,24 @@ export class Changelog { if (this.hasFeature) display.push(''); display.push('### Breaking Changes'); display.push(''); - this.removedOperationGroup.map(i => i.line) - .concat(this.removedOperation) - .concat(this.operationSignatureChange.map(i => i.line)) - .concat(this.deletedClass) - .concat(this.classSignatureChange) - .concat(this.interfaceParamDelete) - .concat(this.interfaceParamAddRequired) - .concat(this.interfaceParamChangeRequired) - .concat(this.interfaceParamTypeChanged.map(i => i.line)) - .concat(this.classParamDelete) - .concat(this.classParamChangeRequired) - .concat(this.typeAliasDeleteInherit.map(i => i.line)) - .concat(this.typeAliasParamDelete) - .concat(this.typeAliasAddRequiredParam) - .concat(this.typeAliasParamChangeRequired) - .concat(this.removedEnum) - .concat(this.removedEnumValue) - .concat(this.removedFunction) + this.removedOperationGroup.filter(i => !i.toDelete).map(i => i.line) + .concat(this.removedOperation.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.operationSignatureChange.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.deletedClass.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.classSignatureChange.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamDelete.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamAddRequired.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamChangeRequired.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.interfaceParamTypeChanged.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.classParamDelete.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.classParamChangeRequired.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasDeleteInherit.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasParamDelete.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasAddRequiredParam.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.typeAliasParamChangeRequired.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.removedEnum.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.removedEnumValue.filter(i => !i.toDelete).map(i => i.line)) + .concat(this.removedFunction.filter(i => !i.toDelete).map(i => i.line)) .forEach(e => { display.push(' - ' + e); }); @@ -190,21 +191,13 @@ export class Changelog { private processInlineMessage(messages: InlineDeclarationNameSetMessage[]) { logger.logInfo('Before post process rename messages in changelog') logger.logGreen(this.displayChangeLog()); - messages.forEach(message => { - // operation groups - this.addedOperationGroup = this.addedOperationGroup.filter(i => i.name && !message.current.has(i.name)) - this.removedOperationGroup = this.removedOperationGroup.filter(i => i.name && !message.baseline.has(i.name)) - // internal types, request type, response type - this.addedInterface = this.addedInterface.filter(i => i.name && !message.current.has(i.name)) - this.typeAliasAddInherit = this.typeAliasAddInherit.filter(i => i.name && !message.current.has(i.name)) - this.typeAliasDeleteInherit = this.typeAliasDeleteInherit.filter(i => i.name && !message.baseline.has(i.name)) - this.interfaceParamTypeChanged = this.interfaceParamTypeChanged.filter(i => i.baselineName && !message.baseline.has(i.baselineName)) - this.interfaceParamTypeChanged = this.interfaceParamTypeChanged.filter(i => i.currentName && !message.current.has(i.currentName)) - this.interfaceParamTypeExtended = this.interfaceParamTypeExtended.filter(i => i.baselineName && !message.baseline.has(i.baselineName)) - this.interfaceParamTypeExtended = this.interfaceParamTypeExtended.filter(i => i.currentName && !message.current.has(i.currentName)) - this.addedTypeAlias = this.addedTypeAlias.filter(i => i.currentName && !message.current.has(i.currentName)) - this.operationSignatureChange = this.operationSignatureChange.filter(i => i.currentName && !message.current.has(i.currentName)) - }) + + if (messages.length !== 1) { + throw new Error(`Multiple inline messages are unsupported`) + } + const postProcesser = new RestLevelClientChangelogPostProcessor(this, messages[0]); + postProcesser.run(); + logger.logInfo('After post process rename messages in changelog') logger.logGreen(this.displayChangeLog()); } @@ -217,6 +210,7 @@ export class Changelog { this.processInlineMessage(inlineMessages) } + private postProcessAdd } // todo: special rules for HLC convert to Modular, will use a more generic method to replace @@ -238,7 +232,7 @@ const findAddedOperationGroup = (metaDataOld: TSExportedMetaData, metaDataNew: T Object.keys(metaDataNew.operationInterface).forEach(operationGroup => { const oldName = oldSdkType === newSdkType ? operationGroup : newToOldMap[operationGroup]; if (!metaDataOld.operationInterface[oldName]) { - addOperationGroup.push({ line: 'Added operation group ' + operationGroup, name: operationGroup }); + addOperationGroup.push({ line: 'Added operation group ' + operationGroup, newName: operationGroup }); } }); return addOperationGroup; @@ -252,9 +246,9 @@ function getAllMethodNameInInterface(interface_: InterfaceDeclaration): Array { +): ChangelogItem[] => { const newToOldMap = getRenamedOperationGroupFromToMap(metaDataNew); - const addOperation: string[] = []; + const addOperation: ChangelogItem[] = []; Object.keys(metaDataNew.operationInterface).forEach(newOperationGroup => { const oldOperationGroup = oldSdkType === newSdkType ? newOperationGroup : newToOldMap[newOperationGroup]; if(!metaDataOld.operationInterface[oldOperationGroup]) { @@ -264,7 +258,7 @@ const findAddedOperation = (metaDataOld: TSExportedMetaData, metaDataNew: TSExpo const oldInterfaceMethodNames = getAllMethodNameInInterface(metaDataOld.operationInterface[oldOperationGroup]); newInterfaceMethodNames .filter(newOpName => !oldInterfaceMethodNames.includes(newOpName)) - .forEach(newOpName => { addOperation.push('Added operation ' + newOperationGroup + '.' + newOpName); }); + .forEach(newOpName => { addOperation.push({ line: 'Added operation ' + newOperationGroup + '.' + newOpName, newName: newOperationGroup }); }); return; }); return addOperation; @@ -274,17 +268,17 @@ const findAddedInterface = (metaDataOld: TSExportedMetaData, metaDataNew: TSExpo const addInterface: ChangelogItem[] = []; Object.keys(metaDataNew.modelInterface).forEach(model => { if (!metaDataOld.modelInterface[model]) { - addInterface.push({ line: 'Added Interface ' + model, name: model }); + addInterface.push({ line: 'Added Interface ' + model, newName: model }); } }); return addInterface; }; -const findAddedClass = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const addClass: string[] = []; +const findAddedClass = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const addClass: ChangelogItem[] = []; Object.keys(metaDataNew.classes).forEach(model => { if (!metaDataOld.classes[model]) { - addClass.push('Added Class ' + model); + addClass.push({ line: 'Added Class ' + model, newName: model }); } }); return addClass; @@ -294,14 +288,14 @@ const findAddedTypeAlias = (metaDataOld: TSExportedMetaData, metaDataNew: TSExpo const addModel: ChangelogItem[] = []; Object.keys(metaDataNew.typeAlias).forEach(typeAlias => { if (!metaDataOld.typeAlias[typeAlias]) { - addModel.push({ line: 'Added Type Alias ' + typeAlias, name: typeAlias }); + addModel.push({ line: 'Added Type Alias ' + typeAlias, newName: typeAlias }); } }); return addModel; }; -const findInterfaceAddOptinalParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const interfaceAddedParam: string[] = []; +const findInterfaceAddOptinalParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const interfaceAddedParam: ChangelogItem[] = []; Object.keys(metaDataNew.modelInterface).forEach(model => { if (metaDataOld.modelInterface[model]) { const modelFromOld = metaDataOld.modelInterface[model] as InterfaceDeclaration; @@ -316,7 +310,7 @@ const findInterfaceAddOptinalParam = (metaDataOld: TSExportedMetaData, metaDataN } }); if (!find) { - interfaceAddedParam.push('Interface ' + model + ' has a new optional parameter ' + pNew.name); + interfaceAddedParam.push({ line: 'Interface ' + model + ' has a new optional parameter ' + pNew.name }); } } }); @@ -347,7 +341,7 @@ const findInterfaceParamTypeExtended = (metaDataOld: TSExportedMetaData, metaDat } } if (allFind) { - interfaceParamTypeExtended.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, currentName: pNew.type, baselineName: pOld.type }); + interfaceParamTypeExtended.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, newName: pNew.type, oldName: pOld.type }); } } } @@ -376,16 +370,16 @@ const findTypeAliasAddInherit = (metaDataOld: TSExportedMetaData, metaDataNew: T // export type ClustersUpdateParameters = ClustersUpdateMediaTypesParam_CCC & ClustersUpdateBodyParam & RequestParameters; if (typeAliasFromOld.type.inherits) { if (!typeAliasFromOld.type.inherits.includes(inherit)) { - typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, name: inherit }); + typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, newName: inherit }); } } else { - typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, name: inherit }); + typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, newName: inherit }); } } else if (typeAliasFromOld.type instanceof TypeLiteralDeclaration) { - typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, name: inherit }); + typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, newName: inherit }); } else if (typeof typeAliasFromOld.type === 'string') { if (typeAliasFromOld.type !== inherit) { - typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, name: inherit }); + typeAliasAddInherit.push({ line: 'Add parameters of ' + inherit + ' to TypeAlias ' + typeAlias, newName: inherit }); } } } @@ -397,8 +391,8 @@ const findTypeAliasAddInherit = (metaDataOld: TSExportedMetaData, metaDataNew: T return typeAliasAddInherit; }; -const findTypeAliasAddParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const typeAliasAddParam: string[] = []; +const findTypeAliasAddParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const typeAliasAddParam: ChangelogItem[] = []; Object.keys(metaDataNew.typeAlias).forEach(typeAlias => { if (metaDataOld.typeAlias[typeAlias]) { const typeAliasFromOld = metaDataOld.typeAlias[typeAlias] as TypeAliasDeclaration; @@ -419,10 +413,10 @@ const findTypeAliasAddParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSE }); }); if (!find) { - typeAliasAddParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else { - typeAliasAddParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else if (typeAliasFromOld.type instanceof TypeLiteralDeclaration) { let find = false; @@ -432,10 +426,10 @@ const findTypeAliasAddParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSE } }); if (!find) { - typeAliasAddParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else if (typeof typeAliasFromOld.type === 'string') { - typeAliasAddParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } }); }); @@ -454,10 +448,10 @@ const findTypeAliasAddParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSE }); }); if (!find) { - typeAliasAddParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else { - typeAliasAddParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else if (typeAliasFromOld.type instanceof TypeLiteralDeclaration) { let find = false; @@ -467,10 +461,10 @@ const findTypeAliasAddParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSE } }); if (!find) { - typeAliasAddParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else if (typeof typeAliasFromOld.type === 'string') { - typeAliasAddParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } }); } @@ -480,25 +474,25 @@ const findTypeAliasAddParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSE return typeAliasAddParam; }; -const findAddedEnum = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const addedEnum: string[] = []; +const findAddedEnum = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const addedEnum: ChangelogItem[] = []; Object.keys(metaDataNew.enums).forEach(e => { if (!metaDataOld.enums[e]) { - addedEnum.push('Added Enum ' + e); + addedEnum.push({ line: 'Added Enum ' + e, newName: e }); } }); return addedEnum; }; -const findAddedEnumValue = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const addedEnumValue: string[] = []; +const findAddedEnumValue = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const addedEnumValue: ChangelogItem[] = []; Object.keys(metaDataNew.enums).forEach(e => { if (metaDataOld.enums[e]) { const enumOld = metaDataOld.enums[e] as EnumDeclaration; const enumNew = metaDataNew.enums[e] as EnumDeclaration; enumNew.members.forEach(v => { if (!enumOld.members.includes(v)) { - addedEnumValue.push('Enum ' + e + ' has a new value ' + v); + addedEnumValue.push({ line: 'Enum ' + e + ' has a new value ' + v, newName: e }); } }); } @@ -506,11 +500,11 @@ const findAddedEnumValue = (metaDataOld: TSExportedMetaData, metaDataNew: TSExpo return addedEnumValue; }; -const findAddedFunction = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const addedFunction: string[] = []; +const findAddedFunction = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const addedFunction: ChangelogItem[] = []; Object.keys(metaDataNew.functions).forEach(e => { if (!metaDataOld.functions[e]) { - addedFunction.push(`Added function ${e}`); + addedFunction.push({ line: `Added function ${e}`, newName: e }); } }); return addedFunction; @@ -525,7 +519,7 @@ const findRemovedOperationGroup = (metaDataOld: TSExportedMetaData, metaDataNew: Object.keys(metaDataOld.operationInterface).forEach(oldOperationGroup => { const newOperationGroup = oldSdkType === newSdkType ? oldOperationGroup : oldToNew[oldOperationGroup]; if (!metaDataNew.operationInterface[newOperationGroup]) { - removedOperationGroup.push({ line: 'Removed operation group ' + oldOperationGroup, name: oldOperationGroup }); + removedOperationGroup.push({ line: 'Removed operation group ' + oldOperationGroup, oldName: oldOperationGroup }); } }); return removedOperationGroup; @@ -533,9 +527,9 @@ const findRemovedOperationGroup = (metaDataOld: TSExportedMetaData, metaDataNew: const findRemovedOperation = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData, oldSdkType: SDKType, newSdkType: SDKType -): string[] => { +): ChangelogItem[] => { const oldToNew = getRenamedOperationGroupFromToMap(metaDataOld); - const removedOperation: string[] = []; + const removedOperation: ChangelogItem[] = []; Object.keys(metaDataOld.operationInterface).forEach(oldOperationGroup => { const newOperationGroup = oldSdkType === newSdkType ? oldOperationGroup : oldToNew[oldOperationGroup]; @@ -546,7 +540,7 @@ const findRemovedOperation = (metaDataOld: TSExportedMetaData, metaDataNew: TSEx const oldInterfaceMethodNames = getAllMethodNameInInterface(metaDataOld.operationInterface[oldOperationGroup]); oldInterfaceMethodNames .filter(oldOpName => !newInterfaceMethodNames.includes(oldOpName)) - .forEach(oldOpName => { removedOperation.push('Removed operation ' + oldOperationGroup + '.' + oldOpName); }); + .forEach(oldOpName => { removedOperation.push({ line: 'Removed operation ' + oldOperationGroup + '.' + oldOpName, oldName: oldOpName }); }); return true; }); return removedOperation; @@ -593,13 +587,13 @@ const findOperationSignatureChange = (metaDataOld: TSExportedMetaData, metaDataN const parametersOld = mOld.parameters; const parametersNew = mNew.parameters; if (parametersNew.length !== parametersOld.length) { - operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', name: mNew.type }); + operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', newName: mNew.type }); } else { for (let index = 0; index < parametersNew.length; index++) { const pOld = parametersOld[index]; const pNew = parametersNew[index]; if (pOld.type !== pNew.type || pOld.isOptional !== pNew.isOptional) { - operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', name: mNew.type }); + operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', newName: mNew.type }); return; } } @@ -613,18 +607,18 @@ const findOperationSignatureChange = (metaDataOld: TSExportedMetaData, metaDataN return operationSignatureChange; }; -const findDeletedClass = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const deletedClass: string[] = []; +const findDeletedClass = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const deletedClass: ChangelogItem[] = []; Object.keys(metaDataOld.classes).forEach(model => { if (!metaDataNew.classes[model]) { - deletedClass.push('Deleted Class ' + model); + deletedClass.push({ line: 'Deleted Class ' + model, oldName: model }); } }); return deletedClass; }; -const findClassSignatureChange = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const classSignatureChange: string[] = []; +const findClassSignatureChange = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const classSignatureChange: ChangelogItem[] = []; Object.keys(metaDataNew.classes).forEach(model => { if (metaDataOld.classes[model]) { const modelFromOld = metaDataOld.classes[model] as ClassDeclaration; @@ -633,19 +627,19 @@ const findClassSignatureChange = (metaDataOld: TSExportedMetaData, metaDataNew: const constructorNew = modelFromNew.ctor; if (constructorOld === undefined && constructorNew === undefined) return; if (constructorOld === undefined || constructorNew === undefined) { - classSignatureChange.push('Class ' + model + ' has a new signature'); + classSignatureChange.push({ line: 'Class ' + model + ' has a new signature' }); return; } const parametersOld = constructorOld.parameters; const parametersNew = constructorNew.parameters; if (parametersNew.length !== parametersOld.length) { - classSignatureChange.push('Class ' + model + ' has a new signature'); + classSignatureChange.push({ line: 'Class ' + model + ' has a new signature' }); } else { for (let index = 0; index < parametersNew.length; index++) { const pOld = parametersOld[index]; const pNew = parametersNew[index]; if (pOld.type !== pNew.type || pOld.isOptional !== pNew.isOptional) { - classSignatureChange.push('Class ' + model + ' has a new signature'); + classSignatureChange.push({ line: 'Class ' + model + ' has a new signature' }); return; } } @@ -655,8 +649,8 @@ const findClassSignatureChange = (metaDataOld: TSExportedMetaData, metaDataNew: return classSignatureChange; }; -const findInterfaceParamDelete = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const interfaceDeleteParam: string[] = []; +const findInterfaceParamDelete = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const interfaceDeleteParam: ChangelogItem[] = []; Object.keys(metaDataNew.modelInterface).forEach(model => { if (metaDataOld.modelInterface[model]) { const modelFromOld = metaDataOld.modelInterface[model] as InterfaceDeclaration; @@ -683,7 +677,7 @@ const findInterfaceParamDelete = (metaDataOld: TSExportedMetaData, metaDataNew: }); } if (!find) { - interfaceDeleteParam.push('Interface ' + model + ' no longer has parameter ' + pOld.name); + interfaceDeleteParam.push({ line: 'Interface ' + model + ' no longer has parameter ' + pOld.name, oldName: pOld.name}); } }); } @@ -691,8 +685,8 @@ const findInterfaceParamDelete = (metaDataOld: TSExportedMetaData, metaDataNew: return interfaceDeleteParam; }; -const findInterfaceParamAddRequired = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const interfaceAddedParam: string[] = []; +const findInterfaceParamAddRequired = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const interfaceAddedParam: ChangelogItem[] = []; Object.keys(metaDataNew.modelInterface).forEach(model => { if (metaDataOld.modelInterface[model]) { const modelFromOld = metaDataOld.modelInterface[model] as InterfaceDeclaration; @@ -707,7 +701,7 @@ const findInterfaceParamAddRequired = (metaDataOld: TSExportedMetaData, metaData } }); if (!find) { - interfaceAddedParam.push('Interface ' + model + ' has a new required parameter ' + pNew.name); + interfaceAddedParam.push({ line: 'Interface ' + model + ' has a new required parameter ' + pNew.name, newName: '?????' }); } } }); @@ -716,8 +710,8 @@ const findInterfaceParamAddRequired = (metaDataOld: TSExportedMetaData, metaData return interfaceAddedParam; }; -const findInterfaceParamChangeRequired = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const interfaceParamChangeRequired: string[] = []; +const findInterfaceParamChangeRequired = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const interfaceParamChangeRequired: ChangelogItem[] = []; Object.keys(metaDataNew.modelInterface).forEach(model => { if (metaDataOld.modelInterface[model]) { const modelFromOld = metaDataOld.modelInterface[model] as InterfaceDeclaration; @@ -727,7 +721,7 @@ const findInterfaceParamChangeRequired = (metaDataOld: TSExportedMetaData, metaD modelFromOld.properties.forEach(pOld => { if (pNew.name === pOld.name) { if (pOld.isOptional) { - interfaceParamChangeRequired.push('Parameter ' + pNew.name + ' of interface ' + model + ' is now required'); + interfaceParamChangeRequired.push({ line: 'Parameter ' + pNew.name + ' of interface ' + model + ' is now required' }); } return; } @@ -755,13 +749,13 @@ const findInterfaceParamTypeChanged = (metaDataOld: TSExportedMetaData, metaData if (!!newTypes && !!oldTypes) { for (const t of oldTypes) { if (!newTypes.includes(t)) { - interfaceParamTypeChanged.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, baselineName: pOld.type, currentName: pNew.type }); + interfaceParamTypeChanged.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, oldName: pOld.type, newName: pNew.type }); break; } } } } else { - interfaceParamTypeChanged.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, baselineName: pOld.type, currentName: pNew.type }); + interfaceParamTypeChanged.push({ line: `Type of parameter ${pNew.name} of interface ${model} is changed from ${pOld.type} to ${pNew.type}`, oldName: pOld.type, newName: pNew.type }); } } return; @@ -773,8 +767,8 @@ const findInterfaceParamTypeChanged = (metaDataOld: TSExportedMetaData, metaData return interfaceParamTypeChanged; }; -const findClassParamDelete = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const classDeleteParam: string[] = []; +const findClassParamDelete = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const classDeleteParam: ChangelogItem[] = []; Object.keys(metaDataNew.classes).forEach(model => { if (metaDataOld.classes[model]) { const modelFromOld = metaDataOld.classes[model] as ClassDeclaration; @@ -788,7 +782,7 @@ const findClassParamDelete = (metaDataOld: TSExportedMetaData, metaDataNew: TSEx } }); if (!find) { - classDeleteParam.push('Class ' + model + ' no longer has parameter ' + pOld.name); + classDeleteParam.push({ line: 'Class ' + model + ' no longer has parameter ' + pOld.name }); } }); } @@ -796,8 +790,8 @@ const findClassParamDelete = (metaDataOld: TSExportedMetaData, metaDataNew: TSEx return classDeleteParam; }; -const findClassParamChangeRequired = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const classParamChangeRequired: string[] = []; +const findClassParamChangeRequired = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const classParamChangeRequired: ChangelogItem[] = []; Object.keys(metaDataNew.classes).forEach(model => { if (metaDataOld.classes[model]) { const modelFromOld = metaDataOld.classes[model] as ClassDeclaration; @@ -807,7 +801,7 @@ const findClassParamChangeRequired = (metaDataOld: TSExportedMetaData, metaDataN modelFromOld.properties.forEach(pOld => { if (pNew.name === pOld.name) { if (pOld.isOptional) { - classParamChangeRequired.push('Parameter ' + pNew.name + ' of class ' + model + ' is now required'); + classParamChangeRequired.push({ line: 'Parameter ' + pNew.name + ' of class ' + model + ' is now required' }); } return; } @@ -832,16 +826,16 @@ const findTypeAliasDeleteInherit = (metaDataOld: TSExportedMetaData, metaDataNew if (typeAliasFromNew.type instanceof IntersectionDeclaration) { if (typeAliasFromNew.type.inherits) { if (!typeAliasFromNew.type.inherits.includes(inherit)) { - typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, name: inherit }); + typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, oldName: inherit }); } } else { - typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, name: inherit }); + typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, oldName: inherit }); } } else if (typeAliasFromNew.type instanceof TypeLiteralDeclaration) { - typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, name: inherit }); + typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, oldName: inherit }); } else if (typeof typeAliasFromNew.type === 'string') { if (typeAliasFromNew.type !== inherit) { - typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, name: inherit }); + typeAliasDeleteInherit.push({ line: 'Delete parameters of ' + inherit + ' in TypeAlias ' + typeAlias, oldName: inherit }); } } } @@ -853,8 +847,8 @@ const findTypeAliasDeleteInherit = (metaDataOld: TSExportedMetaData, metaDataNew return typeAliasDeleteInherit; }; -const findTypeAliasDeleteParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const typeAliasDeleteParam: string[] = []; +const findTypeAliasDeleteParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const typeAliasDeleteParam: ChangelogItem[] = []; Object.keys(metaDataNew.typeAlias).forEach(typeAlias => { if (metaDataOld.typeAlias[typeAlias]) { const typeAliasFromOld = metaDataOld.typeAlias[typeAlias] as TypeAliasDeclaration; @@ -886,10 +880,10 @@ const findTypeAliasDeleteParam = (metaDataOld: TSExportedMetaData, metaDataNew: }) } if (!find) { - typeAliasDeleteParam.push('Type Alias ' + typeAlias + ' no longer has parameter ' + pOld.name); + typeAliasDeleteParam.push({ line: 'Type Alias ' + typeAlias + ' no longer has parameter ' + pOld.name }); } } else { - typeAliasDeleteParam.push('Type Alias ' + typeAlias + ' no longer has parameter ' + pOld.name); + typeAliasDeleteParam.push({ line: 'Type Alias ' + typeAlias + ' no longer has parameter ' + pOld.name }); } } else if (typeAliasFromNew.type instanceof TypeLiteralDeclaration) { let find = false; @@ -899,10 +893,10 @@ const findTypeAliasDeleteParam = (metaDataOld: TSExportedMetaData, metaDataNew: } }); if (!find) { - typeAliasDeleteParam.push('Type Alias ' + typeAlias + ' no longer has parameter ' + pOld.name); + typeAliasDeleteParam.push({ line: 'Type Alias ' + typeAlias + ' no longer has parameter ' + pOld.name }); } } else if (typeof typeAliasFromNew.type === 'string') { - typeAliasDeleteParam.push('Type Alias ' + typeAlias + ' no longer has parameter ' + pOld.name); + typeAliasDeleteParam.push({ line: 'Type Alias ' + typeAlias + ' no longer has parameter ' + pOld.name }); } }); }); @@ -920,10 +914,10 @@ const findTypeAliasDeleteParam = (metaDataOld: TSExportedMetaData, metaDataNew: }); }); if (!find) { - typeAliasDeleteParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pOld.name); + typeAliasDeleteParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pOld.name }); } } else { - typeAliasDeleteParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pOld.name); + typeAliasDeleteParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pOld.name }); } } else if (typeAliasFromNew.type instanceof TypeLiteralDeclaration) { let find = false; @@ -933,10 +927,10 @@ const findTypeAliasDeleteParam = (metaDataOld: TSExportedMetaData, metaDataNew: } }); if (!find) { - typeAliasDeleteParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pOld.name); + typeAliasDeleteParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pOld.name }); } } else if (typeof typeAliasFromNew.type === 'string') { - typeAliasDeleteParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pOld.name); + typeAliasDeleteParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pOld.name }); } }); } @@ -946,8 +940,8 @@ const findTypeAliasDeleteParam = (metaDataOld: TSExportedMetaData, metaDataNew: return typeAliasDeleteParam; }; -const findTypeAliasAddRequiredParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const typeAliasAddRequiredParam: string[] = []; +const findTypeAliasAddRequiredParam = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const typeAliasAddRequiredParam: ChangelogItem[] = []; Object.keys(metaDataNew.typeAlias).forEach(typeAlias => { if (metaDataOld.typeAlias[typeAlias]) { const typeAliasFromOld = metaDataOld.typeAlias[typeAlias] as TypeAliasDeclaration; @@ -968,10 +962,10 @@ const findTypeAliasAddRequiredParam = (metaDataOld: TSExportedMetaData, metaData }); }); if (!find) { - typeAliasAddRequiredParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddRequiredParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else { - typeAliasAddRequiredParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddRequiredParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else if (typeAliasFromOld.type instanceof TypeLiteralDeclaration) { let find = false; @@ -981,10 +975,10 @@ const findTypeAliasAddRequiredParam = (metaDataOld: TSExportedMetaData, metaData } }); if (!find) { - typeAliasAddRequiredParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddRequiredParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else if (typeof typeAliasFromOld.type === 'string') { - typeAliasAddRequiredParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddRequiredParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } }); }); @@ -1003,10 +997,10 @@ const findTypeAliasAddRequiredParam = (metaDataOld: TSExportedMetaData, metaData }); }); if (!find) { - typeAliasAddRequiredParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddRequiredParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else { - typeAliasAddRequiredParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddRequiredParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else if (typeAliasFromOld.type instanceof TypeLiteralDeclaration) { let find = false; @@ -1016,10 +1010,10 @@ const findTypeAliasAddRequiredParam = (metaDataOld: TSExportedMetaData, metaData } }); if (!find) { - typeAliasAddRequiredParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddRequiredParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } } else if (typeof typeAliasFromOld.type === 'string') { - typeAliasAddRequiredParam.push('Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name); + typeAliasAddRequiredParam.push({ line: 'Type Alias ' + typeAlias + ' has a new parameter ' + pNew.name }); } }); } @@ -1029,8 +1023,8 @@ const findTypeAliasAddRequiredParam = (metaDataOld: TSExportedMetaData, metaData return typeAliasAddRequiredParam; }; -const findTypeAliasParamChangeRequired = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const typeAliasParamChangeRequired: string[] = []; +const findTypeAliasParamChangeRequired = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const typeAliasParamChangeRequired: ChangelogItem[] = []; Object.keys(metaDataNew.typeAlias).forEach(typeAlias => { if (metaDataOld.typeAlias[typeAlias]) { const typeAliasFromOld = metaDataOld.typeAlias[typeAlias] as TypeAliasDeclaration; @@ -1045,7 +1039,7 @@ const findTypeAliasParamChangeRequired = (metaDataOld: TSExportedMetaData, metaD typeAliasFromOld.type.typeLiteralDeclarations.forEach(typeLiteralDeclarationOld => { typeLiteralDeclarationOld.properties.forEach(pOld => { if (pNew.name === pOld.name && pOld.isOptional) { - typeAliasParamChangeRequired.push('Parameter ' + pNew.name + ' of Type Alias ' + typeAlias + ' is now required'); + typeAliasParamChangeRequired.push({ line: 'Parameter ' + pNew.name + ' of Type Alias ' + typeAlias + ' is now required' }); } }); }); @@ -1053,7 +1047,7 @@ const findTypeAliasParamChangeRequired = (metaDataOld: TSExportedMetaData, metaD } else if (typeAliasFromOld.type instanceof TypeLiteralDeclaration) { typeAliasFromOld.type.properties.forEach(pOld => { if (pNew.name === pOld.name && pOld.isOptional) { - typeAliasParamChangeRequired.push('Parameter ' + pNew.name + ' of Type Alias ' + typeAlias + ' is now required'); + typeAliasParamChangeRequired.push({ line: 'Parameter ' + pNew.name + ' of Type Alias ' + typeAlias + ' is now required' }); } }); } @@ -1067,7 +1061,7 @@ const findTypeAliasParamChangeRequired = (metaDataOld: TSExportedMetaData, metaD typeAliasFromOld.type.typeLiteralDeclarations.forEach(typeLiteralDeclarationOld => { typeLiteralDeclarationOld.properties.forEach(pOld => { if (pNew.name === pOld.name && pOld.isOptional) { - typeAliasParamChangeRequired.push('Parameter ' + pNew.name + ' of Type Alias ' + typeAlias + ' is now required'); + typeAliasParamChangeRequired.push({ line: 'Parameter ' + pNew.name + ' of Type Alias ' + typeAlias + ' is now required' }); } }); }); @@ -1075,7 +1069,7 @@ const findTypeAliasParamChangeRequired = (metaDataOld: TSExportedMetaData, metaD } else if (typeAliasFromOld.type instanceof TypeLiteralDeclaration) { typeAliasFromOld.type.properties.forEach(pOld => { if (pNew.name === pOld.name && pOld.isOptional) { - typeAliasParamChangeRequired.push('Parameter ' + pNew.name + ' of Type Alias ' + typeAlias + ' is now required'); + typeAliasParamChangeRequired.push({ line: 'Parameter ' + pNew.name + ' of Type Alias ' + typeAlias + ' is now required' }); } }); } @@ -1087,25 +1081,25 @@ const findTypeAliasParamChangeRequired = (metaDataOld: TSExportedMetaData, metaD return typeAliasParamChangeRequired; }; -const findRemovedEnum = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const removedEnum: string[] = []; +const findRemovedEnum = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const removedEnum: ChangelogItem[] = []; Object.keys(metaDataOld.enums).forEach(e => { if (!metaDataNew.enums[e]) { - removedEnum.push('Removed Enum ' + e); + removedEnum.push({ line: 'Removed Enum ' + e }); } }); return removedEnum; }; -const findRemovedEnumValue = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const removedEnumValue: string[] = []; +const findRemovedEnumValue = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const removedEnumValue: ChangelogItem[] = []; Object.keys(metaDataNew.enums).forEach(e => { if (metaDataOld.enums[e]) { const enumOld = metaDataOld.enums[e] as EnumDeclaration; const enumNew = metaDataNew.enums[e] as EnumDeclaration; enumOld.members.forEach(v => { if (!enumNew.members.includes(v)) { - removedEnumValue.push('Enum ' + e + ' no longer has value ' + v); + removedEnumValue.push({ line: 'Enum ' + e + ' no longer has value ' + v }); } }); } @@ -1113,11 +1107,11 @@ const findRemovedEnumValue = (metaDataOld: TSExportedMetaData, metaDataNew: TSEx return removedEnumValue; }; -const findRemovedFunction = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): string[] => { - const removedFunction: string[] = []; +const findRemovedFunction = (metaDataOld: TSExportedMetaData, metaDataNew: TSExportedMetaData): ChangelogItem[] => { + const removedFunction: ChangelogItem[] = []; Object.keys(metaDataOld.functions).forEach(e => { if (!metaDataNew.functions[e]) { - removedFunction.push('Removed function ' + e); + removedFunction.push({ line: 'Removed function ' + e, oldName: e}); } }); return removedFunction; From f15580b9bd9fe1dc67a8210e2c0bc4cfd1dc3197 Mon Sep 17 00:00:00 2001 From: wanl Date: Fri, 2 Aug 2024 17:05:39 +0800 Subject: [PATCH 09/35] Update package version --- tools/js-sdk-release-tools/package-lock.json | 4 ++-- tools/js-sdk-release-tools/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index 04fd1faa176..90f9b48812d 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -20,7 +20,7 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", - "typescript-codegen-breaking-change-detector": "^0.4.3", + "typescript-codegen-breaking-change-detector": "^0.4.4", "yaml": "^1.10.2" }, "bin": { @@ -40,7 +40,7 @@ } }, "../../../../typescript-codegen-breaking-change-detector": { - "version": "0.4.3", + "version": "0.4.4", "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index 0fc0e1325c8..fc8c8290d79 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -33,7 +33,7 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", - "typescript-codegen-breaking-change-detector": "^0.4.3", + "typescript-codegen-breaking-change-detector": "^0.4.4", "yaml": "^1.10.2" }, "devDependencies": { From 549a18964241b9787e9146a2415e03a1e2877050 Mon Sep 17 00:00:00 2001 From: wanl Date: Tue, 6 Aug 2024 08:26:25 +0800 Subject: [PATCH 10/35] Made compatible check stricter --- .../RestLevelClientChangelogPostProcessor.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts b/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts index c2c0f94c6be..885a9abf11f 100644 --- a/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts +++ b/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts @@ -55,13 +55,11 @@ export class RestLevelClientChangelogPostProcessor { private findCompatibleNodeContext( inputContext: NodeContext, contextMapToFind: Map, - checkAssignableFromInputToFound: boolean ): NodeContext | undefined { for (const [_, foundContext] of contextMapToFind) { - const isCompatible = checkAssignableFromInputToFound - ? inputContext.node.getType().isAssignableTo(foundContext.node.getType()) - : foundContext.node.getType().isAssignableTo(inputContext.node.getType()); - if (isCompatible) return foundContext; + const isCompatibleFromInputToFound = inputContext.node.getType().isAssignableTo(foundContext.node.getType()) + const isCompatibleFromFoundToInput = foundContext.node.getType().isAssignableTo(inputContext.node.getType()) + if (isCompatibleFromInputToFound && isCompatibleFromFoundToInput) return foundContext; } return undefined; } @@ -69,14 +67,12 @@ export class RestLevelClientChangelogPostProcessor { private tryIgnoreInlineTypeInChangelogItem( inputContext: NodeContext, nodeContextMapToFind: Map, - checkAssignableFromInputToFound: boolean, item: ChangelogItem ) { if (!inputContext) return; const foundContext = this.findCompatibleNodeContext( inputContext, nodeContextMapToFind, - checkAssignableFromInputToFound ); if (foundContext) { inputContext.used = true; @@ -108,14 +104,14 @@ export class RestLevelClientChangelogPostProcessor { if (item.newName) { const inputContext = this.getCurrentNodeContext(item.newName); if (!inputContext) return; - this.tryIgnoreInlineTypeInChangelogItem(inputContext, this.message.baseline, true, item); + this.tryIgnoreInlineTypeInChangelogItem(inputContext, this.message.baseline, item); return; } - // item.baselineName exists + // item.oldName exists const inputContext = this.getBaselineNodeContext(item.oldName); if (!inputContext) return; - this.tryIgnoreInlineTypeInChangelogItem(inputContext, this.message.current, false, item); + this.tryIgnoreInlineTypeInChangelogItem(inputContext, this.message.current, item); return; }); } From f451e16d17cfb7a43035fdf421cff76d3004d04e Mon Sep 17 00:00:00 2001 From: wanl Date: Tue, 6 Aug 2024 11:16:32 +0800 Subject: [PATCH 11/35] Updated version to resolve pipeline issue --- tools/js-sdk-release-tools/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index fc8c8290d79..7d8afdbc618 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -33,7 +33,7 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", - "typescript-codegen-breaking-change-detector": "^0.4.4", + "typescript-codegen-breaking-change-detector": "^0.4.5", "yaml": "^1.10.2" }, "devDependencies": { From 486aa929016e2405cd9452846f352ca02023a39c Mon Sep 17 00:00:00 2001 From: wanl Date: Tue, 6 Aug 2024 23:14:24 +0800 Subject: [PATCH 12/35] Moved breaking change detection tool to js release tool --- tools/js-sdk-release-tools/ci.yml | 17 +- tools/js-sdk-release-tools/package-lock.json | 3166 ++++++++++++++++- tools/js-sdk-release-tools/package.json | 13 +- .../test/changelog/changelogGenerator.test.ts | 13 +- .../src/xlc/apiVersion/utils.ts | 2 +- tools/js-sdk-release-tools/tsconfig.json | 3 +- tools/js-sdk-release-tools/vitest.config.ts | 8 +- .../.eslintignore | 4 + .../.eslintrc | 17 + .../.gitignore | 132 + .../.hintrc | 5 + .../.npmrc | 1 + .../.prettierignore | 4 + .../.prettierrc | 9 + .../README.md | 11 + ...rest-level-client-breaking-change-rules.md | 20 + .../latest-package/CHANGELOG.md | 15 + .../latest-package/LICENSE | 21 + .../latest-package/README.md | 109 + .../latest-package/_meta.json | 8 + .../latest-package/api-extractor.json | 31 + .../latest-package/assets.json | 6 + .../latest-package/package.json | 118 + .../review/arm-networkanalytics.api.md | 761 ++++ .../latest-package/sample.env | 4 + .../dataProductsAddUserRoleSample.d.ts | 2 + .../dataProductsAddUserRoleSample.d.ts.map | 1 + .../dataProductsAddUserRoleSample.js | 70 + .../dataProductsAddUserRoleSample.js.map | 1 + .../dataProductsAddUserRoleSample.ts | 87 + .../dataProductsCatalogsGetSample.d.ts | 2 + .../dataProductsCatalogsGetSample.d.ts.map | 1 + .../dataProductsCatalogsGetSample.js | 52 + .../dataProductsCatalogsGetSample.js.map | 1 + .../dataProductsCatalogsGetSample.ts | 58 + ...uctsCatalogsListByResourceGroupSample.d.ts | 2 + ...CatalogsListByResourceGroupSample.d.ts.map | 1 + ...oductsCatalogsListByResourceGroupSample.js | 58 + ...tsCatalogsListByResourceGroupSample.js.map | 1 + ...oductsCatalogsListByResourceGroupSample.ts | 68 + ...ductsCatalogsListBySubscriptionSample.d.ts | 2 + ...sCatalogsListBySubscriptionSample.d.ts.map | 1 + ...roductsCatalogsListBySubscriptionSample.js | 56 + ...ctsCatalogsListBySubscriptionSample.js.map | 1 + ...roductsCatalogsListBySubscriptionSample.ts | 60 + .../samples-dev/dataProductsCreateSample.d.ts | 2 + .../dataProductsCreateSample.d.ts.map | 1 + .../samples-dev/dataProductsCreateSample.js | 109 + .../dataProductsCreateSample.js.map | 1 + .../samples-dev/dataProductsCreateSample.ts | 127 + .../samples-dev/dataProductsDeleteSample.d.ts | 2 + .../dataProductsDeleteSample.d.ts.map | 1 + .../samples-dev/dataProductsDeleteSample.js | 54 + .../dataProductsDeleteSample.js.map | 1 + .../samples-dev/dataProductsDeleteSample.ts | 66 + ...sGenerateStorageAccountSasTokenSample.d.ts | 2 + ...erateStorageAccountSasTokenSample.d.ts.map | 1 + ...ctsGenerateStorageAccountSasTokenSample.js | 64 + ...enerateStorageAccountSasTokenSample.js.map | 1 + ...ctsGenerateStorageAccountSasTokenSample.ts | 81 + .../samples-dev/dataProductsGetSample.d.ts | 2 + .../dataProductsGetSample.d.ts.map | 1 + .../samples-dev/dataProductsGetSample.js | 54 + .../samples-dev/dataProductsGetSample.js.map | 1 + .../samples-dev/dataProductsGetSample.ts | 66 + ...dataProductsListByResourceGroupSample.d.ts | 2 + ...ProductsListByResourceGroupSample.d.ts.map | 1 + .../dataProductsListByResourceGroupSample.js | 58 + ...taProductsListByResourceGroupSample.js.map | 1 + .../dataProductsListByResourceGroupSample.ts | 68 + .../dataProductsListBySubscriptionSample.d.ts | 2 + ...aProductsListBySubscriptionSample.d.ts.map | 1 + .../dataProductsListBySubscriptionSample.js | 56 + ...ataProductsListBySubscriptionSample.js.map | 1 + .../dataProductsListBySubscriptionSample.ts | 60 + ...ataProductsListRolesAssignmentsSample.d.ts | 2 + ...roductsListRolesAssignmentsSample.d.ts.map | 1 + .../dataProductsListRolesAssignmentsSample.js | 56 + ...aProductsListRolesAssignmentsSample.js.map | 1 + .../dataProductsListRolesAssignmentsSample.ts | 70 + .../dataProductsRemoveUserRoleSample.d.ts | 2 + .../dataProductsRemoveUserRoleSample.d.ts.map | 1 + .../dataProductsRemoveUserRoleSample.js | 72 + .../dataProductsRemoveUserRoleSample.js.map | 1 + .../dataProductsRemoveUserRoleSample.ts | 89 + .../dataProductsRotateKeySample.d.ts | 2 + .../dataProductsRotateKeySample.d.ts.map | 1 + .../dataProductsRotateKeySample.js | 60 + .../dataProductsRotateKeySample.js.map | 1 + .../dataProductsRotateKeySample.ts | 77 + .../samples-dev/dataProductsUpdateSample.d.ts | 2 + .../dataProductsUpdateSample.d.ts.map | 1 + .../samples-dev/dataProductsUpdateSample.js | 71 + .../dataProductsUpdateSample.js.map | 1 + .../samples-dev/dataProductsUpdateSample.ts | 88 + .../samples-dev/dataTypesCreateSample.d.ts | 2 + .../dataTypesCreateSample.d.ts.map | 1 + .../samples-dev/dataTypesCreateSample.js | 66 + .../samples-dev/dataTypesCreateSample.js.map | 1 + .../samples-dev/dataTypesCreateSample.ts | 85 + .../dataTypesDeleteDataSample.d.ts | 2 + .../dataTypesDeleteDataSample.d.ts.map | 1 + .../samples-dev/dataTypesDeleteDataSample.js | 58 + .../dataTypesDeleteDataSample.js.map | 1 + .../samples-dev/dataTypesDeleteDataSample.ts | 74 + .../samples-dev/dataTypesDeleteSample.d.ts | 2 + .../dataTypesDeleteSample.d.ts.map | 1 + .../samples-dev/dataTypesDeleteSample.js | 56 + .../samples-dev/dataTypesDeleteSample.js.map | 1 + .../samples-dev/dataTypesDeleteSample.ts | 70 + ...enerateStorageContainerSasTokenSample.d.ts | 2 + ...ateStorageContainerSasTokenSample.d.ts.map | 1 + ...sGenerateStorageContainerSasTokenSample.js | 66 + ...erateStorageContainerSasTokenSample.js.map | 1 + ...sGenerateStorageContainerSasTokenSample.ts | 85 + .../samples-dev/dataTypesGetSample.d.ts | 2 + .../samples-dev/dataTypesGetSample.d.ts.map | 1 + .../samples-dev/dataTypesGetSample.js | 56 + .../samples-dev/dataTypesGetSample.js.map | 1 + .../samples-dev/dataTypesGetSample.ts | 70 + .../dataTypesListByDataProductSample.d.ts | 2 + .../dataTypesListByDataProductSample.d.ts.map | 1 + .../dataTypesListByDataProductSample.js | 60 + .../dataTypesListByDataProductSample.js.map | 1 + .../dataTypesListByDataProductSample.ts | 72 + .../samples-dev/dataTypesUpdateSample.d.ts | 2 + .../dataTypesUpdateSample.d.ts.map | 1 + .../samples-dev/dataTypesUpdateSample.js | 65 + .../samples-dev/dataTypesUpdateSample.js.map | 1 + .../samples-dev/dataTypesUpdateSample.ts | 84 + .../samples-dev/operationsListSample.d.ts | 2 + .../samples-dev/operationsListSample.d.ts.map | 1 + .../samples-dev/operationsListSample.js | 56 + .../samples-dev/operationsListSample.js.map | 1 + .../samples-dev/operationsListSample.ts | 60 + .../samples/v1/javascript/README.md | 92 + .../dataProductsAddUserRoleSample.js | 72 + .../dataProductsCatalogsGetSample.js | 54 + ...oductsCatalogsListByResourceGroupSample.js | 60 + ...roductsCatalogsListBySubscriptionSample.js | 56 + .../v1/javascript/dataProductsCreateSample.js | 120 + .../v1/javascript/dataProductsDeleteSample.js | 56 + ...ctsGenerateStorageAccountSasTokenSample.js | 74 + .../v1/javascript/dataProductsGetSample.js | 56 + .../dataProductsListByResourceGroupSample.js | 60 + .../dataProductsListBySubscriptionSample.js | 56 + .../dataProductsListRolesAssignmentsSample.js | 66 + .../dataProductsRemoveUserRoleSample.js | 74 + .../javascript/dataProductsRotateKeySample.js | 62 + .../v1/javascript/dataProductsUpdateSample.js | 82 + .../v1/javascript/dataTypesCreateSample.js | 78 + .../javascript/dataTypesDeleteDataSample.js | 70 + .../v1/javascript/dataTypesDeleteSample.js | 66 + ...sGenerateStorageContainerSasTokenSample.js | 78 + .../v1/javascript/dataTypesGetSample.js | 58 + .../dataTypesListByDataProductSample.js | 62 + .../v1/javascript/dataTypesUpdateSample.js | 77 + .../v1/javascript/operationsListSample.js | 56 + .../samples/v1/javascript/package.json | 32 + .../samples/v1/javascript/sample.env | 4 + .../samples/v1/typescript/README.md | 105 + .../samples/v1/typescript/package.json | 41 + .../samples/v1/typescript/sample.env | 4 + .../src/dataProductsAddUserRoleSample.d.ts | 2 + .../dataProductsAddUserRoleSample.d.ts.map | 1 + .../src/dataProductsAddUserRoleSample.js | 70 + .../src/dataProductsAddUserRoleSample.js.map | 1 + .../src/dataProductsAddUserRoleSample.ts | 87 + .../src/dataProductsCatalogsGetSample.d.ts | 2 + .../dataProductsCatalogsGetSample.d.ts.map | 1 + .../src/dataProductsCatalogsGetSample.js | 52 + .../src/dataProductsCatalogsGetSample.js.map | 1 + .../src/dataProductsCatalogsGetSample.ts | 58 + ...uctsCatalogsListByResourceGroupSample.d.ts | 2 + ...CatalogsListByResourceGroupSample.d.ts.map | 1 + ...oductsCatalogsListByResourceGroupSample.js | 58 + ...tsCatalogsListByResourceGroupSample.js.map | 1 + ...oductsCatalogsListByResourceGroupSample.ts | 68 + ...ductsCatalogsListBySubscriptionSample.d.ts | 2 + ...sCatalogsListBySubscriptionSample.d.ts.map | 1 + ...roductsCatalogsListBySubscriptionSample.js | 56 + ...ctsCatalogsListBySubscriptionSample.js.map | 1 + ...roductsCatalogsListBySubscriptionSample.ts | 60 + .../src/dataProductsCreateSample.d.ts | 2 + .../src/dataProductsCreateSample.d.ts.map | 1 + .../src/dataProductsCreateSample.js | 109 + .../src/dataProductsCreateSample.js.map | 1 + .../src/dataProductsCreateSample.ts | 127 + .../src/dataProductsDeleteSample.d.ts | 2 + .../src/dataProductsDeleteSample.d.ts.map | 1 + .../src/dataProductsDeleteSample.js | 54 + .../src/dataProductsDeleteSample.js.map | 1 + .../src/dataProductsDeleteSample.ts | 66 + ...sGenerateStorageAccountSasTokenSample.d.ts | 2 + ...erateStorageAccountSasTokenSample.d.ts.map | 1 + ...ctsGenerateStorageAccountSasTokenSample.js | 64 + ...enerateStorageAccountSasTokenSample.js.map | 1 + ...ctsGenerateStorageAccountSasTokenSample.ts | 81 + .../typescript/src/dataProductsGetSample.d.ts | 2 + .../src/dataProductsGetSample.d.ts.map | 1 + .../typescript/src/dataProductsGetSample.js | 54 + .../src/dataProductsGetSample.js.map | 1 + .../typescript/src/dataProductsGetSample.ts | 66 + ...dataProductsListByResourceGroupSample.d.ts | 2 + ...ProductsListByResourceGroupSample.d.ts.map | 1 + .../dataProductsListByResourceGroupSample.js | 58 + ...taProductsListByResourceGroupSample.js.map | 1 + .../dataProductsListByResourceGroupSample.ts | 68 + .../dataProductsListBySubscriptionSample.d.ts | 2 + ...aProductsListBySubscriptionSample.d.ts.map | 1 + .../dataProductsListBySubscriptionSample.js | 56 + ...ataProductsListBySubscriptionSample.js.map | 1 + .../dataProductsListBySubscriptionSample.ts | 60 + ...ataProductsListRolesAssignmentsSample.d.ts | 2 + ...roductsListRolesAssignmentsSample.d.ts.map | 1 + .../dataProductsListRolesAssignmentsSample.js | 56 + ...aProductsListRolesAssignmentsSample.js.map | 1 + .../dataProductsListRolesAssignmentsSample.ts | 70 + .../src/dataProductsRemoveUserRoleSample.d.ts | 2 + .../dataProductsRemoveUserRoleSample.d.ts.map | 1 + .../src/dataProductsRemoveUserRoleSample.js | 72 + .../dataProductsRemoveUserRoleSample.js.map | 1 + .../src/dataProductsRemoveUserRoleSample.ts | 89 + .../src/dataProductsRotateKeySample.d.ts | 2 + .../src/dataProductsRotateKeySample.d.ts.map | 1 + .../src/dataProductsRotateKeySample.js | 60 + .../src/dataProductsRotateKeySample.js.map | 1 + .../src/dataProductsRotateKeySample.ts | 77 + .../src/dataProductsUpdateSample.d.ts | 2 + .../src/dataProductsUpdateSample.d.ts.map | 1 + .../src/dataProductsUpdateSample.js | 71 + .../src/dataProductsUpdateSample.js.map | 1 + .../src/dataProductsUpdateSample.ts | 88 + .../typescript/src/dataTypesCreateSample.d.ts | 2 + .../src/dataTypesCreateSample.d.ts.map | 1 + .../typescript/src/dataTypesCreateSample.js | 66 + .../src/dataTypesCreateSample.js.map | 1 + .../typescript/src/dataTypesCreateSample.ts | 85 + .../src/dataTypesDeleteDataSample.d.ts | 2 + .../src/dataTypesDeleteDataSample.d.ts.map | 1 + .../src/dataTypesDeleteDataSample.js | 58 + .../src/dataTypesDeleteDataSample.js.map | 1 + .../src/dataTypesDeleteDataSample.ts | 74 + .../typescript/src/dataTypesDeleteSample.d.ts | 2 + .../src/dataTypesDeleteSample.d.ts.map | 1 + .../typescript/src/dataTypesDeleteSample.js | 56 + .../src/dataTypesDeleteSample.js.map | 1 + .../typescript/src/dataTypesDeleteSample.ts | 70 + ...enerateStorageContainerSasTokenSample.d.ts | 2 + ...ateStorageContainerSasTokenSample.d.ts.map | 1 + ...sGenerateStorageContainerSasTokenSample.js | 66 + ...erateStorageContainerSasTokenSample.js.map | 1 + ...sGenerateStorageContainerSasTokenSample.ts | 85 + .../v1/typescript/src/dataTypesGetSample.d.ts | 2 + .../src/dataTypesGetSample.d.ts.map | 1 + .../v1/typescript/src/dataTypesGetSample.js | 56 + .../typescript/src/dataTypesGetSample.js.map | 1 + .../v1/typescript/src/dataTypesGetSample.ts | 70 + .../src/dataTypesListByDataProductSample.d.ts | 2 + .../dataTypesListByDataProductSample.d.ts.map | 1 + .../src/dataTypesListByDataProductSample.js | 60 + .../dataTypesListByDataProductSample.js.map | 1 + .../src/dataTypesListByDataProductSample.ts | 72 + .../typescript/src/dataTypesUpdateSample.d.ts | 2 + .../src/dataTypesUpdateSample.d.ts.map | 1 + .../typescript/src/dataTypesUpdateSample.js | 65 + .../src/dataTypesUpdateSample.js.map | 1 + .../typescript/src/dataTypesUpdateSample.ts | 84 + .../typescript/src/operationsListSample.d.ts | 2 + .../src/operationsListSample.d.ts.map | 1 + .../v1/typescript/src/operationsListSample.js | 56 + .../src/operationsListSample.js.map | 1 + .../v1/typescript/src/operationsListSample.ts | 60 + .../samples/v1/typescript/tsconfig.json | 17 + .../latest-package/src/index.d.ts | 5 + .../latest-package/src/index.d.ts.map | 1 + .../latest-package/src/index.js | 19 + .../latest-package/src/index.js.map | 1 + .../latest-package/src/index.ts | 13 + .../latest-package/src/lroImpl.d.ts | 11 + .../latest-package/src/lroImpl.d.ts.map | 1 + .../latest-package/src/lroImpl.js | 28 + .../latest-package/src/lroImpl.js.map | 1 + .../latest-package/src/lroImpl.ts | 42 + .../src/microsoftNetworkAnalytics.d.ts | 23 + .../src/microsoftNetworkAnalytics.d.ts.map | 1 + .../src/microsoftNetworkAnalytics.js | 117 + .../src/microsoftNetworkAnalytics.js.map | 1 + .../src/microsoftNetworkAnalytics.ts | 156 + .../latest-package/src/models/index.d.ts | 976 +++++ .../latest-package/src/models/index.d.ts.map | 1 + .../latest-package/src/models/index.js | 122 + .../latest-package/src/models/index.js.map | 1 + .../latest-package/src/models/index.ts | 1111 ++++++ .../latest-package/src/models/mappers.d.ts | 52 + .../src/models/mappers.d.ts.map | 1 + .../latest-package/src/models/mappers.js | 1547 ++++++++ .../latest-package/src/models/mappers.js.map | 1 + .../latest-package/src/models/mappers.ts | 1595 +++++++++ .../latest-package/src/models/parameters.d.ts | 21 + .../src/models/parameters.d.ts.map | 1 + .../latest-package/src/models/parameters.js | 171 + .../src/models/parameters.js.map | 1 + .../latest-package/src/models/parameters.ts | 202 ++ .../src/operations/dataProducts.d.ts | 147 + .../src/operations/dataProducts.d.ts.map | 1 + .../src/operations/dataProducts.js | 689 ++++ .../src/operations/dataProducts.js.map | 1 + .../src/operations/dataProducts.ts | 960 +++++ .../src/operations/dataProductsCatalogs.d.ts | 59 + .../operations/dataProductsCatalogs.d.ts.map | 1 + .../src/operations/dataProductsCatalogs.js | 255 ++ .../operations/dataProductsCatalogs.js.map | 1 + .../src/operations/dataProductsCatalogs.ts | 341 ++ .../src/operations/dataTypes.d.ts | 126 + .../src/operations/dataTypes.d.ts.map | 1 + .../src/operations/dataTypes.js | 591 +++ .../src/operations/dataTypes.js.map | 1 + .../src/operations/dataTypes.ts | 855 +++++ .../latest-package/src/operations/index.d.ts | 5 + .../src/operations/index.d.ts.map | 1 + .../latest-package/src/operations/index.js | 15 + .../src/operations/index.js.map | 1 + .../latest-package/src/operations/index.ts | 12 + .../src/operations/operations.d.ts | 32 + .../src/operations/operations.d.ts.map | 1 + .../src/operations/operations.js | 121 + .../src/operations/operations.js.map | 1 + .../src/operations/operations.ts | 149 + .../operationsInterfaces/dataProducts.d.ts | 111 + .../dataProducts.d.ts.map | 1 + .../src/operationsInterfaces/dataProducts.js | 10 + .../operationsInterfaces/dataProducts.js.map | 1 + .../src/operationsInterfaces/dataProducts.ts | 222 ++ .../dataProductsCatalogs.d.ts | 23 + .../dataProductsCatalogs.d.ts.map | 1 + .../dataProductsCatalogs.js | 10 + .../dataProductsCatalogs.js.map | 1 + .../dataProductsCatalogs.ts | 46 + .../src/operationsInterfaces/dataTypes.d.ts | 101 + .../operationsInterfaces/dataTypes.d.ts.map | 1 + .../src/operationsInterfaces/dataTypes.js | 10 + .../src/operationsInterfaces/dataTypes.js.map | 1 + .../src/operationsInterfaces/dataTypes.ts | 208 ++ .../src/operationsInterfaces/index.d.ts | 5 + .../src/operationsInterfaces/index.d.ts.map | 1 + .../src/operationsInterfaces/index.js | 15 + .../src/operationsInterfaces/index.js.map | 1 + .../src/operationsInterfaces/index.ts | 12 + .../src/operationsInterfaces/operations.d.ts | 11 + .../operationsInterfaces/operations.d.ts.map | 1 + .../src/operationsInterfaces/operations.js | 10 + .../operationsInterfaces/operations.js.map | 1 + .../src/operationsInterfaces/operations.ts | 22 + .../latest-package/src/pagingHelper.d.ts | 13 + .../latest-package/src/pagingHelper.d.ts.map | 1 + .../latest-package/src/pagingHelper.js | 34 + .../latest-package/src/pagingHelper.js.map | 1 + .../latest-package/src/pagingHelper.ts | 39 + ...networkanalytics_operations_test.spec.d.ts | 4 + ...orkanalytics_operations_test.spec.d.ts.map | 1 + .../networkanalytics_operations_test.spec.js | 86 + ...tworkanalytics_operations_test.spec.js.map | 1 + .../networkanalytics_operations_test.spec.ts | 113 + .../latest-package/tsconfig.json | 33 + .../upcoming-package/.eslintrc.json | 11 + .../upcoming-package/.tshy/browser.json | 12 + .../upcoming-package/.tshy/build.json | 8 + .../upcoming-package/.tshy/commonjs.json | 14 + .../upcoming-package/.tshy/esm.json | 12 + .../upcoming-package/.tshy/react-native.json | 12 + .../upcoming-package/README.md | 57 + .../upcoming-package/api-extractor.json | 18 + .../upcoming-package/karma.conf.js | 133 + .../upcoming-package/package.json | 277 ++ .../recording_dataproducts_create_test.json | 63 + .../recording_dataproducts_delete_test.json | 4 + .../recording_dataproducts_get_test.json | 72 + .../recording_dataproducts_list_test.json | 75 + .../recording_operation_list_test.json | 341 ++ .../recording_dataproducts_create_test.json | 52 + .../recording_dataproducts_delete_test.json | 4 + .../recording_dataproducts_get_test.json | 61 + .../recording_dataproducts_list_test.json | 64 + .../recording_operation_list_test.json | 330 ++ ...m-networkanalytics-api-dataProducts.api.md | 118 + ...kanalytics-api-dataProductsCatalogs.api.md | 44 + .../arm-networkanalytics-api-dataTypes.api.md | 82 + ...arm-networkanalytics-api-operations.api.md | 26 + .../review/arm-networkanalytics-api.api.md | 31 + .../review/arm-networkanalytics-models.api.md | 479 +++ .../review/arm-networkanalytics.api.md | 579 +++ .../upcoming-package/rollup.config.js | 118 + .../src/api/dataProducts/index.d.ts | 56 + .../src/api/dataProducts/index.d.ts.map | 1 + .../src/api/dataProducts/index.js | 775 ++++ .../src/api/dataProducts/index.js.map | 1 + .../src/api/dataProducts/index.ts | 1410 ++++++++ .../src/api/dataProductsCatalogs/index.d.ts | 18 + .../api/dataProductsCatalogs/index.d.ts.map | 1 + .../src/api/dataProductsCatalogs/index.js | 165 + .../src/api/dataProductsCatalogs/index.js.map | 1 + .../src/api/dataProductsCatalogs/index.ts | 286 ++ .../src/api/dataTypes/index.d.ts | 40 + .../src/api/dataTypes/index.d.ts.map | 1 + .../src/api/dataTypes/index.js | 295 ++ .../src/api/dataTypes/index.js.map | 1 + .../src/api/dataTypes/index.ts | 655 ++++ .../upcoming-package/src/api/index.d.ts | 2 + .../upcoming-package/src/api/index.d.ts.map | 1 + .../upcoming-package/src/api/index.js | 4 + .../upcoming-package/src/api/index.js.map | 1 + .../upcoming-package/src/api/index.ts | 8 + .../src/api/networkAnalyticsContext.d.ts | 10 + .../src/api/networkAnalyticsContext.d.ts.map | 1 + .../src/api/networkAnalyticsContext.js | 8 + .../src/api/networkAnalyticsContext.js.map | 1 + .../src/api/networkAnalyticsContext.ts | 22 + .../src/api/operations/index.d.ts | 10 + .../src/api/operations/index.d.ts.map | 1 + .../src/api/operations/index.js | 37 + .../src/api/operations/index.js.map | 1 + .../src/api/operations/index.ts | 66 + .../src/api/pagingHelpers.d.ts | 7 + .../src/api/pagingHelpers.d.ts.map | 1 + .../upcoming-package/src/api/pagingHelpers.js | 121 + .../src/api/pagingHelpers.js.map | 1 + .../upcoming-package/src/api/pagingHelpers.ts | 191 + .../src/api/pollingHelpers.d.ts | 30 + .../src/api/pollingHelpers.d.ts.map | 1 + .../src/api/pollingHelpers.js | 84 + .../src/api/pollingHelpers.js.map | 1 + .../src/api/pollingHelpers.ts | 139 + .../src/classic/dataProducts/index.d.ts | 33 + .../src/classic/dataProducts/index.d.ts.map | 1 + .../src/classic/dataProducts/index.js | 24 + .../src/classic/dataProducts/index.js.map | 1 + .../src/classic/dataProducts/index.ts | 263 ++ .../classic/dataProductsCatalogs/index.d.ts | 16 + .../dataProductsCatalogs/index.d.ts.map | 1 + .../src/classic/dataProductsCatalogs/index.js | 16 + .../classic/dataProductsCatalogs/index.js.map | 1 + .../src/classic/dataProductsCatalogs/index.ts | 61 + .../src/classic/dataTypes/index.d.ts | 25 + .../src/classic/dataTypes/index.d.ts.map | 1 + .../src/classic/dataTypes/index.js | 20 + .../src/classic/dataTypes/index.js.map | 1 + .../src/classic/dataTypes/index.ts | 209 ++ .../upcoming-package/src/classic/index.d.ts | 5 + .../src/classic/index.d.ts.map | 1 + .../upcoming-package/src/classic/index.js | 4 + .../upcoming-package/src/classic/index.js.map | 1 + .../upcoming-package/src/classic/index.ts | 7 + .../src/classic/operations/index.d.ts | 12 + .../src/classic/operations/index.d.ts.map | 1 + .../src/classic/operations/index.js | 14 + .../src/classic/operations/index.js.map | 1 + .../src/classic/operations/index.ts | 28 + .../upcoming-package/src/index.d.ts | 5 + .../upcoming-package/src/index.d.ts.map | 1 + .../upcoming-package/src/index.js | 5 + .../upcoming-package/src/index.js.map | 1 + .../upcoming-package/src/index.ts | 96 + .../upcoming-package/src/logger.d.ts | 2 + .../upcoming-package/src/logger.d.ts.map | 1 + .../upcoming-package/src/logger.js | 5 + .../upcoming-package/src/logger.js.map | 1 + .../upcoming-package/src/logger.ts | 5 + .../upcoming-package/src/models/index.d.ts | 4 + .../src/models/index.d.ts.map | 1 + .../upcoming-package/src/models/index.js | 4 + .../upcoming-package/src/models/index.js.map | 1 + .../upcoming-package/src/models/index.ts | 89 + .../upcoming-package/src/models/models.d.ts | 454 +++ .../src/models/models.d.ts.map | 1 + .../upcoming-package/src/models/models.js | 4 + .../upcoming-package/src/models/models.js.map | 1 + .../upcoming-package/src/models/models.ts | 506 +++ .../upcoming-package/src/models/options.d.ts | 60 + .../src/models/options.d.ts.map | 1 + .../upcoming-package/src/models/options.js | 4 + .../src/models/options.js.map | 1 + .../upcoming-package/src/models/options.ts | 80 + .../src/models/pagingTypes.d.ts | 67 + .../src/models/pagingTypes.d.ts.map | 1 + .../src/models/pagingTypes.js | 4 + .../src/models/pagingTypes.js.map | 1 + .../src/models/pagingTypes.ts | 89 + .../src/networkAnalyticsClient.d.ts | 23 + .../src/networkAnalyticsClient.d.ts.map | 1 + .../src/networkAnalyticsClient.js | 29 + .../src/networkAnalyticsClient.js.map | 1 + .../src/networkAnalyticsClient.ts | 55 + .../src/rest/clientDefinitions.d.ts | 117 + .../src/rest/clientDefinitions.d.ts.map | 1 + .../src/rest/clientDefinitions.js | 4 + .../src/rest/clientDefinitions.js.map | 1 + .../src/rest/clientDefinitions.ts | 392 ++ .../upcoming-package/src/rest/index.d.ts | 12 + .../upcoming-package/src/rest/index.d.ts.map | 1 + .../upcoming-package/src/rest/index.js | 14 + .../upcoming-package/src/rest/index.js.map | 1 + .../upcoming-package/src/rest/index.ts | 16 + .../src/rest/isUnexpected.d.ts | 24 + .../src/rest/isUnexpected.d.ts.map | 1 + .../upcoming-package/src/rest/isUnexpected.js | 92 + .../src/rest/isUnexpected.js.map | 1 + .../upcoming-package/src/rest/isUnexpected.ts | 395 ++ .../upcoming-package/src/rest/models.d.ts | 319 ++ .../upcoming-package/src/rest/models.d.ts.map | 1 + .../upcoming-package/src/rest/models.js | 4 + .../upcoming-package/src/rest/models.js.map | 1 + .../upcoming-package/src/rest/models.ts | 383 ++ .../src/rest/networkAnalyticsClient.d.ts | 10 + .../src/rest/networkAnalyticsClient.d.ts.map | 1 + .../src/rest/networkAnalyticsClient.js | 32 + .../src/rest/networkAnalyticsClient.js.map | 1 + .../src/rest/networkAnalyticsClient.ts | 46 + .../src/rest/outputModels.d.ts | 388 ++ .../src/rest/outputModels.d.ts.map | 1 + .../upcoming-package/src/rest/outputModels.js | 4 + .../src/rest/outputModels.js.map | 1 + .../upcoming-package/src/rest/outputModels.ts | 458 +++ .../src/rest/paginateHelper.d.ts | 43 + .../src/rest/paginateHelper.d.ts.map | 1 + .../src/rest/paginateHelper.js | 83 + .../src/rest/paginateHelper.js.map | 1 + .../src/rest/paginateHelper.ts | 154 + .../upcoming-package/src/rest/parameters.d.ts | 69 + .../src/rest/parameters.d.ts.map | 1 + .../upcoming-package/src/rest/parameters.js | 4 + .../src/rest/parameters.js.map | 1 + .../upcoming-package/src/rest/parameters.ts | 117 + .../src/rest/pollingHelper.d.ts | 83 + .../src/rest/pollingHelper.d.ts.map | 1 + .../src/rest/pollingHelper.js | 101 + .../src/rest/pollingHelper.js.map | 1 + .../src/rest/pollingHelper.ts | 319 ++ .../upcoming-package/src/rest/responses.d.ts | 304 ++ .../src/rest/responses.d.ts.map | 1 + .../upcoming-package/src/rest/responses.js | 4 + .../src/rest/responses.js.map | 1 + .../upcoming-package/src/rest/responses.ts | 400 +++ .../src/restorePollerHelpers.d.ts | 22 + .../src/restorePollerHelpers.d.ts.map | 1 + .../src/restorePollerHelpers.js | 96 + .../src/restorePollerHelpers.js.map | 1 + .../src/restorePollerHelpers.ts | 180 + ...networkanalytics_operations_test.spec.d.ts | 4 + ...orkanalytics_operations_test.spec.d.ts.map | 1 + .../networkanalytics_operations_test.spec.js | 92 + ...tworkanalytics_operations_test.spec.js.map | 1 + .../networkanalytics_operations_test.spec.ts | 107 + .../test/public/utils/recordedClient.d.ts | 8 + .../test/public/utils/recordedClient.d.ts.map | 1 + .../test/public/utils/recordedClient.js | 24 + .../test/public/utils/recordedClient.js.map | 1 + .../test/public/utils/recordedClient.ts | 32 + .../tsconfig.browser.config.json | 10 + .../upcoming-package/tsconfig.json | 15 + .../vitest.browser.config.d.ts | 3 + .../vitest.browser.config.d.ts.map | 1 + .../upcoming-package/vitest.browser.config.js | 35 + .../vitest.browser.config.js.map | 1 + .../upcoming-package/vitest.browser.config.ts | 37 + .../upcoming-package/vitest.config.d.ts | 3 + .../upcoming-package/vitest.config.d.ts.map | 1 + .../upcoming-package/vitest.config.js | 31 + .../upcoming-package/vitest.config.js.map | 1 + .../upcoming-package/vitest.config.ts | 33 + .../baseline-package/.eslintrc.json | 11 + .../baseline-package/CHANGELOG.md | 23 + .../baseline-package/README.md | 313 ++ .../baseline-package/api-extractor.json | 31 + .../baseline-package/assets.json | 6 + .../baseline-package/karma.conf.js | 137 + .../baseline-package/package.json | 125 + .../review/ai-translation-text.api.d.ts | 382 ++ .../review/ai-translation-text.api.d.ts.map | 1 + .../review/ai-translation-text.api.js | 5 + .../review/ai-translation-text.api.js.map | 1 + .../review/ai-translation-text.api.md | 649 ++++ .../review/ai-translation-text.api.ts | 672 ++++ .../baseline-package/sample.env | 6 + .../samples-dev/breakSentence.d.ts | 2 + .../samples-dev/breakSentence.d.ts.map | 1 + .../samples-dev/breakSentence.js | 42 + .../samples-dev/breakSentence.js.map | 1 + .../samples-dev/breakSentence.ts | 50 + .../breakSentenceWithAutoDetection.d.ts | 2 + .../breakSentenceWithAutoDetection.d.ts.map | 1 + .../breakSentenceWithAutoDetection.js | 39 + .../breakSentenceWithAutoDetection.js.map | 1 + .../breakSentenceWithAutoDetection.ts | 49 + .../samples-dev/dictionaryExamples.d.ts | 2 + .../samples-dev/dictionaryExamples.d.ts.map | 1 + .../samples-dev/dictionaryExamples.js | 44 + .../samples-dev/dictionaryExamples.js.map | 1 + .../samples-dev/dictionaryExamples.ts | 58 + .../samples-dev/dictionaryLookup.d.ts | 2 + .../samples-dev/dictionaryLookup.d.ts.map | 1 + .../samples-dev/dictionaryLookup.js | 43 + .../samples-dev/dictionaryLookup.js.map | 1 + .../samples-dev/dictionaryLookup.ts | 55 + .../samples-dev/getLanguages.d.ts | 2 + .../samples-dev/getLanguages.d.ts.map | 1 + .../samples-dev/getLanguages.js | 47 + .../samples-dev/getLanguages.js.map | 1 + .../samples-dev/getLanguages.ts | 59 + .../getLanguagesAcceptLanguage.d.ts | 2 + .../getLanguagesAcceptLanguage.d.ts.map | 1 + .../samples-dev/getLanguagesAcceptLanguage.js | 60 + .../getLanguagesAcceptLanguage.js.map | 1 + .../samples-dev/getLanguagesAcceptLanguage.ts | 75 + .../samples-dev/getLanguagesScope.d.ts | 2 + .../samples-dev/getLanguagesScope.d.ts.map | 1 + .../samples-dev/getLanguagesScope.js | 53 + .../samples-dev/getLanguagesScope.js.map | 1 + .../samples-dev/getLanguagesScope.ts | 68 + .../samples-dev/translate.d.ts | 2 + .../samples-dev/translate.d.ts.map | 1 + .../baseline-package/samples-dev/translate.js | 43 + .../samples-dev/translate.js.map | 1 + .../baseline-package/samples-dev/translate.ts | 53 + .../samples-dev/translateAlignments.d.ts | 2 + .../samples-dev/translateAlignments.d.ts.map | 1 + .../samples-dev/translateAlignments.js | 45 + .../samples-dev/translateAlignments.js.map | 1 + .../samples-dev/translateAlignments.ts | 56 + .../samples-dev/translateCustom.d.ts | 2 + .../samples-dev/translateCustom.d.ts.map | 1 + .../samples-dev/translateCustom.js | 56 + .../samples-dev/translateCustom.js.map | 1 + .../samples-dev/translateCustom.ts | 66 + .../samples-dev/translateDetection.d.ts | 2 + .../samples-dev/translateDetection.d.ts.map | 1 + .../samples-dev/translateDetection.js | 43 + .../samples-dev/translateDetection.js.map | 1 + .../samples-dev/translateDetection.ts | 55 + .../samples-dev/translateDictionary.d.ts | 2 + .../samples-dev/translateDictionary.d.ts.map | 1 + .../samples-dev/translateDictionary.js | 50 + .../samples-dev/translateDictionary.js.map | 1 + .../samples-dev/translateDictionary.ts | 61 + .../samples-dev/translateMultipleSources.d.ts | 2 + .../translateMultipleSources.d.ts.map | 1 + .../samples-dev/translateMultipleSources.js | 48 + .../translateMultipleSources.js.map | 1 + .../samples-dev/translateMultipleSources.ts | 60 + .../samples-dev/translateMultipleTargets.d.ts | 2 + .../translateMultipleTargets.d.ts.map | 1 + .../samples-dev/translateMultipleTargets.js | 45 + .../translateMultipleTargets.js.map | 1 + .../samples-dev/translateMultipleTargets.ts | 55 + .../samples-dev/translateNoTranslate.d.ts | 2 + .../samples-dev/translateNoTranslate.d.ts.map | 1 + .../samples-dev/translateNoTranslate.js | 50 + .../samples-dev/translateNoTranslate.js.map | 1 + .../samples-dev/translateNoTranslate.ts | 60 + .../samples-dev/translateProfanity.d.ts | 2 + .../samples-dev/translateProfanity.d.ts.map | 1 + .../samples-dev/translateProfanity.js | 55 + .../samples-dev/translateProfanity.js.map | 1 + .../samples-dev/translateProfanity.ts | 65 + .../samples-dev/translateSenteceLength.d.ts | 2 + .../translateSenteceLength.d.ts.map | 1 + .../samples-dev/translateSenteceLength.js | 48 + .../samples-dev/translateSenteceLength.js.map | 1 + .../samples-dev/translateSenteceLength.ts | 65 + .../samples-dev/translateTextType.d.ts | 2 + .../samples-dev/translateTextType.d.ts.map | 1 + .../samples-dev/translateTextType.js | 44 + .../samples-dev/translateTextType.js.map | 1 + .../samples-dev/translateTextType.ts | 54 + .../translateWithTransliteration.d.ts | 2 + .../translateWithTransliteration.d.ts.map | 1 + .../translateWithTransliteration.js | 48 + .../translateWithTransliteration.js.map | 1 + .../translateWithTransliteration.ts | 60 + .../samples-dev/transliterate.d.ts | 2 + .../samples-dev/transliterate.d.ts.map | 1 + .../samples-dev/transliterate.js | 45 + .../samples-dev/transliterate.js.map | 1 + .../samples-dev/transliterate.ts | 55 + .../samples/v1-beta/javascript/README.md | 102 + .../v1-beta/javascript/breakSentence.js | 48 + .../breakSentenceWithAutoDetection.js | 47 + .../v1-beta/javascript/dictionaryExamples.js | 56 + .../v1-beta/javascript/dictionaryLookup.js | 53 + .../v1-beta/javascript/getLanguages.js | 61 + .../javascript/getLanguagesAcceptLanguage.js | 74 + .../v1-beta/javascript/getLanguagesScope.js | 67 + .../samples/v1-beta/javascript/package.json | 34 + .../samples/v1-beta/javascript/sample.env | 6 + .../samples/v1-beta/javascript/translate.js | 51 + .../v1-beta/javascript/translateAlignments.js | 54 + .../v1-beta/javascript/translateCustom.js | 64 + .../v1-beta/javascript/translateDetection.js | 53 + .../v1-beta/javascript/translateDictionary.js | 58 + .../javascript/translateMultipleSources.js | 58 + .../javascript/translateMultipleTargets.js | 53 + .../javascript/translateNoTranslate.js | 58 + .../v1-beta/javascript/translateProfanity.js | 63 + .../javascript/translateSenteceLength.js | 59 + .../v1-beta/javascript/translateTextType.js | 52 + .../translateWithTransliteration.js | 58 + .../v1-beta/javascript/transliterate.js | 53 + .../samples/v1-beta/typescript/README.md | 115 + .../samples/v1-beta/typescript/package.json | 43 + .../samples/v1-beta/typescript/sample.env | 6 + .../v1-beta/typescript/src/breakSentence.d.ts | 2 + .../typescript/src/breakSentence.d.ts.map | 1 + .../v1-beta/typescript/src/breakSentence.js | 42 + .../typescript/src/breakSentence.js.map | 1 + .../v1-beta/typescript/src/breakSentence.ts | 49 + .../src/breakSentenceWithAutoDetection.d.ts | 2 + .../breakSentenceWithAutoDetection.d.ts.map | 1 + .../src/breakSentenceWithAutoDetection.js | 39 + .../src/breakSentenceWithAutoDetection.js.map | 1 + .../src/breakSentenceWithAutoDetection.ts | 49 + .../typescript/src/dictionaryExamples.d.ts | 2 + .../src/dictionaryExamples.d.ts.map | 1 + .../typescript/src/dictionaryExamples.js | 44 + .../typescript/src/dictionaryExamples.js.map | 1 + .../typescript/src/dictionaryExamples.ts | 57 + .../typescript/src/dictionaryLookup.d.ts | 2 + .../typescript/src/dictionaryLookup.d.ts.map | 1 + .../typescript/src/dictionaryLookup.js | 43 + .../typescript/src/dictionaryLookup.js.map | 1 + .../typescript/src/dictionaryLookup.ts | 54 + .../v1-beta/typescript/src/getLanguages.d.ts | 2 + .../typescript/src/getLanguages.d.ts.map | 1 + .../v1-beta/typescript/src/getLanguages.js | 47 + .../typescript/src/getLanguages.js.map | 1 + .../v1-beta/typescript/src/getLanguages.ts | 61 + .../src/getLanguagesAcceptLanguage.d.ts | 2 + .../src/getLanguagesAcceptLanguage.d.ts.map | 1 + .../src/getLanguagesAcceptLanguage.js | 60 + .../src/getLanguagesAcceptLanguage.js.map | 1 + .../src/getLanguagesAcceptLanguage.ts | 75 + .../typescript/src/getLanguagesScope.d.ts | 2 + .../typescript/src/getLanguagesScope.d.ts.map | 1 + .../typescript/src/getLanguagesScope.js | 53 + .../typescript/src/getLanguagesScope.js.map | 1 + .../typescript/src/getLanguagesScope.ts | 68 + .../v1-beta/typescript/src/translate.d.ts | 2 + .../v1-beta/typescript/src/translate.d.ts.map | 1 + .../v1-beta/typescript/src/translate.js | 43 + .../v1-beta/typescript/src/translate.js.map | 1 + .../v1-beta/typescript/src/translate.ts | 52 + .../typescript/src/translateAlignments.d.ts | 2 + .../src/translateAlignments.d.ts.map | 1 + .../typescript/src/translateAlignments.js | 45 + .../typescript/src/translateAlignments.js.map | 1 + .../typescript/src/translateAlignments.ts | 55 + .../typescript/src/translateCustom.d.ts | 2 + .../typescript/src/translateCustom.d.ts.map | 1 + .../v1-beta/typescript/src/translateCustom.js | 56 + .../typescript/src/translateCustom.js.map | 1 + .../v1-beta/typescript/src/translateCustom.ts | 65 + .../typescript/src/translateDetection.d.ts | 2 + .../src/translateDetection.d.ts.map | 1 + .../typescript/src/translateDetection.js | 43 + .../typescript/src/translateDetection.js.map | 1 + .../typescript/src/translateDetection.ts | 54 + .../typescript/src/translateDictionary.d.ts | 2 + .../src/translateDictionary.d.ts.map | 1 + .../typescript/src/translateDictionary.js | 50 + .../typescript/src/translateDictionary.js.map | 1 + .../typescript/src/translateDictionary.ts | 60 + .../src/translateMultipleSources.d.ts | 2 + .../src/translateMultipleSources.d.ts.map | 1 + .../src/translateMultipleSources.js | 48 + .../src/translateMultipleSources.js.map | 1 + .../src/translateMultipleSources.ts | 59 + .../src/translateMultipleTargets.d.ts | 2 + .../src/translateMultipleTargets.d.ts.map | 1 + .../src/translateMultipleTargets.js | 45 + .../src/translateMultipleTargets.js.map | 1 + .../src/translateMultipleTargets.ts | 54 + .../typescript/src/translateNoTranslate.d.ts | 2 + .../src/translateNoTranslate.d.ts.map | 1 + .../typescript/src/translateNoTranslate.js | 50 + .../src/translateNoTranslate.js.map | 1 + .../typescript/src/translateNoTranslate.ts | 59 + .../typescript/src/translateProfanity.d.ts | 2 + .../src/translateProfanity.d.ts.map | 1 + .../typescript/src/translateProfanity.js | 55 + .../typescript/src/translateProfanity.js.map | 1 + .../typescript/src/translateProfanity.ts | 64 + .../src/translateSenteceLength.d.ts | 2 + .../src/translateSenteceLength.d.ts.map | 1 + .../typescript/src/translateSenteceLength.js | 48 + .../src/translateSenteceLength.js.map | 1 + .../typescript/src/translateSenteceLength.ts | 62 + .../typescript/src/translateTextType.d.ts | 2 + .../typescript/src/translateTextType.d.ts.map | 1 + .../typescript/src/translateTextType.js | 44 + .../typescript/src/translateTextType.js.map | 1 + .../typescript/src/translateTextType.ts | 53 + .../src/translateWithTransliteration.d.ts | 2 + .../src/translateWithTransliteration.d.ts.map | 1 + .../src/translateWithTransliteration.js | 48 + .../src/translateWithTransliteration.js.map | 1 + .../src/translateWithTransliteration.ts | 59 + .../v1-beta/typescript/src/transliterate.d.ts | 2 + .../typescript/src/transliterate.d.ts.map | 1 + .../v1-beta/typescript/src/transliterate.js | 45 + .../typescript/src/transliterate.js.map | 1 + .../v1-beta/typescript/src/transliterate.ts | 54 + .../samples/v1-beta/typescript/tsconfig.json | 17 + .../src/clientDefinitions.d.ts | 45 + .../src/clientDefinitions.d.ts.map | 1 + .../baseline-package/src/clientDefinitions.js | 5 + .../src/clientDefinitions.js.map | 1 + .../baseline-package/src/clientDefinitions.ts | 89 + .../src/custom/authentication.d.ts | 31 + .../src/custom/authentication.d.ts.map | 1 + .../src/custom/authentication.js | 48 + .../src/custom/authentication.js.map | 1 + .../src/custom/authentication.ts | 73 + .../src/custom/customClient.d.ts | 12 + .../src/custom/customClient.d.ts.map | 1 + .../src/custom/customClient.js | 83 + .../src/custom/customClient.js.map | 1 + .../src/custom/customClient.ts | 118 + .../baseline-package/src/index.d.ts | 12 + .../baseline-package/src/index.d.ts.map | 1 + .../baseline-package/src/index.js | 16 + .../baseline-package/src/index.js.map | 1 + .../baseline-package/src/index.ts | 16 + .../baseline-package/src/isUnexpected.d.ts | 8 + .../src/isUnexpected.d.ts.map | 1 + .../baseline-package/src/isUnexpected.js | 77 + .../baseline-package/src/isUnexpected.js.map | 1 + .../baseline-package/src/isUnexpected.ts | 141 + .../baseline-package/src/logger.d.ts | 2 + .../baseline-package/src/logger.d.ts.map | 1 + .../baseline-package/src/logger.js | 8 + .../baseline-package/src/logger.js.map | 1 + .../baseline-package/src/logger.ts | 5 + .../baseline-package/src/models.d.ts | 15 + .../baseline-package/src/models.d.ts.map | 1 + .../baseline-package/src/models.js | 5 + .../baseline-package/src/models.js.map | 1 + .../baseline-package/src/models.ts | 18 + .../baseline-package/src/outputModels.d.ts | 297 ++ .../src/outputModels.d.ts.map | 1 + .../baseline-package/src/outputModels.js | 5 + .../baseline-package/src/outputModels.js.map | 1 + .../baseline-package/src/outputModels.ts | 320 ++ .../baseline-package/src/parameters.d.ts | 238 ++ .../baseline-package/src/parameters.d.ts.map | 1 + .../baseline-package/src/parameters.js | 5 + .../baseline-package/src/parameters.js.map | 1 + .../baseline-package/src/parameters.ts | 292 ++ .../baseline-package/src/responses.d.ts | 138 + .../baseline-package/src/responses.d.ts.map | 1 + .../baseline-package/src/responses.js | 5 + .../baseline-package/src/responses.js.map | 1 + .../baseline-package/src/responses.ts | 172 + .../baseline-package/src/serializeHelper.d.ts | 2 + .../src/serializeHelper.d.ts.map | 1 + .../baseline-package/src/serializeHelper.js | 16 + .../src/serializeHelper.js.map | 1 + .../baseline-package/src/serializeHelper.ts | 13 + .../test/public/breakSentenceTest.spec.d.ts | 2 + .../public/breakSentenceTest.spec.d.ts.map | 1 + .../test/public/breakSentenceTest.spec.js | 91 + .../test/public/breakSentenceTest.spec.js.map | 1 + .../test/public/breakSentenceTest.spec.ts | 113 + .../public/dictionaryExamplesTest.spec.d.ts | 2 + .../dictionaryExamplesTest.spec.d.ts.map | 1 + .../public/dictionaryExamplesTest.spec.js | 57 + .../public/dictionaryExamplesTest.spec.js.map | 1 + .../public/dictionaryExamplesTest.spec.ts | 72 + .../public/dictionaryLookupTest.spec.d.ts | 2 + .../public/dictionaryLookupTest.spec.d.ts.map | 1 + .../test/public/dictionaryLookupTest.spec.js | 54 + .../public/dictionaryLookupTest.spec.js.map | 1 + .../test/public/dictionaryLookupTest.spec.ts | 71 + .../test/public/getLanguagesTest.spec.d.ts | 2 + .../public/getLanguagesTest.spec.d.ts.map | 1 + .../test/public/getLanguagesTest.spec.js | 129 + .../test/public/getLanguagesTest.spec.js.map | 1 + .../test/public/getLanguagesTest.spec.ts | 145 + .../test/public/translateTest.spec.d.ts | 2 + .../test/public/translateTest.spec.d.ts.map | 1 + .../test/public/translateTest.spec.js | 330 ++ .../test/public/translateTest.spec.js.map | 1 + .../test/public/translateTest.spec.ts | 390 ++ .../test/public/transliterateTest.spec.d.ts | 2 + .../public/transliterateTest.spec.d.ts.map | 1 + .../test/public/transliterateTest.spec.js | 91 + .../test/public/transliterateTest.spec.js.map | 1 + .../test/public/transliterateTest.spec.ts | 111 + .../utils/StaticAccessTokenCredential.d.ts | 7 + .../StaticAccessTokenCredential.d.ts.map | 1 + .../utils/StaticAccessTokenCredential.js | 22 + .../utils/StaticAccessTokenCredential.js.map | 1 + .../utils/StaticAccessTokenCredential.ts | 17 + .../test/public/utils/recordedClient.d.ts | 32 + .../test/public/utils/recordedClient.d.ts.map | 1 + .../test/public/utils/recordedClient.js | 125 + .../test/public/utils/recordedClient.js.map | 1 + .../test/public/utils/recordedClient.ts | 158 + .../test/public/utils/testHelper.d.ts | 3 + .../test/public/utils/testHelper.d.ts.map | 1 + .../test/public/utils/testHelper.js | 30 + .../test/public/utils/testHelper.js.map | 1 + .../test/public/utils/testHelper.ts | 29 + .../baseline-package/tests.yml | 15 + .../baseline-package/tsconfig.json | 11 + .../baseline-package/tsp-location.yaml | 3 + .../current-package/CHANGELOG.md | 23 + .../current-package/README.md | 313 ++ .../current-package/api-extractor.json | 31 + .../current-package/assets.json | 6 + .../current-package/estree.d.ts | 2 + .../current-package/estree.d.ts.map | 1 + .../current-package/estree.js | 3 + .../current-package/estree.js.map | 1 + .../current-package/estree.ts | 0 .../current-package/karma.conf.js | 137 + .../current-package/package.json | 125 + .../review/ai-translation-text.api.d.ts | 382 ++ .../review/ai-translation-text.api.d.ts.map | 1 + .../review/ai-translation-text.api.js | 4 + .../review/ai-translation-text.api.js.map | 1 + .../review/ai-translation-text.api.md | 650 ++++ .../review/ai-translation-text.api.ts | 670 ++++ .../current-package/sample.env | 6 + .../samples-dev/breakSentence.d.ts | 2 + .../samples-dev/breakSentence.d.ts.map | 1 + .../samples-dev/breakSentence.js | 42 + .../samples-dev/breakSentence.js.map | 1 + .../samples-dev/breakSentence.ts | 50 + .../breakSentenceWithAutoDetection.d.ts | 2 + .../breakSentenceWithAutoDetection.d.ts.map | 1 + .../breakSentenceWithAutoDetection.js | 39 + .../breakSentenceWithAutoDetection.js.map | 1 + .../breakSentenceWithAutoDetection.ts | 49 + .../samples-dev/dictionaryExamples.d.ts | 2 + .../samples-dev/dictionaryExamples.d.ts.map | 1 + .../samples-dev/dictionaryExamples.js | 44 + .../samples-dev/dictionaryExamples.js.map | 1 + .../samples-dev/dictionaryExamples.ts | 58 + .../samples-dev/dictionaryLookup.d.ts | 2 + .../samples-dev/dictionaryLookup.d.ts.map | 1 + .../samples-dev/dictionaryLookup.js | 43 + .../samples-dev/dictionaryLookup.js.map | 1 + .../samples-dev/dictionaryLookup.ts | 55 + .../samples-dev/getLanguages.d.ts | 2 + .../samples-dev/getLanguages.d.ts.map | 1 + .../samples-dev/getLanguages.js | 47 + .../samples-dev/getLanguages.js.map | 1 + .../samples-dev/getLanguages.ts | 59 + .../getLanguagesAcceptLanguage.d.ts | 2 + .../getLanguagesAcceptLanguage.d.ts.map | 1 + .../samples-dev/getLanguagesAcceptLanguage.js | 60 + .../getLanguagesAcceptLanguage.js.map | 1 + .../samples-dev/getLanguagesAcceptLanguage.ts | 75 + .../samples-dev/getLanguagesScope.d.ts | 2 + .../samples-dev/getLanguagesScope.d.ts.map | 1 + .../samples-dev/getLanguagesScope.js | 53 + .../samples-dev/getLanguagesScope.js.map | 1 + .../samples-dev/getLanguagesScope.ts | 68 + .../samples-dev/translate.d.ts | 2 + .../samples-dev/translate.d.ts.map | 1 + .../current-package/samples-dev/translate.js | 43 + .../samples-dev/translate.js.map | 1 + .../current-package/samples-dev/translate.ts | 53 + .../samples-dev/translateAlignments.d.ts | 2 + .../samples-dev/translateAlignments.d.ts.map | 1 + .../samples-dev/translateAlignments.js | 45 + .../samples-dev/translateAlignments.js.map | 1 + .../samples-dev/translateAlignments.ts | 56 + .../samples-dev/translateCustom.d.ts | 2 + .../samples-dev/translateCustom.d.ts.map | 1 + .../samples-dev/translateCustom.js | 56 + .../samples-dev/translateCustom.js.map | 1 + .../samples-dev/translateCustom.ts | 66 + .../samples-dev/translateDetection.d.ts | 2 + .../samples-dev/translateDetection.d.ts.map | 1 + .../samples-dev/translateDetection.js | 43 + .../samples-dev/translateDetection.js.map | 1 + .../samples-dev/translateDetection.ts | 55 + .../samples-dev/translateDictionary.d.ts | 2 + .../samples-dev/translateDictionary.d.ts.map | 1 + .../samples-dev/translateDictionary.js | 50 + .../samples-dev/translateDictionary.js.map | 1 + .../samples-dev/translateDictionary.ts | 61 + .../samples-dev/translateMultipleSources.d.ts | 2 + .../translateMultipleSources.d.ts.map | 1 + .../samples-dev/translateMultipleSources.js | 48 + .../translateMultipleSources.js.map | 1 + .../samples-dev/translateMultipleSources.ts | 60 + .../samples-dev/translateMultipleTargets.d.ts | 2 + .../translateMultipleTargets.d.ts.map | 1 + .../samples-dev/translateMultipleTargets.js | 45 + .../translateMultipleTargets.js.map | 1 + .../samples-dev/translateMultipleTargets.ts | 55 + .../samples-dev/translateNoTranslate.d.ts | 2 + .../samples-dev/translateNoTranslate.d.ts.map | 1 + .../samples-dev/translateNoTranslate.js | 50 + .../samples-dev/translateNoTranslate.js.map | 1 + .../samples-dev/translateNoTranslate.ts | 60 + .../samples-dev/translateProfanity.d.ts | 2 + .../samples-dev/translateProfanity.d.ts.map | 1 + .../samples-dev/translateProfanity.js | 55 + .../samples-dev/translateProfanity.js.map | 1 + .../samples-dev/translateProfanity.ts | 65 + .../samples-dev/translateSenteceLength.d.ts | 2 + .../translateSenteceLength.d.ts.map | 1 + .../samples-dev/translateSenteceLength.js | 48 + .../samples-dev/translateSenteceLength.js.map | 1 + .../samples-dev/translateSenteceLength.ts | 65 + .../samples-dev/translateTextType.d.ts | 2 + .../samples-dev/translateTextType.d.ts.map | 1 + .../samples-dev/translateTextType.js | 44 + .../samples-dev/translateTextType.js.map | 1 + .../samples-dev/translateTextType.ts | 54 + .../translateWithTransliteration.d.ts | 2 + .../translateWithTransliteration.d.ts.map | 1 + .../translateWithTransliteration.js | 48 + .../translateWithTransliteration.js.map | 1 + .../translateWithTransliteration.ts | 60 + .../samples-dev/transliterate.d.ts | 2 + .../samples-dev/transliterate.d.ts.map | 1 + .../samples-dev/transliterate.js | 45 + .../samples-dev/transliterate.js.map | 1 + .../samples-dev/transliterate.ts | 55 + .../samples/v1-beta/javascript/README.md | 102 + .../v1-beta/javascript/breakSentence.js | 48 + .../breakSentenceWithAutoDetection.js | 47 + .../v1-beta/javascript/dictionaryExamples.js | 56 + .../v1-beta/javascript/dictionaryLookup.js | 53 + .../v1-beta/javascript/getLanguages.js | 61 + .../javascript/getLanguagesAcceptLanguage.js | 74 + .../v1-beta/javascript/getLanguagesScope.js | 67 + .../samples/v1-beta/javascript/package.json | 34 + .../samples/v1-beta/javascript/sample.env | 6 + .../samples/v1-beta/javascript/translate.js | 51 + .../v1-beta/javascript/translateAlignments.js | 54 + .../v1-beta/javascript/translateCustom.js | 64 + .../v1-beta/javascript/translateDetection.js | 53 + .../v1-beta/javascript/translateDictionary.js | 58 + .../javascript/translateMultipleSources.js | 58 + .../javascript/translateMultipleTargets.js | 53 + .../javascript/translateNoTranslate.js | 58 + .../v1-beta/javascript/translateProfanity.js | 63 + .../javascript/translateSenteceLength.js | 59 + .../v1-beta/javascript/translateTextType.js | 52 + .../translateWithTransliteration.js | 58 + .../v1-beta/javascript/transliterate.js | 53 + .../samples/v1-beta/typescript/README.md | 115 + .../samples/v1-beta/typescript/package.json | 43 + .../samples/v1-beta/typescript/sample.env | 6 + .../v1-beta/typescript/src/breakSentence.d.ts | 2 + .../typescript/src/breakSentence.d.ts.map | 1 + .../v1-beta/typescript/src/breakSentence.js | 42 + .../typescript/src/breakSentence.js.map | 1 + .../v1-beta/typescript/src/breakSentence.ts | 49 + .../src/breakSentenceWithAutoDetection.d.ts | 2 + .../breakSentenceWithAutoDetection.d.ts.map | 1 + .../src/breakSentenceWithAutoDetection.js | 39 + .../src/breakSentenceWithAutoDetection.js.map | 1 + .../src/breakSentenceWithAutoDetection.ts | 49 + .../typescript/src/dictionaryExamples.d.ts | 2 + .../src/dictionaryExamples.d.ts.map | 1 + .../typescript/src/dictionaryExamples.js | 44 + .../typescript/src/dictionaryExamples.js.map | 1 + .../typescript/src/dictionaryExamples.ts | 57 + .../typescript/src/dictionaryLookup.d.ts | 2 + .../typescript/src/dictionaryLookup.d.ts.map | 1 + .../typescript/src/dictionaryLookup.js | 43 + .../typescript/src/dictionaryLookup.js.map | 1 + .../typescript/src/dictionaryLookup.ts | 54 + .../v1-beta/typescript/src/getLanguages.d.ts | 2 + .../typescript/src/getLanguages.d.ts.map | 1 + .../v1-beta/typescript/src/getLanguages.js | 47 + .../typescript/src/getLanguages.js.map | 1 + .../v1-beta/typescript/src/getLanguages.ts | 61 + .../src/getLanguagesAcceptLanguage.d.ts | 2 + .../src/getLanguagesAcceptLanguage.d.ts.map | 1 + .../src/getLanguagesAcceptLanguage.js | 60 + .../src/getLanguagesAcceptLanguage.js.map | 1 + .../src/getLanguagesAcceptLanguage.ts | 75 + .../typescript/src/getLanguagesScope.d.ts | 2 + .../typescript/src/getLanguagesScope.d.ts.map | 1 + .../typescript/src/getLanguagesScope.js | 53 + .../typescript/src/getLanguagesScope.js.map | 1 + .../typescript/src/getLanguagesScope.ts | 68 + .../v1-beta/typescript/src/translate.d.ts | 2 + .../v1-beta/typescript/src/translate.d.ts.map | 1 + .../v1-beta/typescript/src/translate.js | 43 + .../v1-beta/typescript/src/translate.js.map | 1 + .../v1-beta/typescript/src/translate.ts | 52 + .../typescript/src/translateAlignments.d.ts | 2 + .../src/translateAlignments.d.ts.map | 1 + .../typescript/src/translateAlignments.js | 45 + .../typescript/src/translateAlignments.js.map | 1 + .../typescript/src/translateAlignments.ts | 55 + .../typescript/src/translateCustom.d.ts | 2 + .../typescript/src/translateCustom.d.ts.map | 1 + .../v1-beta/typescript/src/translateCustom.js | 56 + .../typescript/src/translateCustom.js.map | 1 + .../v1-beta/typescript/src/translateCustom.ts | 65 + .../typescript/src/translateDetection.d.ts | 2 + .../src/translateDetection.d.ts.map | 1 + .../typescript/src/translateDetection.js | 43 + .../typescript/src/translateDetection.js.map | 1 + .../typescript/src/translateDetection.ts | 54 + .../typescript/src/translateDictionary.d.ts | 2 + .../src/translateDictionary.d.ts.map | 1 + .../typescript/src/translateDictionary.js | 50 + .../typescript/src/translateDictionary.js.map | 1 + .../typescript/src/translateDictionary.ts | 60 + .../src/translateMultipleSources.d.ts | 2 + .../src/translateMultipleSources.d.ts.map | 1 + .../src/translateMultipleSources.js | 48 + .../src/translateMultipleSources.js.map | 1 + .../src/translateMultipleSources.ts | 59 + .../src/translateMultipleTargets.d.ts | 2 + .../src/translateMultipleTargets.d.ts.map | 1 + .../src/translateMultipleTargets.js | 45 + .../src/translateMultipleTargets.js.map | 1 + .../src/translateMultipleTargets.ts | 54 + .../typescript/src/translateNoTranslate.d.ts | 2 + .../src/translateNoTranslate.d.ts.map | 1 + .../typescript/src/translateNoTranslate.js | 50 + .../src/translateNoTranslate.js.map | 1 + .../typescript/src/translateNoTranslate.ts | 59 + .../typescript/src/translateProfanity.d.ts | 2 + .../src/translateProfanity.d.ts.map | 1 + .../typescript/src/translateProfanity.js | 55 + .../typescript/src/translateProfanity.js.map | 1 + .../typescript/src/translateProfanity.ts | 64 + .../src/translateSenteceLength.d.ts | 2 + .../src/translateSenteceLength.d.ts.map | 1 + .../typescript/src/translateSenteceLength.js | 48 + .../src/translateSenteceLength.js.map | 1 + .../typescript/src/translateSenteceLength.ts | 62 + .../typescript/src/translateTextType.d.ts | 2 + .../typescript/src/translateTextType.d.ts.map | 1 + .../typescript/src/translateTextType.js | 44 + .../typescript/src/translateTextType.js.map | 1 + .../typescript/src/translateTextType.ts | 53 + .../src/translateWithTransliteration.d.ts | 2 + .../src/translateWithTransliteration.d.ts.map | 1 + .../src/translateWithTransliteration.js | 48 + .../src/translateWithTransliteration.js.map | 1 + .../src/translateWithTransliteration.ts | 59 + .../v1-beta/typescript/src/transliterate.d.ts | 2 + .../typescript/src/transliterate.d.ts.map | 1 + .../v1-beta/typescript/src/transliterate.js | 45 + .../typescript/src/transliterate.js.map | 1 + .../v1-beta/typescript/src/transliterate.ts | 54 + .../samples/v1-beta/typescript/tsconfig.json | 17 + .../src/clientDefinitions.d.ts | 45 + .../src/clientDefinitions.d.ts.map | 1 + .../current-package/src/clientDefinitions.js | 5 + .../src/clientDefinitions.js.map | 1 + .../current-package/src/clientDefinitions.ts | 89 + .../src/custom/authentication.d.ts | 31 + .../src/custom/authentication.d.ts.map | 1 + .../src/custom/authentication.js | 48 + .../src/custom/authentication.js.map | 1 + .../src/custom/authentication.ts | 73 + .../src/custom/customClient.d.ts | 12 + .../src/custom/customClient.d.ts.map | 1 + .../src/custom/customClient.js | 83 + .../src/custom/customClient.js.map | 1 + .../src/custom/customClient.ts | 118 + .../current-package/src/index.d.ts | 12 + .../current-package/src/index.d.ts.map | 1 + .../current-package/src/index.js | 16 + .../current-package/src/index.js.map | 1 + .../current-package/src/index.ts | 16 + .../current-package/src/isUnexpected.d.ts | 8 + .../current-package/src/isUnexpected.d.ts.map | 1 + .../current-package/src/isUnexpected.js | 77 + .../current-package/src/isUnexpected.js.map | 1 + .../current-package/src/isUnexpected.ts | 141 + .../current-package/src/logger.d.ts | 2 + .../current-package/src/logger.d.ts.map | 1 + .../current-package/src/logger.js | 8 + .../current-package/src/logger.js.map | 1 + .../current-package/src/logger.ts | 5 + .../current-package/src/models.d.ts | 15 + .../current-package/src/models.d.ts.map | 1 + .../current-package/src/models.js | 5 + .../current-package/src/models.js.map | 1 + .../current-package/src/models.ts | 18 + .../current-package/src/outputModels.d.ts | 297 ++ .../current-package/src/outputModels.d.ts.map | 1 + .../current-package/src/outputModels.js | 5 + .../current-package/src/outputModels.js.map | 1 + .../current-package/src/outputModels.ts | 320 ++ .../current-package/src/parameters.d.ts | 238 ++ .../current-package/src/parameters.d.ts.map | 1 + .../current-package/src/parameters.js | 5 + .../current-package/src/parameters.js.map | 1 + .../current-package/src/parameters.ts | 292 ++ .../current-package/src/responses.d.ts | 138 + .../current-package/src/responses.d.ts.map | 1 + .../current-package/src/responses.js | 5 + .../current-package/src/responses.js.map | 1 + .../current-package/src/responses.ts | 172 + .../current-package/src/serializeHelper.d.ts | 2 + .../src/serializeHelper.d.ts.map | 1 + .../current-package/src/serializeHelper.js | 16 + .../src/serializeHelper.js.map | 1 + .../current-package/src/serializeHelper.ts | 13 + .../test/public/breakSentenceTest.spec.d.ts | 2 + .../public/breakSentenceTest.spec.d.ts.map | 1 + .../test/public/breakSentenceTest.spec.js | 91 + .../test/public/breakSentenceTest.spec.js.map | 1 + .../test/public/breakSentenceTest.spec.ts | 113 + .../public/dictionaryExamplesTest.spec.d.ts | 2 + .../dictionaryExamplesTest.spec.d.ts.map | 1 + .../public/dictionaryExamplesTest.spec.js | 57 + .../public/dictionaryExamplesTest.spec.js.map | 1 + .../public/dictionaryExamplesTest.spec.ts | 72 + .../public/dictionaryLookupTest.spec.d.ts | 2 + .../public/dictionaryLookupTest.spec.d.ts.map | 1 + .../test/public/dictionaryLookupTest.spec.js | 54 + .../public/dictionaryLookupTest.spec.js.map | 1 + .../test/public/dictionaryLookupTest.spec.ts | 71 + .../test/public/getLanguagesTest.spec.d.ts | 2 + .../public/getLanguagesTest.spec.d.ts.map | 1 + .../test/public/getLanguagesTest.spec.js | 129 + .../test/public/getLanguagesTest.spec.js.map | 1 + .../test/public/getLanguagesTest.spec.ts | 145 + .../test/public/translateTest.spec.d.ts | 2 + .../test/public/translateTest.spec.d.ts.map | 1 + .../test/public/translateTest.spec.js | 330 ++ .../test/public/translateTest.spec.js.map | 1 + .../test/public/translateTest.spec.ts | 390 ++ .../test/public/transliterateTest.spec.d.ts | 2 + .../public/transliterateTest.spec.d.ts.map | 1 + .../test/public/transliterateTest.spec.js | 91 + .../test/public/transliterateTest.spec.js.map | 1 + .../test/public/transliterateTest.spec.ts | 111 + .../utils/StaticAccessTokenCredential.d.ts | 7 + .../StaticAccessTokenCredential.d.ts.map | 1 + .../utils/StaticAccessTokenCredential.js | 22 + .../utils/StaticAccessTokenCredential.js.map | 1 + .../utils/StaticAccessTokenCredential.ts | 17 + .../test/public/utils/recordedClient.d.ts | 32 + .../test/public/utils/recordedClient.d.ts.map | 1 + .../test/public/utils/recordedClient.js | 125 + .../test/public/utils/recordedClient.js.map | 1 + .../test/public/utils/recordedClient.ts | 158 + .../test/public/utils/testHelper.d.ts | 3 + .../test/public/utils/testHelper.d.ts.map | 1 + .../test/public/utils/testHelper.js | 30 + .../test/public/utils/testHelper.js.map | 1 + .../test/public/utils/testHelper.ts | 29 + .../current-package/tests.yml | 15 + .../current-package/tsconfig.json | 16 + .../current-package/tsp-location.yaml | 3 + .../package.json | 70 + .../pnpm-lock.yaml | 3019 ++++++++++++++++ ...-inline-declarations-in-operation-group.ts | 63 + .../src/azure/common/types.ts | 46 + .../src/azure/detect-breaking-changes.ts | 196 + .../rule-sets/rest-level-client-rule-sets.ts | 1 + .../src/azure/utils/azure-rule-utils.ts | 33 + .../src/cli.ts | 34 + .../common/models/rules/rule-descriptions.ts | 7 + .../src/common/models/rules/rule-ids.ts | 1 + .../src/index.ts | 2 + .../src/logging/logger.ts | 24 + .../src/tests/rest-level-client-rule.test.ts | 46 + .../src/utils/ast-utils.ts | 161 + .../src/utils/common-utils.ts | 24 + .../tsconfig.json | 105 + .../vitest.config.ts | 7 + 1279 files changed, 68470 insertions(+), 126 deletions(-) create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintignore create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintrc create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.gitignore create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.hintrc create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.npmrc create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierignore create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierrc create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/CHANGELOG.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/LICENSE create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/_meta.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/api-extractor.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/assets.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/review/arm-networkanalytics.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsAddUserRoleSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCreateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsDeleteSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListByResourceGroupSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListBySubscriptionSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRemoveUserRoleSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRotateKeySample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsUpdateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesCreateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteDataSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesListByDataProductSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesUpdateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/operationsListSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/tsconfig.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/tsconfig.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.eslintrc.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/browser.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/build.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/commonjs.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/esm.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/react-native.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/api-extractor.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/karma.conf.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_create_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_delete_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_get_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_list_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_operation_list_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_create_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_delete_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_get_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_list_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_operation_list_test.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProducts.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProductsCatalogs.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataTypes.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-operations.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-models.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/rollup.config.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.browser.config.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/.eslintrc.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/api-extractor.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/assets.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/karma.conf.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentence.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryExamples.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryLookup.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguages.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesScope.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateAlignments.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateCustom.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDictionary.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleSources.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleTargets.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateNoTranslate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateProfanity.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateSenteceLength.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateTextType.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateWithTransliteration.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/transliterate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/tsconfig.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tests.yml create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsp-location.yaml create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/api-extractor.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/assets.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/karma.conf.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentence.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryExamples.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryLookup.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguages.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesScope.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateAlignments.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateCustom.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDictionary.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleSources.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleTargets.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateNoTranslate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateProfanity.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateSenteceLength.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateTextType.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateWithTransliteration.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/transliterate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/README.md create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/sample.env create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/tsconfig.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js.map create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tests.yml create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsp-location.yaml create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/pnpm-lock.yaml create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/cli.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/index.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/vitest.config.ts diff --git a/tools/js-sdk-release-tools/ci.yml b/tools/js-sdk-release-tools/ci.yml index c6ecef630b6..3ef4028074a 100644 --- a/tools/js-sdk-release-tools/ci.yml +++ b/tools/js-sdk-release-tools/ci.yml @@ -52,28 +52,23 @@ extends: displayName: 'Install Node.js' - script: | - npm install - displayName: 'npm install' + npm install:all + displayName: 'npm install:all' workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: | - npm run build - displayName: 'npm run build' + npm run build:all + displayName: 'npm run build:all' workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: | npm run test displayName: 'npm run test' workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - - - script: | - npm install - displayName: 'npm install' - workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: | - npm pack - displayName: 'npm pack' + npm run pack:all + displayName: 'npm pack:all' workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: 'cp azure-tools-js-sdk-release-tools-*.tgz $(Build.ArtifactStagingDirectory)' diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index 90f9b48812d..0f80baff600 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -8,6 +8,9 @@ "name": "@azure-tools/js-sdk-release-tools", "version": "2.7.11", "license": "MIT", + "workspaces": [ + "workspaces/*" + ], "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", "@ts-common/azure-js-dev-tools": "^21.1.0", @@ -20,7 +23,7 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", - "typescript-codegen-breaking-change-detector": "^0.4.4", + "typescript-codegen-breaking-change-detector": "^0.4.6", "yaml": "^1.10.2" }, "bin": { @@ -31,16 +34,18 @@ "rlc-code-gen": "dist/rlcCodegenCli.js" }, "devDependencies": { + "@rollup/plugin-commonjs": "^26.0.1", "@types/node": "^20.12.12", "@types/shelljs": "^0.8.15", "rimraf": "^3.0.2", - "tsx": "^4.16.3", - "typescript": "^5.4.5", + "tsx": "^4.16.5", + "typescript": "5.5.3", "vitest": "^1.6.0" } }, "../../../../typescript-codegen-breaking-change-detector": { - "version": "0.4.4", + "version": "0.4.5", + "extraneous": true, "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", @@ -76,6 +81,19 @@ "vitest": "^2.0.4" } }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/@azure-tools/openapi-tools-common": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/@azure-tools/openapi-tools-common/-/openapi-tools-common-1.2.2.tgz", @@ -188,6 +206,18 @@ "tslib": "^1.9.3" } }, + "node_modules/@blakeembrey/deque": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/@blakeembrey/deque/-/deque-1.0.5.tgz", + "integrity": "sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==", + "dev": true + }, + "node_modules/@blakeembrey/template": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/@blakeembrey/template/-/template-1.1.0.tgz", + "integrity": "sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==", + "dev": true + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", @@ -579,6 +609,180 @@ "node": ">=12" } }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.11.0", + "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", + "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "peer": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "peer": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "deprecated": "Use @eslint/config-array instead", + "peer": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "peer": true, + "engines": { + "node": ">=12.22" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "peer": true + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmmirror.com/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@jest/schemas": { "version": "29.6.3", "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", @@ -592,12 +796,54 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", "dev": true }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, "node_modules/@kwsites/file-exists": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz", @@ -670,6 +916,164 @@ "ms": "^2.1.1" } }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + } + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "26.0.1", + "resolved": "https://registry.npmmirror.com/@rollup/plugin-commonjs/-/plugin-commonjs-26.0.1.tgz", + "integrity": "sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "glob": "^10.4.1", + "is-reference": "1.2.1", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/@rollup/plugin-commonjs/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmmirror.com/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true + }, + "node_modules/@rollup/plugin-commonjs/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.1.0", + "resolved": "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz", + "integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/pluginutils/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.18.0", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", @@ -985,6 +1389,26 @@ "resolved": "https://registry.npmjs.org/@types/commonmark/-/commonmark-0.27.5.tgz", "integrity": "sha512-vIqgmHyLsc8Or3EWLz6QkhI8/v61FNeH0yxRupA7VqSbA2eFMoHHJAhZSHudplAV89wqg1CKSmShE016ziRXuw==" }, + "node_modules/@types/eslint": { + "version": "8.56.11", + "resolved": "https://registry.npmmirror.com/@types/eslint/-/eslint-8.56.11.tgz", + "integrity": "sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmmirror.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, "node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", @@ -992,6 +1416,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/fs-extra": { + "version": "11.0.4", + "resolved": "https://registry.npmmirror.com/@types/fs-extra/-/fs-extra-11.0.4.tgz", + "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", + "dev": true, + "dependencies": { + "@types/jsonfile": "*", + "@types/node": "*" + } + }, "node_modules/@types/glob": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-8.1.0.tgz", @@ -1006,6 +1440,21 @@ "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.7.tgz", "integrity": "sha512-S6+8JAYTE1qdsc9HMVsfY7+SgSuUU/Tp6TYTmITW0PZxiyIMvol3Gy//y69Wkhs0ti4py5qgR3uZH6uz/DNzJQ==" }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/jsonfile": { + "version": "6.1.4", + "resolved": "https://registry.npmmirror.com/@types/jsonfile/-/jsonfile-6.1.4.tgz", + "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/minimatch": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", @@ -1053,29 +1502,234 @@ "@types/node": "*" } }, - "node_modules/@vitest/expect": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.0.tgz", - "integrity": "sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==", - "dev": true, - "license": "MIT", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", + "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", "dependencies": { - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "chai": "^4.3.10" + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" }, "funding": { - "url": "https://opencollective.com/vitest" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@vitest/expect/node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true, - "license": "MIT", + "node_modules/@typescript-eslint/parser": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-7.18.0.tgz", + "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", + "dependencies": { + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4" + }, "engines": { - "node": "*" + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", + "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", + "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", + "dependencies": { + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-7.18.0.tgz", + "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", + "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-7.18.0.tgz", + "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", + "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "peer": true + }, + "node_modules/@vitest/expect": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.0.tgz", + "integrity": "sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "1.6.0", + "@vitest/utils": "1.6.0", + "chai": "^4.3.10" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/expect/node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" } }, "node_modules/@vitest/expect/node_modules/chai": { @@ -1143,6 +1797,18 @@ "node": "*" } }, + "node_modules/@vitest/pretty-format": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/@vitest/pretty-format/-/pretty-format-2.0.5.tgz", + "integrity": "sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==", + "dev": true, + "dependencies": { + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, "node_modules/@vitest/runner": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.6.0.tgz", @@ -1256,7 +1922,6 @@ "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", - "dev": true, "bin": { "acorn": "bin/acorn" }, @@ -1264,6 +1929,15 @@ "node": ">=0.4.0" } }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "peer": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, "node_modules/acorn-walk": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", @@ -1284,6 +1958,22 @@ "node": ">= 4.0.0" } }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/ansi-regex": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", @@ -1292,6 +1982,33 @@ "node": ">=4" } }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/archiver": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/archiver/-/archiver-3.1.1.tgz", @@ -1356,6 +2073,12 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmmirror.com/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -1377,6 +2100,23 @@ "resolved": "https://registry.npmjs.org/array-timsort/-/array-timsort-1.0.3.tgz", "integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==" }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, "node_modules/async": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", @@ -1403,6 +2143,14 @@ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/atomic-sleep/-/atomic-sleep-1.0.0.tgz", + "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -1421,6 +2169,18 @@ "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-1.4.0.tgz", "integrity": "sha512-l5r9ir56nda3qu14nAXIlyq1MmUSs0meCIaFAh8HwkFwP1F8eToOuS3ah2VAHHcY04jaYD7FpJC5JTXHYRbkzg==" }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", @@ -1525,6 +2285,15 @@ "node": ">=8" } }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "peer": true, + "engines": { + "node": ">=6" + } + }, "node_modules/camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", @@ -1533,6 +2302,71 @@ "node": ">=6" } }, + "node_modules/chai": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/chai/-/chai-5.1.1.tgz", + "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==", + "dev": true, + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "peer": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/check-error": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "dev": true, + "engines": { + "node": ">= 16" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "node_modules/clean-git-ref": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/clean-git-ref/-/clean-git-ref-1.0.3.tgz", @@ -1561,6 +2395,27 @@ "node": ">=0.10.0" } }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmmirror.com/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + }, "node_modules/colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", @@ -1594,6 +2449,14 @@ "node": ">=4.0.0" } }, + "node_modules/commander": { + "version": "12.1.0", + "resolved": "https://registry.npmmirror.com/commander/-/commander-12.1.0.tgz", + "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", + "engines": { + "node": ">=18" + } + }, "node_modules/comment-json": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.2.3.tgz", @@ -1609,6 +2472,12 @@ "node": ">= 6" } }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, "node_modules/commonmark": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.28.1.tgz", @@ -1738,10 +2607,18 @@ "semver": "bin/semver" } }, + "node_modules/dateformat": { + "version": "4.6.3", + "resolved": "https://registry.npmmirror.com/dateformat/-/dateformat-4.6.3.tgz", + "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", + "engines": { + "node": "*" + } + }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.3.6", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", "dependencies": { "ms": "2.1.2" }, @@ -1773,6 +2650,21 @@ "node": ">=8" } }, + "node_modules/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmmirror.com/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "peer": true + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -1807,6 +2699,39 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "peer": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", @@ -1872,18 +2797,366 @@ "@esbuild/win32-x64": "0.20.2" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.0", + "resolved": "https://registry.npmmirror.com/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmmirror.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "5.2.1", + "resolved": "https://registry.npmmirror.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", + "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.9.1" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "peer": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "peer": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "peer": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "peer": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "peer": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "peer": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "peer": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "peer": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "peer": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "peer": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" }, "engines": { "node": ">=4" } }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmmirror.com/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "peer": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "peer": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "peer": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/estree-walker": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", @@ -1894,6 +3167,15 @@ "@types/estree": "^1.0.0" } }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/event-target-shim": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", @@ -1927,6 +3209,23 @@ "node": ">=6" } }, + "node_modules/fast-copy": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/fast-copy/-/fast-copy-3.0.2.tgz", + "integrity": "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "peer": true + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz", @@ -1942,6 +3241,31 @@ "node": ">=8.6.0" } }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "peer": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "peer": true + }, + "node_modules/fast-redact": { + "version": "3.5.0", + "resolved": "https://registry.npmmirror.com/fast-redact/-/fast-redact-3.5.0.tgz", + "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.17.1.tgz", @@ -1950,6 +3274,18 @@ "reusify": "^1.0.4" } }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "peer": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", @@ -1983,46 +3319,159 @@ "node": ">=6" } }, - "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "peer": true, "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" }, "engines": { - "node": ">= 6" + "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/front-matter": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-4.0.2.tgz", - "integrity": "sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==", + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "peer": true + }, + "node_modules/foreground-child": { + "version": "3.2.1", + "resolved": "https://registry.npmmirror.com/foreground-child/-/foreground-child-3.2.1.tgz", + "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==", "dependencies": { - "js-yaml": "^3.13.1" + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/front-matter/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "node_modules/foreground-child/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": ">= 8" } }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" - }, - "node_modules/fs.realpath": { - "version": "1.0.0", + "node_modules/foreground-child/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/front-matter": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-4.0.2.tgz", + "integrity": "sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==", + "dependencies": { + "js-yaml": "^3.13.1" + } + }, + "node_modules/front-matter/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" + }, + "node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, @@ -2122,11 +3571,45 @@ "node": ">= 6" } }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmmirror.com/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "peer": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/globalyzer": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.4.tgz", "integrity": "sha512-LeguVWaxgHN0MNbWC6YljNMzHkrCny9fzjmEUdnF1kQ7wATFD1RHFRqA1qxaX2tgxGENlcxjOflopBwj3YZiXA==" }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmmirror.com/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/globrex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", @@ -2137,6 +3620,11 @@ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" + }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -2148,6 +3636,15 @@ "node": ">= 0.4.0" } }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "peer": true, + "engines": { + "node": ">=8" + } + }, "node_modules/has-own-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-own-prop/-/has-own-prop-2.0.0.tgz", @@ -2156,6 +3653,11 @@ "node": ">=8" } }, + "node_modules/help-me": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/help-me/-/help-me-5.0.0.tgz", + "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==" + }, "node_modules/http-proxy-agent": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz", @@ -2211,6 +3713,21 @@ "node": ">=16.17.0" } }, + "node_modules/husky": { + "version": "9.1.4", + "resolved": "https://registry.npmmirror.com/husky/-/husky-9.1.4.tgz", + "integrity": "sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==", + "dev": true, + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", @@ -2238,6 +3755,31 @@ "node": ">= 4" } }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "peer": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "peer": true, + "engines": { + "node": ">=0.8.19" + } + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -2268,6 +3810,18 @@ "node": ">=4" } }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/is-core-module": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", @@ -2314,6 +3868,24 @@ "node": ">=0.12.0" } }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "dependencies": { + "@types/estree": "*" + } + }, "node_modules/is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -2360,6 +3932,31 @@ "node": ">=7.6.0" } }, + "node_modules/jackspeak": { + "version": "4.0.1", + "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-4.0.1.tgz", + "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/joycon": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/joycon/-/joycon-3.1.1.tgz", + "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", + "engines": { + "node": ">=10" + } + }, "node_modules/js-tokens": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.0.tgz", @@ -2383,6 +3980,44 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "peer": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "peer": true + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "peer": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, "node_modules/lazystream": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", @@ -2432,6 +4067,19 @@ "node": ">=6" } }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/local-pkg": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.0.tgz", @@ -2496,11 +4144,34 @@ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "peer": true + }, "node_modules/lodash.union": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==" }, + "node_modules/loupe": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/loupe/-/loupe-3.1.1.tgz", + "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.1" + } + }, + "node_modules/lru-cache": { + "version": "11.0.0", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-11.0.0.tgz", + "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", + "engines": { + "node": "20 || >=22" + } + }, "node_modules/macos-release": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.1.tgz", @@ -2533,6 +4204,17 @@ "node": ">=6" } }, + "node_modules/marked": { + "version": "13.0.3", + "resolved": "https://registry.npmmirror.com/marked/-/marked-13.0.3.tgz", + "integrity": "sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 18" + } + }, "node_modules/marky": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.5.tgz", @@ -2661,6 +4343,14 @@ "minimist": "^1.2.5" } }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/mkdirp": { "version": "3.0.1", "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-3.0.1.tgz", @@ -2712,6 +4402,11 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + }, "node_modules/nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", @@ -2763,6 +4458,14 @@ "node": ">=0.10.0" } }, + "node_modules/on-exit-leak-free": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", + "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -2771,45 +4474,139 @@ "wrappy": "1" } }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "node_modules/onchange": { + "version": "7.1.0", + "resolved": "https://registry.npmmirror.com/onchange/-/onchange-7.1.0.tgz", + "integrity": "sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==", "dev": true, - "license": "MIT", "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" + "@blakeembrey/deque": "^1.0.5", + "@blakeembrey/template": "^1.0.0", + "arg": "^4.1.3", + "chokidar": "^3.3.1", + "cross-spawn": "^7.0.1", + "ignore": "^5.1.4", + "tree-kill": "^1.2.2" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bin": { + "onchange": "dist/bin.js" } }, - "node_modules/os-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "node_modules/onchange/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "dependencies": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": ">=6" + "node": ">= 8" } }, - "node_modules/os-name": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", - "integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==", - "dependencies": { - "macos-release": "^2.2.0", - "windows-release": "^3.1.0" - }, + "node_modules/onchange/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, "engines": { - "node": ">=6" + "node": ">=8" + } + }, + "node_modules/onchange/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/onchange/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/onchange/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "peer": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/os-locale": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", + "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "dependencies": { + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/os-name": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", + "integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==", + "dependencies": { + "macos-release": "^2.2.0", + "windows-release": "^3.1.0" + }, + "engines": { + "node": ">=6" } }, "node_modules/p-defer": { @@ -2869,11 +4666,28 @@ "node": ">=6" } }, + "node_modules/package-json-from-dist": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", + "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" + }, "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "peer": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/parse-ts-to-ast": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/parse-ts-to-ast/-/parse-ts-to-ast-0.1.3.tgz", @@ -2931,6 +4745,29 @@ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, + "node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "engines": { + "node": ">=8" + } + }, "node_modules/pathe": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", @@ -2938,6 +4775,15 @@ "dev": true, "license": "MIT" }, + "node_modules/pathval": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/pathval/-/pathval-2.0.0.tgz", + "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", + "dev": true, + "engines": { + "node": ">= 14.16" + } + }, "node_modules/picocolors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", @@ -2964,6 +4810,179 @@ "node": ">=6" } }, + "node_modules/pino": { + "version": "9.3.2", + "resolved": "https://registry.npmmirror.com/pino/-/pino-9.3.2.tgz", + "integrity": "sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==", + "dependencies": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.1.1", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.2.0", + "pino-std-serializers": "^7.0.0", + "process-warning": "^4.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.2.0", + "safe-stable-stringify": "^2.3.1", + "sonic-boom": "^4.0.1", + "thread-stream": "^3.0.0" + }, + "bin": { + "pino": "bin.js" + } + }, + "node_modules/pino-abstract-transport": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", + "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", + "dependencies": { + "readable-stream": "^4.0.0", + "split2": "^4.0.0" + } + }, + "node_modules/pino-abstract-transport/node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/pino-abstract-transport/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/pino-abstract-transport/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/pino-pretty": { + "version": "11.2.2", + "resolved": "https://registry.npmmirror.com/pino-pretty/-/pino-pretty-11.2.2.tgz", + "integrity": "sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==", + "dependencies": { + "colorette": "^2.0.7", + "dateformat": "^4.6.3", + "fast-copy": "^3.0.2", + "fast-safe-stringify": "^2.1.1", + "help-me": "^5.0.0", + "joycon": "^3.1.1", + "minimist": "^1.2.6", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.0.0", + "pump": "^3.0.0", + "readable-stream": "^4.0.0", + "secure-json-parse": "^2.4.0", + "sonic-boom": "^4.0.1", + "strip-json-comments": "^3.1.1" + }, + "bin": { + "pino-pretty": "bin.js" + } + }, + "node_modules/pino-pretty/node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/pino-pretty/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/pino-pretty/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/pino-std-serializers": { + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz", + "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==" + }, "node_modules/pkg-types": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.1.tgz", @@ -3005,6 +5024,42 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.3.2", + "resolved": "https://registry.npmmirror.com/prettier/-/prettier-3.3.2.tgz", + "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/pretty-format": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", @@ -3033,11 +5088,24 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmmirror.com/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, + "node_modules/process-warning": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/process-warning/-/process-warning-4.0.0.tgz", + "integrity": "sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==" + }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -3047,6 +5115,15 @@ "once": "^1.3.1" } }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "peer": true, + "engines": { + "node": ">=6" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -3066,6 +5143,11 @@ } ] }, + "node_modules/quick-format-unescaped": { + "version": "4.0.4", + "resolved": "https://registry.npmmirror.com/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" + }, "node_modules/react-is": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", @@ -3086,6 +5168,26 @@ "node": ">= 6" } }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/real-require": { + "version": "0.2.0", + "resolved": "https://registry.npmmirror.com/real-require/-/real-require-0.2.0.tgz", + "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", + "engines": { + "node": ">= 12.13.0" + } + }, "node_modules/rechoir": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", @@ -3134,6 +5236,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "peer": true, + "engines": { + "node": ">=4" + } + }, "node_modules/resolve-pkg-maps": { "version": "1.0.0", "resolved": "https://registry.npmmirror.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", @@ -3164,7 +5275,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, "dependencies": { "glob": "^7.1.3" }, @@ -3252,11 +5362,24 @@ } ] }, + "node_modules/safe-stable-stringify": { + "version": "2.4.3", + "resolved": "https://registry.npmmirror.com/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", + "engines": { + "node": ">=10" + } + }, "node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, + "node_modules/secure-json-parse": { + "version": "2.7.0", + "resolved": "https://registry.npmmirror.com/secure-json-parse/-/secure-json-parse-2.7.0.tgz", + "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" + }, "node_modules/semver": { "version": "7.6.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", @@ -3375,16 +5498,40 @@ "url": "https://github.com/steveukx/git-js?sponsor=1" } }, - "node_modules/source-map-js": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", - "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", - "dev": true, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/sonic-boom": { + "version": "4.0.1", + "resolved": "https://registry.npmmirror.com/sonic-boom/-/sonic-boom-4.0.1.tgz", + "integrity": "sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==", + "dependencies": { + "atomic-sleep": "^1.0.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmmirror.com/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -3424,6 +5571,47 @@ "node": ">=4" } }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/string.prototype.repeat": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", @@ -3440,6 +5628,26 @@ "node": ">=4" } }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, "node_modules/strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", @@ -3461,6 +5669,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/strip-literal": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.0.tgz", @@ -3474,6 +5693,18 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", @@ -3485,6 +5716,28 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/synckit": { + "version": "0.9.1", + "resolved": "https://registry.npmmirror.com/synckit/-/synckit-0.9.1.tgz", + "integrity": "sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/synckit/node_modules/tslib": { + "version": "2.6.3", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", + "dev": true + }, "node_modules/tar-stream": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", @@ -3500,6 +5753,20 @@ "node": ">=6" } }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "peer": true + }, + "node_modules/thread-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/thread-stream/-/thread-stream-3.1.0.tgz", + "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", + "dependencies": { + "real-require": "^0.2.0" + } + }, "node_modules/tinybench": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.8.0.tgz", @@ -3517,6 +5784,15 @@ "node": ">=14.0.0" } }, + "node_modules/tinyrainbow": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/tinyrainbow/-/tinyrainbow-1.2.0.tgz", + "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/tinyspy": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz", @@ -3548,6 +5824,26 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true, + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/ts-api-utils": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/ts-morph": { "version": "23.0.0", "resolved": "https://registry.npmmirror.com/ts-morph/-/ts-morph-23.0.0.tgz", @@ -3563,9 +5859,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/tsx": { - "version": "4.16.3", - "resolved": "https://registry.npmmirror.com/tsx/-/tsx-4.16.3.tgz", - "integrity": "sha512-MP8AEUxVnboD2rCC6kDLxnpDBNWN9k3BSVU/0/nNxgm70bPBnfn+yCKcnOsIVPQwdkbKYoFOlKjjWZWJ2XCXUg==", + "version": "4.16.5", + "resolved": "https://registry.npmmirror.com/tsx/-/tsx-4.16.5.tgz", + "integrity": "sha512-ArsiAQHEW2iGaqZ8fTA1nX0a+lN5mNTyuGRRO6OW3H/Yno1y9/t1f9YOI1Cfoqz63VAthn++ZYcbDP7jPflc+A==", "dev": true, "dependencies": { "esbuild": "~0.21.5", @@ -3995,6 +6291,18 @@ "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -4005,11 +6313,22 @@ "node": ">=4" } }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/typescript": { "version": "5.5.3", "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.5.3.tgz", "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", - "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -4019,9 +6338,34 @@ } }, "node_modules/typescript-codegen-breaking-change-detector": { - "resolved": "../../../../typescript-codegen-breaking-change-detector", + "resolved": "workspaces/typescript-codegen-breaking-change-detector", "link": true }, + "node_modules/typescript-eslint": { + "version": "7.18.0", + "resolved": "https://registry.npmmirror.com/typescript-eslint/-/typescript-eslint-7.18.0.tgz", + "integrity": "sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==", + "dependencies": { + "@typescript-eslint/eslint-plugin": "7.18.0", + "@typescript-eslint/parser": "7.18.0", + "@typescript-eslint/utils": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "node_modules/typical": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", @@ -4050,6 +6394,23 @@ "os-name": "^3.0.0" } }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "peer": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, "node_modules/url-template": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz", @@ -4480,11 +6841,10 @@ "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" }, "node_modules/why-is-node-running": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.2.2.tgz", - "integrity": "sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==", + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", "dev": true, - "license": "MIT", "dependencies": { "siginfo": "^2.0.0", "stackback": "0.0.2" @@ -4510,6 +6870,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/wrap-ansi": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", @@ -4522,6 +6891,63 @@ "node": ">=0.10.0" } }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/wrap-ansi/node_modules/ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", @@ -4619,6 +7045,18 @@ "decamelize": "^1.2.0" } }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/zip-stream": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-2.1.3.tgz", @@ -4631,6 +7069,530 @@ "engines": { "node": ">= 6" } + }, + "packages/typescript-codegen-breaking-change-detector": { + "version": "0.4.6", + "extraneous": true, + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" + }, + "devDependencies": { + "@rollup/plugin-commonjs": "^26.0.1", + "@types/eslint": "^8.56.10", + "@types/eslint-scope": "^3.7.7", + "@types/fs-extra": "^11.0.4", + "@typescript-eslint/eslint-plugin": "^7.17.0", + "@typescript-eslint/parser": "^7.17.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "husky": "^9.0.11", + "onchange": "^7.1.0", + "prettier": "3.3.2", + "rimraf": "^5.0.7", + "tsx": "^4.16.2", + "vitest": "^2.0.4" + } + }, + "workspaces/typescript-codegen-breaking-change-detector": { + "version": "0.4.6", + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" + }, + "devDependencies": { + "@rollup/plugin-commonjs": "^26.0.1", + "@types/eslint": "^8.56.10", + "@types/eslint-scope": "^3.7.7", + "@types/fs-extra": "^11.0.4", + "@typescript-eslint/eslint-plugin": "^7.17.0", + "@typescript-eslint/parser": "^7.17.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "husky": "^9.0.11", + "onchange": "^7.1.0", + "prettier": "3.3.2", + "rimraf": "^5.0.7", + "tsx": "^4.16.2", + "vitest": "^2.0.4" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/expect": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/@vitest/expect/-/expect-2.0.5.tgz", + "integrity": "sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==", + "dev": true, + "dependencies": { + "@vitest/spy": "2.0.5", + "@vitest/utils": "2.0.5", + "chai": "^5.1.1", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/runner": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/@vitest/runner/-/runner-2.0.5.tgz", + "integrity": "sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==", + "dev": true, + "dependencies": { + "@vitest/utils": "2.0.5", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/snapshot": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/@vitest/snapshot/-/snapshot-2.0.5.tgz", + "integrity": "sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==", + "dev": true, + "dependencies": { + "@vitest/pretty-format": "2.0.5", + "magic-string": "^0.30.10", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/spy": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/@vitest/spy/-/spy-2.0.5.tgz", + "integrity": "sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==", + "dev": true, + "dependencies": { + "tinyspy": "^3.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/utils": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/@vitest/utils/-/utils-2.0.5.tgz", + "integrity": "sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==", + "dev": true, + "dependencies": { + "@vitest/pretty-format": "2.0.5", + "estree-walker": "^3.0.3", + "loupe": "^3.1.1", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmmirror.com/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmmirror.com/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/glob": { + "version": "11.0.0", + "resolved": "https://registry.npmmirror.com/glob/-/glob-11.0.0.tgz", + "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/minimatch": { + "version": "10.0.1", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmmirror.com/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf": { + "version": "5.0.10", + "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-5.0.10.tgz", + "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", + "dev": true, + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmmirror.com/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinypool": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/tinypool/-/tinypool-1.0.0.tgz", + "integrity": "sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==", + "dev": true, + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinyspy": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/tinyspy/-/tinyspy-3.0.0.tgz", + "integrity": "sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite-node": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/vite-node/-/vite-node-2.0.5.tgz", + "integrity": "sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==", + "dev": true, + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.3.5", + "pathe": "^1.1.2", + "tinyrainbow": "^1.2.0", + "vite": "^5.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/vitest": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/vitest/-/vitest-2.0.5.tgz", + "integrity": "sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.3.0", + "@vitest/expect": "2.0.5", + "@vitest/pretty-format": "^2.0.5", + "@vitest/runner": "2.0.5", + "@vitest/snapshot": "2.0.5", + "@vitest/spy": "2.0.5", + "@vitest/utils": "2.0.5", + "chai": "^5.1.1", + "debug": "^4.3.5", + "execa": "^8.0.1", + "magic-string": "^0.30.10", + "pathe": "^1.1.2", + "std-env": "^3.7.0", + "tinybench": "^2.8.0", + "tinypool": "^1.0.0", + "tinyrainbow": "^1.2.0", + "vite": "^5.0.0", + "vite-node": "2.0.5", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/node": "^18.0.0 || >=20.0.0", + "@vitest/browser": "2.0.5", + "@vitest/ui": "2.0.5", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } } } } diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index 7d8afdbc618..73e58fad75a 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -2,7 +2,14 @@ "name": "@azure-tools/js-sdk-release-tools", "version": "2.7.11", "description": "", + "workspaces": [ + "workspaces/*" + ], "scripts": { + "install:all": "npm install --workspaces && npm install", + "build:all": "npm run build --workspaces && npm run build", + "pack:all": "npm run pack:typescript-codegen-breaking-change-detector && npm pack", + "pack:typescript-codegen-breaking-change-detector": "cd workspaces/typescript-codegen-breaking-change-detector && npm pack && cd ../..", "dev": "tsx watch src/changelogToolCli.ts", "start": "node dist/changelogToolCli.js", "debug": "node --inspect-brk dist/changelogToolCli.js", @@ -33,15 +40,15 @@ "shelljs": "^0.8.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", - "typescript-codegen-breaking-change-detector": "^0.4.5", + "typescript-codegen-breaking-change-detector": "^0.4.6", "yaml": "^1.10.2" }, "devDependencies": { "@types/node": "^20.12.12", "@types/shelljs": "^0.8.15", "rimraf": "^3.0.2", - "tsx": "^4.16.3", - "typescript": "^5.4.5", + "tsx": "^4.16.5", + "typescript": "5.5.3", "vitest": "^1.6.0" } } diff --git a/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts b/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts index 3f764b3bc33..269673c8f41 100644 --- a/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts +++ b/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts @@ -3,7 +3,6 @@ import { extractExportAndGenerateChangelog } from "../../changelog/extractMetaDa import path, { join } from "path"; import { SDKType } from "../../common/types"; import { describe } from "node:test"; -import { mkdirSync } from "node:fs"; import { tryReadNpmPackageChangelog } from "../../common/utils"; import { rmdirSync, writeFileSync } from "fs"; @@ -34,10 +33,10 @@ describe("Breaking change detection", () => { expect(changelog.addedOperation.length).toBe(1); expect(changelog.removedOperation.length).toBe(1); - expect(changelog.addedOperation[0]).toBe( + expect(changelog.addedOperation[0].line).toBe( "Added operation DataProductsCatalogsOperations.listByResourceGroup_NEW" ); - expect(changelog.removedOperation[0]).toBe( + expect(changelog.removedOperation[0].line).toBe( "Removed operation DataProductsCatalogs.listByResourceGroup" ); }); @@ -64,10 +63,10 @@ describe("Breaking change detection", () => { expect(changelog.addedOperation.length).toBe(1); expect(changelog.removedOperation.length).toBe(1); - expect(changelog.addedOperation[0]).toBe( + expect(changelog.addedOperation[0].line).toBe( "Added operation DataProductsCatalogs.get_NEW" ); - expect(changelog.removedOperation[0]).toBe( + expect(changelog.removedOperation[0].line).toBe( "Removed operation DataProductsCatalogs.get" ); }); @@ -94,10 +93,10 @@ describe("Breaking change detection", () => { expect(changelog.addedOperation.length).toBe(1); expect(changelog.removedOperation.length).toBe(1); - expect(changelog.addedOperation[0]).toBe( + expect(changelog.addedOperation[0].line).toBe( "Added operation DataProductsCatalogsOperations.listByResourceGroup_NEW" ); - expect(changelog.removedOperation[0]).toBe( + expect(changelog.removedOperation[0].line).toBe( "Removed operation DataProductsCatalogsOperations.listByResourceGroup" ); }); diff --git a/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts b/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts index 3daacb7a669..02e9981262f 100644 --- a/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts +++ b/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts @@ -1,7 +1,7 @@ import { readFileSync } from "node:fs"; import { getTsSourceFile } from "../../common/utils"; import { ApiVersionType } from "../../common/types"; -import * as ts from "typescript"; +import ts from "typescript"; import path from "node:path"; import shell from "shelljs"; diff --git a/tools/js-sdk-release-tools/tsconfig.json b/tools/js-sdk-release-tools/tsconfig.json index 4342ba9833e..0a04df0e255 100644 --- a/tools/js-sdk-release-tools/tsconfig.json +++ b/tools/js-sdk-release-tools/tsconfig.json @@ -67,5 +67,6 @@ "skipLibCheck": true /* Skip type checking of declaration files. */, "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ }, - "exclude": ["src/test/**/testCases/**", "vitest.config.ts"] + "exclude": ["src/test/**/testCases/**", "vitest.config.ts"], + "include": ["src/**/*"] } diff --git a/tools/js-sdk-release-tools/vitest.config.ts b/tools/js-sdk-release-tools/vitest.config.ts index bf39de39012..f251ef6db1d 100644 --- a/tools/js-sdk-release-tools/vitest.config.ts +++ b/tools/js-sdk-release-tools/vitest.config.ts @@ -2,6 +2,12 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { - exclude: ["src/test/testCases/**", "dist/**", "node_modules/**"], + exclude: [ + "src/test/testCases/**", + "dist/**", + "**/node_modules/**", + "**/misc/**", + "workspaces/**/dist/**", + ], }, }); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintignore b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintignore new file mode 100644 index 00000000000..29ed9f2e097 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintignore @@ -0,0 +1,4 @@ +node_modules +build +coverage +src/tests/e2e/cases diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintrc b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintrc new file mode 100644 index 00000000000..c1203214a43 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintrc @@ -0,0 +1,17 @@ +{ + "root": true, + "parser": "@typescript-eslint/parser", + "plugins": [ + "@typescript-eslint", + "prettier" + ], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "prettier" + ], + "rules": { + "prettier/prettier": 2 + } + } \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.gitignore b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.gitignore new file mode 100644 index 00000000000..9811acf3314 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.gitignore @@ -0,0 +1,132 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +.tmp/ diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.hintrc b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.hintrc new file mode 100644 index 00000000000..aa8de6b4ec9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.hintrc @@ -0,0 +1,5 @@ +{ + "extends": [ + "development" + ] +} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.npmrc b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.npmrc new file mode 100644 index 00000000000..5660f81af2f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.org/ \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierignore b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierignore new file mode 100644 index 00000000000..29ed9f2e097 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierignore @@ -0,0 +1,4 @@ +node_modules +build +coverage +src/tests/e2e/cases diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierrc b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierrc new file mode 100644 index 00000000000..def018c4de5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierrc @@ -0,0 +1,9 @@ +{ + "arrowParens": "always", + "semi": true, + "endOfLine": "lf", + "tabWidth": 2, + "trailingComma": "es5", + "singleQuote": true, + "printWidth": 120 +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/README.md new file mode 100644 index 00000000000..1712a2f3e4f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/README.md @@ -0,0 +1,11 @@ +# typescript-codegen-breaking-change-detector + +> 🏗 Work in progress... + +Detect breaking changes to your TypeScript client generated by open api, typespec and more... + +## Contribution + +### sort-imports + +Install `amatiasq.sort-imports` VS code extension to sort imports automatically. diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md new file mode 100644 index 00000000000..b8480de5b68 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md @@ -0,0 +1,20 @@ +# Azure REST Level Breaking Change Rules + +## Special Rule Set + +Special rule set for Azure REST level client: [rule set](../src/azure/rule-sets/rest-level-client-rule-sets.ts). + +### Non-Breaking Changes + +- Operation name changes: [rule](../src/azure/common/rules/ignore-operation-interface-name-changes.ts) +- Request parameter model name changes: [rule](../src/azure/common/rules/ignore-request-parameter-model-name-changes.ts) +- Response model name changes: +- + +### Breaking Changes + +- Path value changes + +### TODO + +- Request parameter type changes with content type diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/CHANGELOG.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/CHANGELOG.md new file mode 100644 index 00000000000..251a177cd7f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/CHANGELOG.md @@ -0,0 +1,15 @@ +# Release History + +## 1.0.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + +## 1.0.0 (2024-01-24) + +The package of @azure/arm-networkanalytics is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/LICENSE b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/LICENSE new file mode 100644 index 00000000000..7d593474096 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2024 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/README.md new file mode 100644 index 00000000000..167fd7f74c1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/README.md @@ -0,0 +1,109 @@ +# Azure MicrosoftNetworkAnalytics client library for JavaScript + +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure MicrosoftNetworkAnalytics client. + + + +[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics) | +[Package (NPM)](https://www.npmjs.com/package/@azure/arm-networkanalytics) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics) | +[Samples](https://github.com/Azure-Samples/azure-samples-js-management) + +## Getting started + +### Currently supported environments + +- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) +- Latest versions of Safari, Chrome, Edge and Firefox. + +See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. + +### Prerequisites + +- An [Azure subscription][azure_sub]. + +### Install the `@azure/arm-networkanalytics` package + +Install the Azure MicrosoftNetworkAnalytics client library for JavaScript with `npm`: + +```bash +npm install @azure/arm-networkanalytics +``` + +### Create and authenticate a `MicrosoftNetworkAnalytics` + +To create a client object to access the Azure MicrosoftNetworkAnalytics API, you will need the `endpoint` of your Azure MicrosoftNetworkAnalytics resource and a `credential`. The Azure MicrosoftNetworkAnalytics client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure MicrosoftNetworkAnalytics resource in the [Azure Portal][azure_portal]. + +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). + +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: + +```bash +npm install @azure/identity +``` + +You will also need to **register a new AAD application and grant access to Azure MicrosoftNetworkAnalytics** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. + +For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). + +```javascript +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. + +const subscriptionId = "00000000-0000-0000-0000-000000000000"; +const client = new MicrosoftNetworkAnalytics(new DefaultAzureCredential(), subscriptionId); + +// For client-side applications running in the browser, use this code instead: +// const credential = new InteractiveBrowserCredential({ +// tenantId: "", +// clientId: "" +// }); +// const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); +``` + + +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + +## Key concepts + +### MicrosoftNetworkAnalytics + +`MicrosoftNetworkAnalytics` is the primary interface for developers using the Azure MicrosoftNetworkAnalytics client library. Explore the methods on this client object to understand the different features of the Azure MicrosoftNetworkAnalytics service that you can access. + +## Troubleshooting + +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +const { setLogLevel } = require("@azure/logger"); +setLogLevel("info"); +``` + +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). + +## Next steps + +Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. + +## Contributing + +If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. + +## Related projects + +- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fnetworkanalytics%2Farm-networkanalytics%2FREADME.png) + +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_sub]: https://azure.microsoft.com/free/ +[azure_sub]: https://azure.microsoft.com/free/ +[azure_portal]: https://portal.azure.com +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/_meta.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/_meta.json new file mode 100644 index 00000000000..eea27338d3d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/_meta.json @@ -0,0 +1,8 @@ +{ + "commit": "21a8d55d74e4425e96d76e5835f52cfc9eb95a22", + "readme": "specification/networkanalytics/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\networkanalytics\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true --modelerfour.flatten-models=false", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.13" +} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/api-extractor.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/api-extractor.json new file mode 100644 index 00000000000..15f6114f905 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/api-extractor.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/arm-networkanalytics.d.ts" + }, + "messages": { + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, + "extractorMessageReporting": { + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } + } + } +} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/assets.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/assets.json new file mode 100644 index 00000000000..43db5b65016 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "js", + "TagPrefix": "js/networkanalytics/arm-networkanalytics", + "Tag": "js/networkanalytics/arm-networkanalytics_2e82fc2960" +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/package.json new file mode 100644 index 00000000000..72c24c7e2bf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/package.json @@ -0,0 +1,118 @@ +{ + "name": "@azure/arm-networkanalytics", + "sdk-type": "mgmt", + "author": "Microsoft Corporation", + "description": "A generated SDK for MicrosoftNetworkAnalytics.", + "version": "1.0.1", + "engines": { + "node": ">=18.0.0" + }, + "dependencies": { + "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^1.0.0", + "@azure/core-paging": "^1.2.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-rest-pipeline": "^1.12.0", + "tslib": "^2.2.0" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/arm-networkanalytics.d.ts", + "devDependencies": { + "@microsoft/api-extractor": "^7.31.1", + "mkdirp": "^3.0.1", + "typescript": "~5.4.5", + "uglify-js": "^3.4.9", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/identity": "^4.0.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.0.0", + "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/Azure/azure-sdk-for-js.git" + }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "dist-esm/**/*.js", + "dist-esm/**/*.js.map", + "dist-esm/**/*.d.ts", + "dist-esm/**/*.d.ts.map", + "src/**/*.ts", + "README.md", + "LICENSE", + "tsconfig.json", + "review/*", + "CHANGELOG.md", + "types/*" + ], + "scripts": { + "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "audit": "echo skipped", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "build:node": "echo skipped", + "build:browser": "echo skipped", + "build:test": "echo skipped", + "build:samples": "echo skipped.", + "check-format": "echo skipped", + "execute:samples": "echo skipped", + "format": "echo skipped", + "test": "npm run integration-test", + "test:node": "echo skipped", + "test:browser": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" + }, + "sideEffects": false, + "//metadata": { + "constantPaths": [ + { + "path": "src/microsoftNetworkAnalytics.ts", + "prefix": "packageDetails" + } + ] + }, + "autoPublish": true, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics", + "//sampleConfiguration": { + "productName": "", + "productSlugs": [ + "azure" + ], + "disableDocsMs": true, + "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics?view=azure-node-preview" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/review/arm-networkanalytics.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/review/arm-networkanalytics.api.md new file mode 100644 index 00000000000..b9ee3e1bf0a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/review/arm-networkanalytics.api.md @@ -0,0 +1,761 @@ +## API Report File for "@azure/arm-networkanalytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import * as coreAuth from '@azure/core-auth'; +import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { SimplePollerLike } from '@azure/core-lro'; + +// @public +export interface AccountSas { + expiryTimeStamp: Date; + ipAddress: string; + startTimeStamp: Date; +} + +// @public +export interface AccountSasToken { + storageAccountSasToken: string; +} + +// @public +export type ActionType = string; + +// @public +export type Bypass = string; + +// @public +export interface ConsumptionEndpointsProperties { + readonly fileAccessResourceId?: string; + readonly fileAccessUrl?: string; + readonly ingestionResourceId?: string; + readonly ingestionUrl?: string; + readonly queryResourceId?: string; + readonly queryUrl?: string; +} + +// @public +export interface ContainerSaS { + expiryTimeStamp: Date; + ipAddress: string; + startTimeStamp: Date; +} + +// @public +export interface ContainerSasToken { + storageContainerSasToken: string; +} + +// @public +export type ControlState = string; + +// @public +export type CreatedByType = string; + +// @public +export interface DataProduct extends TrackedResource { + identity?: ManagedServiceIdentity; + properties?: DataProductProperties; +} + +// @public +export interface DataProductInformation { + dataProductName: string; + dataProductVersions: DataProductVersion[]; + description: string; +} + +// @public +export interface DataProductListResult { + nextLink?: string; + value: DataProduct[]; +} + +// @public +export interface DataProductNetworkAcls { + allowedQueryIpRangeList: string[]; + defaultAction: DefaultAction; + ipRules: IPRules[]; + virtualNetworkRule: VirtualNetworkRule[]; +} + +// @public +export interface DataProductProperties { + readonly availableMinorVersions?: string[]; + readonly consumptionEndpoints?: ConsumptionEndpointsProperties; + currentMinorVersion?: string; + customerEncryptionKey?: EncryptionKeyDetails; + customerManagedKeyEncryptionEnabled?: ControlState; + readonly documentation?: string; + readonly keyVaultUrl?: string; + majorVersion: string; + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + networkacls?: DataProductNetworkAcls; + owners?: string[]; + privateLinksEnabled?: ControlState; + product: string; + readonly provisioningState?: ProvisioningState; + publicNetworkAccess?: ControlState; + publisher: string; + purviewAccount?: string; + purviewCollection?: string; + redundancy?: ControlState; + readonly resourceGuid?: string; +} + +// @public +export interface DataProducts { + addUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): Promise; + beginCreate(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise, DataProductsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise, DataProductsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise, DataProductsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise; + generateStorageAccountSasToken(resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; + get(resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listRolesAssignments(resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; + removeUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): Promise; + rotateKey(resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): Promise; +} + +// @public +export interface DataProductsAddUserRoleOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsAddUserRoleResponse = RoleAssignmentDetail; + +// @public +export interface DataProductsCatalog extends ProxyResource { + properties?: DataProductsCatalogProperties; +} + +// @public +export interface DataProductsCatalogListResult { + nextLink?: string; + value: DataProductsCatalog[]; +} + +// @public +export interface DataProductsCatalogProperties { + readonly provisioningState?: ProvisioningState; + publishers: PublisherInformation[]; +} + +// @public +export interface DataProductsCatalogs { + get(resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DataProductsCatalogsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsCatalogsGetResponse = DataProductsCatalog; + +// @public +export interface DataProductsCatalogsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsCatalogsListByResourceGroupNextResponse = DataProductsCatalogListResult; + +// @public +export interface DataProductsCatalogsListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsCatalogsListByResourceGroupResponse = DataProductsCatalogListResult; + +// @public +export interface DataProductsCatalogsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsCatalogsListBySubscriptionNextResponse = DataProductsCatalogListResult; + +// @public +export interface DataProductsCatalogsListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsCatalogsListBySubscriptionResponse = DataProductsCatalogListResult; + +// @public +export interface DataProductsCreateHeaders { + retryAfter?: number; +} + +// @public +export interface DataProductsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DataProductsCreateResponse = DataProduct; + +// @public +export interface DataProductsDeleteHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface DataProductsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DataProductsDeleteResponse = DataProductsDeleteHeaders; + +// @public +export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsGenerateStorageAccountSasTokenResponse = AccountSasToken; + +// @public +export interface DataProductsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsGetResponse = DataProduct; + +// @public +export interface DataProductsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsListByResourceGroupNextResponse = DataProductListResult; + +// @public +export interface DataProductsListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsListByResourceGroupResponse = DataProductListResult; + +// @public +export interface DataProductsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsListBySubscriptionNextResponse = DataProductListResult; + +// @public +export interface DataProductsListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsListBySubscriptionResponse = DataProductListResult; + +// @public +export interface DataProductsListRolesAssignmentsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataProductsListRolesAssignmentsResponse = ListRoleAssignments; + +// @public +export interface DataProductsRemoveUserRoleOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DataProductsRotateKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DataProductsUpdateHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface DataProductsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DataProductsUpdateResponse = DataProduct; + +// @public +export interface DataProductUpdate { + identity?: ManagedServiceIdentity; + properties?: DataProductUpdateProperties; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface DataProductUpdateProperties { + currentMinorVersion?: string; + owners?: string[]; + privateLinksEnabled?: ControlState; + purviewAccount?: string; + purviewCollection?: string; +} + +// @public +export type DataProductUserRole = string; + +// @public +export interface DataProductVersion { + version: string; +} + +// @public +export interface DataType extends ProxyResource { + properties?: DataTypeProperties; +} + +// @public +export interface DataTypeListResult { + nextLink?: string; + value: DataType[]; +} + +// @public +export interface DataTypeProperties { + databaseCacheRetention?: number; + databaseRetention?: number; + readonly provisioningState?: ProvisioningState; + state?: DataTypeState; + readonly stateReason?: string; + storageOutputRetention?: number; + readonly visualizationUrl?: string; +} + +// @public +export interface DataTypes { + beginCreate(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise, DataTypesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise, DataTypesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise; + beginDeleteData(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise, DataTypesDeleteDataResponse>>; + beginDeleteDataAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise; + beginUpdate(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise, DataTypesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise; + generateStorageContainerSasToken(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; + get(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; + listByDataProduct(resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DataTypesCreateHeaders { + retryAfter?: number; +} + +// @public +export interface DataTypesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DataTypesCreateResponse = DataType; + +// @public +export interface DataTypesDeleteDataHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface DataTypesDeleteDataOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DataTypesDeleteDataResponse = DataTypesDeleteDataHeaders; + +// @public +export interface DataTypesDeleteHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface DataTypesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DataTypesDeleteResponse = DataTypesDeleteHeaders; + +// @public +export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataTypesGenerateStorageContainerSasTokenResponse = ContainerSasToken; + +// @public +export interface DataTypesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataTypesGetResponse = DataType; + +// @public +export interface DataTypesListByDataProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataTypesListByDataProductNextResponse = DataTypeListResult; + +// @public +export interface DataTypesListByDataProductOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataTypesListByDataProductResponse = DataTypeListResult; + +// @public +export type DataTypeState = string; + +// @public +export interface DataTypesUpdateHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface DataTypesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DataTypesUpdateResponse = DataType; + +// @public +export interface DataTypeUpdate { + properties?: DataTypeUpdateProperties; +} + +// @public +export interface DataTypeUpdateProperties { + databaseCacheRetention?: number; + databaseRetention?: number; + state?: DataTypeState; + storageOutputRetention?: number; +} + +// @public +export type DefaultAction = string; + +// @public +export interface EncryptionKeyDetails { + keyName: string; + keyVaultUri: string; + keyVersion: string; +} + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export function getContinuationToken(page: unknown): string | undefined; + +// @public +export interface IPRules { + action: string; + value?: string; +} + +// @public +export interface KeyVaultInfo { + keyVaultUrl: string; +} + +// @public +export enum KnownActionType { + Internal = "Internal" +} + +// @public +export enum KnownBypass { + AzureServices = "AzureServices", + Logging = "Logging", + Metrics = "Metrics", + None = "None" +} + +// @public +export enum KnownControlState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownDataProductUserRole { + Reader = "Reader", + SensitiveReader = "SensitiveReader" +} + +// @public +export enum KnownDataTypeState { + Running = "Running", + Stopped = "Stopped" +} + +// @public +export enum KnownDefaultAction { + Allow = "Allow", + Deny = "Deny" +} + +// @public +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + UserAssigned = "UserAssigned" +} + +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + +// @public +export enum KnownProvisioningState { + Accepted = "Accepted", + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + Provisioning = "Provisioning", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownVersions { + V20231115 = "2023-11-15" +} + +// @public +export interface ListRoleAssignments { + count: number; + roleAssignmentResponse: RoleAssignmentDetail[]; +} + +// @public +export interface ManagedResourceGroupConfiguration { + location: string; + name: string; +} + +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; +} + +// @public +export type ManagedServiceIdentityType = string; + +// @public (undocumented) +export class MicrosoftNetworkAnalytics extends coreClient.ServiceClient { + // (undocumented) + $host: string; + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftNetworkAnalyticsOptionalParams); + // (undocumented) + apiVersion: string; + // (undocumented) + dataProducts: DataProducts; + // (undocumented) + dataProductsCatalogs: DataProductsCatalogs; + // (undocumented) + dataTypes: DataTypes; + // (undocumented) + operations: Operations; + // (undocumented) + subscriptionId: string; +} + +// @public +export interface MicrosoftNetworkAnalyticsOptionalParams extends coreClient.ServiceClientOptions { + $host?: string; + apiVersion?: string; + endpoint?: string; +} + +// @public +export interface Operation { + readonly actionType?: ActionType; + display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; +} + +// @public +export interface OperationListResult { + readonly nextLink?: string; + readonly value?: Operation[]; +} + +// @public +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListNextResponse = OperationListResult; + +// @public +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListResponse = OperationListResult; + +// @public +export type Origin = string; + +// @public +export type ProvisioningState = string; + +// @public +export interface ProxyResource extends Resource { +} + +// @public +export interface PublisherInformation { + dataProducts: DataProductInformation[]; + publisherName: string; +} + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface ResourceAccessRules { + resourceId: string; + tenantId: string; +} + +// @public +export interface RoleAssignmentCommonProperties { + dataTypeScope: string[]; + principalId: string; + principalType: string; + role: DataProductUserRole; + roleId: string; + userName: string; +} + +// @public +export interface RoleAssignmentDetail { + dataTypeScope: string[]; + principalId: string; + principalType: string; + role: DataProductUserRole; + roleAssignmentId: string; + roleId: string; + userName: string; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public +export type Versions = string; + +// @public +export interface VirtualNetworkRule { + action?: string; + id: string; + state?: string; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/sample.env new file mode 100644 index 00000000000..672847a3fea --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts new file mode 100644 index 00000000000..08a9a5c9cae --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsAddUserRoleSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts.map new file mode 100644 index 00000000000..d518d99115b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsAddUserRoleSample.d.ts","sourceRoot":"","sources":["dataProductsAddUserRoleSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js new file mode 100644 index 00000000000..67f539c7eb0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js @@ -0,0 +1,70 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "userName" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsAddUserRoleMaximumSetGen(); + dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsAddUserRoleSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js.map new file mode 100644 index 00000000000..741a0b07ba6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsAddUserRoleSample.js","sourceRoot":"","sources":["dataProductsAddUserRoleSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oCAAoC;IACjD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAmC;QAC3C,aAAa,EAAE,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,qCAAqC;QAClD,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,WAAW,CAClD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,0EAA0E;IACvF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAmC;QAC3C,aAAa,EAAE,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,qCAAqC;QAClD,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,WAAW,CAClD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oCAAoC,EAAE,CAAC;IACvC,0EAA0E,EAAE,CAAC;AAC/E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.ts new file mode 100644 index 00000000000..bfb77048d0b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RoleAssignmentCommonProperties, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: RoleAssignmentCommonProperties = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: RoleAssignmentCommonProperties = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "userName" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsAddUserRoleMaximumSetGen(); + dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts new file mode 100644 index 00000000000..439be196c27 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsCatalogsGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts.map new file mode 100644 index 00000000000..d64156b4ec2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsGetSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js new file mode 100644 index 00000000000..bb08cd33beb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js @@ -0,0 +1,52 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} +async function main() { + dataProductsCatalogsGetMaximumSetGen(); + dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsCatalogsGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js.map new file mode 100644 index 00000000000..f9a13670022 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsGetSample.js","sourceRoot":"","sources":["dataProductsCatalogsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oCAAoC;IACjD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,0EAA0E;IACvF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oCAAoC,EAAE,CAAC;IACvC,0EAA0E,EAAE,CAAC;AAC/E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.ts new file mode 100644 index 00000000000..77024bf580e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} + +async function main() { + dataProductsCatalogsGetMaximumSetGen(); + dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts new file mode 100644 index 00000000000..f549f2e8369 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsCatalogsListByResourceGroupSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts.map new file mode 100644 index 00000000000..10d4d684bcf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsListByResourceGroupSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js new file mode 100644 index 00000000000..514ab839f10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js @@ -0,0 +1,58 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataProductsCatalogsListByResourceGroupMaximumSetGen(); + dataProductsCatalogsListByResourceGroupMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsCatalogsListByResourceGroupSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js.map new file mode 100644 index 00000000000..1c67ce10215 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsListByResourceGroupSample.js","sourceRoot":"","sources":["dataProductsCatalogsListByResourceGroupSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CA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,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oDAAoD,EAAE,CAAC;IACvD,oDAAoD,EAAE,CAAC;AACzD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.ts new file mode 100644 index 00000000000..3d2367e68c0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsCatalogsListByResourceGroupMaximumSetGen(); + dataProductsCatalogsListByResourceGroupMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts new file mode 100644 index 00000000000..48c1050f815 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsCatalogsListBySubscriptionSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts.map new file mode 100644 index 00000000000..b81110d3880 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsListBySubscriptionSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js new file mode 100644 index 00000000000..420a1b89bd2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataProductsCatalogsListBySubscriptionMaximumSetGen(); + dataProductsCatalogsListBySubscriptionMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsCatalogsListBySubscriptionSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js.map new file mode 100644 index 00000000000..12366398fa5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsListBySubscriptionSample.js","sourceRoot":"","sources":["dataProductsCatalogsListBySubscriptionSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,mDAAmD;IAChE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,EAAE,CAAC;QACxE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,mDAAmD;IAChE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,EAAE,CAAC;QACxE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,mDAAmD,EAAE,CAAC;IACtD,mDAAmD,EAAE,CAAC;AACxD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.ts new file mode 100644 index 00000000000..93ad8a8215f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsCatalogsListBySubscriptionMaximumSetGen(); + dataProductsCatalogsListBySubscriptionMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts new file mode 100644 index 00000000000..9b3aa33756a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsCreateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts.map new file mode 100644 index 00000000000..1b249dd5fcb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCreateSample.d.ts","sourceRoot":"","sources":["dataProductsCreateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js new file mode 100644 index 00000000000..c5ec3708b58 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js @@ -0,0 +1,109 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} + } + }, + location: "eastus", + properties: { + consumptionEndpoints: {}, + currentMinorVersion: "1.0.1", + customerEncryptionKey: { + keyName: "keyName", + keyVaultUri: "https://KeyVault.vault.azure.net", + keyVersion: "keyVersion" + }, + customerManagedKeyEncryptionEnabled: "Enabled", + majorVersion: "1.0.0", + managedResourceGroupConfiguration: { + name: "managedResourceGroupName", + location: "eastus" + }, + networkacls: { + allowedQueryIpRangeList: ["1.1.1.1"], + defaultAction: "Allow", + ipRules: [{ action: "Allow", value: "1.1.1.1" }], + virtualNetworkRule: [ + { + action: "Allow", + id: "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", + state: "" + } + ] + }, + owners: ["abc@micros.com"], + privateLinksEnabled: "Disabled", + product: "MCC", + provisioningState: "Succeeded", + publicNetworkAccess: "Enabled", + publisher: "Microsoft", + purviewAccount: "testpurview", + purviewCollection: "134567890", + redundancy: "Disabled" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait(resourceGroupName, dataProductName, resource); + console.log(result); +} +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource = { + location: "eastus", + properties: { + majorVersion: "1.0.0", + product: "MCC", + publisher: "Microsoft" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait(resourceGroupName, dataProductName, resource); + console.log(result); +} +async function main() { + dataProductsCreateMaximumSetGen(); + dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsCreateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js.map new file mode 100644 index 00000000000..7bccad90499 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCreateSample.js","sourceRoot":"","sources":["dataProductsCreateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3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AAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,QAAQ,GAAgB;QAC5B,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACV,YAAY,EAAE,OAAO;YACrB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,WAAW;SACvB;QACD,IAAI,EAAE,EAAE,oBAAoB,EAAE,uBAAuB,EAAE;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.ts new file mode 100644 index 00000000000..68837e98b83 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.ts @@ -0,0 +1,127 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataProduct, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource: DataProduct = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} + } + }, + location: "eastus", + properties: { + consumptionEndpoints: {}, + currentMinorVersion: "1.0.1", + customerEncryptionKey: { + keyName: "keyName", + keyVaultUri: "https://KeyVault.vault.azure.net", + keyVersion: "keyVersion" + }, + customerManagedKeyEncryptionEnabled: "Enabled", + majorVersion: "1.0.0", + managedResourceGroupConfiguration: { + name: "managedResourceGroupName", + location: "eastus" + }, + networkacls: { + allowedQueryIpRangeList: ["1.1.1.1"], + defaultAction: "Allow", + ipRules: [{ action: "Allow", value: "1.1.1.1" }], + virtualNetworkRule: [ + { + action: "Allow", + id: + "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", + state: "" + } + ] + }, + owners: ["abc@micros.com"], + privateLinksEnabled: "Disabled", + product: "MCC", + provisioningState: "Succeeded", + publicNetworkAccess: "Enabled", + publisher: "Microsoft", + purviewAccount: "testpurview", + purviewCollection: "134567890", + redundancy: "Disabled" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait( + resourceGroupName, + dataProductName, + resource + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource: DataProduct = { + location: "eastus", + properties: { + majorVersion: "1.0.0", + product: "MCC", + publisher: "Microsoft" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait( + resourceGroupName, + dataProductName, + resource + ); + console.log(result); +} + +async function main() { + dataProductsCreateMaximumSetGen(); + dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts new file mode 100644 index 00000000000..5b05bd03888 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsDeleteSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts.map new file mode 100644 index 00000000000..ec49e8459e0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsDeleteSample.d.ts","sourceRoot":"","sources":["dataProductsDeleteSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js new file mode 100644 index 00000000000..2f3a7e1c206 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js @@ -0,0 +1,54 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); + console.log(result); +} +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); + console.log(result); +} +async function main() { + dataProductsDeleteMaximumSetGen(); + dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsDeleteSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js.map new file mode 100644 index 00000000000..c6bceb0cc74 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsDeleteSample.js","sourceRoot":"","sources":["dataProductsDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.ts new file mode 100644 index 00000000000..ae058b82a9c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait( + resourceGroupName, + dataProductName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait( + resourceGroupName, + dataProductName + ); + console.log(result); +} + +async function main() { + dataProductsDeleteMaximumSetGen(); + dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts new file mode 100644 index 00000000000..2eb1d1da828 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsGenerateStorageAccountSasTokenSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map new file mode 100644 index 00000000000..37ff2588b31 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsGenerateStorageAccountSasTokenSample.d.ts","sourceRoot":"","sources":["dataProductsGenerateStorageAccountSasTokenSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js new file mode 100644 index 00000000000..a508027d425 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js @@ -0,0 +1,64 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.151Z") + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:17.051Z") + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); + dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsGenerateStorageAccountSasTokenSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js.map new file mode 100644 index 00000000000..44fda47931e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsGenerateStorageAccountSasTokenSample.js","sourceRoot":"","sources":["dataProductsGenerateStorageAccountSasTokenSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAA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AE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,8BAA8B,CACrE,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uDAAuD,EAAE,CAAC;IAC1D,6FAA6F,EAAE,CAAC;AAClG,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.ts new file mode 100644 index 00000000000..105e2b635ab --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AccountSas, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: AccountSas = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.151Z") + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: AccountSas = { + expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:17.051Z") + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); + dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts new file mode 100644 index 00000000000..46c65e12bf9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts.map new file mode 100644 index 00000000000..8eded8ab304 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsGetSample.d.ts","sourceRoot":"","sources":["dataProductsGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js new file mode 100644 index 00000000000..fdf94c061a1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js @@ -0,0 +1,54 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json + */ +async function dataProductsGetMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get(resourceGroupName, dataProductName); + console.log(result); +} +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json + */ +async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get(resourceGroupName, dataProductName); + console.log(result); +} +async function main() { + dataProductsGetMaximumSetGen(); + dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js.map new file mode 100644 index 00000000000..8bdd1b1c4a5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsGetSample.js","sourceRoot":"","sources":["dataProductsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kEAAkE;IAC/E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.ts new file mode 100644 index 00000000000..592a1bdef80 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json + */ +async function dataProductsGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get( + resourceGroupName, + dataProductName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json + */ +async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get( + resourceGroupName, + dataProductName + ); + console.log(result); +} + +async function main() { + dataProductsGetMaximumSetGen(); + dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts new file mode 100644 index 00000000000..bd6a9f34578 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsListByResourceGroupSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts.map new file mode 100644 index 00000000000..04cd8454f64 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["dataProductsListByResourceGroupSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js new file mode 100644 index 00000000000..300dd9529c7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js @@ -0,0 +1,58 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataProductsListByResourceGroupMaximumSetGen(); + dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsListByResourceGroupSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js.map new file mode 100644 index 00000000000..d1d40ba9da4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListByResourceGroupSample.js","sourceRoot":"","sources":["dataProductsListByResourceGroupSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4CAA4C;IACzD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAC5D,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kFAAkF;IAC/F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAC5D,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4CAA4C,EAAE,CAAC;IAC/C,kFAAkF,EAAE,CAAC;AACvF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.ts new file mode 100644 index 00000000000..7db66b97df1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsListByResourceGroupMaximumSetGen(); + dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts new file mode 100644 index 00000000000..ba89955049d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsListBySubscriptionSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts.map new file mode 100644 index 00000000000..020e622aa95 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["dataProductsListBySubscriptionSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js new file mode 100644 index 00000000000..1c54379b2de --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataProductsListBySubscriptionMaximumSetGen(); + dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsListBySubscriptionSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js.map new file mode 100644 index 00000000000..5865fb720f9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListBySubscriptionSample.js","sourceRoot":"","sources":["dataProductsListBySubscriptionSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,2CAA2C;IACxD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAChE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,iFAAiF;IAC9F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAChE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,2CAA2C,EAAE,CAAC;IAC9C,iFAAiF,EAAE,CAAC;AACtF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.ts new file mode 100644 index 00000000000..e765389b95b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsListBySubscriptionMaximumSetGen(); + dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts new file mode 100644 index 00000000000..08e3be1c25a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsListRolesAssignmentsSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts.map new file mode 100644 index 00000000000..d8102a183e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListRolesAssignmentsSample.d.ts","sourceRoot":"","sources":["dataProductsListRolesAssignmentsSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js new file mode 100644 index 00000000000..7cda88f15bc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsListRolesAssignmentsMaximumSetGen(); + dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsListRolesAssignmentsSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js.map new file mode 100644 index 00000000000..a017ecf12a7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListRolesAssignmentsSample.js","sourceRoot":"","sources":["dataProductsListRolesAssignmentsSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,6CAA6C;IAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAC3D,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,mFAAmF;IAChG,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAC3D,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,6CAA6C,EAAE,CAAC;IAChD,mFAAmF,EAAE,CAAC;AACxF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.ts new file mode 100644 index 00000000000..1893752fa9b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsListRolesAssignmentsMaximumSetGen(); + dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts new file mode 100644 index 00000000000..0e34b2f8842 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsRemoveUserRoleSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts.map new file mode 100644 index 00000000000..2431bfc978e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsRemoveUserRoleSample.d.ts","sourceRoot":"","sources":["dataProductsRemoveUserRoleSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js new file mode 100644 index 00000000000..1c2281e0c39 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js @@ -0,0 +1,72 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsRemoveUserRoleMaximumSetGen(); + dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsRemoveUserRoleSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js.map new file mode 100644 index 00000000000..2e9a69e8aef --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsRemoveUserRoleSample.js","sourceRoot":"","sources":["dataProductsRemoveUserRoleSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,uCAAuC;IACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAyB;QACjC,aAAa,EAAE,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,qCAAqC;QAClD,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,QAAQ;QACd,gBAAgB,EAAE,qCAAqC;QACvD,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,cAAc,CACrD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,6EAA6E;IAC1F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAyB;QACjC,aAAa,EAAE,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,qCAAqC;QAClD,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,QAAQ;QACd,gBAAgB,EAAE,qCAAqC;QACvD,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,cAAc,CACrD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uCAAuC,EAAE,CAAC;IAC1C,6EAA6E,EAAE,CAAC;AAClF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.ts new file mode 100644 index 00000000000..0344a82c8d0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RoleAssignmentDetail, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: RoleAssignmentDetail = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: RoleAssignmentDetail = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsRemoveUserRoleMaximumSetGen(); + dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts new file mode 100644 index 00000000000..1ab1a48d7c2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsRotateKeySample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts.map new file mode 100644 index 00000000000..59027d7af9e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsRotateKeySample.d.ts","sourceRoot":"","sources":["dataProductsRotateKeySample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js new file mode 100644 index 00000000000..ade311c50d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js @@ -0,0 +1,60 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + keyVaultUrl: "https://myKeyVault.vault.azure.net" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + keyVaultUrl: "https://myKeyVault.vault.azure.net" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsRotateKeyMaximumSetGen(); + dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsRotateKeySample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js.map new file mode 100644 index 00000000000..61dd664fda2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsRotateKeySample.js","sourceRoot":"","sources":["dataProductsRotateKeySample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAE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e,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,kCAAkC,EAAE,CAAC;IACrC,wEAAwE,EAAE,CAAC;AAC7E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.ts new file mode 100644 index 00000000000..c280787be94 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + KeyVaultInfo, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: KeyVaultInfo = { + keyVaultUrl: "https://myKeyVault.vault.azure.net" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: KeyVaultInfo = { + keyVaultUrl: "https://myKeyVault.vault.azure.net" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsRotateKeyMaximumSetGen(); + dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts new file mode 100644 index 00000000000..705d979ef6b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsUpdateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts.map new file mode 100644 index 00000000000..a3d1e0913f1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsUpdateSample.d.ts","sourceRoot":"","sources":["dataProductsUpdateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js new file mode 100644 index 00000000000..ceda37fd89d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js @@ -0,0 +1,71 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} + } + }, + properties: { + currentMinorVersion: "1.0.1", + owners: ["abc@micros.com", "def@micros.com"], + privateLinksEnabled: "Disabled", + purviewAccount: "testpurview", + purviewCollection: "134567890" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait(resourceGroupName, dataProductName, properties); + console.log(result); +} +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait(resourceGroupName, dataProductName, properties); + console.log(result); +} +async function main() { + dataProductsUpdateMaximumSetGen(); + dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsUpdateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js.map new file mode 100644 index 00000000000..619daa74264 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsUpdateSample.js","sourceRoot":"","sources":["dataProductsUpdateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAsB;QACpC,QAAQ,EAAE;YACR,IAAI,EAAE,cAAc;YACpB,sBAAsB,EAAE;gBACtB,qHAAqH,EAAE,EAAE;aAC1H;SACF;QACD,UAAU,EAAE;YACV,mBAAmB,EAAE,OAAO;YAC5B,MAAM,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;YAC5C,mBAAmB,EAAE,UAAU;YAC/B,cAAc,EAAE,aAAa;YAC7B,iBAAiB,EAAE,WAAW;SAC/B;QACD,IAAI,EAAE,EAAE,oBAAoB,EAAE,uBAAuB,EAAE;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAsB,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.ts new file mode 100644 index 00000000000..0edc31352db --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.ts @@ -0,0 +1,88 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataProductUpdate, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties: DataProductUpdate = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} + } + }, + properties: { + currentMinorVersion: "1.0.1", + owners: ["abc@micros.com", "def@micros.com"], + privateLinksEnabled: "Disabled", + purviewAccount: "testpurview", + purviewCollection: "134567890" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait( + resourceGroupName, + dataProductName, + properties + ); + console.log(result); +} + +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties: DataProductUpdate = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait( + resourceGroupName, + dataProductName, + properties + ); + console.log(result); +} + +async function main() { + dataProductsUpdateMaximumSetGen(); + dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts new file mode 100644 index 00000000000..0887d5b0dd8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesCreateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts.map new file mode 100644 index 00000000000..20477ab2ad0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesCreateSample.d.ts","sourceRoot":"","sources":["dataTypesCreateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js new file mode 100644 index 00000000000..b402f22d9ce --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js @@ -0,0 +1,66 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource = { + properties: { + databaseCacheRetention: 23, + databaseRetention: 6, + provisioningState: "Succeeded", + state: "STARTED", + storageOutputRetention: 27 + } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource); + console.log(result); +} +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource); + console.log(result); +} +async function main() { + dataTypesCreateMaximumSetGen(); + dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesCreateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js.map new file mode 100644 index 00000000000..a6c6ad7ca26 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesCreateSample.js","sourceRoot":"","sources":["dataTypesCreateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,QAAQ,GAAa;QACzB,UAAU,EAAE;YACV,sBAAsB,EAAE,EAAE;YAC1B,iBAAiB,EAAE,CAAC;YACpB,iBAAiB,EAAE,WAAW;YAC9B,KAAK,EAAE,SAAS;YAChB,sBAAsB,EAAE,EAAE;SAC3B;KACF,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kEAAkE;IAC/E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.ts new file mode 100644 index 00000000000..0f9ea34a269 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataType, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource: DataType = { + properties: { + databaseCacheRetention: 23, + databaseRetention: 6, + provisioningState: "Succeeded", + state: "STARTED", + storageOutputRetention: 27 + } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + resource + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource: DataType = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + resource + ); + console.log(result); +} + +async function main() { + dataTypesCreateMaximumSetGen(); + dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts new file mode 100644 index 00000000000..b5e63d57ede --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesDeleteDataSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts.map new file mode 100644 index 00000000000..1c012b1b837 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesDeleteDataSample.d.ts","sourceRoot":"","sources":["dataTypesDeleteDataSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js new file mode 100644 index 00000000000..d5d1e4ff3e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js @@ -0,0 +1,58 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json + */ +async function dataTypesDeleteDataMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body); + console.log(result); +} +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json + */ +async function dataTypesDeleteDataMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body); + console.log(result); +} +async function main() { + dataTypesDeleteDataMaximumSetGen(); + dataTypesDeleteDataMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesDeleteDataSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js.map new file mode 100644 index 00000000000..8bd8de885e5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesDeleteDataSample.js","sourceRoot":"","sources":["dataTypesDeleteDataSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,gCAAgC;IAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAC1D,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,gCAAgC;IAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAC1D,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,gCAAgC,EAAE,CAAC;IACnC,gCAAgC,EAAE,CAAC;AACrC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.ts new file mode 100644 index 00000000000..8c031b138fc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json + */ +async function dataTypesDeleteDataMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json + */ +async function dataTypesDeleteDataMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + body + ); + console.log(result); +} + +async function main() { + dataTypesDeleteDataMaximumSetGen(); + dataTypesDeleteDataMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts new file mode 100644 index 00000000000..87b7d3cb874 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesDeleteSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts.map new file mode 100644 index 00000000000..0a08af135b5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesDeleteSample.d.ts","sourceRoot":"","sources":["dataTypesDeleteSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js new file mode 100644 index 00000000000..948f82efc90 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} +async function main() { + dataTypesDeleteMaximumSetGen(); + dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesDeleteSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js.map new file mode 100644 index 00000000000..5769d9b6400 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesDeleteSample.js","sourceRoot":"","sources":["dataTypesDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACz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CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.ts new file mode 100644 index 00000000000..11a0a3ab64a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait( + resourceGroupName, + dataProductName, + dataTypeName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait( + resourceGroupName, + dataProductName, + dataTypeName + ); + console.log(result); +} + +async function main() { + dataTypesDeleteMaximumSetGen(); + dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts new file mode 100644 index 00000000000..6deef309b71 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesGenerateStorageContainerSasTokenSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map new file mode 100644 index 00000000000..e73e12c0ff7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesGenerateStorageContainerSasTokenSample.d.ts","sourceRoot":"","sources":["dataTypesGenerateStorageContainerSasTokenSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js new file mode 100644 index 00000000000..063c422c66e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js @@ -0,0 +1,66 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.039Z") + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body); + console.log(result); +} +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:16.887Z") + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body); + console.log(result); +} +async function main() { + dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); + dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesGenerateStorageContainerSasTokenSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js.map new file mode 100644 index 00000000000..c85d5711899 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesGenerateStorageContainerSasTokenSample.js","sourceRoot":"","sources":["dataTypesGenerateStorageContainerSasTokenSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,sDAAsD;IACnE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAAiB;QACzB,eAAe,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;QACrD,SAAS,EAAE,SAAS;QACpB,cAAc,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;KACrD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,gCAAgC,CACpE,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,4FAA4F;IACzG,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAAiB;QACzB,eAAe,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;QACrD,SAAS,EAAE,SAAS;QACpB,cAAc,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;KACrD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,gCAAgC,CACpE,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,sDAAsD,EAAE,CAAC;IACzD,4FAA4F,EAAE,CAAC;AACjG,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.ts new file mode 100644 index 00000000000..c59582d1e86 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ContainerSaS, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body: ContainerSaS = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.039Z") + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken( + resourceGroupName, + dataProductName, + dataTypeName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body: ContainerSaS = { + expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:16.887Z") + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken( + resourceGroupName, + dataProductName, + dataTypeName, + body + ); + console.log(result); +} + +async function main() { + dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); + dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts new file mode 100644 index 00000000000..f624173fcc5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts.map new file mode 100644 index 00000000000..35fc22320bf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesGetSample.d.ts","sourceRoot":"","sources":["dataTypesGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js new file mode 100644 index 00000000000..39fef8479f0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json + */ +async function dataTypesGetMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json + */ +async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} +async function main() { + dataTypesGetMaximumSetGen(); + dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js.map new file mode 100644 index 00000000000..4fe2f6674ef --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesGetSample.js","sourceRoot":"","sources":["dataTypesGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,yBAAyB;IACtC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,+DAA+D;IAC5E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,yBAAyB,EAAE,CAAC;IAC5B,+DAA+D,EAAE,CAAC;AACpE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.ts new file mode 100644 index 00000000000..c430835edb8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json + */ +async function dataTypesGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get( + resourceGroupName, + dataProductName, + dataTypeName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json + */ +async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get( + resourceGroupName, + dataProductName, + dataTypeName + ); + console.log(result); +} + +async function main() { + dataTypesGetMaximumSetGen(); + dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts new file mode 100644 index 00000000000..cc9f3d58e87 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesListByDataProductSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts.map new file mode 100644 index 00000000000..52d1e22cd82 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesListByDataProductSample.d.ts","sourceRoot":"","sources":["dataTypesListByDataProductSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js new file mode 100644 index 00000000000..53cc8222da3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js @@ -0,0 +1,60 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataTypesListByDataProductMaximumSetGen(); + dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesListByDataProductSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js.map new file mode 100644 index 00000000000..a309ebfd60c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesListByDataProductSample.js","sourceRoot":"","sources":["dataTypesListByDataProductSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,uCAAuC;IACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,iBAAiB,CACvD,iBAAiB,EACjB,eAAe,CAChB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,6EAA6E;IAC1F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,iBAAiB,CACvD,iBAAiB,EACjB,eAAe,CAChB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uCAAuC,EAAE,CAAC;IAC1C,6EAA6E,EAAE,CAAC;AAClF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.ts new file mode 100644 index 00000000000..894c944360d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct( + resourceGroupName, + dataProductName + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct( + resourceGroupName, + dataProductName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataTypesListByDataProductMaximumSetGen(); + dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts new file mode 100644 index 00000000000..a6d1b42eda1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesUpdateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts.map new file mode 100644 index 00000000000..e947203e164 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesUpdateSample.d.ts","sourceRoot":"","sources":["dataTypesUpdateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js new file mode 100644 index 00000000000..8765bbda915 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js @@ -0,0 +1,65 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties = { + properties: { + databaseCacheRetention: 16, + databaseRetention: 9, + state: "STARTED", + storageOutputRetention: 30 + } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties); + console.log(result); +} +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties); + console.log(result); +} +async function main() { + dataTypesUpdateMaximumSetGen(); + dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesUpdateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js.map new file mode 100644 index 00000000000..54f1e05bc38 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesUpdateSample.js","sourceRoot":"","sources":["dataTypesUpdateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,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AAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.ts new file mode 100644 index 00000000000..600eac4fa74 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataTypeUpdate, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties: DataTypeUpdate = { + properties: { + databaseCacheRetention: 16, + databaseRetention: 9, + state: "STARTED", + storageOutputRetention: 30 + } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + properties + ); + console.log(result); +} + +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties: DataTypeUpdate = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + properties + ); + console.log(result); +} + +async function main() { + dataTypesUpdateMaximumSetGen(); + dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts new file mode 100644 index 00000000000..cb740f3e024 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=operationsListSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts.map new file mode 100644 index 00000000000..772fe831a00 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["operationsListSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js new file mode 100644 index 00000000000..15e702bc0dd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json + */ +async function operationsListMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json + */ +async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + operationsListMaximumSetGen(); + operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=operationsListSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js.map new file mode 100644 index 00000000000..a5bb0133a22 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["operationsListSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,2BAA2B;IACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,sCAAsC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,iEAAiE;IAC9E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,sCAAsC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,2BAA2B,EAAE,CAAC;IAC9B,iEAAiE,EAAE,CAAC;AACtE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.ts new file mode 100644 index 00000000000..6640d1a5b7f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json + */ +async function operationsListMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json + */ +async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsListMaximumSetGen(); + operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/README.md new file mode 100644 index 00000000000..95cc38cda3e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/README.md @@ -0,0 +1,92 @@ +# client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [dataProductsAddUserRoleSample.js][dataproductsadduserrolesample] | Assign role to the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json | +| [dataProductsCatalogsGetSample.js][dataproductscatalogsgetsample] | Retrieve data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json | +| [dataProductsCatalogsListByResourceGroupSample.js][dataproductscatalogslistbyresourcegroupsample] | List data catalog by resource group. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json | +| [dataProductsCatalogsListBySubscriptionSample.js][dataproductscatalogslistbysubscriptionsample] | List data catalog by subscription. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json | +| [dataProductsCreateSample.js][dataproductscreatesample] | Create data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json | +| [dataProductsDeleteSample.js][dataproductsdeletesample] | Delete data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json | +| [dataProductsGenerateStorageAccountSasTokenSample.js][dataproductsgeneratestorageaccountsastokensample] | Generate sas token for storage account. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json | +| [dataProductsGetSample.js][dataproductsgetsample] | Retrieve data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json | +| [dataProductsListByResourceGroupSample.js][dataproductslistbyresourcegroupsample] | List data products by resource group. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json | +| [dataProductsListBySubscriptionSample.js][dataproductslistbysubscriptionsample] | List data products by subscription. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json | +| [dataProductsListRolesAssignmentsSample.js][dataproductslistrolesassignmentssample] | List user roles associated with the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json | +| [dataProductsRemoveUserRoleSample.js][dataproductsremoveuserrolesample] | Remove role from the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json | +| [dataProductsRotateKeySample.js][dataproductsrotatekeysample] | Initiate key rotation on Data Product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json | +| [dataProductsUpdateSample.js][dataproductsupdatesample] | Update data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json | +| [dataTypesCreateSample.js][datatypescreatesample] | Create data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json | +| [dataTypesDeleteDataSample.js][datatypesdeletedatasample] | Delete data for data type. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json | +| [dataTypesDeleteSample.js][datatypesdeletesample] | Delete data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json | +| [dataTypesGenerateStorageContainerSasTokenSample.js][datatypesgeneratestoragecontainersastokensample] | Generate sas token for storage container. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json | +| [dataTypesGetSample.js][datatypesgetsample] | Retrieve data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json | +| [dataTypesListByDataProductSample.js][datatypeslistbydataproductsample] | List data type by parent resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json | +| [dataTypesUpdateSample.js][datatypesupdatesample] | Update data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json | +| [operationsListSample.js][operationslistsample] | List the operations for the provider x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dataProductsAddUserRoleSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env NETWORKANALYTICS_SUBSCRIPTION_ID="" NETWORKANALYTICS_RESOURCE_GROUP="" node dataProductsAddUserRoleSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[dataproductsadduserrolesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsAddUserRoleSample.js +[dataproductscatalogsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsCatalogsGetSample.js +[dataproductscatalogslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js +[dataproductscatalogslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js +[dataproductscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsCreateSample.js +[dataproductsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsDeleteSample.js +[dataproductsgeneratestorageaccountsastokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js +[dataproductsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsGetSample.js +[dataproductslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsListByResourceGroupSample.js +[dataproductslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsListBySubscriptionSample.js +[dataproductslistrolesassignmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js +[dataproductsremoveuserrolesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsRemoveUserRoleSample.js +[dataproductsrotatekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsRotateKeySample.js +[dataproductsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsUpdateSample.js +[datatypescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesCreateSample.js +[datatypesdeletedatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesDeleteDataSample.js +[datatypesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesDeleteSample.js +[datatypesgeneratestoragecontainersastokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js +[datatypesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesGetSample.js +[datatypeslistbydataproductsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesListByDataProductSample.js +[datatypesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/operationsListSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics/README.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsAddUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsAddUserRoleSample.js new file mode 100644 index 00000000000..72115de226b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsAddUserRoleSample.js @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName", + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} + +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "userName", + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} + +async function main() { + dataProductsAddUserRoleMaximumSetGen(); + dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsGetSample.js new file mode 100644 index 00000000000..79bfab001d7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsGetSample.js @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} + +async function main() { + dataProductsCatalogsGetMaximumSetGen(); + dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js new file mode 100644 index 00000000000..45e0c5c3a87 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsCatalogsListByResourceGroupMaximumSetGen(); + dataProductsCatalogsListByResourceGroupMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js new file mode 100644 index 00000000000..b24bcd8a6f2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsCatalogsListBySubscriptionMaximumSetGen(); + dataProductsCatalogsListBySubscriptionMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCreateSample.js new file mode 100644 index 00000000000..814b59161b1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCreateSample.js @@ -0,0 +1,120 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + }, + }, + location: "eastus", + properties: { + consumptionEndpoints: {}, + currentMinorVersion: "1.0.1", + customerEncryptionKey: { + keyName: "keyName", + keyVaultUri: "https://KeyVault.vault.azure.net", + keyVersion: "keyVersion", + }, + customerManagedKeyEncryptionEnabled: "Enabled", + majorVersion: "1.0.0", + managedResourceGroupConfiguration: { + name: "managedResourceGroupName", + location: "eastus", + }, + networkacls: { + allowedQueryIpRangeList: ["1.1.1.1"], + defaultAction: "Allow", + ipRules: [{ action: "Allow", value: "1.1.1.1" }], + virtualNetworkRule: [ + { + action: "Allow", + id: "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", + state: "", + }, + ], + }, + owners: ["abc@micros.com"], + privateLinksEnabled: "Disabled", + product: "MCC", + provisioningState: "Succeeded", + publicNetworkAccess: "Enabled", + publisher: "Microsoft", + purviewAccount: "testpurview", + purviewCollection: "134567890", + redundancy: "Disabled", + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" }, + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait( + resourceGroupName, + dataProductName, + resource, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource = { + location: "eastus", + properties: { + majorVersion: "1.0.0", + product: "MCC", + publisher: "Microsoft", + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" }, + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait( + resourceGroupName, + dataProductName, + resource, + ); + console.log(result); +} + +async function main() { + dataProductsCreateMaximumSetGen(); + dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsDeleteSample.js new file mode 100644 index 00000000000..9468a00b526 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsDeleteSample.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); + console.log(result); +} + +async function main() { + dataProductsDeleteMaximumSetGen(); + dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js new file mode 100644 index 00000000000..fc72b3f3f41 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.151Z"), + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken( + resourceGroupName, + dataProductName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:17.051Z"), + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken( + resourceGroupName, + dataProductName, + body, + ); + console.log(result); +} + +async function main() { + dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); + dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGetSample.js new file mode 100644 index 00000000000..8ec76d68a30 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGetSample.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json + */ +async function dataProductsGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get(resourceGroupName, dataProductName); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json + */ +async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get(resourceGroupName, dataProductName); + console.log(result); +} + +async function main() { + dataProductsGetMaximumSetGen(); + dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListByResourceGroupSample.js new file mode 100644 index 00000000000..a45819ead57 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListByResourceGroupSample.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsListByResourceGroupMaximumSetGen(); + dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListBySubscriptionSample.js new file mode 100644 index 00000000000..6c736856baa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListBySubscriptionSample.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsListBySubscriptionMaximumSetGen(); + dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js new file mode 100644 index 00000000000..dcb2958f16b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments( + resourceGroupName, + dataProductName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments( + resourceGroupName, + dataProductName, + body, + ); + console.log(result); +} + +async function main() { + dataProductsListRolesAssignmentsMaximumSetGen(); + dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRemoveUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRemoveUserRoleSample.js new file mode 100644 index 00000000000..718d3991561 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRemoveUserRoleSample.js @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName", + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} + +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName", + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} + +async function main() { + dataProductsRemoveUserRoleMaximumSetGen(); + dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRotateKeySample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRotateKeySample.js new file mode 100644 index 00000000000..1fa3268c4a9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRotateKeySample.js @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + keyVaultUrl: "https://myKeyVault.vault.azure.net", + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); + console.log(result); +} + +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + keyVaultUrl: "https://myKeyVault.vault.azure.net", + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); + console.log(result); +} + +async function main() { + dataProductsRotateKeyMaximumSetGen(); + dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsUpdateSample.js new file mode 100644 index 00000000000..561061d0973 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsUpdateSample.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + }, + }, + properties: { + currentMinorVersion: "1.0.1", + owners: ["abc@micros.com", "def@micros.com"], + privateLinksEnabled: "Disabled", + purviewAccount: "testpurview", + purviewCollection: "134567890", + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" }, + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait( + resourceGroupName, + dataProductName, + properties, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait( + resourceGroupName, + dataProductName, + properties, + ); + console.log(result); +} + +async function main() { + dataProductsUpdateMaximumSetGen(); + dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesCreateSample.js new file mode 100644 index 00000000000..ba9a83f9744 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesCreateSample.js @@ -0,0 +1,78 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource = { + properties: { + databaseCacheRetention: 23, + databaseRetention: 6, + provisioningState: "Succeeded", + state: "STARTED", + storageOutputRetention: 27, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + resource, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + resource, + ); + console.log(result); +} + +async function main() { + dataTypesCreateMaximumSetGen(); + dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteDataSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteDataSample.js new file mode 100644 index 00000000000..acd623fba9b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteDataSample.js @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json + */ +async function dataTypesDeleteDataMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json + */ +async function dataTypesDeleteDataMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + body, + ); + console.log(result); +} + +async function main() { + dataTypesDeleteDataMaximumSetGen(); + dataTypesDeleteDataMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteSample.js new file mode 100644 index 00000000000..c11e86be8e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteSample.js @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + ); + console.log(result); +} + +async function main() { + dataTypesDeleteMaximumSetGen(); + dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js new file mode 100644 index 00000000000..0226e4eef0d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js @@ -0,0 +1,78 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.039Z"), + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken( + resourceGroupName, + dataProductName, + dataTypeName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:16.887Z"), + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken( + resourceGroupName, + dataProductName, + dataTypeName, + body, + ); + console.log(result); +} + +async function main() { + dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); + dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGetSample.js new file mode 100644 index 00000000000..a07a6edbf35 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGetSample.js @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json + */ +async function dataTypesGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json + */ +async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} + +async function main() { + dataTypesGetMaximumSetGen(); + dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesListByDataProductSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesListByDataProductSample.js new file mode 100644 index 00000000000..3f7bf316a14 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesListByDataProductSample.js @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataTypesListByDataProductMaximumSetGen(); + dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesUpdateSample.js new file mode 100644 index 00000000000..ff4f9f676d1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesUpdateSample.js @@ -0,0 +1,77 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties = { + properties: { + databaseCacheRetention: 16, + databaseRetention: 9, + state: "STARTED", + storageOutputRetention: 30, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + properties, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + properties, + ); + console.log(result); +} + +async function main() { + dataTypesUpdateMaximumSetGen(); + dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/operationsListSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/operationsListSample.js new file mode 100644 index 00000000000..5d6ff67629d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/operationsListSample.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json + */ +async function operationsListMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json + */ +async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsListMaximumSetGen(); + operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/package.json new file mode 100644 index 00000000000..014327a7a67 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-networkanalytics-js", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/networkanalytics/arm-networkanalytics" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics", + "dependencies": { + "@azure/arm-networkanalytics": "latest", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/sample.env new file mode 100644 index 00000000000..672847a3fea --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/README.md new file mode 100644 index 00000000000..770ea60b8bd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/README.md @@ -0,0 +1,105 @@ +# client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [dataProductsAddUserRoleSample.ts][dataproductsadduserrolesample] | Assign role to the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json | +| [dataProductsCatalogsGetSample.ts][dataproductscatalogsgetsample] | Retrieve data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json | +| [dataProductsCatalogsListByResourceGroupSample.ts][dataproductscatalogslistbyresourcegroupsample] | List data catalog by resource group. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json | +| [dataProductsCatalogsListBySubscriptionSample.ts][dataproductscatalogslistbysubscriptionsample] | List data catalog by subscription. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json | +| [dataProductsCreateSample.ts][dataproductscreatesample] | Create data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json | +| [dataProductsDeleteSample.ts][dataproductsdeletesample] | Delete data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json | +| [dataProductsGenerateStorageAccountSasTokenSample.ts][dataproductsgeneratestorageaccountsastokensample] | Generate sas token for storage account. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json | +| [dataProductsGetSample.ts][dataproductsgetsample] | Retrieve data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json | +| [dataProductsListByResourceGroupSample.ts][dataproductslistbyresourcegroupsample] | List data products by resource group. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json | +| [dataProductsListBySubscriptionSample.ts][dataproductslistbysubscriptionsample] | List data products by subscription. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json | +| [dataProductsListRolesAssignmentsSample.ts][dataproductslistrolesassignmentssample] | List user roles associated with the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json | +| [dataProductsRemoveUserRoleSample.ts][dataproductsremoveuserrolesample] | Remove role from the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json | +| [dataProductsRotateKeySample.ts][dataproductsrotatekeysample] | Initiate key rotation on Data Product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json | +| [dataProductsUpdateSample.ts][dataproductsupdatesample] | Update data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json | +| [dataTypesCreateSample.ts][datatypescreatesample] | Create data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json | +| [dataTypesDeleteDataSample.ts][datatypesdeletedatasample] | Delete data for data type. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json | +| [dataTypesDeleteSample.ts][datatypesdeletesample] | Delete data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json | +| [dataTypesGenerateStorageContainerSasTokenSample.ts][datatypesgeneratestoragecontainersastokensample] | Generate sas token for storage container. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json | +| [dataTypesGetSample.ts][datatypesgetsample] | Retrieve data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json | +| [dataTypesListByDataProductSample.ts][datatypeslistbydataproductsample] | List data type by parent resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json | +| [dataTypesUpdateSample.ts][datatypesupdatesample] | Update data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json | +| [operationsListSample.ts][operationslistsample] | List the operations for the provider x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/dataProductsAddUserRoleSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env NETWORKANALYTICS_SUBSCRIPTION_ID="" NETWORKANALYTICS_RESOURCE_GROUP="" node dist/dataProductsAddUserRoleSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[dataproductsadduserrolesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts +[dataproductscatalogsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts +[dataproductscatalogslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts +[dataproductscatalogslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts +[dataproductscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsCreateSample.ts +[dataproductsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsDeleteSample.ts +[dataproductsgeneratestorageaccountsastokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts +[dataproductsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsGetSample.ts +[dataproductslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts +[dataproductslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts +[dataproductslistrolesassignmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts +[dataproductsremoveuserrolesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts +[dataproductsrotatekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsRotateKeySample.ts +[dataproductsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsUpdateSample.ts +[datatypescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesCreateSample.ts +[datatypesdeletedatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesDeleteDataSample.ts +[datatypesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesDeleteSample.ts +[datatypesgeneratestoragecontainersastokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts +[datatypesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesGetSample.ts +[datatypeslistbydataproductsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesListByDataProductSample.ts +[datatypesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/operationsListSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/package.json new file mode 100644 index 00000000000..bd15d9edddc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-networkanalytics-ts", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/networkanalytics/arm-networkanalytics" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics", + "dependencies": { + "@azure/arm-networkanalytics": "latest", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.4.5", + "rimraf": "latest" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/sample.env new file mode 100644 index 00000000000..672847a3fea --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts new file mode 100644 index 00000000000..08a9a5c9cae --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsAddUserRoleSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts.map new file mode 100644 index 00000000000..d518d99115b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsAddUserRoleSample.d.ts","sourceRoot":"","sources":["dataProductsAddUserRoleSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js new file mode 100644 index 00000000000..67f539c7eb0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js @@ -0,0 +1,70 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "userName" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsAddUserRoleMaximumSetGen(); + dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsAddUserRoleSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js.map new file mode 100644 index 00000000000..741a0b07ba6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsAddUserRoleSample.js","sourceRoot":"","sources":["dataProductsAddUserRoleSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oCAAoC;IACjD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAmC;QAC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B,oCAAoC,EAAE,CAAC;IACvC,0EAA0E,EAAE,CAAC;AAC/E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts new file mode 100644 index 00000000000..bfb77048d0b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RoleAssignmentCommonProperties, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: RoleAssignmentCommonProperties = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Assign role to the data product. + * + * @summary Assign role to the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json + */ +async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: RoleAssignmentCommonProperties = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "userName" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.addUserRole( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsAddUserRoleMaximumSetGen(); + dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts new file mode 100644 index 00000000000..439be196c27 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsCatalogsGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts.map new file mode 100644 index 00000000000..d64156b4ec2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsGetSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js new file mode 100644 index 00000000000..bb08cd33beb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js @@ -0,0 +1,52 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} +async function main() { + dataProductsCatalogsGetMaximumSetGen(); + dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsCatalogsGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js.map new file mode 100644 index 00000000000..f9a13670022 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsGetSample.js","sourceRoot":"","sources":["dataProductsCatalogsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oCAAoC;IACjD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,0EAA0E;IACvF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oCAAoC,EAAE,CAAC;IACvC,0EAA0E,EAAE,CAAC;AAC/E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts new file mode 100644 index 00000000000..77024bf580e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json + */ +async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProductsCatalogs.get(resourceGroupName); + console.log(result); +} + +async function main() { + dataProductsCatalogsGetMaximumSetGen(); + dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts new file mode 100644 index 00000000000..f549f2e8369 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsCatalogsListByResourceGroupSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts.map new file mode 100644 index 00000000000..10d4d684bcf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsListByResourceGroupSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js new file mode 100644 index 00000000000..514ab839f10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js @@ -0,0 +1,58 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataProductsCatalogsListByResourceGroupMaximumSetGen(); + dataProductsCatalogsListByResourceGroupMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsCatalogsListByResourceGroupSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js.map new file mode 100644 index 00000000000..1c67ce10215 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsListByResourceGroupSample.js","sourceRoot":"","sources":["dataProductsCatalogsListByResourceGroupSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oDAAoD;IACjE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,oBAAoB,CAAC,mBAAmB,CACpE,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,oDAAoD;IACjE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,oBAAoB,CAAC,mBAAmB,CACpE,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oDAAoD,EAAE,CAAC;IACvD,oDAAoD,EAAE,CAAC;AACzD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts new file mode 100644 index 00000000000..3d2367e68c0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data catalog by resource group. + * + * @summary List data catalog by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsCatalogsListByResourceGroupMaximumSetGen(); + dataProductsCatalogsListByResourceGroupMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts new file mode 100644 index 00000000000..48c1050f815 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsCatalogsListBySubscriptionSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts.map new file mode 100644 index 00000000000..b81110d3880 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsListBySubscriptionSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js new file mode 100644 index 00000000000..420a1b89bd2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataProductsCatalogsListBySubscriptionMaximumSetGen(); + dataProductsCatalogsListBySubscriptionMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsCatalogsListBySubscriptionSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js.map new file mode 100644 index 00000000000..12366398fa5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogsListBySubscriptionSample.js","sourceRoot":"","sources":["dataProductsCatalogsListBySubscriptionSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,mDAAmD;IAChE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,EAAE,CAAC;QACxE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,mDAAmD;IAChE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,EAAE,CAAC;QACxE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,mDAAmD,EAAE,CAAC;IACtD,mDAAmD,EAAE,CAAC;AACxD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts new file mode 100644 index 00000000000..93ad8a8215f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data catalog by subscription. + * + * @summary List data catalog by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProductsCatalogs.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsCatalogsListBySubscriptionMaximumSetGen(); + dataProductsCatalogsListBySubscriptionMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts new file mode 100644 index 00000000000..9b3aa33756a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsCreateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts.map new file mode 100644 index 00000000000..1b249dd5fcb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCreateSample.d.ts","sourceRoot":"","sources":["dataProductsCreateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js new file mode 100644 index 00000000000..c5ec3708b58 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js @@ -0,0 +1,109 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} + } + }, + location: "eastus", + properties: { + consumptionEndpoints: {}, + currentMinorVersion: "1.0.1", + customerEncryptionKey: { + keyName: "keyName", + keyVaultUri: "https://KeyVault.vault.azure.net", + keyVersion: "keyVersion" + }, + customerManagedKeyEncryptionEnabled: "Enabled", + majorVersion: "1.0.0", + managedResourceGroupConfiguration: { + name: "managedResourceGroupName", + location: "eastus" + }, + networkacls: { + allowedQueryIpRangeList: ["1.1.1.1"], + defaultAction: "Allow", + ipRules: [{ action: "Allow", value: "1.1.1.1" }], + virtualNetworkRule: [ + { + action: "Allow", + id: "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", + state: "" + } + ] + }, + owners: ["abc@micros.com"], + privateLinksEnabled: "Disabled", + product: "MCC", + provisioningState: "Succeeded", + publicNetworkAccess: "Enabled", + publisher: "Microsoft", + purviewAccount: "testpurview", + purviewCollection: "134567890", + redundancy: "Disabled" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait(resourceGroupName, dataProductName, resource); + console.log(result); +} +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource = { + location: "eastus", + properties: { + majorVersion: "1.0.0", + product: "MCC", + publisher: "Microsoft" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait(resourceGroupName, dataProductName, resource); + console.log(result); +} +async function main() { + dataProductsCreateMaximumSetGen(); + dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsCreateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js.map new file mode 100644 index 00000000000..7bccad90499 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCreateSample.js","sourceRoot":"","sources":["dataProductsCreateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,QAAQ,GAAgB;QAC5B,QAAQ,EAAE;YACR,IAAI,EAAE,cAAc;YACpB,sBAAsB,EAAE;gBACtB,qHAAqH,EAAE,EAAE;aAC1H;SACF;QACD,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACV,oBAAoB,EAAE,EAAE;YACxB,mBAAmB,EAAE,OAAO;YA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,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,QAAQ,GAAgB;QAC5B,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACV,YAAY,EAAE,OAAO;YACrB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,WAAW;SACvB;QACD,IAAI,EAAE,EAAE,oBAAoB,EAAE,uBAAuB,EAAE;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.ts new file mode 100644 index 00000000000..68837e98b83 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.ts @@ -0,0 +1,127 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataProduct, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource: DataProduct = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} + } + }, + location: "eastus", + properties: { + consumptionEndpoints: {}, + currentMinorVersion: "1.0.1", + customerEncryptionKey: { + keyName: "keyName", + keyVaultUri: "https://KeyVault.vault.azure.net", + keyVersion: "keyVersion" + }, + customerManagedKeyEncryptionEnabled: "Enabled", + majorVersion: "1.0.0", + managedResourceGroupConfiguration: { + name: "managedResourceGroupName", + location: "eastus" + }, + networkacls: { + allowedQueryIpRangeList: ["1.1.1.1"], + defaultAction: "Allow", + ipRules: [{ action: "Allow", value: "1.1.1.1" }], + virtualNetworkRule: [ + { + action: "Allow", + id: + "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", + state: "" + } + ] + }, + owners: ["abc@micros.com"], + privateLinksEnabled: "Disabled", + product: "MCC", + provisioningState: "Succeeded", + publicNetworkAccess: "Enabled", + publisher: "Microsoft", + purviewAccount: "testpurview", + purviewCollection: "134567890", + redundancy: "Disabled" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait( + resourceGroupName, + dataProductName, + resource + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create data product resource. + * + * @summary Create data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json + */ +async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const resource: DataProduct = { + location: "eastus", + properties: { + majorVersion: "1.0.0", + product: "MCC", + publisher: "Microsoft" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginCreateAndWait( + resourceGroupName, + dataProductName, + resource + ); + console.log(result); +} + +async function main() { + dataProductsCreateMaximumSetGen(); + dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts new file mode 100644 index 00000000000..5b05bd03888 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsDeleteSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts.map new file mode 100644 index 00000000000..ec49e8459e0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsDeleteSample.d.ts","sourceRoot":"","sources":["dataProductsDeleteSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js new file mode 100644 index 00000000000..2f3a7e1c206 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js @@ -0,0 +1,54 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); + console.log(result); +} +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); + console.log(result); +} +async function main() { + dataProductsDeleteMaximumSetGen(); + dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsDeleteSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js.map new file mode 100644 index 00000000000..c6bceb0cc74 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsDeleteSample.js","sourceRoot":"","sources":["dataProductsDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.ts new file mode 100644 index 00000000000..ae058b82a9c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait( + resourceGroupName, + dataProductName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data product resource. + * + * @summary Delete data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json + */ +async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginDeleteAndWait( + resourceGroupName, + dataProductName + ); + console.log(result); +} + +async function main() { + dataProductsDeleteMaximumSetGen(); + dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts new file mode 100644 index 00000000000..2eb1d1da828 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsGenerateStorageAccountSasTokenSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map new file mode 100644 index 00000000000..37ff2588b31 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsGenerateStorageAccountSasTokenSample.d.ts","sourceRoot":"","sources":["dataProductsGenerateStorageAccountSasTokenSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js new file mode 100644 index 00000000000..a508027d425 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js @@ -0,0 +1,64 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.151Z") + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:17.051Z") + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); + dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsGenerateStorageAccountSasTokenSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js.map new file mode 100644 index 00000000000..44fda47931e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsGenerateStorageAccountSasTokenSample.js","sourceRoot":"","sources":["dataProductsGenerateStorageAccountSasTokenSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,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G,MAAM,MAAM,CAAC,YAAY,CAAC,8BAA8B,CACrE,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uDAAuD,EAAE,CAAC;IAC1D,6FAA6F,EAAE,CAAC;AAClG,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts new file mode 100644 index 00000000000..105e2b635ab --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AccountSas, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: AccountSas = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.151Z") + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Generate sas token for storage account. + * + * @summary Generate sas token for storage account. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json + */ +async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: AccountSas = { + expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:17.051Z") + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.generateStorageAccountSasToken( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); + dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts new file mode 100644 index 00000000000..46c65e12bf9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts.map new file mode 100644 index 00000000000..8eded8ab304 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsGetSample.d.ts","sourceRoot":"","sources":["dataProductsGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js new file mode 100644 index 00000000000..fdf94c061a1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js @@ -0,0 +1,54 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json + */ +async function dataProductsGetMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get(resourceGroupName, dataProductName); + console.log(result); +} +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json + */ +async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get(resourceGroupName, dataProductName); + console.log(result); +} +async function main() { + dataProductsGetMaximumSetGen(); + dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js.map new file mode 100644 index 00000000000..8bdd1b1c4a5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsGetSample.js","sourceRoot":"","sources":["dataProductsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kEAAkE;IAC/E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.ts new file mode 100644 index 00000000000..592a1bdef80 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json + */ +async function dataProductsGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get( + resourceGroupName, + dataProductName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data product resource. + * + * @summary Retrieve data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json + */ +async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.get( + resourceGroupName, + dataProductName + ); + console.log(result); +} + +async function main() { + dataProductsGetMaximumSetGen(); + dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts new file mode 100644 index 00000000000..bd6a9f34578 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsListByResourceGroupSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts.map new file mode 100644 index 00000000000..04cd8454f64 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["dataProductsListByResourceGroupSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js new file mode 100644 index 00000000000..300dd9529c7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js @@ -0,0 +1,58 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataProductsListByResourceGroupMaximumSetGen(); + dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsListByResourceGroupSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js.map new file mode 100644 index 00000000000..d1d40ba9da4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListByResourceGroupSample.js","sourceRoot":"","sources":["dataProductsListByResourceGroupSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4CAA4C;IACzD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAC5D,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kFAAkF;IAC/F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAC5D,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4CAA4C,EAAE,CAAC;IAC/C,kFAAkF,EAAE,CAAC;AACvF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts new file mode 100644 index 00000000000..7db66b97df1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data products by resource group. + * + * @summary List data products by resource group. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json + */ +async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsListByResourceGroupMaximumSetGen(); + dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts new file mode 100644 index 00000000000..ba89955049d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsListBySubscriptionSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts.map new file mode 100644 index 00000000000..020e622aa95 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["dataProductsListBySubscriptionSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js new file mode 100644 index 00000000000..1c54379b2de --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataProductsListBySubscriptionMaximumSetGen(); + dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsListBySubscriptionSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js.map new file mode 100644 index 00000000000..5865fb720f9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListBySubscriptionSample.js","sourceRoot":"","sources":["dataProductsListBySubscriptionSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,2CAA2C;IACxD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAChE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,iFAAiF;IAC9F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAChE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,2CAA2C,EAAE,CAAC;IAC9C,iFAAiF,EAAE,CAAC;AACtF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts new file mode 100644 index 00000000000..e765389b95b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data products by subscription. + * + * @summary List data products by subscription. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json + */ +async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataProducts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataProductsListBySubscriptionMaximumSetGen(); + dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts new file mode 100644 index 00000000000..08e3be1c25a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsListRolesAssignmentsSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts.map new file mode 100644 index 00000000000..d8102a183e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListRolesAssignmentsSample.d.ts","sourceRoot":"","sources":["dataProductsListRolesAssignmentsSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js new file mode 100644 index 00000000000..7cda88f15bc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsListRolesAssignmentsMaximumSetGen(); + dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsListRolesAssignmentsSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js.map new file mode 100644 index 00000000000..a017ecf12a7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsListRolesAssignmentsSample.js","sourceRoot":"","sources":["dataProductsListRolesAssignmentsSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AAC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M,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,6CAA6C,EAAE,CAAC;IAChD,mFAAmF,EAAE,CAAC;AACxF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts new file mode 100644 index 00000000000..1893752fa9b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to List user roles associated with the data product. + * + * @summary List user roles associated with the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json + */ +async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.listRolesAssignments( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsListRolesAssignmentsMaximumSetGen(); + dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts new file mode 100644 index 00000000000..0e34b2f8842 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsRemoveUserRoleSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts.map new file mode 100644 index 00000000000..2431bfc978e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsRemoveUserRoleSample.d.ts","sourceRoot":"","sources":["dataProductsRemoveUserRoleSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js new file mode 100644 index 00000000000..1c2281e0c39 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js @@ -0,0 +1,72 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsRemoveUserRoleMaximumSetGen(); + dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsRemoveUserRoleSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js.map new file mode 100644 index 00000000000..2e9a69e8aef --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsRemoveUserRoleSample.js","sourceRoot":"","sources":["dataProductsRemoveUserRoleSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,uCAAuC;IACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAyB;QACjC,aAAa,EAAE,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,qCAAqC;QAClD,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,QAAQ;QACd,gBAAgB,E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,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts new file mode 100644 index 00000000000..0344a82c8d0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RoleAssignmentDetail, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: RoleAssignmentDetail = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Remove role from the data product. + * + * @summary Remove role from the data product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json + */ +async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: RoleAssignmentDetail = { + dataTypeScope: ["scope"], + principalId: "00000000-0000-0000-0000-00000000000", + principalType: "User", + role: "Reader", + roleAssignmentId: "00000000-0000-0000-0000-00000000000", + roleId: "00000000-0000-0000-0000-00000000000", + userName: "UserName" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.removeUserRole( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsRemoveUserRoleMaximumSetGen(); + dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts new file mode 100644 index 00000000000..1ab1a48d7c2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsRotateKeySample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts.map new file mode 100644 index 00000000000..59027d7af9e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsRotateKeySample.d.ts","sourceRoot":"","sources":["dataProductsRotateKeySample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js new file mode 100644 index 00000000000..ade311c50d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js @@ -0,0 +1,60 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + keyVaultUrl: "https://myKeyVault.vault.azure.net" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); + console.log(result); +} +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body = { + keyVaultUrl: "https://myKeyVault.vault.azure.net" + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); + console.log(result); +} +async function main() { + dataProductsRotateKeyMaximumSetGen(); + dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsRotateKeySample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js.map new file mode 100644 index 00000000000..61dd664fda2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsRotateKeySample.js","sourceRoot":"","sources":["dataProductsRotateKeySample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,kCAAkC;IAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAiB;QACzB,WAAW,EAAE,oCAAoC;KAClD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,SAAS,CAChD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,wEAAwE;IACrF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAiB;QACzB,WAAW,EAAE,oCAAoC;KAClD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,SAAS,CAChD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,kCAAkC,EAAE,CAAC;IACrC,wEAAwE,EAAE,CAAC;AAC7E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.ts new file mode 100644 index 00000000000..c280787be94 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + KeyVaultInfo, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: KeyVaultInfo = { + keyVaultUrl: "https://myKeyVault.vault.azure.net" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Initiate key rotation on Data Product. + * + * @summary Initiate key rotation on Data Product. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json + */ +async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const body: KeyVaultInfo = { + keyVaultUrl: "https://myKeyVault.vault.azure.net" + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.rotateKey( + resourceGroupName, + dataProductName, + body + ); + console.log(result); +} + +async function main() { + dataProductsRotateKeyMaximumSetGen(); + dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts new file mode 100644 index 00000000000..705d979ef6b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataProductsUpdateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts.map new file mode 100644 index 00000000000..a3d1e0913f1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsUpdateSample.d.ts","sourceRoot":"","sources":["dataProductsUpdateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js new file mode 100644 index 00000000000..ceda37fd89d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js @@ -0,0 +1,71 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} + } + }, + properties: { + currentMinorVersion: "1.0.1", + owners: ["abc@micros.com", "def@micros.com"], + privateLinksEnabled: "Disabled", + purviewAccount: "testpurview", + purviewCollection: "134567890" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait(resourceGroupName, dataProductName, properties); + console.log(result); +} +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait(resourceGroupName, dataProductName, properties); + console.log(result); +} +async function main() { + dataProductsUpdateMaximumSetGen(); + dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataProductsUpdateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js.map new file mode 100644 index 00000000000..619daa74264 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsUpdateSample.js","sourceRoot":"","sources":["dataProductsU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,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAsB,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.ts new file mode 100644 index 00000000000..0edc31352db --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.ts @@ -0,0 +1,88 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataProductUpdate, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties: DataProductUpdate = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} + } + }, + properties: { + currentMinorVersion: "1.0.1", + owners: ["abc@micros.com", "def@micros.com"], + privateLinksEnabled: "Disabled", + purviewAccount: "testpurview", + purviewCollection: "134567890" + }, + tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait( + resourceGroupName, + dataProductName, + properties + ); + console.log(result); +} + +/** + * This sample demonstrates how to Update data product resource. + * + * @summary Update data product resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json + */ +async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const properties: DataProductUpdate = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataProducts.beginUpdateAndWait( + resourceGroupName, + dataProductName, + properties + ); + console.log(result); +} + +async function main() { + dataProductsUpdateMaximumSetGen(); + dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts new file mode 100644 index 00000000000..0887d5b0dd8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesCreateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts.map new file mode 100644 index 00000000000..20477ab2ad0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesCreateSample.d.ts","sourceRoot":"","sources":["dataTypesCreateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js new file mode 100644 index 00000000000..b402f22d9ce --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js @@ -0,0 +1,66 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource = { + properties: { + databaseCacheRetention: 23, + databaseRetention: 6, + provisioningState: "Succeeded", + state: "STARTED", + storageOutputRetention: 27 + } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource); + console.log(result); +} +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource); + console.log(result); +} +async function main() { + dataTypesCreateMaximumSetGen(); + dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesCreateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js.map new file mode 100644 index 00000000000..a6c6ad7ca26 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesCreateSample.js","sourceRoot":"","sources":["dataTypesCreateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAA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ACZ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.ts new file mode 100644 index 00000000000..0f9ea34a269 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataType, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource: DataType = { + properties: { + databaseCacheRetention: 23, + databaseRetention: 6, + provisioningState: "Succeeded", + state: "STARTED", + storageOutputRetention: 27 + } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + resource + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create data type resource. + * + * @summary Create data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json + */ +async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const resource: DataType = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginCreateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + resource + ); + console.log(result); +} + +async function main() { + dataTypesCreateMaximumSetGen(); + dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts new file mode 100644 index 00000000000..b5e63d57ede --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesDeleteDataSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts.map new file mode 100644 index 00000000000..1c012b1b837 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesDeleteDataSample.d.ts","sourceRoot":"","sources":["dataTypesDeleteDataSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js new file mode 100644 index 00000000000..d5d1e4ff3e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js @@ -0,0 +1,58 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json + */ +async function dataTypesDeleteDataMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body); + console.log(result); +} +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json + */ +async function dataTypesDeleteDataMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body); + console.log(result); +} +async function main() { + dataTypesDeleteDataMaximumSetGen(); + dataTypesDeleteDataMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesDeleteDataSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js.map new file mode 100644 index 00000000000..8bd8de885e5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesDeleteDataSample.js","sourceRoot":"","sources":["dataTypesDeleteDataSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,gCAAgC;IAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAC1D,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,gCAAgC;IAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAC1D,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,gCAAgC,EAAE,CAAC;IACnC,gCAAgC,EAAE,CAAC;AACrC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.ts new file mode 100644 index 00000000000..8c031b138fc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json + */ +async function dataTypesDeleteDataMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data for data type. + * + * @summary Delete data for data type. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json + */ +async function dataTypesDeleteDataMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteDataAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + body + ); + console.log(result); +} + +async function main() { + dataTypesDeleteDataMaximumSetGen(); + dataTypesDeleteDataMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts new file mode 100644 index 00000000000..87b7d3cb874 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesDeleteSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts.map new file mode 100644 index 00000000000..0a08af135b5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesDeleteSample.d.ts","sourceRoot":"","sources":["dataTypesDeleteSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js new file mode 100644 index 00000000000..948f82efc90 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} +async function main() { + dataTypesDeleteMaximumSetGen(); + dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesDeleteSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js.map new file mode 100644 index 00000000000..5769d9b6400 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesDeleteSample.js","sourceRoot":"","sources":["dataTypesDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kEAAkE;IAC/E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.ts new file mode 100644 index 00000000000..11a0a3ab64a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait( + resourceGroupName, + dataProductName, + dataTypeName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Delete data type resource. + * + * @summary Delete data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json + */ +async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginDeleteAndWait( + resourceGroupName, + dataProductName, + dataTypeName + ); + console.log(result); +} + +async function main() { + dataTypesDeleteMaximumSetGen(); + dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts new file mode 100644 index 00000000000..6deef309b71 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesGenerateStorageContainerSasTokenSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map new file mode 100644 index 00000000000..e73e12c0ff7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesGenerateStorageContainerSasTokenSample.d.ts","sourceRoot":"","sources":["dataTypesGenerateStorageContainerSasTokenSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js new file mode 100644 index 00000000000..063c422c66e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js @@ -0,0 +1,66 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.039Z") + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body); + console.log(result); +} +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body = { + expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:16.887Z") + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body); + console.log(result); +} +async function main() { + dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); + dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesGenerateStorageContainerSasTokenSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js.map new file mode 100644 index 00000000000..c85d5711899 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesGenerateStorageContainerSasTokenSample.js","sourceRoot":"","sources":["dataTypesGenerateStorageContainerSasTokenSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,sDAAsD;IACnE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAAiB;QACzB,eAAe,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;QACrD,SAAS,EAAE,SAAS;QACpB,cAAc,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;KACrD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,gCAAgC,CACpE,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,4FAA4F;IACzG,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAAiB;QACzB,eAAe,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;QACrD,SAAS,EAAE,SAAS;QACpB,cAAc,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;KACrD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,gCAAgC,CACpE,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,sDAAsD,EAAE,CAAC;IACzD,4FAA4F,EAAE,CAAC;AACjG,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts new file mode 100644 index 00000000000..c59582d1e86 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ContainerSaS, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body: ContainerSaS = { + expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:34:58.039Z") + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken( + resourceGroupName, + dataProductName, + dataTypeName, + body + ); + console.log(result); +} + +/** + * This sample demonstrates how to Generate sas token for storage container. + * + * @summary Generate sas token for storage container. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json + */ +async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const body: ContainerSaS = { + expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), + ipAddress: "1.1.1.1", + startTimeStamp: new Date("2023-08-24T05:35:16.887Z") + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.generateStorageContainerSasToken( + resourceGroupName, + dataProductName, + dataTypeName, + body + ); + console.log(result); +} + +async function main() { + dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); + dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts new file mode 100644 index 00000000000..f624173fcc5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts.map new file mode 100644 index 00000000000..35fc22320bf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesGetSample.d.ts","sourceRoot":"","sources":["dataTypesGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js new file mode 100644 index 00000000000..39fef8479f0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json + */ +async function dataTypesGetMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json + */ +async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); + console.log(result); +} +async function main() { + dataTypesGetMaximumSetGen(); + dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js.map new file mode 100644 index 00000000000..4fe2f6674ef --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesGetSample.js","sourceRoot":"","sources":["dataTypesGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,yBAAyB;IACtC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,+DAA+D;IAC5E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,yBAAyB,EAAE,CAAC;IAC5B,+DAA+D,EAAE,CAAC;AACpE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.ts new file mode 100644 index 00000000000..c430835edb8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json + */ +async function dataTypesGetMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get( + resourceGroupName, + dataProductName, + dataTypeName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Retrieve data type resource. + * + * @summary Retrieve data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json + */ +async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.get( + resourceGroupName, + dataProductName, + dataTypeName + ); + console.log(result); +} + +async function main() { + dataTypesGetMaximumSetGen(); + dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts new file mode 100644 index 00000000000..cc9f3d58e87 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesListByDataProductSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts.map new file mode 100644 index 00000000000..52d1e22cd82 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesListByDataProductSample.d.ts","sourceRoot":"","sources":["dataTypesListByDataProductSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js new file mode 100644 index 00000000000..53cc8222da3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js @@ -0,0 +1,60 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + dataTypesListByDataProductMaximumSetGen(); + dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesListByDataProductSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js.map new file mode 100644 index 00000000000..a309ebfd60c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesListByDataProductSample.js","sourceRoot":"","sources":["dataTypesListByDataProductSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,uCAAuC;IACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,iBAAiB,CACvD,iBAAiB,EACjB,eAAe,CAChB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,6EAA6E;IAC1F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,iBAAiB,CACvD,iBAAiB,EACjB,eAAe,CAChB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uCAAuC,EAAE,CAAC;IAC1C,6EAA6E,EAAE,CAAC;AAClF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.ts new file mode 100644 index 00000000000..894c944360d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct( + resourceGroupName, + dataProductName + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List data type by parent resource. + * + * @summary List data type by parent resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json + */ +async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataTypes.listByDataProduct( + resourceGroupName, + dataProductName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataTypesListByDataProductMaximumSetGen(); + dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts new file mode 100644 index 00000000000..a6d1b42eda1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dataTypesUpdateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts.map new file mode 100644 index 00000000000..e947203e164 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesUpdateSample.d.ts","sourceRoot":"","sources":["dataTypesUpdateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js new file mode 100644 index 00000000000..8765bbda915 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js @@ -0,0 +1,65 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties = { + properties: { + databaseCacheRetention: 16, + databaseRetention: 9, + state: "STARTED", + storageOutputRetention: 30 + } + }; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties); + console.log(result); +} +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties = {}; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties); + console.log(result); +} +async function main() { + dataTypesUpdateMaximumSetGen(); + dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=dataTypesUpdateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js.map new file mode 100644 index 00000000000..54f1e05bc38 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypesUpdateSample.js","sourceRoot":"","sources":["dataTypesUpdateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAA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AAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.ts new file mode 100644 index 00000000000..600eac4fa74 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataTypeUpdate, + MicrosoftNetworkAnalytics +} from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties: DataTypeUpdate = { + properties: { + databaseCacheRetention: 16, + databaseRetention: 9, + state: "STARTED", + storageOutputRetention: 30 + } + }; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + properties + ); + console.log(result); +} + +/** + * This sample demonstrates how to Update data type resource. + * + * @summary Update data type resource. + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json + */ +async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-00000000000"; + const resourceGroupName = + process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; + const dataProductName = "dataproduct01"; + const dataTypeName = "datatypename"; + const properties: DataTypeUpdate = {}; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const result = await client.dataTypes.beginUpdateAndWait( + resourceGroupName, + dataProductName, + dataTypeName, + properties + ); + console.log(result); +} + +async function main() { + dataTypesUpdateMaximumSetGen(); + dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts new file mode 100644 index 00000000000..cb740f3e024 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=operationsListSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts.map new file mode 100644 index 00000000000..772fe831a00 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["operationsListSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js new file mode 100644 index 00000000000..15e702bc0dd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js @@ -0,0 +1,56 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); +const identity_1 = require("@azure/identity"); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json + */ +async function operationsListMaximumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json + */ +async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new identity_1.DefaultAzureCredential(); + const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} +async function main() { + operationsListMaximumSetGen(); + operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} +main().catch(console.error); +//# sourceMappingURL=operationsListSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js.map new file mode 100644 index 00000000000..a5bb0133a22 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js.map @@ -0,0 +1 @@ +{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["operationsListSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,2BAA2B;IACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,sCAAsC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,iEAAiE;IAC9E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,sCAAsC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,2BAA2B,EAAE,CAAC;IAC9B,iEAAiE,EAAE,CAAC;AACtE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.ts new file mode 100644 index 00000000000..6640d1a5b7f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json + */ +async function operationsListMaximumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List the operations for the provider + * + * @summary List the operations for the provider + * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json + */ +async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { + const subscriptionId = + process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsListMaximumSetGen(); + operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); +} + +main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/tsconfig.json new file mode 100644 index 00000000000..e26ce2a6d8f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts new file mode 100644 index 00000000000..7f85302468c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts @@ -0,0 +1,5 @@ +export { getContinuationToken } from "./pagingHelper"; +export * from "./models"; +export { MicrosoftNetworkAnalytics } from "./microsoftNetworkAnalytics"; +export * from "./operationsInterfaces"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts.map new file mode 100644 index 00000000000..bb971dcc694 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js new file mode 100644 index 00000000000..d04af681e9f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js @@ -0,0 +1,19 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MicrosoftNetworkAnalytics = exports.getContinuationToken = void 0; +const tslib_1 = require("tslib"); +/// +var pagingHelper_1 = require("./pagingHelper"); +Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_1.getContinuationToken; } }); +tslib_1.__exportStar(require("./models"), exports); +var microsoftNetworkAnalytics_1 = require("./microsoftNetworkAnalytics"); +Object.defineProperty(exports, "MicrosoftNetworkAnalytics", { enumerable: true, get: function () { return microsoftNetworkAnalytics_1.MicrosoftNetworkAnalytics; } }); +tslib_1.__exportStar(require("./operationsInterfaces"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js.map new file mode 100644 index 00000000000..66bcffef3df --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,+CAAsD;AAA7C,oHAAA,oBAAoB,OAAA;AAC7B,mDAAyB;AACzB,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,iEAAuC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.ts new file mode 100644 index 00000000000..accda255b1a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.ts @@ -0,0 +1,13 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +/// +export { getContinuationToken } from "./pagingHelper"; +export * from "./models"; +export { MicrosoftNetworkAnalytics } from "./microsoftNetworkAnalytics"; +export * from "./operationsInterfaces"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts new file mode 100644 index 00000000000..e5dad739459 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts @@ -0,0 +1,11 @@ +import { LongRunningOperation, LroResponse } from "@azure/core-lro"; +export declare function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation; +//# sourceMappingURL=lroImpl.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts.map new file mode 100644 index 00000000000..b5a423c251f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js new file mode 100644 index 00000000000..437247e6126 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js @@ -0,0 +1,28 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createLroSpec = createLroSpec; +function createLroSpec(inputs) { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: (path, options) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; +} +//# sourceMappingURL=lroImpl.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js.map new file mode 100644 index 00000000000..2db139d026a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,sCA2BC;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.ts new file mode 100644 index 00000000000..dd803cd5e28 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; +import { LongRunningOperation, LroResponse } from "@azure/core-lro"; + +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts new file mode 100644 index 00000000000..54a3dafef0b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts @@ -0,0 +1,23 @@ +import * as coreClient from "@azure/core-client"; +import * as coreAuth from "@azure/core-auth"; +import { Operations, DataProducts, DataProductsCatalogs, DataTypes } from "./operationsInterfaces"; +import { MicrosoftNetworkAnalyticsOptionalParams } from "./models"; +export declare class MicrosoftNetworkAnalytics extends coreClient.ServiceClient { + $host: string; + apiVersion: string; + subscriptionId: string; + /** + * Initializes a new instance of the MicrosoftNetworkAnalytics class. + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param subscriptionId The ID of the target subscription. + * @param options The parameter options + */ + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftNetworkAnalyticsOptionalParams); + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy; + operations: Operations; + dataProducts: DataProducts; + dataProductsCatalogs: DataProductsCatalogs; + dataTypes: DataTypes; +} +//# sourceMappingURL=microsoftNetworkAnalytics.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts.map new file mode 100644 index 00000000000..95f02526ac6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"microsoftNetworkAnalytics.d.ts","sourceRoot":"","sources":["microsoftNetworkAnalytics.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uCAAuC,EAAE,MAAM,UAAU,CAAC;AAEnE,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC;IA+EnD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC;CACtB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js new file mode 100644 index 00000000000..449740710a6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js @@ -0,0 +1,117 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MicrosoftNetworkAnalytics = void 0; +const tslib_1 = require("tslib"); +const coreClient = tslib_1.__importStar(require("@azure/core-client")); +const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline")); +const operations_1 = require("./operations"); +class MicrosoftNetworkAnalytics extends coreClient.ServiceClient { + $host; + apiVersion; + subscriptionId; + /** + * Initializes a new instance of the MicrosoftNetworkAnalytics class. + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param subscriptionId The ID of the target subscription. + * @param options The parameter options + */ + constructor(credentials, subscriptionId, options) { + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; + const packageDetails = `azsdk-js-arm-networkanalytics/1.0.1`; + const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com" + }; + super(optionsWithDefaults); + let bearerTokenAuthenticationPolicyFound = false; + if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { + const pipelinePolicies = options.pipeline.getOrderedPolicies(); + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === + coreRestPipeline.bearerTokenAuthenticationPolicyName); + } + if (!options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: optionsWithDefaults.credentialScopes ?? + `${optionsWithDefaults.endpoint}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge + } + })); + } + // Parameter assignments + this.subscriptionId = subscriptionId; + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2023-11-15"; + this.operations = new operations_1.OperationsImpl(this); + this.dataProducts = new operations_1.DataProductsImpl(this); + this.dataProductsCatalogs = new operations_1.DataProductsCatalogsImpl(this); + this.dataTypes = new operations_1.DataTypesImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + addCustomApiVersionPolicy(apiVersion) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest(request, next) { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } + else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); + } + operations; + dataProducts; + dataProductsCatalogs; + dataTypes; +} +exports.MicrosoftNetworkAnalytics = MicrosoftNetworkAnalytics; +//# sourceMappingURL=microsoftNetworkAnalytics.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js.map new file mode 100644 index 00000000000..ca0f50325ed --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js.map @@ -0,0 +1 @@ +{"version":3,"file":"microsoftNetworkAnalytics.js","sourceRoot":"","sources":["microsoftNetworkAnalytics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,6CAKsB;AAStB,MAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAiD;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAA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G,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,YAAY,CAAe;IAC3B,oBAAoB,CAAuB;IAC3C,SAAS,CAAY;CACtB;AA7HD,8DA6HC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.ts new file mode 100644 index 00000000000..265eb302e7a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.ts @@ -0,0 +1,156 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import * as coreClient from "@azure/core-client"; +import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; +import * as coreAuth from "@azure/core-auth"; +import { + OperationsImpl, + DataProductsImpl, + DataProductsCatalogsImpl, + DataTypesImpl +} from "./operations"; +import { + Operations, + DataProducts, + DataProductsCatalogs, + DataTypes +} from "./operationsInterfaces"; +import { MicrosoftNetworkAnalyticsOptionalParams } from "./models"; + +export class MicrosoftNetworkAnalytics extends coreClient.ServiceClient { + $host: string; + apiVersion: string; + subscriptionId: string; + + /** + * Initializes a new instance of the MicrosoftNetworkAnalytics class. + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param subscriptionId The ID of the target subscription. + * @param options The parameter options + */ + constructor( + credentials: coreAuth.TokenCredential, + subscriptionId: string, + options?: MicrosoftNetworkAnalyticsOptionalParams + ) { + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: MicrosoftNetworkAnalyticsOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; + + const packageDetails = `azsdk-js-arm-networkanalytics/1.0.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; + + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + endpoint: + options.endpoint ?? options.baseUri ?? "https://management.azure.com" + }; + super(optionsWithDefaults); + + let bearerTokenAuthenticationPolicyFound: boolean = false; + if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + (pipelinePolicy) => + pipelinePolicy.name === + coreRestPipeline.bearerTokenAuthenticationPolicyName + ); + } + if ( + !options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound + ) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: + optionsWithDefaults.credentialScopes ?? + `${optionsWithDefaults.endpoint}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } + // Parameter assignments + this.subscriptionId = subscriptionId; + + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2023-11-15"; + this.operations = new OperationsImpl(this); + this.dataProducts = new DataProductsImpl(this); + this.dataProductsCatalogs = new DataProductsCatalogsImpl(this); + this.dataTypes = new DataTypesImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); + } + + operations: Operations; + dataProducts: DataProducts; + dataProductsCatalogs: DataProductsCatalogs; + dataTypes: DataTypes; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts new file mode 100644 index 00000000000..b1fcb6ce7a4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts @@ -0,0 +1,976 @@ +import * as coreClient from "@azure/core-client"; +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { + /** + * List of operations supported by the resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * URL to get the next set of operation list results (if there are any). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: Origin; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; +} +/** Localized display information for this particular operation. */ +export interface OperationDisplay { + /** + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; +} +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} +/** The response of a DataProduct list operation. */ +export interface DataProductListResult { + /** The DataProduct items on this page */ + value: DataProduct[]; + /** The link to the next page of items */ + nextLink?: string; +} +/** The data product properties. */ +export interface DataProductProperties { + /** + * The resource GUID property of the data product resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceGuid?: string; + /** + * Latest provisioning state of data product. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** Data product publisher name. */ + publisher: string; + /** Product name of data product. */ + product: string; + /** Major version of data product. */ + majorVersion: string; + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Flag to enable or disable redundancy for data product. */ + redundancy?: ControlState; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Flag to enable or disable public access of data product resource. */ + publicNetworkAccess?: ControlState; + /** Flag to enable customer managed key encryption for data product. */ + customerManagedKeyEncryptionEnabled?: ControlState; + /** Customer managed encryption key details for data product. */ + customerEncryptionKey?: EncryptionKeyDetails; + /** Network rule set for data product. */ + networkacls?: DataProductNetworkAcls; + /** Managed resource group configuration. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + /** + * List of available minor versions of the data product resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availableMinorVersions?: string[]; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; + /** + * Documentation link for the data product based on definition file. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly documentation?: string; + /** + * Resource links which exposed to the customer to query the data. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly consumptionEndpoints?: ConsumptionEndpointsProperties; + /** + * Key vault url. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyVaultUrl?: string; +} +/** Encryption key details. */ +export interface EncryptionKeyDetails { + /** The Uri of the key vault. */ + keyVaultUri: string; + /** The name of the key vault key. */ + keyName: string; + /** The version of the key vault key. */ + keyVersion: string; +} +/** Data Product Network rule set */ +export interface DataProductNetworkAcls { + /** Virtual Network Rule */ + virtualNetworkRule: VirtualNetworkRule[]; + /** IP rule with specific IP or IP range in CIDR format. */ + ipRules: IPRules[]; + /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ + allowedQueryIpRangeList: string[]; + /** Default Action */ + defaultAction: DefaultAction; +} +/** Virtual Network Rule */ +export interface VirtualNetworkRule { + /** Resource ID of a subnet */ + id: string; + /** The action of virtual network rule. */ + action?: string; + /** Gets the state of virtual network rule. */ + state?: string; +} +/** IP rule with specific IP or IP range in CIDR format. */ +export interface IPRules { + /** IP Rules Value */ + value?: string; + /** The action of virtual network rule. */ + action: string; +} +/** ManagedResourceGroup related properties */ +export interface ManagedResourceGroupConfiguration { + /** Name of managed resource group */ + name: string; + /** Managed Resource Group location */ + location: string; +} +/** Details of Consumption Properties */ +export interface ConsumptionEndpointsProperties { + /** + * Ingestion url to upload the data. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ingestionUrl?: string; + /** + * Resource Id of ingestion endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ingestionResourceId?: string; + /** + * Url to consume file type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fileAccessUrl?: string; + /** + * Resource Id of file access endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fileAccessResourceId?: string; + /** + * Url to consume the processed data. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryUrl?: string; + /** + * Resource Id of query endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryResourceId?: string; +} +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { + /** + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; +} +/** User assigned identity properties */ +export interface UserAssignedIdentity { + /** + * The principal ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} +/** The response of a DataProductsCatalog list operation. */ +export interface DataProductsCatalogListResult { + /** The DataProductsCatalog items on this page */ + value: DataProductsCatalog[]; + /** The link to the next page of items */ + nextLink?: string; +} +/** Details for data catalog properties. */ +export interface DataProductsCatalogProperties { + /** + * The data catalog provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The data product publisher information. */ + publishers: PublisherInformation[]; +} +/** Details for Publisher Information. */ +export interface PublisherInformation { + /** Name of the publisher. */ + publisherName: string; + /** Data product information. */ + dataProducts: DataProductInformation[]; +} +/** Data Product Information */ +export interface DataProductInformation { + /** Name of data product. */ + dataProductName: string; + /** Description about data product. */ + description: string; + /** Version information of data product. */ + dataProductVersions: DataProductVersion[]; +} +/** Data Product Version. */ +export interface DataProductVersion { + /** Version of data product */ + version: string; +} +/** The type used for update operations of the DataProduct. */ +export interface DataProductUpdate { + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; + /** Resource tags. */ + tags?: { + [propertyName: string]: string; + }; + /** The updatable properties of the DataProduct. */ + properties?: DataProductUpdateProperties; +} +/** The updatable properties of the DataProduct. */ +export interface DataProductUpdateProperties { + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; +} +/** The details for role assignment common properties. */ +export interface RoleAssignmentCommonProperties { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; +} +/** The details for role assignment response. */ +export interface RoleAssignmentDetail { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; + /** Id of role assignment request */ + roleAssignmentId: string; +} +/** The response of a DataType list operation. */ +export interface DataTypeListResult { + /** The DataType items on this page */ + value: DataType[]; + /** The link to the next page of items */ + nextLink?: string; +} +/** The data type properties */ +export interface DataTypeProperties { + /** + * Latest provisioning state of data product. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** State of data type. */ + state?: DataTypeState; + /** + * Reason for the state of data type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly stateReason?: string; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; + /** + * Url for data visualization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly visualizationUrl?: string; +} +/** The type used for update operations of the DataType. */ +export interface DataTypeUpdate { + /** The updatable properties of the DataType. */ + properties?: DataTypeUpdateProperties; +} +/** The updatable properties of the DataType. */ +export interface DataTypeUpdateProperties { + /** State of data type. */ + state?: DataTypeState; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; +} +/** The details for container sas creation. */ +export interface ContainerSaS { + /** Sas token start timestamp. */ + startTimeStamp: Date; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date; + /** Ip Address */ + ipAddress: string; +} +/** Details of storage container account sas token . */ +export interface ContainerSasToken { + /** + * Field to specify storage container sas token. + * This value contains a credential. Consider obscuring before showing to users + */ + storageContainerSasToken: string; +} +/** The details for storage account sas creation. */ +export interface AccountSas { + /** Sas token start timestamp. */ + startTimeStamp: Date; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date; + /** Ip Address */ + ipAddress: string; +} +/** Details of storage account sas token . */ +export interface AccountSasToken { + /** + * Field to specify storage account sas token. + * This value contains a credential. Consider obscuring before showing to users + */ + storageAccountSasToken: string; +} +/** list role assignments. */ +export interface ListRoleAssignments { + /** Count of role assignments. */ + count: number; + /** list of role assignments */ + roleAssignmentResponse: RoleAssignmentDetail[]; +} +/** Details for KeyVault. */ +export interface KeyVaultInfo { + /** key vault url. */ + keyVaultUrl: string; +} +/** Resource Access Rules. */ +export interface ResourceAccessRules { + /** The tenant ID of resource. */ + tenantId: string; + /** Resource ID */ + resourceId: string; +} +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { + [propertyName: string]: string; + }; + /** The geo-location where the resource lives */ + location: string; +} +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource { +} +/** The data product resource. */ +export interface DataProduct extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductProperties; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; +} +/** The data catalog resource. */ +export interface DataProductsCatalog extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductsCatalogProperties; +} +/** The data type resource. */ +export interface DataType extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataTypeProperties; +} +/** Defines headers for DataProducts_create operation. */ +export interface DataProductsCreateHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; +} +/** Defines headers for DataProducts_update operation. */ +export interface DataProductsUpdateHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} +/** Defines headers for DataProducts_delete operation. */ +export interface DataProductsDeleteHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} +/** Defines headers for DataTypes_create operation. */ +export interface DataTypesCreateHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; +} +/** Defines headers for DataTypes_update operation. */ +export interface DataTypesUpdateHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} +/** Defines headers for DataTypes_delete operation. */ +export interface DataTypesDeleteHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} +/** Defines headers for DataTypes_deleteData operation. */ +export interface DataTypesDeleteDataHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} +/** Known values of {@link Origin} that the service accepts. */ +export declare enum KnownOrigin { + /** User */ + User = "user", + /** System */ + System = "system", + /** UserSystem */ + UserSystem = "user,system" +} +/** + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user** \ + * **system** \ + * **user,system** + */ +export type Origin = string; +/** Known values of {@link ActionType} that the service accepts. */ +export declare enum KnownActionType { + /** Internal */ + Internal = "Internal" +} +/** + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal** + */ +export type ActionType = string; +/** Known values of {@link ProvisioningState} that the service accepts. */ +export declare enum KnownProvisioningState { + /** Represents a succeeded operation. */ + Succeeded = "Succeeded", + /** Represents a failed operation. */ + Failed = "Failed", + /** Represents a canceled operation. */ + Canceled = "Canceled", + /** Represents a pending operation. */ + Provisioning = "Provisioning", + /** Represents a pending operation. */ + Updating = "Updating", + /** Represents an operation under deletion. */ + Deleting = "Deleting", + /** Represents an accepted operation. */ + Accepted = "Accepted" +} +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Represents a succeeded operation. \ + * **Failed**: Represents a failed operation. \ + * **Canceled**: Represents a canceled operation. \ + * **Provisioning**: Represents a pending operation. \ + * **Updating**: Represents a pending operation. \ + * **Deleting**: Represents an operation under deletion. \ + * **Accepted**: Represents an accepted operation. + */ +export type ProvisioningState = string; +/** Known values of {@link ControlState} that the service accepts. */ +export declare enum KnownControlState { + /** Field to enable a setting. */ + Enabled = "Enabled", + /** Field to disable a setting. */ + Disabled = "Disabled" +} +/** + * Defines values for ControlState. \ + * {@link KnownControlState} can be used interchangeably with ControlState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Field to enable a setting. \ + * **Disabled**: Field to disable a setting. + */ +export type ControlState = string; +/** Known values of {@link DefaultAction} that the service accepts. */ +export declare enum KnownDefaultAction { + /** Represents allow action. */ + Allow = "Allow", + /** Represents deny action. */ + Deny = "Deny" +} +/** + * Defines values for DefaultAction. \ + * {@link KnownDefaultAction} can be used interchangeably with DefaultAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Allow**: Represents allow action. \ + * **Deny**: Represents deny action. + */ +export type DefaultAction = string; +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export declare enum KnownManagedServiceIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned" +} +/** + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned, UserAssigned** + */ +export type ManagedServiceIdentityType = string; +/** Known values of {@link CreatedByType} that the service accepts. */ +export declare enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; +/** Known values of {@link DataProductUserRole} that the service accepts. */ +export declare enum KnownDataProductUserRole { + /** Field to specify user of type Reader. */ + Reader = "Reader", + /** + * Field to specify user of type SensitiveReader. + * This user has privileged access to read sensitive data of a data product. + */ + SensitiveReader = "SensitiveReader" +} +/** + * Defines values for DataProductUserRole. \ + * {@link KnownDataProductUserRole} can be used interchangeably with DataProductUserRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Reader**: Field to specify user of type Reader. \ + * **SensitiveReader**: Field to specify user of type SensitiveReader. + * This user has privileged access to read sensitive data of a data product. + */ +export type DataProductUserRole = string; +/** Known values of {@link DataTypeState} that the service accepts. */ +export declare enum KnownDataTypeState { + /** Field to specify stopped state. */ + Stopped = "Stopped", + /** Field to specify running state. */ + Running = "Running" +} +/** + * Defines values for DataTypeState. \ + * {@link KnownDataTypeState} can be used interchangeably with DataTypeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Stopped**: Field to specify stopped state. \ + * **Running**: Field to specify running state. + */ +export type DataTypeState = string; +/** Known values of {@link Bypass} that the service accepts. */ +export declare enum KnownBypass { + /** Represents no bypassing of traffic. */ + None = "None", + /** Represents bypassing logging traffic. */ + Logging = "Logging", + /** Represents bypassing metrics traffic. */ + Metrics = "Metrics", + /** Represents bypassing azure services traffic. */ + AzureServices = "AzureServices" +} +/** + * Defines values for Bypass. \ + * {@link KnownBypass} can be used interchangeably with Bypass, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Represents no bypassing of traffic. \ + * **Logging**: Represents bypassing logging traffic. \ + * **Metrics**: Represents bypassing metrics traffic. \ + * **AzureServices**: Represents bypassing azure services traffic. + */ +export type Bypass = string; +/** Known values of {@link Versions} that the service accepts. */ +export declare enum KnownVersions { + /** The 2023-11-15 stable version. */ + V20231115 = "2023-11-15" +} +/** + * Defines values for Versions. \ + * {@link KnownVersions} can be used interchangeably with Versions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **2023-11-15**: The 2023-11-15 stable version. + */ +export type Versions = string; +/** Optional parameters. */ +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; +/** Optional parameters. */ +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; +/** Optional parameters. */ +export interface DataProductsListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listBySubscription operation. */ +export type DataProductsListBySubscriptionResponse = DataProductListResult; +/** Optional parameters. */ +export interface DataProductsListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listByResourceGroup operation. */ +export type DataProductsListByResourceGroupResponse = DataProductListResult; +/** Optional parameters. */ +export interface DataProductsGetOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the get operation. */ +export type DataProductsGetResponse = DataProduct; +/** Optional parameters. */ +export interface DataProductsCreateOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} +/** Contains response data for the create operation. */ +export type DataProductsCreateResponse = DataProduct; +/** Optional parameters. */ +export interface DataProductsUpdateOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} +/** Contains response data for the update operation. */ +export type DataProductsUpdateResponse = DataProduct; +/** Optional parameters. */ +export interface DataProductsDeleteOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} +/** Contains response data for the delete operation. */ +export type DataProductsDeleteResponse = DataProductsDeleteHeaders; +/** Optional parameters. */ +export interface DataProductsAddUserRoleOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the addUserRole operation. */ +export type DataProductsAddUserRoleResponse = RoleAssignmentDetail; +/** Optional parameters. */ +export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the generateStorageAccountSasToken operation. */ +export type DataProductsGenerateStorageAccountSasTokenResponse = AccountSasToken; +/** Optional parameters. */ +export interface DataProductsListRolesAssignmentsOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listRolesAssignments operation. */ +export type DataProductsListRolesAssignmentsResponse = ListRoleAssignments; +/** Optional parameters. */ +export interface DataProductsRemoveUserRoleOptionalParams extends coreClient.OperationOptions { +} +/** Optional parameters. */ +export interface DataProductsRotateKeyOptionalParams extends coreClient.OperationOptions { +} +/** Optional parameters. */ +export interface DataProductsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listBySubscriptionNext operation. */ +export type DataProductsListBySubscriptionNextResponse = DataProductListResult; +/** Optional parameters. */ +export interface DataProductsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listByResourceGroupNext operation. */ +export type DataProductsListByResourceGroupNextResponse = DataProductListResult; +/** Optional parameters. */ +export interface DataProductsCatalogsListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listBySubscription operation. */ +export type DataProductsCatalogsListBySubscriptionResponse = DataProductsCatalogListResult; +/** Optional parameters. */ +export interface DataProductsCatalogsListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listByResourceGroup operation. */ +export type DataProductsCatalogsListByResourceGroupResponse = DataProductsCatalogListResult; +/** Optional parameters. */ +export interface DataProductsCatalogsGetOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the get operation. */ +export type DataProductsCatalogsGetResponse = DataProductsCatalog; +/** Optional parameters. */ +export interface DataProductsCatalogsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listBySubscriptionNext operation. */ +export type DataProductsCatalogsListBySubscriptionNextResponse = DataProductsCatalogListResult; +/** Optional parameters. */ +export interface DataProductsCatalogsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listByResourceGroupNext operation. */ +export type DataProductsCatalogsListByResourceGroupNextResponse = DataProductsCatalogListResult; +/** Optional parameters. */ +export interface DataTypesListByDataProductOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listByDataProduct operation. */ +export type DataTypesListByDataProductResponse = DataTypeListResult; +/** Optional parameters. */ +export interface DataTypesGetOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the get operation. */ +export type DataTypesGetResponse = DataType; +/** Optional parameters. */ +export interface DataTypesCreateOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} +/** Contains response data for the create operation. */ +export type DataTypesCreateResponse = DataType; +/** Optional parameters. */ +export interface DataTypesUpdateOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} +/** Contains response data for the update operation. */ +export type DataTypesUpdateResponse = DataType; +/** Optional parameters. */ +export interface DataTypesDeleteOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} +/** Contains response data for the delete operation. */ +export type DataTypesDeleteResponse = DataTypesDeleteHeaders; +/** Optional parameters. */ +export interface DataTypesDeleteDataOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} +/** Contains response data for the deleteData operation. */ +export type DataTypesDeleteDataResponse = DataTypesDeleteDataHeaders; +/** Optional parameters. */ +export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the generateStorageContainerSasToken operation. */ +export type DataTypesGenerateStorageContainerSasTokenResponse = ContainerSasToken; +/** Optional parameters. */ +export interface DataTypesListByDataProductNextOptionalParams extends coreClient.OperationOptions { +} +/** Contains response data for the listByDataProductNext operation. */ +export type DataTypesListByDataProductNextResponse = DataTypeListResult; +/** Optional parameters. */ +export interface MicrosoftNetworkAnalyticsOptionalParams extends coreClient.ServiceClientOptions { + /** server parameter */ + $host?: string; + /** Api Version */ + apiVersion?: string; + /** Overrides client endpoint. */ + endpoint?: string; +} +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts.map new file mode 100644 index 00000000000..4fe118b346b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,qIAAqI;AACrI,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,0FAA0F;AAC1F,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,mEAAmE;IACnE,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;CAClC;AAED,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IA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;AAE/C,2BAA2B;AAC3B,MAAM,WAAW,6BACf,SAAQ,UAAU,CAAC,gBAAgB;IACnC,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iGAAiG;IACjG,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,uDAAuD;AACvD,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,CAAC;AAE7D,2BAA2B;AAC3B,MAAM,WAAW,iCACf,SAAQ,UAAU,CAAC,gBAAgB;IACnC,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iGAAiG;IACjG,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,2DAA2D;AAC3D,MAAM,MAAM,2BAA2B,GAAG,0BAA0B,CAAC;AAErE,2BAA2B;AAC3B,MAAM,WAAW,uDACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,iFAAiF;AACjF,MAAM,MAAM,iDAAiD,GAAG,iBAAiB,CAAC;AAElF,2BAA2B;AAC3B,MAAM,WAAW,4CACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,sEAAsE;AACtE,MAAM,MAAM,sCAAsC,GAAG,kBAAkB,CAAC;AAExE,2BAA2B;AAC3B,MAAM,WAAW,uCACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js new file mode 100644 index 00000000000..4dc7b679485 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js @@ -0,0 +1,122 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.KnownVersions = exports.KnownBypass = exports.KnownDataTypeState = exports.KnownDataProductUserRole = exports.KnownCreatedByType = exports.KnownManagedServiceIdentityType = exports.KnownDefaultAction = exports.KnownControlState = exports.KnownProvisioningState = exports.KnownActionType = exports.KnownOrigin = void 0; +/** Known values of {@link Origin} that the service accepts. */ +var KnownOrigin; +(function (KnownOrigin) { + /** User */ + KnownOrigin["User"] = "user"; + /** System */ + KnownOrigin["System"] = "system"; + /** UserSystem */ + KnownOrigin["UserSystem"] = "user,system"; +})(KnownOrigin || (exports.KnownOrigin = KnownOrigin = {})); +/** Known values of {@link ActionType} that the service accepts. */ +var KnownActionType; +(function (KnownActionType) { + /** Internal */ + KnownActionType["Internal"] = "Internal"; +})(KnownActionType || (exports.KnownActionType = KnownActionType = {})); +/** Known values of {@link ProvisioningState} that the service accepts. */ +var KnownProvisioningState; +(function (KnownProvisioningState) { + /** Represents a succeeded operation. */ + KnownProvisioningState["Succeeded"] = "Succeeded"; + /** Represents a failed operation. */ + KnownProvisioningState["Failed"] = "Failed"; + /** Represents a canceled operation. */ + KnownProvisioningState["Canceled"] = "Canceled"; + /** Represents a pending operation. */ + KnownProvisioningState["Provisioning"] = "Provisioning"; + /** Represents a pending operation. */ + KnownProvisioningState["Updating"] = "Updating"; + /** Represents an operation under deletion. */ + KnownProvisioningState["Deleting"] = "Deleting"; + /** Represents an accepted operation. */ + KnownProvisioningState["Accepted"] = "Accepted"; +})(KnownProvisioningState || (exports.KnownProvisioningState = KnownProvisioningState = {})); +/** Known values of {@link ControlState} that the service accepts. */ +var KnownControlState; +(function (KnownControlState) { + /** Field to enable a setting. */ + KnownControlState["Enabled"] = "Enabled"; + /** Field to disable a setting. */ + KnownControlState["Disabled"] = "Disabled"; +})(KnownControlState || (exports.KnownControlState = KnownControlState = {})); +/** Known values of {@link DefaultAction} that the service accepts. */ +var KnownDefaultAction; +(function (KnownDefaultAction) { + /** Represents allow action. */ + KnownDefaultAction["Allow"] = "Allow"; + /** Represents deny action. */ + KnownDefaultAction["Deny"] = "Deny"; +})(KnownDefaultAction || (exports.KnownDefaultAction = KnownDefaultAction = {})); +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +var KnownManagedServiceIdentityType; +(function (KnownManagedServiceIdentityType) { + /** None */ + KnownManagedServiceIdentityType["None"] = "None"; + /** SystemAssigned */ + KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned"; + /** UserAssigned */ + KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned"; + /** SystemAssignedUserAssigned */ + KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned"; +})(KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = KnownManagedServiceIdentityType = {})); +/** Known values of {@link CreatedByType} that the service accepts. */ +var KnownCreatedByType; +(function (KnownCreatedByType) { + /** User */ + KnownCreatedByType["User"] = "User"; + /** Application */ + KnownCreatedByType["Application"] = "Application"; + /** ManagedIdentity */ + KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity"; + /** Key */ + KnownCreatedByType["Key"] = "Key"; +})(KnownCreatedByType || (exports.KnownCreatedByType = KnownCreatedByType = {})); +/** Known values of {@link DataProductUserRole} that the service accepts. */ +var KnownDataProductUserRole; +(function (KnownDataProductUserRole) { + /** Field to specify user of type Reader. */ + KnownDataProductUserRole["Reader"] = "Reader"; + /** + * Field to specify user of type SensitiveReader. + * This user has privileged access to read sensitive data of a data product. + */ + KnownDataProductUserRole["SensitiveReader"] = "SensitiveReader"; +})(KnownDataProductUserRole || (exports.KnownDataProductUserRole = KnownDataProductUserRole = {})); +/** Known values of {@link DataTypeState} that the service accepts. */ +var KnownDataTypeState; +(function (KnownDataTypeState) { + /** Field to specify stopped state. */ + KnownDataTypeState["Stopped"] = "Stopped"; + /** Field to specify running state. */ + KnownDataTypeState["Running"] = "Running"; +})(KnownDataTypeState || (exports.KnownDataTypeState = KnownDataTypeState = {})); +/** Known values of {@link Bypass} that the service accepts. */ +var KnownBypass; +(function (KnownBypass) { + /** Represents no bypassing of traffic. */ + KnownBypass["None"] = "None"; + /** Represents bypassing logging traffic. */ + KnownBypass["Logging"] = "Logging"; + /** Represents bypassing metrics traffic. */ + KnownBypass["Metrics"] = "Metrics"; + /** Represents bypassing azure services traffic. */ + KnownBypass["AzureServices"] = "AzureServices"; +})(KnownBypass || (exports.KnownBypass = KnownBypass = {})); +/** Known values of {@link Versions} that the service accepts. */ +var KnownVersions; +(function (KnownVersions) { + /** The 2023-11-15 stable version. */ + KnownVersions["V20231115"] = "2023-11-15"; +})(KnownVersions || (exports.KnownVersions = KnownVersions = {})); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js.map new file mode 100644 index 00000000000..67934945d76 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AA8nBH,+DAA+D;AAC/D,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,aAAa;IACb,gCAAiB,CAAA;IACjB,iBAAiB;IACjB,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;A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AW,CAAA;AACb,CAAC,EATW,kBAAkB,kCAAlB,kBAAkB,QAS7B;AAcD,4EAA4E;AAC5E,IAAY,wBAQX;AARD,WAAY,wBAAwB;IAClC,4CAA4C;IAC5C,6CAAiB,CAAA;IACjB;;;OAGG;IACH,+DAAmC,CAAA;AACrC,CAAC,EARW,wBAAwB,wCAAxB,wBAAwB,QAQnC;AAaD,sEAAsE;AACtE,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,sCAAsC;IACtC,yCAAmB,CAAA;IACnB,sCAAsC;IACtC,yCAAmB,CAAA;AACrB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAYD,+DAA+D;AAC/D,IAAY,WASX;AATD,WAAY,WAAW;IACrB,0CAA0C;IAC1C,4BAAa,CAAA;IACb,4CAA4C;IAC5C,kCAAmB,CAAA;IACnB,4CAA4C;IAC5C,kCAAmB,CAAA;IACnB,mDAAmD;IACnD,8CAA+B,CAAA;AACjC,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAcD,iEAAiE;AACjE,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,qCAAqC;IACrC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.ts new file mode 100644 index 00000000000..40e53c9a37b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.ts @@ -0,0 +1,1111 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import * as coreClient from "@azure/core-client"; + +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { + /** + * List of operations supported by the resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * URL to get the next set of operation list results (if there are any). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: Origin; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; +} + +/** Localized display information for this particular operation. */ +export interface OperationDisplay { + /** + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** The response of a DataProduct list operation. */ +export interface DataProductListResult { + /** The DataProduct items on this page */ + value: DataProduct[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** The data product properties. */ +export interface DataProductProperties { + /** + * The resource GUID property of the data product resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceGuid?: string; + /** + * Latest provisioning state of data product. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** Data product publisher name. */ + publisher: string; + /** Product name of data product. */ + product: string; + /** Major version of data product. */ + majorVersion: string; + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Flag to enable or disable redundancy for data product. */ + redundancy?: ControlState; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Flag to enable or disable public access of data product resource. */ + publicNetworkAccess?: ControlState; + /** Flag to enable customer managed key encryption for data product. */ + customerManagedKeyEncryptionEnabled?: ControlState; + /** Customer managed encryption key details for data product. */ + customerEncryptionKey?: EncryptionKeyDetails; + /** Network rule set for data product. */ + networkacls?: DataProductNetworkAcls; + /** Managed resource group configuration. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + /** + * List of available minor versions of the data product resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availableMinorVersions?: string[]; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; + /** + * Documentation link for the data product based on definition file. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly documentation?: string; + /** + * Resource links which exposed to the customer to query the data. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly consumptionEndpoints?: ConsumptionEndpointsProperties; + /** + * Key vault url. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyVaultUrl?: string; +} + +/** Encryption key details. */ +export interface EncryptionKeyDetails { + /** The Uri of the key vault. */ + keyVaultUri: string; + /** The name of the key vault key. */ + keyName: string; + /** The version of the key vault key. */ + keyVersion: string; +} + +/** Data Product Network rule set */ +export interface DataProductNetworkAcls { + /** Virtual Network Rule */ + virtualNetworkRule: VirtualNetworkRule[]; + /** IP rule with specific IP or IP range in CIDR format. */ + ipRules: IPRules[]; + /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ + allowedQueryIpRangeList: string[]; + /** Default Action */ + defaultAction: DefaultAction; +} + +/** Virtual Network Rule */ +export interface VirtualNetworkRule { + /** Resource ID of a subnet */ + id: string; + /** The action of virtual network rule. */ + action?: string; + /** Gets the state of virtual network rule. */ + state?: string; +} + +/** IP rule with specific IP or IP range in CIDR format. */ +export interface IPRules { + /** IP Rules Value */ + value?: string; + /** The action of virtual network rule. */ + action: string; +} + +/** ManagedResourceGroup related properties */ +export interface ManagedResourceGroupConfiguration { + /** Name of managed resource group */ + name: string; + /** Managed Resource Group location */ + location: string; +} + +/** Details of Consumption Properties */ +export interface ConsumptionEndpointsProperties { + /** + * Ingestion url to upload the data. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ingestionUrl?: string; + /** + * Resource Id of ingestion endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ingestionResourceId?: string; + /** + * Url to consume file type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fileAccessUrl?: string; + /** + * Resource Id of file access endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fileAccessResourceId?: string; + /** + * Url to consume the processed data. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryUrl?: string; + /** + * Resource Id of query endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryResourceId?: string; +} + +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { + /** + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** User assigned identity properties */ +export interface UserAssignedIdentity { + /** + * The principal ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** The response of a DataProductsCatalog list operation. */ +export interface DataProductsCatalogListResult { + /** The DataProductsCatalog items on this page */ + value: DataProductsCatalog[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** Details for data catalog properties. */ +export interface DataProductsCatalogProperties { + /** + * The data catalog provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The data product publisher information. */ + publishers: PublisherInformation[]; +} + +/** Details for Publisher Information. */ +export interface PublisherInformation { + /** Name of the publisher. */ + publisherName: string; + /** Data product information. */ + dataProducts: DataProductInformation[]; +} + +/** Data Product Information */ +export interface DataProductInformation { + /** Name of data product. */ + dataProductName: string; + /** Description about data product. */ + description: string; + /** Version information of data product. */ + dataProductVersions: DataProductVersion[]; +} + +/** Data Product Version. */ +export interface DataProductVersion { + /** Version of data product */ + version: string; +} + +/** The type used for update operations of the DataProduct. */ +export interface DataProductUpdate { + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The updatable properties of the DataProduct. */ + properties?: DataProductUpdateProperties; +} + +/** The updatable properties of the DataProduct. */ +export interface DataProductUpdateProperties { + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; +} + +/** The details for role assignment common properties. */ +export interface RoleAssignmentCommonProperties { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; +} + +/** The details for role assignment response. */ +export interface RoleAssignmentDetail { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; + /** Id of role assignment request */ + roleAssignmentId: string; +} + +/** The response of a DataType list operation. */ +export interface DataTypeListResult { + /** The DataType items on this page */ + value: DataType[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** The data type properties */ +export interface DataTypeProperties { + /** + * Latest provisioning state of data product. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** State of data type. */ + state?: DataTypeState; + /** + * Reason for the state of data type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly stateReason?: string; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; + /** + * Url for data visualization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly visualizationUrl?: string; +} + +/** The type used for update operations of the DataType. */ +export interface DataTypeUpdate { + /** The updatable properties of the DataType. */ + properties?: DataTypeUpdateProperties; +} + +/** The updatable properties of the DataType. */ +export interface DataTypeUpdateProperties { + /** State of data type. */ + state?: DataTypeState; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; +} + +/** The details for container sas creation. */ +export interface ContainerSaS { + /** Sas token start timestamp. */ + startTimeStamp: Date; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date; + /** Ip Address */ + ipAddress: string; +} + +/** Details of storage container account sas token . */ +export interface ContainerSasToken { + /** + * Field to specify storage container sas token. + * This value contains a credential. Consider obscuring before showing to users + */ + storageContainerSasToken: string; +} + +/** The details for storage account sas creation. */ +export interface AccountSas { + /** Sas token start timestamp. */ + startTimeStamp: Date; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date; + /** Ip Address */ + ipAddress: string; +} + +/** Details of storage account sas token . */ +export interface AccountSasToken { + /** + * Field to specify storage account sas token. + * This value contains a credential. Consider obscuring before showing to users + */ + storageAccountSasToken: string; +} + +/** list role assignments. */ +export interface ListRoleAssignments { + /** Count of role assignments. */ + count: number; + /** list of role assignments */ + roleAssignmentResponse: RoleAssignmentDetail[]; +} + +/** Details for KeyVault. */ +export interface KeyVaultInfo { + /** key vault url. */ + keyVaultUrl: string; +} + +/** Resource Access Rules. */ +export interface ResourceAccessRules { + /** The tenant ID of resource. */ + tenantId: string; + /** Resource ID */ + resourceId: string; +} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** The data product resource. */ +export interface DataProduct extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductProperties; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; +} + +/** The data catalog resource. */ +export interface DataProductsCatalog extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductsCatalogProperties; +} + +/** The data type resource. */ +export interface DataType extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataTypeProperties; +} + +/** Defines headers for DataProducts_create operation. */ +export interface DataProductsCreateHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; +} + +/** Defines headers for DataProducts_update operation. */ +export interface DataProductsUpdateHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} + +/** Defines headers for DataProducts_delete operation. */ +export interface DataProductsDeleteHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} + +/** Defines headers for DataTypes_create operation. */ +export interface DataTypesCreateHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; +} + +/** Defines headers for DataTypes_update operation. */ +export interface DataTypesUpdateHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} + +/** Defines headers for DataTypes_delete operation. */ +export interface DataTypesDeleteHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} + +/** Defines headers for DataTypes_deleteData operation. */ +export interface DataTypesDeleteDataHeaders { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} + +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** User */ + User = "user", + /** System */ + System = "system", + /** UserSystem */ + UserSystem = "user,system" +} + +/** + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user** \ + * **system** \ + * **user,system** + */ +export type Origin = string; + +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** Internal */ + Internal = "Internal" +} + +/** + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal** + */ +export type ActionType = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Represents a succeeded operation. */ + Succeeded = "Succeeded", + /** Represents a failed operation. */ + Failed = "Failed", + /** Represents a canceled operation. */ + Canceled = "Canceled", + /** Represents a pending operation. */ + Provisioning = "Provisioning", + /** Represents a pending operation. */ + Updating = "Updating", + /** Represents an operation under deletion. */ + Deleting = "Deleting", + /** Represents an accepted operation. */ + Accepted = "Accepted" +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Represents a succeeded operation. \ + * **Failed**: Represents a failed operation. \ + * **Canceled**: Represents a canceled operation. \ + * **Provisioning**: Represents a pending operation. \ + * **Updating**: Represents a pending operation. \ + * **Deleting**: Represents an operation under deletion. \ + * **Accepted**: Represents an accepted operation. + */ +export type ProvisioningState = string; + +/** Known values of {@link ControlState} that the service accepts. */ +export enum KnownControlState { + /** Field to enable a setting. */ + Enabled = "Enabled", + /** Field to disable a setting. */ + Disabled = "Disabled" +} + +/** + * Defines values for ControlState. \ + * {@link KnownControlState} can be used interchangeably with ControlState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Field to enable a setting. \ + * **Disabled**: Field to disable a setting. + */ +export type ControlState = string; + +/** Known values of {@link DefaultAction} that the service accepts. */ +export enum KnownDefaultAction { + /** Represents allow action. */ + Allow = "Allow", + /** Represents deny action. */ + Deny = "Deny" +} + +/** + * Defines values for DefaultAction. \ + * {@link KnownDefaultAction} can be used interchangeably with DefaultAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Allow**: Represents allow action. \ + * **Deny**: Represents deny action. + */ +export type DefaultAction = string; + +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned" +} + +/** + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned, UserAssigned** + */ +export type ManagedServiceIdentityType = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link DataProductUserRole} that the service accepts. */ +export enum KnownDataProductUserRole { + /** Field to specify user of type Reader. */ + Reader = "Reader", + /** + * Field to specify user of type SensitiveReader. + * This user has privileged access to read sensitive data of a data product. + */ + SensitiveReader = "SensitiveReader" +} + +/** + * Defines values for DataProductUserRole. \ + * {@link KnownDataProductUserRole} can be used interchangeably with DataProductUserRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Reader**: Field to specify user of type Reader. \ + * **SensitiveReader**: Field to specify user of type SensitiveReader. + * This user has privileged access to read sensitive data of a data product. + */ +export type DataProductUserRole = string; + +/** Known values of {@link DataTypeState} that the service accepts. */ +export enum KnownDataTypeState { + /** Field to specify stopped state. */ + Stopped = "Stopped", + /** Field to specify running state. */ + Running = "Running" +} + +/** + * Defines values for DataTypeState. \ + * {@link KnownDataTypeState} can be used interchangeably with DataTypeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Stopped**: Field to specify stopped state. \ + * **Running**: Field to specify running state. + */ +export type DataTypeState = string; + +/** Known values of {@link Bypass} that the service accepts. */ +export enum KnownBypass { + /** Represents no bypassing of traffic. */ + None = "None", + /** Represents bypassing logging traffic. */ + Logging = "Logging", + /** Represents bypassing metrics traffic. */ + Metrics = "Metrics", + /** Represents bypassing azure services traffic. */ + AzureServices = "AzureServices" +} + +/** + * Defines values for Bypass. \ + * {@link KnownBypass} can be used interchangeably with Bypass, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Represents no bypassing of traffic. \ + * **Logging**: Represents bypassing logging traffic. \ + * **Metrics**: Represents bypassing metrics traffic. \ + * **AzureServices**: Represents bypassing azure services traffic. + */ +export type Bypass = string; + +/** Known values of {@link Versions} that the service accepts. */ +export enum KnownVersions { + /** The 2023-11-15 stable version. */ + V20231115 = "2023-11-15" +} + +/** + * Defines values for Versions. \ + * {@link KnownVersions} can be used interchangeably with Versions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **2023-11-15**: The 2023-11-15 stable version. + */ +export type Versions = string; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface DataProductsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type DataProductsListBySubscriptionResponse = DataProductListResult; + +/** Optional parameters. */ +export interface DataProductsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type DataProductsListByResourceGroupResponse = DataProductListResult; + +/** Optional parameters. */ +export interface DataProductsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataProductsGetResponse = DataProduct; + +/** Optional parameters. */ +export interface DataProductsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type DataProductsCreateResponse = DataProduct; + +/** Optional parameters. */ +export interface DataProductsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type DataProductsUpdateResponse = DataProduct; + +/** Optional parameters. */ +export interface DataProductsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type DataProductsDeleteResponse = DataProductsDeleteHeaders; + +/** Optional parameters. */ +export interface DataProductsAddUserRoleOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the addUserRole operation. */ +export type DataProductsAddUserRoleResponse = RoleAssignmentDetail; + +/** Optional parameters. */ +export interface DataProductsGenerateStorageAccountSasTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateStorageAccountSasToken operation. */ +export type DataProductsGenerateStorageAccountSasTokenResponse = AccountSasToken; + +/** Optional parameters. */ +export interface DataProductsListRolesAssignmentsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listRolesAssignments operation. */ +export type DataProductsListRolesAssignmentsResponse = ListRoleAssignments; + +/** Optional parameters. */ +export interface DataProductsRemoveUserRoleOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataProductsRotateKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataProductsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type DataProductsListBySubscriptionNextResponse = DataProductListResult; + +/** Optional parameters. */ +export interface DataProductsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type DataProductsListByResourceGroupNextResponse = DataProductListResult; + +/** Optional parameters. */ +export interface DataProductsCatalogsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type DataProductsCatalogsListBySubscriptionResponse = DataProductsCatalogListResult; + +/** Optional parameters. */ +export interface DataProductsCatalogsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type DataProductsCatalogsListByResourceGroupResponse = DataProductsCatalogListResult; + +/** Optional parameters. */ +export interface DataProductsCatalogsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataProductsCatalogsGetResponse = DataProductsCatalog; + +/** Optional parameters. */ +export interface DataProductsCatalogsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type DataProductsCatalogsListBySubscriptionNextResponse = DataProductsCatalogListResult; + +/** Optional parameters. */ +export interface DataProductsCatalogsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type DataProductsCatalogsListByResourceGroupNextResponse = DataProductsCatalogListResult; + +/** Optional parameters. */ +export interface DataTypesListByDataProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDataProduct operation. */ +export type DataTypesListByDataProductResponse = DataTypeListResult; + +/** Optional parameters. */ +export interface DataTypesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataTypesGetResponse = DataType; + +/** Optional parameters. */ +export interface DataTypesCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type DataTypesCreateResponse = DataType; + +/** Optional parameters. */ +export interface DataTypesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type DataTypesUpdateResponse = DataType; + +/** Optional parameters. */ +export interface DataTypesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type DataTypesDeleteResponse = DataTypesDeleteHeaders; + +/** Optional parameters. */ +export interface DataTypesDeleteDataOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the deleteData operation. */ +export type DataTypesDeleteDataResponse = DataTypesDeleteDataHeaders; + +/** Optional parameters. */ +export interface DataTypesGenerateStorageContainerSasTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateStorageContainerSasToken operation. */ +export type DataTypesGenerateStorageContainerSasTokenResponse = ContainerSasToken; + +/** Optional parameters. */ +export interface DataTypesListByDataProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDataProductNext operation. */ +export type DataTypesListByDataProductNextResponse = DataTypeListResult; + +/** Optional parameters. */ +export interface MicrosoftNetworkAnalyticsOptionalParams + extends coreClient.ServiceClientOptions { + /** server parameter */ + $host?: string; + /** Api Version */ + apiVersion?: string; + /** Overrides client endpoint. */ + endpoint?: string; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts new file mode 100644 index 00000000000..ecabc2dda78 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts @@ -0,0 +1,52 @@ +import * as coreClient from "@azure/core-client"; +export declare const OperationListResult: coreClient.CompositeMapper; +export declare const Operation: coreClient.CompositeMapper; +export declare const OperationDisplay: coreClient.CompositeMapper; +export declare const ErrorResponse: coreClient.CompositeMapper; +export declare const ErrorDetail: coreClient.CompositeMapper; +export declare const ErrorAdditionalInfo: coreClient.CompositeMapper; +export declare const DataProductListResult: coreClient.CompositeMapper; +export declare const DataProductProperties: coreClient.CompositeMapper; +export declare const EncryptionKeyDetails: coreClient.CompositeMapper; +export declare const DataProductNetworkAcls: coreClient.CompositeMapper; +export declare const VirtualNetworkRule: coreClient.CompositeMapper; +export declare const IPRules: coreClient.CompositeMapper; +export declare const ManagedResourceGroupConfiguration: coreClient.CompositeMapper; +export declare const ConsumptionEndpointsProperties: coreClient.CompositeMapper; +export declare const ManagedServiceIdentity: coreClient.CompositeMapper; +export declare const UserAssignedIdentity: coreClient.CompositeMapper; +export declare const Resource: coreClient.CompositeMapper; +export declare const SystemData: coreClient.CompositeMapper; +export declare const DataProductsCatalogListResult: coreClient.CompositeMapper; +export declare const DataProductsCatalogProperties: coreClient.CompositeMapper; +export declare const PublisherInformation: coreClient.CompositeMapper; +export declare const DataProductInformation: coreClient.CompositeMapper; +export declare const DataProductVersion: coreClient.CompositeMapper; +export declare const DataProductUpdate: coreClient.CompositeMapper; +export declare const DataProductUpdateProperties: coreClient.CompositeMapper; +export declare const RoleAssignmentCommonProperties: coreClient.CompositeMapper; +export declare const RoleAssignmentDetail: coreClient.CompositeMapper; +export declare const DataTypeListResult: coreClient.CompositeMapper; +export declare const DataTypeProperties: coreClient.CompositeMapper; +export declare const DataTypeUpdate: coreClient.CompositeMapper; +export declare const DataTypeUpdateProperties: coreClient.CompositeMapper; +export declare const ContainerSaS: coreClient.CompositeMapper; +export declare const ContainerSasToken: coreClient.CompositeMapper; +export declare const AccountSas: coreClient.CompositeMapper; +export declare const AccountSasToken: coreClient.CompositeMapper; +export declare const ListRoleAssignments: coreClient.CompositeMapper; +export declare const KeyVaultInfo: coreClient.CompositeMapper; +export declare const ResourceAccessRules: coreClient.CompositeMapper; +export declare const TrackedResource: coreClient.CompositeMapper; +export declare const ProxyResource: coreClient.CompositeMapper; +export declare const DataProduct: coreClient.CompositeMapper; +export declare const DataProductsCatalog: coreClient.CompositeMapper; +export declare const DataType: coreClient.CompositeMapper; +export declare const DataProductsCreateHeaders: coreClient.CompositeMapper; +export declare const DataProductsUpdateHeaders: coreClient.CompositeMapper; +export declare const DataProductsDeleteHeaders: coreClient.CompositeMapper; +export declare const DataTypesCreateHeaders: coreClient.CompositeMapper; +export declare const DataTypesUpdateHeaders: coreClient.CompositeMapper; +export declare const DataTypesDeleteHeaders: coreClient.CompositeMapper; +export declare const DataTypesDeleteDataHeaders: coreClient.CompositeMapper; +//# sourceMappingURL=mappers.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts.map new file mode 100644 index 00000000000..d2dd367ac53 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/mis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,UAAU,CAAC,eAQtC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAsBpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAe5C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,eAejC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAalD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAmBlD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAmBlD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAa/C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAmB/C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAmB/C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,eAmBnD,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js new file mode 100644 index 00000000000..48ce889021a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js @@ -0,0 +1,1547 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataTypesDeleteDataHeaders = exports.DataTypesDeleteHeaders = exports.DataTypesUpdateHeaders = exports.DataTypesCreateHeaders = exports.DataProductsDeleteHeaders = exports.DataProductsUpdateHeaders = exports.DataProductsCreateHeaders = exports.DataType = exports.DataProductsCatalog = exports.DataProduct = exports.ProxyResource = exports.TrackedResource = exports.ResourceAccessRules = exports.KeyVaultInfo = exports.ListRoleAssignments = exports.AccountSasToken = exports.AccountSas = exports.ContainerSasToken = exports.ContainerSaS = exports.DataTypeUpdateProperties = exports.DataTypeUpdate = exports.DataTypeProperties = exports.DataTypeListResult = exports.RoleAssignmentDetail = exports.RoleAssignmentCommonProperties = exports.DataProductUpdateProperties = exports.DataProductUpdate = exports.DataProductVersion = exports.DataProductInformation = exports.PublisherInformation = exports.DataProductsCatalogProperties = exports.DataProductsCatalogListResult = exports.SystemData = exports.Resource = exports.UserAssignedIdentity = exports.ManagedServiceIdentity = exports.ConsumptionEndpointsProperties = exports.ManagedResourceGroupConfiguration = exports.IPRules = exports.VirtualNetworkRule = exports.DataProductNetworkAcls = exports.EncryptionKeyDetails = exports.DataProductProperties = exports.DataProductListResult = exports.ErrorAdditionalInfo = exports.ErrorDetail = exports.ErrorResponse = exports.OperationDisplay = exports.Operation = exports.OperationListResult = void 0; +exports.OperationListResult = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; +exports.Operation = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String" + } + }, + actionType: { + serializedName: "actionType", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; +exports.OperationDisplay = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + readOnly: true, + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; +exports.ErrorResponse = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } +}; +exports.ErrorDetail = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; +exports.ErrorAdditionalInfo = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; +exports.DataProductListResult = { + type: { + name: "Composite", + className: "DataProductListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataProduct" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; +exports.DataProductProperties = { + type: { + name: "Composite", + className: "DataProductProperties", + modelProperties: { + resourceGuid: { + serializedName: "resourceGuid", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + required: true, + type: { + name: "String" + } + }, + product: { + serializedName: "product", + required: true, + type: { + name: "String" + } + }, + majorVersion: { + serializedName: "majorVersion", + required: true, + type: { + name: "String" + } + }, + owners: { + serializedName: "owners", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + redundancy: { + serializedName: "redundancy", + type: { + name: "String" + } + }, + purviewAccount: { + serializedName: "purviewAccount", + type: { + name: "String" + } + }, + purviewCollection: { + serializedName: "purviewCollection", + type: { + name: "String" + } + }, + privateLinksEnabled: { + serializedName: "privateLinksEnabled", + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + customerManagedKeyEncryptionEnabled: { + serializedName: "customerManagedKeyEncryptionEnabled", + type: { + name: "String" + } + }, + customerEncryptionKey: { + serializedName: "customerEncryptionKey", + type: { + name: "Composite", + className: "EncryptionKeyDetails" + } + }, + networkacls: { + serializedName: "networkacls", + type: { + name: "Composite", + className: "DataProductNetworkAcls" + } + }, + managedResourceGroupConfiguration: { + serializedName: "managedResourceGroupConfiguration", + type: { + name: "Composite", + className: "ManagedResourceGroupConfiguration" + } + }, + availableMinorVersions: { + serializedName: "availableMinorVersions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + currentMinorVersion: { + serializedName: "currentMinorVersion", + type: { + name: "String" + } + }, + documentation: { + serializedName: "documentation", + readOnly: true, + type: { + name: "String" + } + }, + consumptionEndpoints: { + serializedName: "consumptionEndpoints", + type: { + name: "Composite", + className: "ConsumptionEndpointsProperties" + } + }, + keyVaultUrl: { + serializedName: "keyVaultUrl", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; +exports.EncryptionKeyDetails = { + type: { + name: "Composite", + className: "EncryptionKeyDetails", + modelProperties: { + keyVaultUri: { + serializedName: "keyVaultUri", + required: true, + type: { + name: "String" + } + }, + keyName: { + serializedName: "keyName", + required: true, + type: { + name: "String" + } + }, + keyVersion: { + serializedName: "keyVersion", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.DataProductNetworkAcls = { + type: { + name: "Composite", + className: "DataProductNetworkAcls", + modelProperties: { + virtualNetworkRule: { + serializedName: "virtualNetworkRule", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkRule" + } + } + } + }, + ipRules: { + serializedName: "ipRules", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPRules" + } + } + } + }, + allowedQueryIpRangeList: { + serializedName: "allowedQueryIpRangeList", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + defaultAction: { + serializedName: "defaultAction", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.VirtualNetworkRule = { + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + } + } + } +}; +exports.IPRules = { + type: { + name: "Composite", + className: "IPRules", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.ManagedResourceGroupConfiguration = { + type: { + name: "Composite", + className: "ManagedResourceGroupConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.ConsumptionEndpointsProperties = { + type: { + name: "Composite", + className: "ConsumptionEndpointsProperties", + modelProperties: { + ingestionUrl: { + serializedName: "ingestionUrl", + readOnly: true, + type: { + name: "String" + } + }, + ingestionResourceId: { + serializedName: "ingestionResourceId", + readOnly: true, + type: { + name: "String" + } + }, + fileAccessUrl: { + serializedName: "fileAccessUrl", + readOnly: true, + type: { + name: "String" + } + }, + fileAccessResourceId: { + serializedName: "fileAccessResourceId", + readOnly: true, + type: { + name: "String" + } + }, + queryUrl: { + serializedName: "queryUrl", + readOnly: true, + type: { + name: "String" + } + }, + queryResourceId: { + serializedName: "queryResourceId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; +exports.ManagedServiceIdentity = { + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" } + } + } + } + } + } +}; +exports.UserAssignedIdentity = { + type: { + name: "Composite", + className: "UserAssignedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid" + } + } + } + } +}; +exports.Resource = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; +exports.SystemData = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; +exports.DataProductsCatalogListResult = { + type: { + name: "Composite", + className: "DataProductsCatalogListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataProductsCatalog" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; +exports.DataProductsCatalogProperties = { + type: { + name: "Composite", + className: "DataProductsCatalogProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publishers: { + serializedName: "publishers", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PublisherInformation" + } + } + } + } + } + } +}; +exports.PublisherInformation = { + type: { + name: "Composite", + className: "PublisherInformation", + modelProperties: { + publisherName: { + serializedName: "publisherName", + required: true, + type: { + name: "String" + } + }, + dataProducts: { + serializedName: "dataProducts", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataProductInformation" + } + } + } + } + } + } +}; +exports.DataProductInformation = { + type: { + name: "Composite", + className: "DataProductInformation", + modelProperties: { + dataProductName: { + serializedName: "dataProductName", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + dataProductVersions: { + serializedName: "dataProductVersions", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataProductVersion" + } + } + } + } + } + } +}; +exports.DataProductVersion = { + type: { + name: "Composite", + className: "DataProductVersion", + modelProperties: { + version: { + serializedName: "version", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.DataProductUpdate = { + type: { + name: "Composite", + className: "DataProductUpdate", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataProductUpdateProperties" + } + } + } + } +}; +exports.DataProductUpdateProperties = { + type: { + name: "Composite", + className: "DataProductUpdateProperties", + modelProperties: { + owners: { + serializedName: "owners", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + purviewAccount: { + serializedName: "purviewAccount", + type: { + name: "String" + } + }, + purviewCollection: { + serializedName: "purviewCollection", + type: { + name: "String" + } + }, + privateLinksEnabled: { + serializedName: "privateLinksEnabled", + type: { + name: "String" + } + }, + currentMinorVersion: { + serializedName: "currentMinorVersion", + type: { + name: "String" + } + } + } + } +}; +exports.RoleAssignmentCommonProperties = { + type: { + name: "Composite", + className: "RoleAssignmentCommonProperties", + modelProperties: { + roleId: { + serializedName: "roleId", + required: true, + type: { + name: "String" + } + }, + principalId: { + serializedName: "principalId", + required: true, + type: { + name: "String" + } + }, + userName: { + serializedName: "userName", + required: true, + type: { + name: "String" + } + }, + dataTypeScope: { + serializedName: "dataTypeScope", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + principalType: { + serializedName: "principalType", + required: true, + type: { + name: "String" + } + }, + role: { + serializedName: "role", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.RoleAssignmentDetail = { + type: { + name: "Composite", + className: "RoleAssignmentDetail", + modelProperties: { + roleId: { + serializedName: "roleId", + required: true, + type: { + name: "String" + } + }, + principalId: { + serializedName: "principalId", + required: true, + type: { + name: "String" + } + }, + userName: { + serializedName: "userName", + required: true, + type: { + name: "String" + } + }, + dataTypeScope: { + serializedName: "dataTypeScope", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + principalType: { + serializedName: "principalType", + required: true, + type: { + name: "String" + } + }, + role: { + serializedName: "role", + required: true, + type: { + name: "String" + } + }, + roleAssignmentId: { + serializedName: "roleAssignmentId", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.DataTypeListResult = { + type: { + name: "Composite", + className: "DataTypeListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataType" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; +exports.DataTypeProperties = { + type: { + name: "Composite", + className: "DataTypeProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + stateReason: { + serializedName: "stateReason", + readOnly: true, + type: { + name: "String" + } + }, + storageOutputRetention: { + serializedName: "storageOutputRetention", + type: { + name: "Number" + } + }, + databaseCacheRetention: { + serializedName: "databaseCacheRetention", + type: { + name: "Number" + } + }, + databaseRetention: { + serializedName: "databaseRetention", + type: { + name: "Number" + } + }, + visualizationUrl: { + serializedName: "visualizationUrl", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; +exports.DataTypeUpdate = { + type: { + name: "Composite", + className: "DataTypeUpdate", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataTypeUpdateProperties" + } + } + } + } +}; +exports.DataTypeUpdateProperties = { + type: { + name: "Composite", + className: "DataTypeUpdateProperties", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String" + } + }, + storageOutputRetention: { + serializedName: "storageOutputRetention", + type: { + name: "Number" + } + }, + databaseCacheRetention: { + serializedName: "databaseCacheRetention", + type: { + name: "Number" + } + }, + databaseRetention: { + serializedName: "databaseRetention", + type: { + name: "Number" + } + } + } + } +}; +exports.ContainerSaS = { + type: { + name: "Composite", + className: "ContainerSaS", + modelProperties: { + startTimeStamp: { + serializedName: "startTimeStamp", + required: true, + type: { + name: "DateTime" + } + }, + expiryTimeStamp: { + serializedName: "expiryTimeStamp", + required: true, + type: { + name: "DateTime" + } + }, + ipAddress: { + serializedName: "ipAddress", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.ContainerSasToken = { + type: { + name: "Composite", + className: "ContainerSasToken", + modelProperties: { + storageContainerSasToken: { + serializedName: "storageContainerSasToken", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.AccountSas = { + type: { + name: "Composite", + className: "AccountSas", + modelProperties: { + startTimeStamp: { + serializedName: "startTimeStamp", + required: true, + type: { + name: "DateTime" + } + }, + expiryTimeStamp: { + serializedName: "expiryTimeStamp", + required: true, + type: { + name: "DateTime" + } + }, + ipAddress: { + serializedName: "ipAddress", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.AccountSasToken = { + type: { + name: "Composite", + className: "AccountSasToken", + modelProperties: { + storageAccountSasToken: { + serializedName: "storageAccountSasToken", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.ListRoleAssignments = { + type: { + name: "Composite", + className: "ListRoleAssignments", + modelProperties: { + count: { + serializedName: "count", + required: true, + type: { + name: "Number" + } + }, + roleAssignmentResponse: { + serializedName: "roleAssignmentResponse", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleAssignmentDetail" + } + } + } + } + } + } +}; +exports.KeyVaultInfo = { + type: { + name: "Composite", + className: "KeyVaultInfo", + modelProperties: { + keyVaultUrl: { + serializedName: "keyVaultUrl", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.ResourceAccessRules = { + type: { + name: "Composite", + className: "ResourceAccessRules", + modelProperties: { + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.TrackedResource = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...exports.Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; +exports.ProxyResource = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...exports.Resource.type.modelProperties + } + } +}; +exports.DataProduct = { + type: { + name: "Composite", + className: "DataProduct", + modelProperties: { + ...exports.TrackedResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataProductProperties" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + } + } + } +}; +exports.DataProductsCatalog = { + type: { + name: "Composite", + className: "DataProductsCatalog", + modelProperties: { + ...exports.ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataProductsCatalogProperties" + } + } + } + } +}; +exports.DataType = { + type: { + name: "Composite", + className: "DataType", + modelProperties: { + ...exports.ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataTypeProperties" + } + } + } + } +}; +exports.DataProductsCreateHeaders = { + type: { + name: "Composite", + className: "DataProductsCreateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; +exports.DataProductsUpdateHeaders = { + type: { + name: "Composite", + className: "DataProductsUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; +exports.DataProductsDeleteHeaders = { + type: { + name: "Composite", + className: "DataProductsDeleteHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; +exports.DataTypesCreateHeaders = { + type: { + name: "Composite", + className: "DataTypesCreateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; +exports.DataTypesUpdateHeaders = { + type: { + name: "Composite", + className: "DataTypesUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; +exports.DataTypesDeleteHeaders = { + type: { + name: "Composite", + className: "DataTypesDeleteHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; +exports.DataTypesDeleteDataHeaders = { + type: { + name: "Composite", + className: "DataTypesDeleteDataHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; +//# sourceMappingURL=mappers.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js.map new file mode 100644 index 00000000000..66ec2e86d91 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"mappers.js","sourceRoot":"","sources":["mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,WAAW;yBACvB;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,SAAS,GAA+B;IACnD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,cAAc;gBAC9B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,OAAO,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BACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.ts new file mode 100644 index 00000000000..97cba9f018c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.ts @@ -0,0 +1,1595 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import * as coreClient from "@azure/core-client"; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String" + } + }, + actionType: { + serializedName: "actionType", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + readOnly: true, + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const DataProductListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataProduct" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DataProductProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductProperties", + modelProperties: { + resourceGuid: { + serializedName: "resourceGuid", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + required: true, + type: { + name: "String" + } + }, + product: { + serializedName: "product", + required: true, + type: { + name: "String" + } + }, + majorVersion: { + serializedName: "majorVersion", + required: true, + type: { + name: "String" + } + }, + owners: { + serializedName: "owners", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + redundancy: { + serializedName: "redundancy", + type: { + name: "String" + } + }, + purviewAccount: { + serializedName: "purviewAccount", + type: { + name: "String" + } + }, + purviewCollection: { + serializedName: "purviewCollection", + type: { + name: "String" + } + }, + privateLinksEnabled: { + serializedName: "privateLinksEnabled", + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + customerManagedKeyEncryptionEnabled: { + serializedName: "customerManagedKeyEncryptionEnabled", + type: { + name: "String" + } + }, + customerEncryptionKey: { + serializedName: "customerEncryptionKey", + type: { + name: "Composite", + className: "EncryptionKeyDetails" + } + }, + networkacls: { + serializedName: "networkacls", + type: { + name: "Composite", + className: "DataProductNetworkAcls" + } + }, + managedResourceGroupConfiguration: { + serializedName: "managedResourceGroupConfiguration", + type: { + name: "Composite", + className: "ManagedResourceGroupConfiguration" + } + }, + availableMinorVersions: { + serializedName: "availableMinorVersions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + currentMinorVersion: { + serializedName: "currentMinorVersion", + type: { + name: "String" + } + }, + documentation: { + serializedName: "documentation", + readOnly: true, + type: { + name: "String" + } + }, + consumptionEndpoints: { + serializedName: "consumptionEndpoints", + type: { + name: "Composite", + className: "ConsumptionEndpointsProperties" + } + }, + keyVaultUrl: { + serializedName: "keyVaultUrl", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionKeyDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionKeyDetails", + modelProperties: { + keyVaultUri: { + serializedName: "keyVaultUri", + required: true, + type: { + name: "String" + } + }, + keyName: { + serializedName: "keyName", + required: true, + type: { + name: "String" + } + }, + keyVersion: { + serializedName: "keyVersion", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataProductNetworkAcls: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductNetworkAcls", + modelProperties: { + virtualNetworkRule: { + serializedName: "virtualNetworkRule", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkRule" + } + } + } + }, + ipRules: { + serializedName: "ipRules", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPRules" + } + } + } + }, + allowedQueryIpRangeList: { + serializedName: "allowedQueryIpRangeList", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + defaultAction: { + serializedName: "defaultAction", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + } + } + } +}; + +export const IPRules: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPRules", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedResourceGroupConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedResourceGroupConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ConsumptionEndpointsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConsumptionEndpointsProperties", + modelProperties: { + ingestionUrl: { + serializedName: "ingestionUrl", + readOnly: true, + type: { + name: "String" + } + }, + ingestionResourceId: { + serializedName: "ingestionResourceId", + readOnly: true, + type: { + name: "String" + } + }, + fileAccessUrl: { + serializedName: "fileAccessUrl", + readOnly: true, + type: { + name: "String" + } + }, + fileAccessResourceId: { + serializedName: "fileAccessResourceId", + readOnly: true, + type: { + name: "String" + } + }, + queryUrl: { + serializedName: "queryUrl", + readOnly: true, + type: { + name: "String" + } + }, + queryResourceId: { + serializedName: "queryResourceId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" } + } + } + } + } + } +}; + +export const UserAssignedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid" + } + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const DataProductsCatalogListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductsCatalogListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataProductsCatalog" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DataProductsCatalogProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductsCatalogProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publishers: { + serializedName: "publishers", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PublisherInformation" + } + } + } + } + } + } +}; + +export const PublisherInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublisherInformation", + modelProperties: { + publisherName: { + serializedName: "publisherName", + required: true, + type: { + name: "String" + } + }, + dataProducts: { + serializedName: "dataProducts", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataProductInformation" + } + } + } + } + } + } +}; + +export const DataProductInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductInformation", + modelProperties: { + dataProductName: { + serializedName: "dataProductName", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + dataProductVersions: { + serializedName: "dataProductVersions", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataProductVersion" + } + } + } + } + } + } +}; + +export const DataProductVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductVersion", + modelProperties: { + version: { + serializedName: "version", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataProductUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductUpdate", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataProductUpdateProperties" + } + } + } + } +}; + +export const DataProductUpdateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductUpdateProperties", + modelProperties: { + owners: { + serializedName: "owners", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + purviewAccount: { + serializedName: "purviewAccount", + type: { + name: "String" + } + }, + purviewCollection: { + serializedName: "purviewCollection", + type: { + name: "String" + } + }, + privateLinksEnabled: { + serializedName: "privateLinksEnabled", + type: { + name: "String" + } + }, + currentMinorVersion: { + serializedName: "currentMinorVersion", + type: { + name: "String" + } + } + } + } +}; + +export const RoleAssignmentCommonProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoleAssignmentCommonProperties", + modelProperties: { + roleId: { + serializedName: "roleId", + required: true, + type: { + name: "String" + } + }, + principalId: { + serializedName: "principalId", + required: true, + type: { + name: "String" + } + }, + userName: { + serializedName: "userName", + required: true, + type: { + name: "String" + } + }, + dataTypeScope: { + serializedName: "dataTypeScope", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + principalType: { + serializedName: "principalType", + required: true, + type: { + name: "String" + } + }, + role: { + serializedName: "role", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const RoleAssignmentDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoleAssignmentDetail", + modelProperties: { + roleId: { + serializedName: "roleId", + required: true, + type: { + name: "String" + } + }, + principalId: { + serializedName: "principalId", + required: true, + type: { + name: "String" + } + }, + userName: { + serializedName: "userName", + required: true, + type: { + name: "String" + } + }, + dataTypeScope: { + serializedName: "dataTypeScope", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + principalType: { + serializedName: "principalType", + required: true, + type: { + name: "String" + } + }, + role: { + serializedName: "role", + required: true, + type: { + name: "String" + } + }, + roleAssignmentId: { + serializedName: "roleAssignmentId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataTypeListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTypeListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataType" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DataTypeProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTypeProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + stateReason: { + serializedName: "stateReason", + readOnly: true, + type: { + name: "String" + } + }, + storageOutputRetention: { + serializedName: "storageOutputRetention", + type: { + name: "Number" + } + }, + databaseCacheRetention: { + serializedName: "databaseCacheRetention", + type: { + name: "Number" + } + }, + databaseRetention: { + serializedName: "databaseRetention", + type: { + name: "Number" + } + }, + visualizationUrl: { + serializedName: "visualizationUrl", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataTypeUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTypeUpdate", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataTypeUpdateProperties" + } + } + } + } +}; + +export const DataTypeUpdateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTypeUpdateProperties", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String" + } + }, + storageOutputRetention: { + serializedName: "storageOutputRetention", + type: { + name: "Number" + } + }, + databaseCacheRetention: { + serializedName: "databaseCacheRetention", + type: { + name: "Number" + } + }, + databaseRetention: { + serializedName: "databaseRetention", + type: { + name: "Number" + } + } + } + } +}; + +export const ContainerSaS: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerSaS", + modelProperties: { + startTimeStamp: { + serializedName: "startTimeStamp", + required: true, + type: { + name: "DateTime" + } + }, + expiryTimeStamp: { + serializedName: "expiryTimeStamp", + required: true, + type: { + name: "DateTime" + } + }, + ipAddress: { + serializedName: "ipAddress", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ContainerSasToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerSasToken", + modelProperties: { + storageContainerSasToken: { + serializedName: "storageContainerSasToken", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AccountSas: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccountSas", + modelProperties: { + startTimeStamp: { + serializedName: "startTimeStamp", + required: true, + type: { + name: "DateTime" + } + }, + expiryTimeStamp: { + serializedName: "expiryTimeStamp", + required: true, + type: { + name: "DateTime" + } + }, + ipAddress: { + serializedName: "ipAddress", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AccountSasToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccountSasToken", + modelProperties: { + storageAccountSasToken: { + serializedName: "storageAccountSasToken", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ListRoleAssignments: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListRoleAssignments", + modelProperties: { + count: { + serializedName: "count", + required: true, + type: { + name: "Number" + } + }, + roleAssignmentResponse: { + serializedName: "roleAssignmentResponse", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleAssignmentDetail" + } + } + } + } + } + } +}; + +export const KeyVaultInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultInfo", + modelProperties: { + keyVaultUrl: { + serializedName: "keyVaultUrl", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceAccessRules: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAccessRules", + modelProperties: { + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const DataProduct: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProduct", + modelProperties: { + ...TrackedResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataProductProperties" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + } + } + } +}; + +export const DataProductsCatalog: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductsCatalog", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataProductsCatalogProperties" + } + } + } + } +}; + +export const DataType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataType", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataTypeProperties" + } + } + } + } +}; + +export const DataProductsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductsCreateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const DataProductsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductsUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const DataProductsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataProductsDeleteHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const DataTypesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTypesCreateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const DataTypesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTypesUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const DataTypesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTypesDeleteHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const DataTypesDeleteDataHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTypesDeleteDataHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts new file mode 100644 index 00000000000..dc2f4c1fe56 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts @@ -0,0 +1,21 @@ +import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client"; +export declare const accept: OperationParameter; +export declare const $host: OperationURLParameter; +export declare const apiVersion: OperationQueryParameter; +export declare const nextLink: OperationURLParameter; +export declare const subscriptionId: OperationURLParameter; +export declare const resourceGroupName: OperationURLParameter; +export declare const dataProductName: OperationURLParameter; +export declare const contentType: OperationParameter; +export declare const resource: OperationParameter; +export declare const properties: OperationParameter; +export declare const body: OperationParameter; +export declare const body1: OperationParameter; +export declare const body2: OperationParameter; +export declare const body3: OperationParameter; +export declare const body4: OperationParameter; +export declare const dataTypeName: OperationURLParameter; +export declare const resource1: OperationParameter; +export declare const properties1: OperationParameter; +export declare const body5: OperationParameter; +//# sourceMappingURL=parameters.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts.map new file mode 100644 index 00000000000..33c4b26253e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAa5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAY5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAa/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,qBAc7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,kBAGtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,kBAGlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAUnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,qBAc1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js new file mode 100644 index 00000000000..b86c33fb45d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js @@ -0,0 +1,171 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.body5 = exports.properties1 = exports.resource1 = exports.dataTypeName = exports.body4 = exports.body3 = exports.body2 = exports.body1 = exports.body = exports.properties = exports.resource = exports.contentType = exports.dataProductName = exports.resourceGroupName = exports.subscriptionId = exports.nextLink = exports.apiVersion = exports.$host = exports.accept = void 0; +const mappers_1 = require("../models/mappers"); +exports.accept = { + parameterPath: "accept", + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", + type: { + name: "String" + } + } +}; +exports.$host = { + parameterPath: "$host", + mapper: { + serializedName: "$host", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; +exports.apiVersion = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-11-15", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +exports.nextLink = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; +exports.subscriptionId = { + parameterPath: "subscriptionId", + mapper: { + constraints: { + MinLength: 1 + }, + serializedName: "subscriptionId", + required: true, + type: { + name: "String" + } + } +}; +exports.resourceGroupName = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String" + } + } +}; +exports.dataProductName = { + parameterPath: "dataProductName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$"), + MaxLength: 63, + MinLength: 3 + }, + serializedName: "dataProductName", + required: true, + type: { + name: "String" + } + } +}; +exports.contentType = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; +exports.resource = { + parameterPath: "resource", + mapper: mappers_1.DataProduct +}; +exports.properties = { + parameterPath: "properties", + mapper: mappers_1.DataProductUpdate +}; +exports.body = { + parameterPath: "body", + mapper: mappers_1.RoleAssignmentCommonProperties +}; +exports.body1 = { + parameterPath: "body", + mapper: mappers_1.AccountSas +}; +exports.body2 = { + parameterPath: "body", + mapper: { + serializedName: "body", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } +}; +exports.body3 = { + parameterPath: "body", + mapper: mappers_1.RoleAssignmentDetail +}; +exports.body4 = { + parameterPath: "body", + mapper: mappers_1.KeyVaultInfo +}; +exports.dataTypeName = { + parameterPath: "dataTypeName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9-]*$"), + MaxLength: 63, + MinLength: 3 + }, + serializedName: "dataTypeName", + required: true, + type: { + name: "String" + } + } +}; +exports.resource1 = { + parameterPath: "resource", + mapper: mappers_1.DataType +}; +exports.properties1 = { + parameterPath: "properties", + mapper: mappers_1.DataTypeUpdate +}; +exports.body5 = { + parameterPath: "body", + mapper: mappers_1.ContainerSaS +}; +//# sourceMappingURL=parameters.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js.map new file mode 100644 index 00000000000..73d5d6927e2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parameters.js","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAOH,+CAU2B;AAEd,QAAA,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEW,QAAA,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAA0B;IAC7C,aAAa,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uB;IACvC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,sBAAkB;CAC3B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.ts new file mode 100644 index 00000000000..81020bdfa05 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.ts @@ -0,0 +1,202 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + OperationParameter, + OperationURLParameter, + OperationQueryParameter +} from "@azure/core-client"; +import { + DataProduct as DataProductMapper, + DataProductUpdate as DataProductUpdateMapper, + RoleAssignmentCommonProperties as RoleAssignmentCommonPropertiesMapper, + AccountSas as AccountSasMapper, + RoleAssignmentDetail as RoleAssignmentDetailMapper, + KeyVaultInfo as KeyVaultInfoMapper, + DataType as DataTypeMapper, + DataTypeUpdate as DataTypeUpdateMapper, + ContainerSaS as ContainerSaSMapper +} from "../models/mappers"; + +export const accept: OperationParameter = { + parameterPath: "accept", + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", + type: { + name: "String" + } + } +}; + +export const $host: OperationURLParameter = { + parameterPath: "$host", + mapper: { + serializedName: "$host", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-11-15", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + constraints: { + MinLength: 1 + }, + serializedName: "subscriptionId", + required: true, + type: { + name: "String" + } + } +}; + +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const dataProductName: OperationURLParameter = { + parameterPath: "dataProductName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$"), + MaxLength: 63, + MinLength: 3 + }, + serializedName: "dataProductName", + required: true, + type: { + name: "String" + } + } +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const resource: OperationParameter = { + parameterPath: "resource", + mapper: DataProductMapper +}; + +export const properties: OperationParameter = { + parameterPath: "properties", + mapper: DataProductUpdateMapper +}; + +export const body: OperationParameter = { + parameterPath: "body", + mapper: RoleAssignmentCommonPropertiesMapper +}; + +export const body1: OperationParameter = { + parameterPath: "body", + mapper: AccountSasMapper +}; + +export const body2: OperationParameter = { + parameterPath: "body", + mapper: { + serializedName: "body", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } +}; + +export const body3: OperationParameter = { + parameterPath: "body", + mapper: RoleAssignmentDetailMapper +}; + +export const body4: OperationParameter = { + parameterPath: "body", + mapper: KeyVaultInfoMapper +}; + +export const dataTypeName: OperationURLParameter = { + parameterPath: "dataTypeName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9-]*$"), + MaxLength: 63, + MinLength: 3 + }, + serializedName: "dataTypeName", + required: true, + type: { + name: "String" + } + } +}; + +export const resource1: OperationParameter = { + parameterPath: "resource", + mapper: DataTypeMapper +}; + +export const properties1: OperationParameter = { + parameterPath: "properties", + mapper: DataTypeUpdateMapper +}; + +export const body5: OperationParameter = { + parameterPath: "body", + mapper: ContainerSaSMapper +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts new file mode 100644 index 00000000000..ad9048ae9fb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts @@ -0,0 +1,147 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataProducts } from "../operationsInterfaces"; +import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { DataProduct, DataProductsListBySubscriptionOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsGetOptionalParams, DataProductsGetResponse, DataProductsCreateOptionalParams, DataProductsCreateResponse, DataProductUpdate, DataProductsUpdateOptionalParams, DataProductsUpdateResponse, DataProductsDeleteOptionalParams, DataProductsDeleteResponse, RoleAssignmentCommonProperties, DataProductsAddUserRoleOptionalParams, DataProductsAddUserRoleResponse, AccountSas, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsGenerateStorageAccountSasTokenResponse, DataProductsListRolesAssignmentsOptionalParams, DataProductsListRolesAssignmentsResponse, RoleAssignmentDetail, DataProductsRemoveUserRoleOptionalParams, KeyVaultInfo, DataProductsRotateKeyOptionalParams } from "../models"; +/** Class containing DataProducts operations. */ +export declare class DataProductsImpl implements DataProducts { + private readonly client; + /** + * Initialize a new instance of the class DataProducts class. + * @param client Reference to the service client + */ + constructor(client: MicrosoftNetworkAnalytics); + /** + * List data products by subscription. + * @param options The options parameters. + */ + listBySubscription(options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + private listBySubscriptionPagingPage; + private listBySubscriptionPagingAll; + /** + * List data products by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup(resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + private listByResourceGroupPagingPage; + private listByResourceGroupPagingAll; + /** + * List data products by subscription. + * @param options The options parameters. + */ + private _listBySubscription; + /** + * List data products by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup; + /** + * Retrieve data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + get(resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreate(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise, DataProductsCreateResponse>>; + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreateAndWait(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise; + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdate(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise, DataProductsUpdateResponse>>; + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdateAndWait(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise; + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + beginDelete(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise, DataProductsDeleteResponse>>; + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + beginDeleteAndWait(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise; + /** + * Assign role to the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + addUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): Promise; + /** + * Generate sas token for storage account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageAccountSasToken(resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; + /** + * List user roles associated with the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + listRolesAssignments(resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; + /** + * Remove role from the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + removeUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): Promise; + /** + * Initiate key rotation on Data Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + rotateKey(resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): Promise; + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext; + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext; +} +//# sourceMappingURL=dataProducts.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts.map new file mode 100644 index 00000000000..e3965b5ba6a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProducts.d.ts","sourceRoot":"","sources":["dataProducts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,WAAW,EAEX,4CAA4C,EAG5C,6CAA6C,EAE7C,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,0BAA0B,EAC1B,iBAAiB,EACjB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,8BAA8B,EAC9B,qCAAqC,EACrC,+BAA+B,EAC/B,UAAU,EACV,wDAAwD,EACxD,kDAAkD,EAClD,8CAA8C,EAC9C,wCAAwC,EACxC,oBAAoB,EACpB,wCAAwC,EACxC,YAAY,EACZ,mCAAmC,EAGpC,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,qBAAa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I,CAAC;IAOhB;;;;;;OAMG;IACH,SAAS,CACP,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js new file mode 100644 index 00000000000..b63f6f6e0f4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js @@ -0,0 +1,689 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataProductsImpl = void 0; +const tslib_1 = require("tslib"); +const pagingHelper_1 = require("../pagingHelper"); +const coreClient = tslib_1.__importStar(require("@azure/core-client")); +const Mappers = tslib_1.__importStar(require("../models/mappers")); +const Parameters = tslib_1.__importStar(require("../models/parameters")); +const core_lro_1 = require("@azure/core-lro"); +const lroImpl_1 = require("../lroImpl"); +/// +/** Class containing DataProducts operations. */ +class DataProductsImpl { + client; + /** + * Initialize a new instance of the class DataProducts class. + * @param client Reference to the service client + */ + constructor(client) { + this.client = client; + } + /** + * List data products by subscription. + * @param options The options parameters. + */ + listBySubscription(options) { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + async *listBySubscriptionPagingPage(options, settings) { + let result; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + } + async *listBySubscriptionPagingAll(options) { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + /** + * List data products by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup(resourceGroupName, options) { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); + } + }; + } + async *listByResourceGroupPagingPage(resourceGroupName, options, settings) { + let result; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + } + async *listByResourceGroupPagingAll(resourceGroupName, options) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { + yield* page; + } + } + /** + * List data products by subscription. + * @param options The options parameters. + */ + _listBySubscription(options) { + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); + } + /** + * List data products by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + _listByResourceGroup(resourceGroupName, options) { + return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec); + } + /** + * Retrieve data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + get(resourceGroupName, dataProductName, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, options }, getOperationSpec); + } + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreate(resourceGroupName, dataProductName, resource, options) { + const directSendOperation = async (args, spec) => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async (args, spec) => { + let currentRawResponse = undefined; + const providedCallback = args.options?.onResponse; + const callback = (rawResponse, flatResponse) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse.status, + body: currentRawResponse.parsedBody, + headers: currentRawResponse.headers.toJSON() + } + }; + }; + const lro = (0, lroImpl_1.createLroSpec)({ + sendOperationFn, + args: { resourceGroupName, dataProductName, resource, options }, + spec: createOperationSpec + }); + const poller = await (0, core_lro_1.createHttpPoller)(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreateAndWait(resourceGroupName, dataProductName, resource, options) { + const poller = await this.beginCreate(resourceGroupName, dataProductName, resource, options); + return poller.pollUntilDone(); + } + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + async beginUpdate(resourceGroupName, dataProductName, properties, options) { + const directSendOperation = async (args, spec) => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async (args, spec) => { + let currentRawResponse = undefined; + const providedCallback = args.options?.onResponse; + const callback = (rawResponse, flatResponse) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse.status, + body: currentRawResponse.parsedBody, + headers: currentRawResponse.headers.toJSON() + } + }; + }; + const lro = (0, lroImpl_1.createLroSpec)({ + sendOperationFn, + args: { resourceGroupName, dataProductName, properties, options }, + spec: updateOperationSpec + }); + const poller = await (0, core_lro_1.createHttpPoller)(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + async beginUpdateAndWait(resourceGroupName, dataProductName, properties, options) { + const poller = await this.beginUpdate(resourceGroupName, dataProductName, properties, options); + return poller.pollUntilDone(); + } + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + async beginDelete(resourceGroupName, dataProductName, options) { + const directSendOperation = async (args, spec) => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async (args, spec) => { + let currentRawResponse = undefined; + const providedCallback = args.options?.onResponse; + const callback = (rawResponse, flatResponse) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse.status, + body: currentRawResponse.parsedBody, + headers: currentRawResponse.headers.toJSON() + } + }; + }; + const lro = (0, lroImpl_1.createLroSpec)({ + sendOperationFn, + args: { resourceGroupName, dataProductName, options }, + spec: deleteOperationSpec + }); + const poller = await (0, core_lro_1.createHttpPoller)(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + async beginDeleteAndWait(resourceGroupName, dataProductName, options) { + const poller = await this.beginDelete(resourceGroupName, dataProductName, options); + return poller.pollUntilDone(); + } + /** + * Assign role to the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + addUserRole(resourceGroupName, dataProductName, body, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, addUserRoleOperationSpec); + } + /** + * Generate sas token for storage account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageAccountSasToken(resourceGroupName, dataProductName, body, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, generateStorageAccountSasTokenOperationSpec); + } + /** + * List user roles associated with the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + listRolesAssignments(resourceGroupName, dataProductName, body, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, listRolesAssignmentsOperationSpec); + } + /** + * Remove role from the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + removeUserRole(resourceGroupName, dataProductName, body, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, removeUserRoleOperationSpec); + } + /** + * Initiate key rotation on Data Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + rotateKey(resourceGroupName, dataProductName, body, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, rotateKeyOperationSpec); + } + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + _listBySubscriptionNext(nextLink, options) { + return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec); + } + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + _listByResourceGroupNext(resourceGroupName, nextLink, options) { + return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec); + } +} +exports.DataProductsImpl = DataProductsImpl; +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listBySubscriptionOperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProduct + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataProduct + }, + 201: { + bodyMapper: Mappers.DataProduct + }, + 202: { + bodyMapper: Mappers.DataProduct + }, + 204: { + bodyMapper: Mappers.DataProduct + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.resource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DataProduct + }, + 201: { + bodyMapper: Mappers.DataProduct + }, + 202: { + bodyMapper: Mappers.DataProduct + }, + 204: { + bodyMapper: Mappers.DataProduct + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.properties, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.DataProductsDeleteHeaders + }, + 201: { + headersMapper: Mappers.DataProductsDeleteHeaders + }, + 202: { + headersMapper: Mappers.DataProductsDeleteHeaders + }, + 204: { + headersMapper: Mappers.DataProductsDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept], + serializer +}; +const addUserRoleOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RoleAssignmentDetail + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const generateStorageAccountSasTokenOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AccountSasToken + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listRolesAssignmentsOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListRoleAssignments + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const removeUserRoleOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const rotateKeyOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySubscriptionNextOperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +//# sourceMappingURL=dataProducts.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js.map new file mode 100644 index 00000000000..b43d14aa372 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProducts.js","sourceRoot":"","sources":["dataProducts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,kDAAuD;AAEvD,uEAAiD;AACjD,mEAA6C;AAC7C,yEAAmD;AAEnD,8CAIyB;AACzB,wCAA2C;AAkC3C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAa,gBAAgB;IACV,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,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M;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.ts new file mode 100644 index 00000000000..2c440edd792 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.ts @@ -0,0 +1,960 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DataProducts } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DataProduct, + DataProductsListBySubscriptionNextOptionalParams, + DataProductsListBySubscriptionOptionalParams, + DataProductsListBySubscriptionResponse, + DataProductsListByResourceGroupNextOptionalParams, + DataProductsListByResourceGroupOptionalParams, + DataProductsListByResourceGroupResponse, + DataProductsGetOptionalParams, + DataProductsGetResponse, + DataProductsCreateOptionalParams, + DataProductsCreateResponse, + DataProductUpdate, + DataProductsUpdateOptionalParams, + DataProductsUpdateResponse, + DataProductsDeleteOptionalParams, + DataProductsDeleteResponse, + RoleAssignmentCommonProperties, + DataProductsAddUserRoleOptionalParams, + DataProductsAddUserRoleResponse, + AccountSas, + DataProductsGenerateStorageAccountSasTokenOptionalParams, + DataProductsGenerateStorageAccountSasTokenResponse, + DataProductsListRolesAssignmentsOptionalParams, + DataProductsListRolesAssignmentsResponse, + RoleAssignmentDetail, + DataProductsRemoveUserRoleOptionalParams, + KeyVaultInfo, + DataProductsRotateKeyOptionalParams, + DataProductsListBySubscriptionNextResponse, + DataProductsListByResourceGroupNextResponse +} from "../models"; + +/// +/** Class containing DataProducts operations. */ +export class DataProductsImpl implements DataProducts { + private readonly client: MicrosoftNetworkAnalytics; + + /** + * Initialize a new instance of the class DataProducts class. + * @param client Reference to the service client + */ + constructor(client: MicrosoftNetworkAnalytics) { + this.client = client; + } + + /** + * List data products by subscription. + * @param options The options parameters. + */ + public listBySubscription( + options?: DataProductsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: DataProductsListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DataProductsListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: DataProductsListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * List data products by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: DataProductsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: DataProductsListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DataProductsListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: DataProductsListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * List data products by subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: DataProductsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * List data products by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: DataProductsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Retrieve data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + dataProductName: string, + options?: DataProductsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, options }, + getOperationSpec + ); + } + + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + dataProductName: string, + resource: DataProduct, + options?: DataProductsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataProductsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, dataProductName, resource, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + DataProductsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + dataProductName: string, + resource: DataProduct, + options?: DataProductsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + dataProductName, + resource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + dataProductName: string, + properties: DataProductUpdate, + options?: DataProductsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataProductsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, dataProductName, properties, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DataProductsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + dataProductName: string, + properties: DataProductUpdate, + options?: DataProductsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + dataProductName, + properties, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + dataProductName: string, + options?: DataProductsDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataProductsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, dataProductName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + DataProductsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + dataProductName: string, + options?: DataProductsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + dataProductName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Assign role to the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + addUserRole( + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentCommonProperties, + options?: DataProductsAddUserRoleOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, body, options }, + addUserRoleOperationSpec + ); + } + + /** + * Generate sas token for storage account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageAccountSasToken( + resourceGroupName: string, + dataProductName: string, + body: AccountSas, + options?: DataProductsGenerateStorageAccountSasTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, body, options }, + generateStorageAccountSasTokenOperationSpec + ); + } + + /** + * List user roles associated with the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + listRolesAssignments( + resourceGroupName: string, + dataProductName: string, + body: Record, + options?: DataProductsListRolesAssignmentsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, body, options }, + listRolesAssignmentsOperationSpec + ); + } + + /** + * Remove role from the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + removeUserRole( + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentDetail, + options?: DataProductsRemoveUserRoleOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, body, options }, + removeUserRoleOperationSpec + ); + } + + /** + * Initiate key rotation on Data Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + rotateKey( + resourceGroupName: string, + dataProductName: string, + body: KeyVaultInfo, + options?: DataProductsRotateKeyOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, body, options }, + rotateKeyOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: DataProductsListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: DataProductsListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProduct + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataProduct + }, + 201: { + bodyMapper: Mappers.DataProduct + }, + 202: { + bodyMapper: Mappers.DataProduct + }, + 204: { + bodyMapper: Mappers.DataProduct + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.resource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DataProduct + }, + 201: { + bodyMapper: Mappers.DataProduct + }, + 202: { + bodyMapper: Mappers.DataProduct + }, + 204: { + bodyMapper: Mappers.DataProduct + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.properties, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.DataProductsDeleteHeaders + }, + 201: { + headersMapper: Mappers.DataProductsDeleteHeaders + }, + 202: { + headersMapper: Mappers.DataProductsDeleteHeaders + }, + 204: { + headersMapper: Mappers.DataProductsDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept], + serializer +}; +const addUserRoleOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RoleAssignmentDetail + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const generateStorageAccountSasTokenOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AccountSasToken + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listRolesAssignmentsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListRoleAssignments + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const removeUserRoleOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const rotateKeyOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts new file mode 100644 index 00000000000..6a18f6041a2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts @@ -0,0 +1,59 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataProductsCatalogs } from "../operationsInterfaces"; +import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; +import { DataProductsCatalog, DataProductsCatalogsListBySubscriptionOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsGetOptionalParams, DataProductsCatalogsGetResponse } from "../models"; +/** Class containing DataProductsCatalogs operations. */ +export declare class DataProductsCatalogsImpl implements DataProductsCatalogs { + private readonly client; + /** + * Initialize a new instance of the class DataProductsCatalogs class. + * @param client Reference to the service client + */ + constructor(client: MicrosoftNetworkAnalytics); + /** + * List data catalog by subscription. + * @param options The options parameters. + */ + listBySubscription(options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + private listBySubscriptionPagingPage; + private listBySubscriptionPagingAll; + /** + * List data catalog by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup(resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + private listByResourceGroupPagingPage; + private listByResourceGroupPagingAll; + /** + * List data catalog by subscription. + * @param options The options parameters. + */ + private _listBySubscription; + /** + * List data catalog by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup; + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get(resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext; + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext; +} +//# sourceMappingURL=dataProductsCatalogs.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts.map new file mode 100644 index 00000000000..8340d52dbaa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogs.d.ts","sourceRoot":"","sources":["dataProductsCatalogs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,mBAAmB,EAEnB,oDAAoD,EAGpD,qDAAqD,EAErD,qCAAqC,EACrC,+BAA+B,EAGhC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,mBAAmB,CAAC;YAkBnC,4BAA4B;YAsB5B,2BAA2B;IAQ1C;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,mBAAmB,CAAC;YAsBnC,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;OAIG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js new file mode 100644 index 00000000000..63a7d6e19ad --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js @@ -0,0 +1,255 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataProductsCatalogsImpl = void 0; +const tslib_1 = require("tslib"); +const pagingHelper_1 = require("../pagingHelper"); +const coreClient = tslib_1.__importStar(require("@azure/core-client")); +const Mappers = tslib_1.__importStar(require("../models/mappers")); +const Parameters = tslib_1.__importStar(require("../models/parameters")); +/// +/** Class containing DataProductsCatalogs operations. */ +class DataProductsCatalogsImpl { + client; + /** + * Initialize a new instance of the class DataProductsCatalogs class. + * @param client Reference to the service client + */ + constructor(client) { + this.client = client; + } + /** + * List data catalog by subscription. + * @param options The options parameters. + */ + listBySubscription(options) { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + async *listBySubscriptionPagingPage(options, settings) { + let result; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + } + async *listBySubscriptionPagingAll(options) { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + /** + * List data catalog by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup(resourceGroupName, options) { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); + } + }; + } + async *listByResourceGroupPagingPage(resourceGroupName, options, settings) { + let result; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + } + async *listByResourceGroupPagingAll(resourceGroupName, options) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { + yield* page; + } + } + /** + * List data catalog by subscription. + * @param options The options parameters. + */ + _listBySubscription(options) { + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); + } + /** + * List data catalog by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + _listByResourceGroup(resourceGroupName, options) { + return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec); + } + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get(resourceGroupName, options) { + return this.client.sendOperationRequest({ resourceGroupName, options }, getOperationSpec); + } + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + _listBySubscriptionNext(nextLink, options) { + return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec); + } + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + _listByResourceGroupNext(resourceGroupName, nextLink, options) { + return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec); + } +} +exports.DataProductsCatalogsImpl = DataProductsCatalogsImpl; +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listBySubscriptionOperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalogListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalogListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalog + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalogListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalogListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +//# sourceMappingURL=dataProductsCatalogs.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js.map new file mode 100644 index 00000000000..c70d0b6da1d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogs.js","sourceRoot":"","sources":["dataProductsCatalogs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,kDAAuD;AAEvD,uEAAiD;AACjD,mEAA6C;AAC7C,yEAAmD;AAgBnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;Q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AC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.ts new file mode 100644 index 00000000000..65ae6571c80 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.ts @@ -0,0 +1,341 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DataProductsCatalogs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; +import { + DataProductsCatalog, + DataProductsCatalogsListBySubscriptionNextOptionalParams, + DataProductsCatalogsListBySubscriptionOptionalParams, + DataProductsCatalogsListBySubscriptionResponse, + DataProductsCatalogsListByResourceGroupNextOptionalParams, + DataProductsCatalogsListByResourceGroupOptionalParams, + DataProductsCatalogsListByResourceGroupResponse, + DataProductsCatalogsGetOptionalParams, + DataProductsCatalogsGetResponse, + DataProductsCatalogsListBySubscriptionNextResponse, + DataProductsCatalogsListByResourceGroupNextResponse +} from "../models"; + +/// +/** Class containing DataProductsCatalogs operations. */ +export class DataProductsCatalogsImpl implements DataProductsCatalogs { + private readonly client: MicrosoftNetworkAnalytics; + + /** + * Initialize a new instance of the class DataProductsCatalogs class. + * @param client Reference to the service client + */ + constructor(client: MicrosoftNetworkAnalytics) { + this.client = client; + } + + /** + * List data catalog by subscription. + * @param options The options parameters. + */ + public listBySubscription( + options?: DataProductsCatalogsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: DataProductsCatalogsListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DataProductsCatalogsListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: DataProductsCatalogsListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * List data catalog by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: DataProductsCatalogsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: DataProductsCatalogsListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DataProductsCatalogsListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: DataProductsCatalogsListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * List data catalog by subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: DataProductsCatalogsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * List data catalog by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: DataProductsCatalogsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + options?: DataProductsCatalogsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + getOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: DataProductsCatalogsListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: DataProductsCatalogsListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalogListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalogListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalog + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalogListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataProductsCatalogListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts new file mode 100644 index 00000000000..8fa89207d39 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts @@ -0,0 +1,126 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataTypes } from "../operationsInterfaces"; +import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { DataType, DataTypesListByDataProductOptionalParams, DataTypesGetOptionalParams, DataTypesGetResponse, DataTypesCreateOptionalParams, DataTypesCreateResponse, DataTypeUpdate, DataTypesUpdateOptionalParams, DataTypesUpdateResponse, DataTypesDeleteOptionalParams, DataTypesDeleteResponse, DataTypesDeleteDataOptionalParams, DataTypesDeleteDataResponse, ContainerSaS, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesGenerateStorageContainerSasTokenResponse } from "../models"; +/** Class containing DataTypes operations. */ +export declare class DataTypesImpl implements DataTypes { + private readonly client; + /** + * Initialize a new instance of the class DataTypes class. + * @param client Reference to the service client + */ + constructor(client: MicrosoftNetworkAnalytics); + /** + * List data type by parent resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + listByDataProduct(resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; + private listByDataProductPagingPage; + private listByDataProductPagingAll; + /** + * List data type by parent resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + private _listByDataProduct; + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + get(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreate(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise, DataTypesCreateResponse>>; + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise; + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdate(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise, DataTypesUpdateResponse>>; + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise; + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + beginDelete(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise, DataTypesDeleteResponse>>; + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + beginDeleteAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise; + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + beginDeleteData(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise, DataTypesDeleteDataResponse>>; + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + beginDeleteDataAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise; + /** + * Generate sas token for storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageContainerSasToken(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; + /** + * ListByDataProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param nextLink The nextLink from the previous successful call to the ListByDataProduct method. + * @param options The options parameters. + */ + private _listByDataProductNext; +} +//# sourceMappingURL=dataTypes.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts.map new file mode 100644 index 00000000000..2b91767db67 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypes.d.ts","sourceRoot":"","sources":["dataTypes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,QAAQ,EAER,wCAAwC,EAExC,0BAA0B,EAC1B,oBAAoB,EACpB,6BAA6B,EAC7B,uBAAuB,EACvB,cAAc,EACd,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,iCAAiC,EACjC,2BAA2B,EAC3B,YAAY,EACZ,uDAAuD,EACvD,iDAAiD,EAElD,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;;;OAKG;IACI,iBAAiB,CACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,Q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AY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,uBAAuB,CAAC,EACvC,uBAAuB,CACxB,CACF;IAyDD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAUnC;;;;;;;OAOG;IACG,eAAe,CACnB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,2BAA2B,CAAC,EAC3C,2BAA2B,CAC5B,CACF;IAyDD;;;;;;;OAOG;IACG,sBAAsB,CAC1B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAWvC;;;;;;;OAOG;IACH,gCAAgC,CAC9B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC;IAO7D;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;CAW/B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js new file mode 100644 index 00000000000..4aab4b7b961 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js @@ -0,0 +1,591 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataTypesImpl = void 0; +const tslib_1 = require("tslib"); +const pagingHelper_1 = require("../pagingHelper"); +const coreClient = tslib_1.__importStar(require("@azure/core-client")); +const Mappers = tslib_1.__importStar(require("../models/mappers")); +const Parameters = tslib_1.__importStar(require("../models/parameters")); +const core_lro_1 = require("@azure/core-lro"); +const lroImpl_1 = require("../lroImpl"); +/// +/** Class containing DataTypes operations. */ +class DataTypesImpl { + client; + /** + * Initialize a new instance of the class DataTypes class. + * @param client Reference to the service client + */ + constructor(client) { + this.client = client; + } + /** + * List data type by parent resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + listByDataProduct(resourceGroupName, dataProductName, options) { + const iter = this.listByDataProductPagingAll(resourceGroupName, dataProductName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDataProductPagingPage(resourceGroupName, dataProductName, options, settings); + } + }; + } + async *listByDataProductPagingPage(resourceGroupName, dataProductName, options, settings) { + let result; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDataProduct(resourceGroupName, dataProductName, options); + let page = result.value || []; + continuationToken = result.nextLink; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDataProductNext(resourceGroupName, dataProductName, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + } + async *listByDataProductPagingAll(resourceGroupName, dataProductName, options) { + for await (const page of this.listByDataProductPagingPage(resourceGroupName, dataProductName, options)) { + yield* page; + } + } + /** + * List data type by parent resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + _listByDataProduct(resourceGroupName, dataProductName, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, options }, listByDataProductOperationSpec); + } + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + get(resourceGroupName, dataProductName, dataTypeName, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, dataTypeName, options }, getOperationSpec); + } + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreate(resourceGroupName, dataProductName, dataTypeName, resource, options) { + const directSendOperation = async (args, spec) => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async (args, spec) => { + let currentRawResponse = undefined; + const providedCallback = args.options?.onResponse; + const callback = (rawResponse, flatResponse) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse.status, + body: currentRawResponse.parsedBody, + headers: currentRawResponse.headers.toJSON() + } + }; + }; + const lro = (0, lroImpl_1.createLroSpec)({ + sendOperationFn, + args: { + resourceGroupName, + dataProductName, + dataTypeName, + resource, + options + }, + spec: createOperationSpec + }); + const poller = await (0, core_lro_1.createHttpPoller)(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource, options) { + const poller = await this.beginCreate(resourceGroupName, dataProductName, dataTypeName, resource, options); + return poller.pollUntilDone(); + } + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + async beginUpdate(resourceGroupName, dataProductName, dataTypeName, properties, options) { + const directSendOperation = async (args, spec) => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async (args, spec) => { + let currentRawResponse = undefined; + const providedCallback = args.options?.onResponse; + const callback = (rawResponse, flatResponse) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse.status, + body: currentRawResponse.parsedBody, + headers: currentRawResponse.headers.toJSON() + } + }; + }; + const lro = (0, lroImpl_1.createLroSpec)({ + sendOperationFn, + args: { + resourceGroupName, + dataProductName, + dataTypeName, + properties, + options + }, + spec: updateOperationSpec + }); + const poller = await (0, core_lro_1.createHttpPoller)(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + async beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties, options) { + const poller = await this.beginUpdate(resourceGroupName, dataProductName, dataTypeName, properties, options); + return poller.pollUntilDone(); + } + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + async beginDelete(resourceGroupName, dataProductName, dataTypeName, options) { + const directSendOperation = async (args, spec) => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async (args, spec) => { + let currentRawResponse = undefined; + const providedCallback = args.options?.onResponse; + const callback = (rawResponse, flatResponse) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse.status, + body: currentRawResponse.parsedBody, + headers: currentRawResponse.headers.toJSON() + } + }; + }; + const lro = (0, lroImpl_1.createLroSpec)({ + sendOperationFn, + args: { resourceGroupName, dataProductName, dataTypeName, options }, + spec: deleteOperationSpec + }); + const poller = await (0, core_lro_1.createHttpPoller)(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + async beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName, options) { + const poller = await this.beginDelete(resourceGroupName, dataProductName, dataTypeName, options); + return poller.pollUntilDone(); + } + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + async beginDeleteData(resourceGroupName, dataProductName, dataTypeName, body, options) { + const directSendOperation = async (args, spec) => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async (args, spec) => { + let currentRawResponse = undefined; + const providedCallback = args.options?.onResponse; + const callback = (rawResponse, flatResponse) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse.status, + body: currentRawResponse.parsedBody, + headers: currentRawResponse.headers.toJSON() + } + }; + }; + const lro = (0, lroImpl_1.createLroSpec)({ + sendOperationFn, + args: { resourceGroupName, dataProductName, dataTypeName, body, options }, + spec: deleteDataOperationSpec + }); + const poller = await (0, core_lro_1.createHttpPoller)(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + async beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body, options) { + const poller = await this.beginDeleteData(resourceGroupName, dataProductName, dataTypeName, body, options); + return poller.pollUntilDone(); + } + /** + * Generate sas token for storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, dataTypeName, body, options }, generateStorageContainerSasTokenOperationSpec); + } + /** + * ListByDataProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param nextLink The nextLink from the previous successful call to the ListByDataProduct method. + * @param options The options parameters. + */ + _listByDataProductNext(resourceGroupName, dataProductName, nextLink, options) { + return this.client.sendOperationRequest({ resourceGroupName, dataProductName, nextLink, options }, listByDataProductNextOperationSpec); + } +} +exports.DataTypesImpl = DataTypesImpl; +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDataProductOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataTypeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataType + }, + 201: { + bodyMapper: Mappers.DataType + }, + 202: { + bodyMapper: Mappers.DataType + }, + 204: { + bodyMapper: Mappers.DataType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.resource1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DataType + }, + 201: { + bodyMapper: Mappers.DataType + }, + 202: { + bodyMapper: Mappers.DataType + }, + 204: { + bodyMapper: Mappers.DataType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.properties1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.DataTypesDeleteHeaders + }, + 201: { + headersMapper: Mappers.DataTypesDeleteHeaders + }, + 202: { + headersMapper: Mappers.DataTypesDeleteHeaders + }, + 204: { + headersMapper: Mappers.DataTypesDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteDataOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.DataTypesDeleteDataHeaders + }, + 201: { + headersMapper: Mappers.DataTypesDeleteDataHeaders + }, + 202: { + headersMapper: Mappers.DataTypesDeleteDataHeaders + }, + 204: { + headersMapper: Mappers.DataTypesDeleteDataHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const generateStorageContainerSasTokenOperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ContainerSasToken + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByDataProductNextOperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataTypeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept], + serializer +}; +//# sourceMappingURL=dataTypes.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js.map new file mode 100644 index 00000000000..3cf65ac2ee2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypes.js","sourceRoot":"","sources":["dataTypes.ts"],"names":[],"mappings":";AAAA;;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,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.ts new file mode 100644 index 00000000000..847d14bef7f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.ts @@ -0,0 +1,855 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DataTypes } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DataType, + DataTypesListByDataProductNextOptionalParams, + DataTypesListByDataProductOptionalParams, + DataTypesListByDataProductResponse, + DataTypesGetOptionalParams, + DataTypesGetResponse, + DataTypesCreateOptionalParams, + DataTypesCreateResponse, + DataTypeUpdate, + DataTypesUpdateOptionalParams, + DataTypesUpdateResponse, + DataTypesDeleteOptionalParams, + DataTypesDeleteResponse, + DataTypesDeleteDataOptionalParams, + DataTypesDeleteDataResponse, + ContainerSaS, + DataTypesGenerateStorageContainerSasTokenOptionalParams, + DataTypesGenerateStorageContainerSasTokenResponse, + DataTypesListByDataProductNextResponse +} from "../models"; + +/// +/** Class containing DataTypes operations. */ +export class DataTypesImpl implements DataTypes { + private readonly client: MicrosoftNetworkAnalytics; + + /** + * Initialize a new instance of the class DataTypes class. + * @param client Reference to the service client + */ + constructor(client: MicrosoftNetworkAnalytics) { + this.client = client; + } + + /** + * List data type by parent resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + public listByDataProduct( + resourceGroupName: string, + dataProductName: string, + options?: DataTypesListByDataProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDataProductPagingAll( + resourceGroupName, + dataProductName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDataProductPagingPage( + resourceGroupName, + dataProductName, + options, + settings + ); + } + }; + } + + private async *listByDataProductPagingPage( + resourceGroupName: string, + dataProductName: string, + options?: DataTypesListByDataProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DataTypesListByDataProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDataProduct( + resourceGroupName, + dataProductName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDataProductNext( + resourceGroupName, + dataProductName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDataProductPagingAll( + resourceGroupName: string, + dataProductName: string, + options?: DataTypesListByDataProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDataProductPagingPage( + resourceGroupName, + dataProductName, + options + )) { + yield* page; + } + } + + /** + * List data type by parent resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + private _listByDataProduct( + resourceGroupName: string, + dataProductName: string, + options?: DataTypesListByDataProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, options }, + listByDataProductOperationSpec + ); + } + + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, dataTypeName, options }, + getOperationSpec + ); + } + + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + resource: DataType, + options?: DataTypesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataTypesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + dataProductName, + dataTypeName, + resource, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + DataTypesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + resource: DataType, + options?: DataTypesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + dataProductName, + dataTypeName, + resource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + properties: DataTypeUpdate, + options?: DataTypesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataTypesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + dataProductName, + dataTypeName, + properties, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DataTypesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + properties: DataTypeUpdate, + options?: DataTypesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + dataProductName, + dataTypeName, + properties, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataTypesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, dataProductName, dataTypeName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + DataTypesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + dataProductName, + dataTypeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + async beginDeleteData( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: Record, + options?: DataTypesDeleteDataOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataTypesDeleteDataResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, dataProductName, dataTypeName, body, options }, + spec: deleteDataOperationSpec + }); + const poller = await createHttpPoller< + DataTypesDeleteDataResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + async beginDeleteDataAndWait( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: Record, + options?: DataTypesDeleteDataOptionalParams + ): Promise { + const poller = await this.beginDeleteData( + resourceGroupName, + dataProductName, + dataTypeName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Generate sas token for storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageContainerSasToken( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: ContainerSaS, + options?: DataTypesGenerateStorageContainerSasTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, dataTypeName, body, options }, + generateStorageContainerSasTokenOperationSpec + ); + } + + /** + * ListByDataProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param nextLink The nextLink from the previous successful call to the ListByDataProduct method. + * @param options The options parameters. + */ + private _listByDataProductNext( + resourceGroupName: string, + dataProductName: string, + nextLink: string, + options?: DataTypesListByDataProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataProductName, nextLink, options }, + listByDataProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByDataProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataTypeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataType + }, + 201: { + bodyMapper: Mappers.DataType + }, + 202: { + bodyMapper: Mappers.DataType + }, + 204: { + bodyMapper: Mappers.DataType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.resource1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DataType + }, + 201: { + bodyMapper: Mappers.DataType + }, + 202: { + bodyMapper: Mappers.DataType + }, + 204: { + bodyMapper: Mappers.DataType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.properties1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.DataTypesDeleteHeaders + }, + 201: { + headersMapper: Mappers.DataTypesDeleteHeaders + }, + 202: { + headersMapper: Mappers.DataTypesDeleteHeaders + }, + 204: { + headersMapper: Mappers.DataTypesDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteDataOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.DataTypesDeleteDataHeaders + }, + 201: { + headersMapper: Mappers.DataTypesDeleteDataHeaders + }, + 202: { + headersMapper: Mappers.DataTypesDeleteDataHeaders + }, + 204: { + headersMapper: Mappers.DataTypesDeleteDataHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const generateStorageContainerSasTokenOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ContainerSasToken + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName, + Parameters.dataTypeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByDataProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataTypeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataProductName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts new file mode 100644 index 00000000000..f40582f617d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts @@ -0,0 +1,5 @@ +export * from "./operations"; +export * from "./dataProducts"; +export * from "./dataProductsCatalogs"; +export * from "./dataTypes"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts.map new file mode 100644 index 00000000000..edc27ccf08f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js new file mode 100644 index 00000000000..d41aac44082 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js @@ -0,0 +1,15 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./operations"), exports); +tslib_1.__exportStar(require("./dataProducts"), exports); +tslib_1.__exportStar(require("./dataProductsCatalogs"), exports); +tslib_1.__exportStar(require("./dataTypes"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js.map new file mode 100644 index 00000000000..d219d9715aa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uDAA6B;AAC7B,yDAA+B;AAC/B,iEAAuC;AACvC,sDAA4B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.ts new file mode 100644 index 00000000000..b5e3f0dc13d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.ts @@ -0,0 +1,12 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./operations"; +export * from "./dataProducts"; +export * from "./dataProductsCatalogs"; +export * from "./dataTypes"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts new file mode 100644 index 00000000000..7c38a3dd5d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts @@ -0,0 +1,32 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operations } from "../operationsInterfaces"; +import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; +import { Operation, OperationsListOptionalParams } from "../models"; +/** Class containing Operations operations. */ +export declare class OperationsImpl implements Operations { + private readonly client; + /** + * Initialize a new instance of the class Operations class. + * @param client Reference to the service client + */ + constructor(client: MicrosoftNetworkAnalytics); + /** + * List the operations for the provider + * @param options The options parameters. + */ + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; + private listPagingPage; + private listPagingAll; + /** + * List the operations for the provider + * @param options The options parameters. + */ + private _list; + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext; +} +//# sourceMappingURL=operations.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts.map new file mode 100644 index 00000000000..f708c7d2800 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js new file mode 100644 index 00000000000..f270a074ed0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js @@ -0,0 +1,121 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OperationsImpl = void 0; +const tslib_1 = require("tslib"); +const pagingHelper_1 = require("../pagingHelper"); +const coreClient = tslib_1.__importStar(require("@azure/core-client")); +const Mappers = tslib_1.__importStar(require("../models/mappers")); +const Parameters = tslib_1.__importStar(require("../models/parameters")); +/// +/** Class containing Operations operations. */ +class OperationsImpl { + client; + /** + * Initialize a new instance of the class Operations class. + * @param client Reference to the service client + */ + constructor(client) { + this.client = client; + } + /** + * List the operations for the provider + * @param options The options parameters. + */ + list(options) { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); + } + }; + } + async *listPagingPage(options, settings) { + let result; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + (0, pagingHelper_1.setContinuationToken)(page, continuationToken); + yield page; + } + } + async *listPagingAll(options) { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + /** + * List the operations for the provider + * @param options The options parameters. + */ + _list(options) { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + _listNext(nextLink, options) { + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); + } +} +exports.OperationsImpl = OperationsImpl; +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listOperationSpec = { + path: "/providers/Microsoft.NetworkAnalytics/operations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [Parameters.$host, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer +}; +//# sourceMappingURL=operations.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js.map new file mode 100644 index 00000000000..ae2aeb8d86b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js.map @@ -0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C,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.ts new file mode 100644 index 00000000000..ab0bb361e3f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Operations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; +import { + Operation, + OperationsListNextOptionalParams, + OperationsListOptionalParams, + OperationsListResponse, + OperationsListNextResponse +} from "../models"; + +/// +/** Class containing Operations operations. */ +export class OperationsImpl implements Operations { + private readonly client: MicrosoftNetworkAnalytics; + + /** + * Initialize a new instance of the class Operations class. + * @param client Reference to the service client + */ + constructor(client: MicrosoftNetworkAnalytics) { + this.client = client; + } + + /** + * List the operations for the provider + * @param options The options parameters. + */ + public list( + options?: OperationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); + } + }; + } + + private async *listPagingPage( + options?: OperationsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: OperationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: OperationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * List the operations for the provider + * @param options The options parameters. + */ + private _list( + options?: OperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: OperationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.NetworkAnalytics/operations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [Parameters.$host, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts new file mode 100644 index 00000000000..09575a6e162 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts @@ -0,0 +1,111 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { DataProduct, DataProductsListBySubscriptionOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsGetOptionalParams, DataProductsGetResponse, DataProductsCreateOptionalParams, DataProductsCreateResponse, DataProductUpdate, DataProductsUpdateOptionalParams, DataProductsUpdateResponse, DataProductsDeleteOptionalParams, DataProductsDeleteResponse, RoleAssignmentCommonProperties, DataProductsAddUserRoleOptionalParams, DataProductsAddUserRoleResponse, AccountSas, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsGenerateStorageAccountSasTokenResponse, DataProductsListRolesAssignmentsOptionalParams, DataProductsListRolesAssignmentsResponse, RoleAssignmentDetail, DataProductsRemoveUserRoleOptionalParams, KeyVaultInfo, DataProductsRotateKeyOptionalParams } from "../models"; +/** Interface representing a DataProducts. */ +export interface DataProducts { + /** + * List data products by subscription. + * @param options The options parameters. + */ + listBySubscription(options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + /** + * List data products by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup(resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + /** + * Retrieve data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + get(resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreate(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise, DataProductsCreateResponse>>; + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreateAndWait(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise; + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdate(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise, DataProductsUpdateResponse>>; + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdateAndWait(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise; + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + beginDelete(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise, DataProductsDeleteResponse>>; + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + beginDeleteAndWait(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise; + /** + * Assign role to the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + addUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): Promise; + /** + * Generate sas token for storage account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageAccountSasToken(resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; + /** + * List user roles associated with the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + listRolesAssignments(resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; + /** + * Remove role from the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + removeUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): Promise; + /** + * Initiate key rotation on Data Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + rotateKey(resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): Promise; +} +//# sourceMappingURL=dataProducts.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts.map new file mode 100644 index 00000000000..6bca6469b69 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProducts.d.ts","sourceRoot":"","sources":["dataProducts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,WAAW,EACX,4CAA4C,EAC5C,6CAA6C,EAC7C,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,0BAA0B,EAC1B,iBAAiB,EACjB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,8BAA8B,EAC9B,qCAAqC,EACrC,+BAA+B,EAC/B,UAAU,EACV,wDAAwD,EACxD,kDAAkD,EAClD,8CAA8C,EAC9C,wCAAwC,EACxC,oBAAoB,EACpB,wCAAwC,EACxC,YAAY,EACZ,mCAAmC,EACpC,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,4CAA4C,GACrD,0BAA0B,CAAC,WAAW,CAAC,CAAC;IAC3C;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,WAAW,CAAC,CAAC;IAC3C;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACpC;;;;;;OAMG;IACH,WAAW,CACT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,EACpC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,8BAA8B,CAC5B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,UAAU,EAChB,OAAO,CAAC,EAAE,wDAAwD,GACjE,OAAO,CAAC,kDAAkD,CAAC,CAAC;IAC/D;;;;;;OAMG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACrD;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,SAAS,CACP,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js new file mode 100644 index 00000000000..72e20d11dcb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js @@ -0,0 +1,10 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=dataProducts.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js.map new file mode 100644 index 00000000000..67875216bd4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProducts.js","sourceRoot":"","sources":["dataProducts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.ts new file mode 100644 index 00000000000..0c0ae229f88 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.ts @@ -0,0 +1,222 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + DataProduct, + DataProductsListBySubscriptionOptionalParams, + DataProductsListByResourceGroupOptionalParams, + DataProductsGetOptionalParams, + DataProductsGetResponse, + DataProductsCreateOptionalParams, + DataProductsCreateResponse, + DataProductUpdate, + DataProductsUpdateOptionalParams, + DataProductsUpdateResponse, + DataProductsDeleteOptionalParams, + DataProductsDeleteResponse, + RoleAssignmentCommonProperties, + DataProductsAddUserRoleOptionalParams, + DataProductsAddUserRoleResponse, + AccountSas, + DataProductsGenerateStorageAccountSasTokenOptionalParams, + DataProductsGenerateStorageAccountSasTokenResponse, + DataProductsListRolesAssignmentsOptionalParams, + DataProductsListRolesAssignmentsResponse, + RoleAssignmentDetail, + DataProductsRemoveUserRoleOptionalParams, + KeyVaultInfo, + DataProductsRotateKeyOptionalParams +} from "../models"; + +/// +/** Interface representing a DataProducts. */ +export interface DataProducts { + /** + * List data products by subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: DataProductsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * List data products by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: DataProductsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Retrieve data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + dataProductName: string, + options?: DataProductsGetOptionalParams + ): Promise; + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + dataProductName: string, + resource: DataProduct, + options?: DataProductsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataProductsCreateResponse + > + >; + /** + * Create data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + dataProductName: string, + resource: DataProduct, + options?: DataProductsCreateOptionalParams + ): Promise; + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + dataProductName: string, + properties: DataProductUpdate, + options?: DataProductsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataProductsUpdateResponse + > + >; + /** + * Update data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + dataProductName: string, + properties: DataProductUpdate, + options?: DataProductsUpdateOptionalParams + ): Promise; + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + dataProductName: string, + options?: DataProductsDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataProductsDeleteResponse + > + >; + /** + * Delete data product resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + dataProductName: string, + options?: DataProductsDeleteOptionalParams + ): Promise; + /** + * Assign role to the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + addUserRole( + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentCommonProperties, + options?: DataProductsAddUserRoleOptionalParams + ): Promise; + /** + * Generate sas token for storage account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageAccountSasToken( + resourceGroupName: string, + dataProductName: string, + body: AccountSas, + options?: DataProductsGenerateStorageAccountSasTokenOptionalParams + ): Promise; + /** + * List user roles associated with the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + listRolesAssignments( + resourceGroupName: string, + dataProductName: string, + body: Record, + options?: DataProductsListRolesAssignmentsOptionalParams + ): Promise; + /** + * Remove role from the data product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + removeUserRole( + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentDetail, + options?: DataProductsRemoveUserRoleOptionalParams + ): Promise; + /** + * Initiate key rotation on Data Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param body The content of the action request + * @param options The options parameters. + */ + rotateKey( + resourceGroupName: string, + dataProductName: string, + body: KeyVaultInfo, + options?: DataProductsRotateKeyOptionalParams + ): Promise; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts new file mode 100644 index 00000000000..77565221ae9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts @@ -0,0 +1,23 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataProductsCatalog, DataProductsCatalogsListBySubscriptionOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsGetOptionalParams, DataProductsCatalogsGetResponse } from "../models"; +/** Interface representing a DataProductsCatalogs. */ +export interface DataProductsCatalogs { + /** + * List data catalog by subscription. + * @param options The options parameters. + */ + listBySubscription(options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + /** + * List data catalog by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup(resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get(resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; +} +//# sourceMappingURL=dataProductsCatalogs.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts.map new file mode 100644 index 00000000000..88f424e98df --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogs.d.ts","sourceRoot":"","sources":["dataProductsCatalogs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,oDAAoD,EACpD,qDAAqD,EACrD,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;OAIG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js new file mode 100644 index 00000000000..5bf95b85d13 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js @@ -0,0 +1,10 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=dataProductsCatalogs.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js.map new file mode 100644 index 00000000000..854bf5be1d6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataProductsCatalogs.js","sourceRoot":"","sources":["dataProductsCatalogs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.ts new file mode 100644 index 00000000000..7d8131c9165 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DataProductsCatalog, + DataProductsCatalogsListBySubscriptionOptionalParams, + DataProductsCatalogsListByResourceGroupOptionalParams, + DataProductsCatalogsGetOptionalParams, + DataProductsCatalogsGetResponse +} from "../models"; + +/// +/** Interface representing a DataProductsCatalogs. */ +export interface DataProductsCatalogs { + /** + * List data catalog by subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: DataProductsCatalogsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * List data catalog by resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: DataProductsCatalogsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + options?: DataProductsCatalogsGetOptionalParams + ): Promise; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts new file mode 100644 index 00000000000..971cc857f4c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts @@ -0,0 +1,101 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { DataType, DataTypesListByDataProductOptionalParams, DataTypesGetOptionalParams, DataTypesGetResponse, DataTypesCreateOptionalParams, DataTypesCreateResponse, DataTypeUpdate, DataTypesUpdateOptionalParams, DataTypesUpdateResponse, DataTypesDeleteOptionalParams, DataTypesDeleteResponse, DataTypesDeleteDataOptionalParams, DataTypesDeleteDataResponse, ContainerSaS, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesGenerateStorageContainerSasTokenResponse } from "../models"; +/** Interface representing a DataTypes. */ +export interface DataTypes { + /** + * List data type by parent resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + listByDataProduct(resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + get(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreate(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise, DataTypesCreateResponse>>; + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise; + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdate(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise, DataTypesUpdateResponse>>; + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise; + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + beginDelete(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise, DataTypesDeleteResponse>>; + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + beginDeleteAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise; + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + beginDeleteData(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise, DataTypesDeleteDataResponse>>; + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + beginDeleteDataAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise; + /** + * Generate sas token for storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageContainerSasToken(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; +} +//# sourceMappingURL=dataTypes.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts.map new file mode 100644 index 00000000000..4b817246bae --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypes.d.ts","sourceRoot":"","sources":["dataTypes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,QAAQ,EACR,wCAAwC,EACxC,0BAA0B,EAC1B,oBAAoB,EACpB,6BAA6B,EAC7B,uBAAuB,EACvB,cAAc,EACd,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,iCAAiC,EACjC,2BAA2B,EAC3B,YAAY,EACZ,uDAAuD,EACvD,iDAAiD,EAClD,MAAM,WAAW,CAAC;AAGnB,0CAA0C;AAC1C,MAAM,WAAW,SAAS;IACxB;;;;;OAKG;IACH,iBAAiB,CACf,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,QAAQ,CAAC,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ACR,gBAAgB,CACd,cAAc,CAAC,uBAAuB,CAAC,EACvC,uBAAuB,CACxB,CACF,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACpC;;;;;;;OAOG;IACH,eAAe,CACb,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,2BAA2B,CAAC,EAC3C,2BAA2B,CAC5B,CACF,CAAC;IACF;;;;;;;OAOG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC;;;;;;;OAOG;IACH,gCAAgC,CAC9B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC,CAAC;CAC/D"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js new file mode 100644 index 00000000000..10d4b919cca --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js @@ -0,0 +1,10 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=dataTypes.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js.map new file mode 100644 index 00000000000..8c545a09721 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dataTypes.js","sourceRoot":"","sources":["dataTypes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.ts new file mode 100644 index 00000000000..466d8b59635 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.ts @@ -0,0 +1,208 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + DataType, + DataTypesListByDataProductOptionalParams, + DataTypesGetOptionalParams, + DataTypesGetResponse, + DataTypesCreateOptionalParams, + DataTypesCreateResponse, + DataTypeUpdate, + DataTypesUpdateOptionalParams, + DataTypesUpdateResponse, + DataTypesDeleteOptionalParams, + DataTypesDeleteResponse, + DataTypesDeleteDataOptionalParams, + DataTypesDeleteDataResponse, + ContainerSaS, + DataTypesGenerateStorageContainerSasTokenOptionalParams, + DataTypesGenerateStorageContainerSasTokenResponse +} from "../models"; + +/// +/** Interface representing a DataTypes. */ +export interface DataTypes { + /** + * List data type by parent resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param options The options parameters. + */ + listByDataProduct( + resourceGroupName: string, + dataProductName: string, + options?: DataTypesListByDataProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Retrieve data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesGetOptionalParams + ): Promise; + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + resource: DataType, + options?: DataTypesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataTypesCreateResponse + > + >; + /** + * Create data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + resource: DataType, + options?: DataTypesCreateOptionalParams + ): Promise; + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + properties: DataTypeUpdate, + options?: DataTypesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataTypesUpdateResponse + > + >; + /** + * Update data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param properties The resource properties to be updated. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + properties: DataTypeUpdate, + options?: DataTypesUpdateOptionalParams + ): Promise; + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataTypesDeleteResponse + > + >; + /** + * Delete data type resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesDeleteOptionalParams + ): Promise; + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + beginDeleteData( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: Record, + options?: DataTypesDeleteDataOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DataTypesDeleteDataResponse + > + >; + /** + * Delete data for data type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + beginDeleteDataAndWait( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: Record, + options?: DataTypesDeleteDataOptionalParams + ): Promise; + /** + * Generate sas token for storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataProductName The data product resource name + * @param dataTypeName The data type name. + * @param body The content of the action request + * @param options The options parameters. + */ + generateStorageContainerSasToken( + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: ContainerSaS, + options?: DataTypesGenerateStorageContainerSasTokenOptionalParams + ): Promise; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts new file mode 100644 index 00000000000..f40582f617d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts @@ -0,0 +1,5 @@ +export * from "./operations"; +export * from "./dataProducts"; +export * from "./dataProductsCatalogs"; +export * from "./dataTypes"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts.map new file mode 100644 index 00000000000..edc27ccf08f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js new file mode 100644 index 00000000000..d41aac44082 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js @@ -0,0 +1,15 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./operations"), exports); +tslib_1.__exportStar(require("./dataProducts"), exports); +tslib_1.__exportStar(require("./dataProductsCatalogs"), exports); +tslib_1.__exportStar(require("./dataTypes"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js.map new file mode 100644 index 00000000000..d219d9715aa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uDAA6B;AAC7B,yDAA+B;AAC/B,iEAAuC;AACvC,sDAA4B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.ts new file mode 100644 index 00000000000..b5e3f0dc13d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.ts @@ -0,0 +1,12 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./operations"; +export * from "./dataProducts"; +export * from "./dataProductsCatalogs"; +export * from "./dataTypes"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts new file mode 100644 index 00000000000..c3ea87ca1c6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts @@ -0,0 +1,11 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operation, OperationsListOptionalParams } from "../models"; +/** Interface representing a Operations. */ +export interface Operations { + /** + * List the operations for the provider + * @param options The options parameters. + */ + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +} +//# sourceMappingURL=operations.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts.map new file mode 100644 index 00000000000..6349b6461d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js new file mode 100644 index 00000000000..8e3a30c090b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js @@ -0,0 +1,10 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=operations.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js.map new file mode 100644 index 00000000000..4a6d490fb8a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js.map @@ -0,0 +1 @@ +{"version":3,"file":"operations.js","sourceRoot":"","sources":["operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.ts new file mode 100644 index 00000000000..5cf5581845b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operation, OperationsListOptionalParams } from "../models"; + +/// +/** Interface representing a Operations. */ +export interface Operations { + /** + * List the operations for the provider + * @param options The options parameters. + */ + list( + options?: OperationsListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts new file mode 100644 index 00000000000..0c455e23c5d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts @@ -0,0 +1,13 @@ +export interface PageInfo { + continuationToken?: string; +} +/** + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from + * that point later. + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. + */ +export declare function getContinuationToken(page: unknown): string | undefined; +export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void; +//# sourceMappingURL=pagingHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts.map new file mode 100644 index 00000000000..387b6f0d309 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js new file mode 100644 index 00000000000..71a41e0539a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js @@ -0,0 +1,34 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getContinuationToken = getContinuationToken; +exports.setContinuationToken = setContinuationToken; +const pageMap = new WeakMap(); +/** + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from + * that point later. + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. + */ +function getContinuationToken(page) { + if (typeof page !== "object" || page === null) { + return undefined; + } + return pageMap.get(page)?.continuationToken; +} +function setContinuationToken(page, continuationToken) { + if (typeof page !== "object" || page === null || !continuationToken) { + return; + } + const pageInfo = pageMap.get(page) ?? {}; + pageInfo.continuationToken = continuationToken; + pageMap.set(page, pageInfo); +} +//# sourceMappingURL=pagingHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js.map new file mode 100644 index 00000000000..bc8dbf1fb53 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.ts new file mode 100644 index 00000000000..269a2b9814b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export interface PageInfo { + continuationToken?: string; +} + +const pageMap = new WeakMap(); + +/** + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from + * that point later. + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. + */ +export function getContinuationToken(page: unknown): string | undefined { + if (typeof page !== "object" || page === null) { + return undefined; + } + return pageMap.get(page)?.continuationToken; +} + +export function setContinuationToken( + page: unknown, + continuationToken: string | undefined +): void { + if (typeof page !== "object" || page === null || !continuationToken) { + return; + } + const pageInfo = pageMap.get(page) ?? {}; + pageInfo.continuationToken = continuationToken; + pageMap.set(page, pageInfo); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts new file mode 100644 index 00000000000..d9138babf9f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts @@ -0,0 +1,4 @@ +export declare const testPollingOptions: { + updateIntervalInMs: number | undefined; +}; +//# sourceMappingURL=networkanalytics_operations_test.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts.map new file mode 100644 index 00000000000..031498af4f7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"networkanalytics_operations_test.spec.d.ts","sourceRoot":"","sources":["networkanalytics_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js new file mode 100644 index 00000000000..a985372831a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js @@ -0,0 +1,86 @@ +"use strict"; +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.testPollingOptions = void 0; +const test_recorder_1 = require("@azure-tools/test-recorder"); +const test_credential_1 = require("@azure-tools/test-credential"); +const chai_1 = require("chai"); +const microsoftNetworkAnalytics_1 = require("../src/microsoftNetworkAnalytics"); +const replaceableVariables = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; +const recorderOptions = { + envSetupForPlayback: replaceableVariables +}; +exports.testPollingOptions = { + updateIntervalInMs: (0, test_recorder_1.isPlaybackMode)() ? 0 : undefined, +}; +describe("NetworkAnalytics test", () => { + let recorder; + let subscriptionId; + let client; + let location; + let resourceGroup; + let resourcename; + beforeEach(async function () { + recorder = new test_recorder_1.Recorder(this.currentTest); + await recorder.start(recorderOptions); + subscriptionId = test_recorder_1.env.SUBSCRIPTION_ID || ''; + // This is an example of how the environment variables are used + const credential = (0, test_credential_1.createTestCredential)(); + client = new microsoftNetworkAnalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId, recorder.configureClientOptions({})); + location = "eastus2euap"; + resourceGroup = "myjstest"; + resourcename = "resourcetest"; + }); + afterEach(async function () { + await recorder.stop(); + }); + it("operation list test", async function () { + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + chai_1.assert.notEqual(resArray.length, 0); + }); + it.skip("dataProducts create test", async function () { + const res = await client.dataProducts.beginCreateAndWait(resourceGroup, resourcename, { + location, + properties: { + majorVersion: "1", + product: "MCC", + publisher: "Microsoft" + } + }, exports.testPollingOptions); + chai_1.assert.equal(res.name, resourcename); + }).timeout(14400000); + it("dataProducts get test", async function () { + const res = await client.dataProducts.get(resourceGroup, resourcename); + chai_1.assert.equal(res.name, resourcename); + }); + it("dataProducts list test", async function () { + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroup)) { + resArray.push(item); + } + chai_1.assert.equal(resArray.length, 1); + }); + it("dataProducts delete test", async function () { + const resArray = new Array(); + const res = await client.dataProducts.beginDeleteAndWait(resourceGroup, resourcename, exports.testPollingOptions); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroup)) { + resArray.push(item); + } + chai_1.assert.equal(resArray.length, 0); + }); +}); +//# sourceMappingURL=networkanalytics_operations_test.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js.map new file mode 100644 index 00000000000..b8308364d5f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"networkanalytics_operations_test.spec.js","sourceRoot":"","sources":["networkanalytics_operations_test.spec.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,8DAMoC;AACpC,kEAAoE;AACpE,+BAA8B;AAE9B,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AAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,KAAK;QAClC,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACtD,aAAa,EACb,YAAY,EACZ,0BAAkB,CACnB,CAAC;QACF,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,CAAC;YAC9E,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;QACD,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.ts new file mode 100644 index 00000000000..ce11be25bc2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.ts @@ -0,0 +1,113 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + Recorder, + RecorderStartOptions, + delay, + isPlaybackMode, +} from "@azure-tools/test-recorder"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { MicrosoftNetworkAnalytics } from "../src/microsoftNetworkAnalytics"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + +describe("NetworkAnalytics test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: MicrosoftNetworkAnalytics; + let location: string; + let resourceGroup: string; + let resourcename: string; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + subscriptionId = env.SUBSCRIPTION_ID || ''; + // This is an example of how the environment variables are used + const credential = createTestCredential(); + client = new MicrosoftNetworkAnalytics(credential, subscriptionId, recorder.configureClientOptions({})); + location = "eastus2euap"; + resourceGroup = "myjstest"; + resourcename = "resourcetest"; + + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("operation list test", async function () { + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + assert.notEqual(resArray.length, 0); + }); + + it.skip("dataProducts create test", async function () { + const res = await client.dataProducts.beginCreateAndWait( + resourceGroup, + resourcename, + { + location, + properties: { + majorVersion: "1", + product: "MCC", + publisher: "Microsoft" + } + }, + testPollingOptions); + assert.equal(res.name, resourcename); + }).timeout(14400000); + + it("dataProducts get test", async function () { + const res = await client.dataProducts.get( + resourceGroup, + resourcename); + assert.equal(res.name, resourcename); + }); + + it("dataProducts list test", async function () { + const resArray = new Array(); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroup)) { + resArray.push(item); + } + assert.equal(resArray.length, 1); + }); + + it("dataProducts delete test", async function () { + const resArray = new Array(); + const res = await client.dataProducts.beginDeleteAndWait( + resourceGroup, + resourcename, + testPollingOptions, + ); + for await (let item of client.dataProducts.listByResourceGroup(resourceGroup)) { + resArray.push(item); + } + assert.equal(resArray.length, 0); + }); + +}) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/tsconfig.json new file mode 100644 index 00000000000..7f81f9714dd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/tsconfig.json @@ -0,0 +1,33 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es6", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": [ + "es6", + "dom" + ], + "declaration": true, + "outDir": "./dist-esm", + "importHelpers": true, + "paths": { + "@azure/arm-networkanalytics": [ + "./src/index" + ] + } + }, + "include": [ + "./src/**/*.ts", + "./test/**/*.ts", + "samples-dev/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.eslintrc.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.eslintrc.json new file mode 100644 index 00000000000..619797ac39b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.eslintrc.json @@ -0,0 +1,11 @@ +{ + "plugins": ["@azure/azure-sdk"], + "extends": ["plugin:@azure/azure-sdk/azure-sdk-base"], + "rules": { + "@azure/azure-sdk/ts-modules-only-named": "warn", + "@azure/azure-sdk/ts-apiextractor-json-types": "warn", + "@azure/azure-sdk/ts-package-json-types": "warn", + "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", + "tsdoc/syntax": "warn" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/browser.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/browser.json new file mode 100644 index 00000000000..32e74e04ec6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/browser.json @@ -0,0 +1,12 @@ +{ + "extends": "./build.json", + "include": [ + "../src/**/*.ts", + "../src/**/*.mts", + "../src/**/*.tsx" + ], + "exclude": [], + "compilerOptions": { + "outDir": "../.tshy-build/browser" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/build.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/build.json new file mode 100644 index 00000000000..aea1a9e93b5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/build.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "rootDir": "../src", + "module": "nodenext", + "moduleResolution": "nodenext" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/commonjs.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/commonjs.json new file mode 100644 index 00000000000..5ace94d041f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/commonjs.json @@ -0,0 +1,14 @@ +{ + "extends": "./build.json", + "include": [ + "../src/**/*.ts", + "../src/**/*.cts", + "../src/**/*.tsx" + ], + "exclude": [ + "../src/**/*.mts" + ], + "compilerOptions": { + "outDir": "../.tshy-build/commonjs" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/esm.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/esm.json new file mode 100644 index 00000000000..ff5264e692d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/esm.json @@ -0,0 +1,12 @@ +{ + "extends": "./build.json", + "include": [ + "../src/**/*.ts", + "../src/**/*.mts", + "../src/**/*.tsx" + ], + "exclude": [], + "compilerOptions": { + "outDir": "../.tshy-build/esm" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/react-native.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/react-native.json new file mode 100644 index 00000000000..f431a06985d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/react-native.json @@ -0,0 +1,12 @@ +{ + "extends": "./build.json", + "include": [ + "../src/**/*.ts", + "../src/**/*.mts", + "../src/**/*.tsx" + ], + "exclude": [], + "compilerOptions": { + "outDir": "../.tshy-build/react-native" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/README.md new file mode 100644 index 00000000000..320874dc2de --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/README.md @@ -0,0 +1,57 @@ +# Azure NetworkAnalytics REST client library for JavaScript + + + +**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library** + +Key links: + +- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-networkanalytics) +- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics?view=azure-node-preview) + +## Getting started + +### Currently supported environments + +- LTS versions of Node.js + +### Prerequisites + +- You must have an [Azure subscription](https://azure.microsoft.com/free/) to use this package. + +### Install the `@azure/arm-networkanalytics` package + +Install the Azure NetworkAnalytics REST client REST client library for JavaScript with `npm`: + +```bash +npm install @azure/arm-networkanalytics +``` + +### Create and authenticate a `NetworkAnalyticsClient` + +To use an [Azure Active Directory (AAD) token credential](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token), +provide an instance of the desired credential type obtained from the +[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library. + +To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity) + +After setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use. +As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential) +can be used to authenticate the client. + +Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: +AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET + +## Troubleshooting + +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +const { setLogLevel } = require("@azure/logger"); + +setLogLevel("info"); +``` + +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/api-extractor.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/api-extractor.json new file mode 100644 index 00000000000..260154a0f4b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/api-extractor.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./dist/esm/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/arm-networkanalytics.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/karma.conf.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/karma.conf.js new file mode 100644 index 00000000000..a9d5f1b5fc5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/karma.conf.js @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +// https://github.com/karma-runner/karma-chrome-launcher +process.env.CHROME_BIN = require("puppeteer").executablePath(); +require("dotenv").config(); +const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); + +module.exports = function (config) { + config.set({ + // base path that will be used to resolve all patterns (eg. files, exclude) + basePath: "./", + + // frameworks to use + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter + frameworks: ["source-map-support", "mocha"], + + plugins: [ + "karma-mocha", + "karma-mocha-reporter", + "karma-chrome-launcher", + "karma-firefox-launcher", + "karma-env-preprocessor", + "karma-coverage", + "karma-sourcemap-loader", + "karma-junit-reporter", + "karma-source-map-support", + ], + + // list of files / patterns to load in the browser + files: [ + "dist-test/index.browser.js", + { + pattern: "dist-test/index.browser.js.map", + type: "html", + included: false, + served: true, + }, + ], + + // list of files / patterns to exclude + exclude: [], + + // preprocess matching files before serving them to the browser + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor + preprocessors: { + "**/*.js": ["sourcemap", "env"], + // IMPORTANT: COMMENT following line if you want to debug in your browsers!! + // Preprocess source file to calculate code coverage, however this will make source file unreadable + // "dist-test/index.js": ["coverage"] + }, + + envPreprocessor: [ + "TEST_MODE", + "ENDPOINT", + "AZURE_CLIENT_SECRET", + "AZURE_CLIENT_ID", + "AZURE_TENANT_ID", + "SUBSCRIPTION_ID", + "RECORDINGS_RELATIVE_PATH", + ], + + // test results reporter to use + // possible values: 'dots', 'progress' + // available reporters: https://npmjs.org/browse/keyword/karma-reporter + reporters: ["mocha", "coverage", "junit"], + + coverageReporter: { + // specify a common output directory + dir: "coverage-browser/", + reporters: [ + { type: "json", subdir: ".", file: "coverage.json" }, + { type: "lcovonly", subdir: ".", file: "lcov.info" }, + { type: "html", subdir: "html" }, + { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, + ], + }, + + junitReporter: { + outputDir: "", // results will be saved as $outputDir/$browserName.xml + outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile + suite: "", // suite will become the package name attribute in xml testsuite element + useBrowserName: false, // add browser name to report and classes names + nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element + classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element + properties: {}, // key value pair of properties to add to the section of the report + }, + + // web server port + port: 9876, + + // enable / disable colors in the output (reporters and logs) + colors: true, + + // level of logging + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG + logLevel: config.LOG_INFO, + + // enable / disable watching file and executing tests whenever any file changes + autoWatch: false, + + // --no-sandbox allows our tests to run in Linux without having to change the system. + // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. + browsers: ["ChromeHeadlessNoSandbox"], + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: "ChromeHeadless", + flags: ["--no-sandbox", "--disable-web-security"], + }, + }, + + // Continuous Integration mode + // if true, Karma captures browsers, runs the tests and exits + singleRun: false, + + // Concurrency level + // how many browser should be started simultaneous + concurrency: 1, + + browserNoActivityTimeout: 60000000, + browserDisconnectTimeout: 10000, + browserDisconnectTolerance: 3, + + client: { + mocha: { + // change Karma's debug.html to the mocha web reporter + reporter: "html", + timeout: "600000", + }, + }, + }); +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/package.json new file mode 100644 index 00000000000..a72621e9e8d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/package.json @@ -0,0 +1,277 @@ +{ + "name": "@azure/arm-networkanalytics", + "version": "1.0.0-beta.1", + "description": "A generated SDK for NetworkAnalyticsClient.", + "engines": { + "node": ">=18.0.0" + }, + "sideEffects": false, + "autoPublish": false, + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts", + "./api": "./src/api/index.ts", + "./models": "./src/models/index.ts", + "./api/operations": "./src/api/operations/index.ts", + "./api/dataProductsCatalogs": "./src/api/dataProductsCatalogs/index.ts", + "./api/dataTypes": "./src/api/dataTypes/index.ts", + "./api/dataProducts": "./src/api/dataProducts/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "type": "module", + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "files": [ + "dist", + "README.md", + "LICENSE", + "review/*" + ], + "sdk-type": "client", + "repository": "github:Azure/azure-sdk-for-js", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", + "//metadata": { + "constantPaths": [ + { + "path": "src/rest/networkAnalyticsClient.ts", + "prefix": "package-version" + } + ] + }, + "dependencies": { + "@azure-rest/core-client": "^2.0.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.5.0", + "@azure/logger": "^1.0.0", + "tslib": "^2.6.2", + "@azure/core-lro": "3.0.0-beta.2", + "@azure/abort-controller": "^2.0.0", + "@azure/core-paging": "^1.5.0" + }, + "devDependencies": { + "dotenv": "^16.0.0", + "@microsoft/api-extractor": "^7.40.3", + "@types/node": "^18.0.0", + "eslint": "^8.55.0", + "prettier": "^3.2.5", + "rimraf": "^5.0.5", + "mkdirp": "^3.0.1", + "typescript": "~5.4.5", + "tshy": "^1.11.1", + "@azure/core-util": "^1.0.0", + "@azure/identity": "^4.0.1", + "@vitest/browser": "^1.3.1", + "@vitest/coverage-istanbul": "^1.3.1", + "playwright": "^1.41.2", + "vitest": "^1.3.1", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0" + }, + "scripts": { + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", + "pack": "npm pack 2>&1", + "lint": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts", + "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts --fix --fix-type [problem,suggestion]", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "echo skipped", + "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", + "build:samples": "dev-tool samples publish --force", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", + "execute:samples": "dev-tool samples run samples-dev", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", + "generate:client": "echo skipped", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "build:test": "npm run clean && tshy && dev-tool run build-test", + "build": "npm run clean && tshy && mkdirp ./review && dev-tool run extract-api", + "test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node", + "test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test" + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "source": "./src/index.ts", + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "source": "./src/index.ts", + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "source": "./src/index.ts", + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "source": "./src/index.ts", + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + }, + "./api": { + "browser": { + "source": "./src/api/index.ts", + "types": "./dist/browser/api/index.d.ts", + "default": "./dist/browser/api/index.js" + }, + "react-native": { + "source": "./src/api/index.ts", + "types": "./dist/react-native/api/index.d.ts", + "default": "./dist/react-native/api/index.js" + }, + "import": { + "source": "./src/api/index.ts", + "types": "./dist/esm/api/index.d.ts", + "default": "./dist/esm/api/index.js" + }, + "require": { + "source": "./src/api/index.ts", + "types": "./dist/commonjs/api/index.d.ts", + "default": "./dist/commonjs/api/index.js" + } + }, + "./models": { + "browser": { + "source": "./src/models/index.ts", + "types": "./dist/browser/models/index.d.ts", + "default": "./dist/browser/models/index.js" + }, + "react-native": { + "source": "./src/models/index.ts", + "types": "./dist/react-native/models/index.d.ts", + "default": "./dist/react-native/models/index.js" + }, + "import": { + "source": "./src/models/index.ts", + "types": "./dist/esm/models/index.d.ts", + "default": "./dist/esm/models/index.js" + }, + "require": { + "source": "./src/models/index.ts", + "types": "./dist/commonjs/models/index.d.ts", + "default": "./dist/commonjs/models/index.js" + } + }, + "./api/operations": { + "browser": { + "source": "./src/api/operations/index.ts", + "types": "./dist/browser/api/operations/index.d.ts", + "default": "./dist/browser/api/operations/index.js" + }, + "react-native": { + "source": "./src/api/operations/index.ts", + "types": "./dist/react-native/api/operations/index.d.ts", + "default": "./dist/react-native/api/operations/index.js" + }, + "import": { + "source": "./src/api/operations/index.ts", + "types": "./dist/esm/api/operations/index.d.ts", + "default": "./dist/esm/api/operations/index.js" + }, + "require": { + "source": "./src/api/operations/index.ts", + "types": "./dist/commonjs/api/operations/index.d.ts", + "default": "./dist/commonjs/api/operations/index.js" + } + }, + "./api/dataProductsCatalogs": { + "browser": { + "source": "./src/api/dataProductsCatalogs/index.ts", + "types": "./dist/browser/api/dataProductsCatalogs/index.d.ts", + "default": "./dist/browser/api/dataProductsCatalogs/index.js" + }, + "react-native": { + "source": "./src/api/dataProductsCatalogs/index.ts", + "types": "./dist/react-native/api/dataProductsCatalogs/index.d.ts", + "default": "./dist/react-native/api/dataProductsCatalogs/index.js" + }, + "import": { + "source": "./src/api/dataProductsCatalogs/index.ts", + "types": "./dist/esm/api/dataProductsCatalogs/index.d.ts", + "default": "./dist/esm/api/dataProductsCatalogs/index.js" + }, + "require": { + "source": "./src/api/dataProductsCatalogs/index.ts", + "types": "./dist/commonjs/api/dataProductsCatalogs/index.d.ts", + "default": "./dist/commonjs/api/dataProductsCatalogs/index.js" + } + }, + "./api/dataTypes": { + "browser": { + "source": "./src/api/dataTypes/index.ts", + "types": "./dist/browser/api/dataTypes/index.d.ts", + "default": "./dist/browser/api/dataTypes/index.js" + }, + "react-native": { + "source": "./src/api/dataTypes/index.ts", + "types": "./dist/react-native/api/dataTypes/index.d.ts", + "default": "./dist/react-native/api/dataTypes/index.js" + }, + "import": { + "source": "./src/api/dataTypes/index.ts", + "types": "./dist/esm/api/dataTypes/index.d.ts", + "default": "./dist/esm/api/dataTypes/index.js" + }, + "require": { + "source": "./src/api/dataTypes/index.ts", + "types": "./dist/commonjs/api/dataTypes/index.d.ts", + "default": "./dist/commonjs/api/dataTypes/index.js" + } + }, + "./api/dataProducts": { + "browser": { + "source": "./src/api/dataProducts/index.ts", + "types": "./dist/browser/api/dataProducts/index.d.ts", + "default": "./dist/browser/api/dataProducts/index.js" + }, + "react-native": { + "source": "./src/api/dataProducts/index.ts", + "types": "./dist/react-native/api/dataProducts/index.d.ts", + "default": "./dist/react-native/api/dataProducts/index.js" + }, + "import": { + "source": "./src/api/dataProducts/index.ts", + "types": "./dist/esm/api/dataProducts/index.d.ts", + "default": "./dist/esm/api/dataProducts/index.js" + }, + "require": { + "source": "./src/api/dataProducts/index.ts", + "types": "./dist/commonjs/api/dataProducts/index.d.ts", + "default": "./dist/commonjs/api/dataProducts/index.js" + } + } + }, + "main": "./dist/commonjs/index.js", + "types": "./dist/commonjs/index.d.ts" +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_create_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_create_test.json new file mode 100644 index 00000000000..be1a7798b4c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_create_test.json @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest?api-version=2023-11-15", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "100", + "Content-Type": "application/json; charset=UTF-8", + "Origin": "http://localhost:5173", + "Referer": "http://localhost:5173/", + "sec-ch-ua": "\"HeadlessChrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\"Windows\"", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/125.0.6422.26 Safari/537.36", + "x-ms-client-request-id": "Sanitized", + "x-ms-useragent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 OS/Windows" + }, + "RequestBody": { + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft", + "product": "MCC", + "majorVersion": "1" + } + }, + "StatusCode": 409, + "ResponseHeaders": { + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "x-ms-ratelimit-remaining-subscription-writes,x-ms-providerhub-traffic,x-ms-failure-cause,x-ms-request-id,x-ms-correlation-request-id,Date,x-ms-routing-request-id,Content-Length", + "Cache-Control": "no-cache", + "Content-Length": "272", + "Content-Type": "application/json", + "Date": "Wed, 12 Jun 2024 08:55:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Cache": "CONFIG_NOCACHE", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "407a7128-5a57-47c9-95bb-3056a77e64c3", + "x-ms-failure-cause": "gateway", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "Sanitized", + "x-ms-routing-request-id": "SOUTHEASTASIA:20240612T085549Z:407a7128-5a57-47c9-95bb-3056a77e64c3", + "X-MSEdge-Ref": "Ref A: 4F13FF24274B4B4EA4C054628D1BD4A1 Ref B: MAA201060516051 Ref C: 2024-06-12T08:55:46Z" + }, + "ResponseBody": { + "error": { + "code": "InvalidResourceOperation", + "message": "The operation for resource '/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest' is invalid as it is being provisioned with state: 'Accepted'." + } + } + } + ], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_delete_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_delete_test.json new file mode 100644 index 00000000000..f721723386d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_delete_test.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_get_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_get_test.json new file mode 100644 index 00000000000..bcf08cde80a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_get_test.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest?api-version=2023-11-15", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Origin": "http://localhost:5173", + "Referer": "http://localhost:5173/", + "sec-ch-ua": "\"HeadlessChrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\"Windows\"", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/125.0.6422.26 Safari/537.36", + "x-ms-client-request-id": "Sanitized", + "x-ms-useragent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 OS/Windows" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "x-ms-ratelimit-remaining-subscription-reads,x-ms-providerhub-traffic,x-ms-request-id,x-ms-correlation-request-id,Date,ETag,x-ms-routing-request-id,Content-Length", + "Cache-Control": "no-cache", + "Content-Length": "653", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 12 Jun 2024 08:55:51 GMT", + "ETag": "\"0000c3de-0000-3400-0000-66695ed60000\"", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Cache": "CONFIG_NOCACHE", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ed7f9a3-0cbf-4143-9fa7-d65eedadf432", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "Sanitized", + "x-ms-routing-request-id": "SOUTHEASTASIA:20240612T085551Z:2ed7f9a3-0cbf-4143-9fa7-d65eedadf432", + "X-MSEdge-Ref": "Ref A: 0745DDFC861B4A1B9D19AFEA695F2458 Ref B: MAA201060516051 Ref C: 2024-06-12T08:55:50Z" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest", + "name": "resourcetest", + "type": "microsoft.networkanalytics/dataproducts", + "location": "eastus2euap", + "systemData": { + "createdBy": "Sanitized", + "createdByType": "User", + "createdAt": "2024-06-12T08:39:39.0480081Z", + "lastModifiedBy": "Sanitized", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-06-12T08:39:39.0480081Z" + }, + "properties": { + "publisher": "Microsoft", + "product": "MCC", + "majorVersion": "1", + "managedResourceGroupConfiguration": { + "location": "eastus2euap", + "name": "resourcetest-HostedResources-7EE8A6AF" + }, + "provisioningState": "Accepted" + } + } + } + ], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_list_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_list_test.json new file mode 100644 index 00000000000..716c420a347 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_list_test.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts?api-version=2023-11-15", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Origin": "http://localhost:5173", + "Referer": "http://localhost:5173/", + "sec-ch-ua": "\"HeadlessChrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\"Windows\"", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/125.0.6422.26 Safari/537.36", + "x-ms-client-request-id": "Sanitized", + "x-ms-useragent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 OS/Windows" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "x-ms-ratelimit-remaining-subscription-reads,x-ms-providerhub-traffic,x-ms-request-id,x-ms-correlation-request-id,Date,x-ms-routing-request-id,Content-Length", + "Cache-Control": "no-cache", + "Content-Length": "665", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 12 Jun 2024 08:55:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Cache": "CONFIG_NOCACHE", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "495d1013-cdee-4974-9ba8-984af937e129", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "Sanitized", + "x-ms-routing-request-id": "SOUTHEASTASIA:20240612T085554Z:495d1013-cdee-4974-9ba8-984af937e129", + "X-MSEdge-Ref": "Ref A: ECD694DD05524F5CAB8D8DF89FC6ACE2 Ref B: MAA201060516051 Ref C: 2024-06-12T08:55:53Z" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest", + "name": "resourcetest", + "type": "microsoft.networkanalytics/dataproducts", + "location": "eastus2euap", + "systemData": { + "createdBy": "Sanitized", + "createdByType": "User", + "createdAt": "2024-06-12T08:39:39.0480081Z", + "lastModifiedBy": "Sanitized", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-06-12T08:39:39.0480081Z" + }, + "properties": { + "publisher": "Microsoft", + "product": "MCC", + "majorVersion": "1", + "managedResourceGroupConfiguration": { + "location": "eastus2euap", + "name": "resourcetest-HostedResources-7EE8A6AF" + }, + "provisioningState": "Accepted" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_operation_list_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_operation_list_test.json new file mode 100644 index 00000000000..9e36e6c8b11 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_operation_list_test.json @@ -0,0 +1,341 @@ +{ + "Entries": [ + { + "RequestUri": "https://Sanitized.azure.com/providers/Microsoft.NetworkAnalytics/operations?api-version=2023-11-15", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Origin": "http://localhost:5173", + "Referer": "http://localhost:5173/", + "sec-ch-ua": "\"HeadlessChrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\"Windows\"", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/125.0.6422.26 Safari/537.36", + "x-ms-client-request-id": "Sanitized", + "x-ms-useragent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 OS/Windows" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "x-ms-ratelimit-remaining-tenant-reads,x-ms-providerhub-traffic,x-ms-request-id,x-ms-correlation-request-id,Date,x-ms-routing-request-id,Content-Length", + "Cache-Control": "no-cache", + "Content-Length": "7767", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 13 Jun 2024 09:13:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Cache": "CONFIG_NOCACHE", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aabaf55b-cff8-43d6-835e-b74ed4682b05", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-tenant-reads": "11998", + "x-ms-request-id": "Sanitized", + "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T091321Z:aabaf55b-cff8-43d6-835e-b74ed4682b05", + "X-MSEdge-Ref": "Ref A: 3EFF10F8E9314A1B821976EB110CA86F Ref B: MAA201060513027 Ref C: 2024-06-13T09:13:21Z" + }, + "ResponseBody": { + "value": [ + { + "name": "Microsoft.NetworkAnalytics/Locations/OperationStatuses/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Locations/OperationStatuses", + "operation": "read_OperationStatuses", + "description": "read OperationStatuses" + } + }, + { + "name": "Microsoft.NetworkAnalytics/Locations/OperationStatuses/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Locations/OperationStatuses", + "operation": "write_OperationStatuses", + "description": "write OperationStatuses" + } + }, + { + "name": "Microsoft.NetworkAnalytics/Operations/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Operations", + "operation": "read_Operations", + "description": "read Operations" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_ListBySubscription", + "description": "List DataLakeHouseResources resources by subscription ID" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_ListByResourceGroup", + "description": "List DataLakeHouseResources resources by resource group" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_Get", + "description": "Get a DataLakeHouseResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_CreateOrUpdate", + "description": "Create a DataLakeHouseResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_Delete", + "description": "Delete a DataLakeHouseResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_Update", + "description": "Update a DataLakeHouseResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_ListBySubscription", + "description": "List DataConnectors resources by subscription ID" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_ListByResourceGroup", + "description": "List DataConnectors resources by resource group" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_Get", + "description": "Get a DataConnectors" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_CreateOrUpdate", + "description": "Create a DataConnectors" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_Delete", + "description": "Delete a DataConnectors" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_Update", + "description": "Update a DataConnectors" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_ListBySubscription", + "description": "List NetworkAnalyticsProducts resources by subscription ID" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_ListByResourceGroup", + "description": "List NetworkAnalyticsProducts resources by resource group" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_Get", + "description": "Get a NetworkAnalyticsProducts" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_CreateOrUpdate", + "description": "Create a NetworkAnalyticsProducts" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_Delete", + "description": "Delete a NetworkAnalyticsProducts" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_Update", + "description": "Update a NetworkAnalyticsProducts" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_List", + "description": "List MetricsIngestionEndpointResources resources by parent" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_Get", + "description": "Get a MetricsIngestionEndpointResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_CreateOrUpdate", + "description": "Create a MetricsIngestionEndpointResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_Delete", + "description": "Delete a MetricsIngestionEndpointResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_Update", + "description": "Update a MetricsIngestionEndpointResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/registeredSubscriptions/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "registeredSubscriptions", + "operation": "read_registeredSubscriptions", + "description": "read registeredSubscriptions" + } + }, + { + "name": "Microsoft.NetworkAnalytics/register/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Microsoft.NetworkAnalytics", + "operation": "Register the Microsoft.NetworkAnalytics", + "description": "Register the subscription for Microsoft.NetworkAnalytics" + } + }, + { + "name": "Microsoft.NetworkAnalytics/unregister/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Microsoft.NetworkAnalytics", + "operation": "Unregister the Microsoft.NetworkAnalytics", + "description": "Unregister the subscription for Microsoft.NetworkAnalytics" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_create_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_create_test.json new file mode 100644 index 00000000000..c03ea291be9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_create_test.json @@ -0,0 +1,52 @@ +{ + "Entries": [ + { + "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest?api-version=2023-11-15", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "100", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 Node/18.19.0 OS/(x64-Windows_NT-10.0.22631)", + "x-ms-client-request-id": "Sanitized" + }, + "RequestBody": { + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft", + "product": "MCC", + "majorVersion": "1" + } + }, + "StatusCode": 409, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "272", + "Content-Type": "application/json", + "Date": "Thu, 13 Jun 2024 08:47:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Cache": "CONFIG_NOCACHE", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0db09c16-2b0e-48b5-bc41-1ec801f9310f", + "x-ms-failure-cause": "gateway", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "Sanitized", + "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T084734Z:0db09c16-2b0e-48b5-bc41-1ec801f9310f", + "X-MSEdge-Ref": "Ref A: 3FB82C6D65654A5EA4235111C5AF4005 Ref B: MAA201060514053 Ref C: 2024-06-13T08:47:32Z" + }, + "ResponseBody": { + "error": { + "code": "InvalidResourceOperation", + "message": "The operation for resource '/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest' is invalid as it is being provisioned with state: 'Accepted'." + } + } + } + ], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_delete_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_delete_test.json new file mode 100644 index 00000000000..f721723386d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_delete_test.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_get_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_get_test.json new file mode 100644 index 00000000000..bef48983cc7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_get_test.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest?api-version=2023-11-15", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 Node/18.19.0 OS/(x64-Windows_NT-10.0.22631)", + "x-ms-client-request-id": "Sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "653", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 13 Jun 2024 08:47:38 GMT", + "ETag": "\"0000c3de-0000-3400-0000-66695ed60000\"", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Cache": "CONFIG_NOCACHE", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f025a585-6cfa-43bb-bda4-4943ec590443", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "Sanitized", + "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T084738Z:f025a585-6cfa-43bb-bda4-4943ec590443", + "X-MSEdge-Ref": "Ref A: BB50EC48827A4FBE8A7D739285F31334 Ref B: MAA201060514053 Ref C: 2024-06-13T08:47:36Z" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest", + "name": "resourcetest", + "type": "microsoft.networkanalytics/dataproducts", + "location": "eastus2euap", + "systemData": { + "createdBy": "Sanitized", + "createdByType": "User", + "createdAt": "2024-06-12T08:39:39.0480081Z", + "lastModifiedBy": "Sanitized", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-06-12T08:39:39.0480081Z" + }, + "properties": { + "publisher": "Microsoft", + "product": "MCC", + "majorVersion": "1", + "managedResourceGroupConfiguration": { + "location": "eastus2euap", + "name": "resourcetest-HostedResources-7EE8A6AF" + }, + "provisioningState": "Accepted" + } + } + } + ], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_list_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_list_test.json new file mode 100644 index 00000000000..fd6804aa6dd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_list_test.json @@ -0,0 +1,64 @@ +{ + "Entries": [ + { + "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts?api-version=2023-11-15", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 Node/18.19.0 OS/(x64-Windows_NT-10.0.22631)", + "x-ms-client-request-id": "Sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "665", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 13 Jun 2024 08:47:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Cache": "CONFIG_NOCACHE", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d26ad19d-2890-4810-91fb-dabc4a1e3d92", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "Sanitized", + "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T084741Z:d26ad19d-2890-4810-91fb-dabc4a1e3d92", + "X-MSEdge-Ref": "Ref A: FBA5D597E1844B37B62F3205CF313307 Ref B: MAA201060514053 Ref C: 2024-06-13T08:47:40Z" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest", + "name": "resourcetest", + "type": "microsoft.networkanalytics/dataproducts", + "location": "eastus2euap", + "systemData": { + "createdBy": "Sanitized", + "createdByType": "User", + "createdAt": "2024-06-12T08:39:39.0480081Z", + "lastModifiedBy": "Sanitized", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-06-12T08:39:39.0480081Z" + }, + "properties": { + "publisher": "Microsoft", + "product": "MCC", + "majorVersion": "1", + "managedResourceGroupConfiguration": { + "location": "eastus2euap", + "name": "resourcetest-HostedResources-7EE8A6AF" + }, + "provisioningState": "Accepted" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_operation_list_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_operation_list_test.json new file mode 100644 index 00000000000..ad66a7e8de7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_operation_list_test.json @@ -0,0 +1,330 @@ +{ + "Entries": [ + { + "RequestUri": "https://Sanitized.azure.com/providers/Microsoft.NetworkAnalytics/operations?api-version=2023-11-15", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 Node/18.19.0 OS/(x64-Windows_NT-10.0.22631)", + "x-ms-client-request-id": "Sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7767", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 13 Jun 2024 09:12:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Cache": "CONFIG_NOCACHE", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "856050a3-9301-4924-9694-3ec9c79d012e", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "Sanitized", + "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T091239Z:856050a3-9301-4924-9694-3ec9c79d012e", + "X-MSEdge-Ref": "Ref A: 6BD936295D264AD89CADB9A2B9150DD4 Ref B: MAA201060514023 Ref C: 2024-06-13T09:12:39Z" + }, + "ResponseBody": { + "value": [ + { + "name": "Microsoft.NetworkAnalytics/Locations/OperationStatuses/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Locations/OperationStatuses", + "operation": "read_OperationStatuses", + "description": "read OperationStatuses" + } + }, + { + "name": "Microsoft.NetworkAnalytics/Locations/OperationStatuses/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Locations/OperationStatuses", + "operation": "write_OperationStatuses", + "description": "write OperationStatuses" + } + }, + { + "name": "Microsoft.NetworkAnalytics/Operations/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Operations", + "operation": "read_Operations", + "description": "read Operations" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_ListBySubscription", + "description": "List DataLakeHouseResources resources by subscription ID" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_ListByResourceGroup", + "description": "List DataLakeHouseResources resources by resource group" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_Get", + "description": "Get a DataLakeHouseResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_CreateOrUpdate", + "description": "Create a DataLakeHouseResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_Delete", + "description": "Delete a DataLakeHouseResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataLakeHouses/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataLakeHouses", + "operation": "Storage_Update", + "description": "Update a DataLakeHouseResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_ListBySubscription", + "description": "List DataConnectors resources by subscription ID" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_ListByResourceGroup", + "description": "List DataConnectors resources by resource group" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_Get", + "description": "Get a DataConnectors" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_CreateOrUpdate", + "description": "Create a DataConnectors" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_Delete", + "description": "Delete a DataConnectors" + } + }, + { + "name": "Microsoft.NetworkAnalytics/dataConnectors/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "dataConnectors", + "operation": "DataConnector_Update", + "description": "Update a DataConnectors" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_ListBySubscription", + "description": "List NetworkAnalyticsProducts resources by subscription ID" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_ListByResourceGroup", + "description": "List NetworkAnalyticsProducts resources by resource group" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_Get", + "description": "Get a NetworkAnalyticsProducts" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_CreateOrUpdate", + "description": "Create a NetworkAnalyticsProducts" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_Delete", + "description": "Delete a NetworkAnalyticsProducts" + } + }, + { + "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "networkAnalyticsProducts", + "operation": "NetworkAnalyticsProduct_Update", + "description": "Update a NetworkAnalyticsProducts" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_List", + "description": "List MetricsIngestionEndpointResources resources by parent" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_Get", + "description": "Get a MetricsIngestionEndpointResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_CreateOrUpdate", + "description": "Create a MetricsIngestionEndpointResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_Delete", + "description": "Delete a MetricsIngestionEndpointResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "metricsIngestionEndpoints", + "operation": "MetricsIngestionEndpoints_Update", + "description": "Update a MetricsIngestionEndpointResources" + } + }, + { + "name": "Microsoft.NetworkAnalytics/registeredSubscriptions/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "registeredSubscriptions", + "operation": "read_registeredSubscriptions", + "description": "read registeredSubscriptions" + } + }, + { + "name": "Microsoft.NetworkAnalytics/register/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Microsoft.NetworkAnalytics", + "operation": "Register the Microsoft.NetworkAnalytics", + "description": "Register the subscription for Microsoft.NetworkAnalytics" + } + }, + { + "name": "Microsoft.NetworkAnalytics/unregister/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.NetworkAnalytics", + "resource": "Microsoft.NetworkAnalytics", + "operation": "Unregister the Microsoft.NetworkAnalytics", + "description": "Unregister the subscription for Microsoft.NetworkAnalytics" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProducts.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProducts.api.md new file mode 100644 index 00000000000..ea6abd14ebd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProducts.api.md @@ -0,0 +1,118 @@ +## API Report File for "@azure/arm-networkanalytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { OperationOptions } from '@azure-rest/core-client'; +import { OperationState } from '@azure/core-lro'; +import { Paged } from '@azure/core-paging'; +import { PollerLike } from '@azure/core-lro'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; + +// @public +export function $delete(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): PollerLike, void>; + +// @public (undocumented) +export function _$deleteDeserialize(result: DataProductsDelete202Response | DataProductsDelete204Response | DataProductsDeleteDefaultResponse | DataProductsDeleteLogicalResponse): Promise; + +// @public (undocumented) +export function _$deleteSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): StreamableMethod; + +// @public +export function addUserRole(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties_2, options?: DataProductsAddUserRoleOptionalParams): Promise; + +// @public (undocumented) +export function _addUserRoleDeserialize(result: DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse): Promise; + +// @public (undocumented) +export function _addUserRoleSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties_2, options?: DataProductsAddUserRoleOptionalParams): StreamableMethod; + +// @public +export function create(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct_2, options?: DataProductsCreateOptionalParams): PollerLike, DataProduct_2>; + +// @public (undocumented) +export function _createDeserialize(result: DataProductsCreate200Response | DataProductsCreate201Response | DataProductsCreateDefaultResponse | DataProductsCreateLogicalResponse): Promise; + +// @public (undocumented) +export function _createSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct_2, options?: DataProductsCreateOptionalParams): StreamableMethod; + +// @public +export function generateStorageAccountSasToken(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas_2, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; + +// @public (undocumented) +export function _generateStorageAccountSasTokenDeserialize(result: DataProductsGenerateStorageAccountSasToken200Response | DataProductsGenerateStorageAccountSasTokenDefaultResponse): Promise; + +// @public (undocumented) +export function _generateStorageAccountSasTokenSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas_2, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): StreamableMethod; + +// @public +export function get(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; + +// @public (undocumented) +export function _getDeserialize(result: DataProductsGet200Response | DataProductsGetDefaultResponse): Promise; + +// @public (undocumented) +export function _getSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): StreamableMethod; + +// @public +export function listByResourceGroup(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + +// @public (undocumented) +export function _listByResourceGroupDeserialize(result: DataProductsListByResourceGroup200Response | DataProductsListByResourceGroupDefaultResponse): Promise; + +// @public (undocumented) +export function _listByResourceGroupSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): StreamableMethod; + +// @public +export function listBySubscription(context: NetworkAnalyticsContext, subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + +// @public (undocumented) +export function _listBySubscriptionDeserialize(result: DataProductsListBySubscription200Response | DataProductsListBySubscriptionDefaultResponse): Promise; + +// @public (undocumented) +export function _listBySubscriptionSend(context: NetworkAnalyticsContext, subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams): StreamableMethod; + +// @public +export function listRolesAssignments(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; + +// @public (undocumented) +export function _listRolesAssignmentsDeserialize(result: DataProductsListRolesAssignments200Response | DataProductsListRolesAssignmentsDefaultResponse): Promise; + +// @public (undocumented) +export function _listRolesAssignmentsSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): StreamableMethod; + +// @public +export function removeUserRole(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail_2, options?: DataProductsRemoveUserRoleOptionalParams): Promise; + +// @public (undocumented) +export function _removeUserRoleDeserialize(result: DataProductsRemoveUserRole204Response | DataProductsRemoveUserRoleDefaultResponse): Promise; + +// @public (undocumented) +export function _removeUserRoleSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail_2, options?: DataProductsRemoveUserRoleOptionalParams): StreamableMethod; + +// @public +export function rotateKey(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo_2, options?: DataProductsRotateKeyOptionalParams): Promise; + +// @public (undocumented) +export function _rotateKeyDeserialize(result: DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse): Promise; + +// @public (undocumented) +export function _rotateKeySend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo_2, options?: DataProductsRotateKeyOptionalParams): StreamableMethod; + +// @public +export function update(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate_2, options?: DataProductsUpdateOptionalParams): PollerLike, DataProduct_2>; + +// @public (undocumented) +export function _updateDeserialize(result: DataProductsUpdate200Response | DataProductsUpdate202Response | DataProductsUpdateDefaultResponse | DataProductsUpdateLogicalResponse): Promise; + +// @public (undocumented) +export function _updateSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate_2, options?: DataProductsUpdateOptionalParams): StreamableMethod; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProductsCatalogs.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProductsCatalogs.api.md new file mode 100644 index 00000000000..6f284e30e4e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProductsCatalogs.api.md @@ -0,0 +1,44 @@ +## API Report File for "@azure/arm-networkanalytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { OperationOptions } from '@azure-rest/core-client'; +import { Paged } from '@azure/core-paging'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; + +// @public +export function get(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; + +// @public (undocumented) +export function _getDeserialize(result: DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse): Promise; + +// @public (undocumented) +export function _getSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): StreamableMethod; + +// @public +export function listByResourceGroup(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + +// @public (undocumented) +export function _listByResourceGroupDeserialize(result: DataProductsCatalogsListByResourceGroup200Response | DataProductsCatalogsListByResourceGroupDefaultResponse): Promise; + +// @public (undocumented) +export function _listByResourceGroupSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): StreamableMethod; + +// @public +export function listBySubscription(context: NetworkAnalyticsContext, subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + +// @public (undocumented) +export function _listBySubscriptionDeserialize(result: DataProductsCatalogsListBySubscription200Response | DataProductsCatalogsListBySubscriptionDefaultResponse): Promise; + +// @public (undocumented) +export function _listBySubscriptionSend(context: NetworkAnalyticsContext, subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams): StreamableMethod; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataTypes.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataTypes.api.md new file mode 100644 index 00000000000..fa84c743e0d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataTypes.api.md @@ -0,0 +1,82 @@ +## API Report File for "@azure/arm-networkanalytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { OperationOptions } from '@azure-rest/core-client'; +import { OperationState } from '@azure/core-lro'; +import { Paged } from '@azure/core-paging'; +import { PollerLike } from '@azure/core-lro'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; + +// @public +export function $delete(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): PollerLike, void>; + +// @public (undocumented) +export function _$deleteDeserialize(result: DataTypesDelete202Response | DataTypesDelete204Response | DataTypesDeleteDefaultResponse | DataTypesDeleteLogicalResponse): Promise; + +// @public (undocumented) +export function _$deleteSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): StreamableMethod; + +// @public +export function create(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType_2, options?: DataTypesCreateOptionalParams): PollerLike, DataType_2>; + +// @public (undocumented) +export function _createDeserialize(result: DataTypesCreate200Response | DataTypesCreate201Response | DataTypesCreateDefaultResponse | DataTypesCreateLogicalResponse): Promise; + +// @public (undocumented) +export function _createSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType_2, options?: DataTypesCreateOptionalParams): StreamableMethod; + +// @public +export function deleteData(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): PollerLike, void>; + +// @public (undocumented) +export function _deleteDataDeserialize(result: DataTypesDeleteData202Response | DataTypesDeleteData204Response | DataTypesDeleteDataDefaultResponse | DataTypesDeleteDataLogicalResponse): Promise; + +// @public (undocumented) +export function _deleteDataSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): StreamableMethod; + +// @public +export function generateStorageContainerSasToken(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS_2, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; + +// @public (undocumented) +export function _generateStorageContainerSasTokenDeserialize(result: DataTypesGenerateStorageContainerSasToken200Response | DataTypesGenerateStorageContainerSasTokenDefaultResponse): Promise; + +// @public (undocumented) +export function _generateStorageContainerSasTokenSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS_2, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): StreamableMethod; + +// @public +export function get(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; + +// @public (undocumented) +export function _getDeserialize(result: DataTypesGet200Response | DataTypesGetDefaultResponse): Promise; + +// @public (undocumented) +export function _getSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): StreamableMethod; + +// @public +export function listByDataProduct(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; + +// @public (undocumented) +export function _listByDataProductDeserialize(result: DataTypesListByDataProduct200Response | DataTypesListByDataProductDefaultResponse): Promise; + +// @public (undocumented) +export function _listByDataProductSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): StreamableMethod; + +// @public +export function update(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate_2, options?: DataTypesUpdateOptionalParams): PollerLike, DataType_2>; + +// @public (undocumented) +export function _updateDeserialize(result: DataTypesUpdate200Response | DataTypesUpdate202Response | DataTypesUpdateDefaultResponse | DataTypesUpdateLogicalResponse): Promise; + +// @public (undocumented) +export function _updateSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate_2, options?: DataTypesUpdateOptionalParams): StreamableMethod; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-operations.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-operations.api.md new file mode 100644 index 00000000000..99f9d3c61b8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-operations.api.md @@ -0,0 +1,26 @@ +## API Report File for "@azure/arm-networkanalytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { OperationOptions } from '@azure-rest/core-client'; +import { Paged } from '@azure/core-paging'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; + +// @public +export function list(context: NetworkAnalyticsContext, options?: OperationsListOptionalParams): PagedAsyncIterableIterator; + +// @public (undocumented) +export function _listDeserialize(result: OperationsList200Response | OperationsListDefaultResponse): Promise; + +// @public (undocumented) +export function _listSend(context: NetworkAnalyticsContext, options?: OperationsListOptionalParams): StreamableMethod; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api.api.md new file mode 100644 index 00000000000..ae2ac29174f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api.api.md @@ -0,0 +1,31 @@ +## API Report File for "@azure/arm-networkanalytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { Paged } from '@azure/core-paging'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; + +// @public (undocumented) +export function createNetworkAnalytics(credential: TokenCredential, options?: NetworkAnalyticsClientOptions): NetworkAnalyticsContext; + +// @public (undocumented) +export interface NetworkAnalyticsClientOptions extends ClientOptions { + apiVersion?: string; +} + +// @public (undocumented) +export type NetworkAnalyticsContext = Client & { + path: Routes; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-models.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-models.api.md new file mode 100644 index 00000000000..f202fe86e44 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-models.api.md @@ -0,0 +1,479 @@ +## API Report File for "@azure/arm-networkanalytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { OperationOptions } from '@azure-rest/core-client'; + +// @public +export interface AccountSas { + expiryTimeStamp: Date; + ipAddress: string; + startTimeStamp: Date; +} + +// @public +export interface AccountSasToken { + storageAccountSasToken: string; +} + +// @public +export type ActionType = string; + +// @public +export interface ArmOperationStatus { + readonly endTime?: Date; + readonly error?: ErrorDetail; + readonly name?: string; + readonly percentComplete?: number; + readonly startTime?: Date; + status: ResourceProvisioningState; +} + +// @public +export interface ConsumptionEndpointsProperties { + readonly fileAccessResourceId?: string; + readonly fileAccessUrl?: string; + readonly ingestionResourceId?: string; + readonly ingestionUrl?: string; + readonly queryResourceId?: string; + readonly queryUrl?: string; +} + +// @public +export interface ContainerSaS { + expiryTimeStamp: Date; + ipAddress: string; + startTimeStamp: Date; +} + +// @public +export interface ContainerSasToken { + storageContainerSasToken: string; +} + +// @public +export type ContinuablePage = TPage & { + continuationToken?: string; +}; + +// @public +export type ControlState = string; + +// @public +export type CreatedByType = string; + +// @public +export interface DataProduct extends TrackedResource { + identity?: ManagedServiceIdentity; + properties?: DataProductProperties; +} + +// @public +export interface DataProductInformation { + dataProductName: string; + dataProductVersions: DataProductVersion[]; + description: string; +} + +// @public +export interface DataProductListResult { + nextLink?: string; + value: DataProduct[]; +} + +// @public +export interface DataProductNetworkAcls { + allowedQueryIpRangeList: string[]; + defaultAction: DefaultAction; + ipRules: IPRules[]; + virtualNetworkRule: VirtualNetworkRule[]; +} + +// @public +export interface DataProductProperties { + readonly availableMinorVersions?: string[]; + readonly consumptionEndpoints?: ConsumptionEndpointsProperties; + currentMinorVersion?: string; + customerEncryptionKey?: EncryptionKeyDetails; + customerManagedKeyEncryptionEnabled?: ControlState; + readonly documentation?: string; + readonly keyVaultUrl?: string; + majorVersion: string; + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + networkacls?: DataProductNetworkAcls; + owners?: string[]; + privateLinksEnabled?: ControlState; + product: string; + readonly provisioningState?: ProvisioningState; + publicNetworkAccess?: ControlState; + publisher: string; + purviewAccount?: string; + purviewCollection?: string; + redundancy?: ControlState; + readonly resourceGuid?: string; +} + +// @public (undocumented) +export interface DataProductsAddUserRoleOptionalParams extends OperationOptions { +} + +// @public +export interface DataProductsCatalog extends ProxyResource { + properties?: DataProductsCatalogProperties; +} + +// @public +export interface DataProductsCatalogListResult { + nextLink?: string; + value: DataProductsCatalog[]; +} + +// @public +export interface DataProductsCatalogProperties { + readonly provisioningState?: ProvisioningState; + publishers: PublisherInformation[]; +} + +// @public (undocumented) +export interface DataProductsCatalogsGetOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsCatalogsListByResourceGroupOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsCatalogsListBySubscriptionOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsCreateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataProductsDeleteOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsGetOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsListByResourceGroupOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsListBySubscriptionOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsListRolesAssignmentsOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsRemoveUserRoleOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsRotateKeyOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface DataProductUpdate { + identity?: ManagedServiceIdentity; + // (undocumented) + properties?: DataProductUpdateProperties; + tags?: Record; +} + +// @public +export interface DataProductUpdateProperties { + currentMinorVersion?: string; + owners?: string[]; + privateLinksEnabled?: ControlState; + purviewAccount?: string; + purviewCollection?: string; +} + +// @public +export type DataProductUserRole = string; + +// @public +export interface DataProductVersion { + version: string; +} + +// @public +export interface DataType extends ProxyResource { + properties?: DataTypeProperties; +} + +// @public +export interface DataTypeListResult { + nextLink?: string; + value: DataType[]; +} + +// @public +export interface DataTypeProperties { + databaseCacheRetention?: number; + databaseRetention?: number; + readonly provisioningState?: ProvisioningState; + state?: DataTypeState; + readonly stateReason?: string; + storageOutputRetention?: number; + readonly visualizationUrl?: string; +} + +// @public (undocumented) +export interface DataTypesCreateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataTypesDeleteDataOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataTypesDeleteOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataTypesGetOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataTypesListByDataProductOptionalParams extends OperationOptions { +} + +// @public +export type DataTypeState = string; + +// @public (undocumented) +export interface DataTypesUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface DataTypeUpdate { + // (undocumented) + properties?: DataTypeUpdateProperties; +} + +// @public +export interface DataTypeUpdateProperties { + databaseCacheRetention?: number; + databaseRetention?: number; + state?: DataTypeState; + storageOutputRetention?: number; +} + +// @public +export type DefaultAction = string; + +// @public +export interface EncryptionKeyDetails { + keyName: string; + keyVaultUri: string; + keyVersion: string; +} + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export interface IPRules { + action: string; + value?: string; +} + +// @public +export interface KeyVaultInfo { + keyVaultUrl: string; +} + +// @public +export interface ListRoleAssignments { + count: number; + roleAssignmentResponse: RoleAssignmentDetail[]; +} + +// @public +export interface ManagedResourceGroupConfiguration { + location: string; + name: string; +} + +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: UserAssignedIdentities; +} + +// @public +export type ManagedServiceIdentityType = string; + +// @public +export interface Operation { + actionType?: ActionType; + display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public (undocumented) +export interface OperationsListOptionalParams extends OperationOptions { +} + +// @public +export type Origin = string; + +// @public +export interface PagedAsyncIterableIterator { + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; + next(): Promise>; +} + +// @public +export interface PagedOperation { + nextLink?: string; + value: Operation[]; +} + +// @public +export interface PageSettings { + continuationToken?: string; +} + +// @public +export type ProvisioningState = string; + +// @public +export interface ProxyResource extends Resource { +} + +// @public +export interface PublisherInformation { + dataProducts: DataProductInformation[]; + publisherName: string; +} + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export type ResourceProvisioningState = string; + +// @public +export interface RoleAssignmentCommonProperties { + dataTypeScope: string[]; + principalId: string; + principalType: string; + role: DataProductUserRole; + roleId: string; + userName: string; +} + +// @public +export interface RoleAssignmentDetail { + dataTypeScope: string[]; + principalId: string; + principalType: string; + role: DataProductUserRole; + roleAssignmentId: string; + roleId: string; + userName: string; +} + +// @public +export interface SystemData { + readonly createdAt?: Date; + readonly createdBy?: string; + readonly createdByType?: CreatedByType; + readonly lastModifiedAt?: Date; + readonly lastModifiedBy?: string; + readonly lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: Record; +} + +// @public +export interface UserAssignedIdentities extends Record { +} + +// @public +export interface UserAssignedIdentity { + clientId?: string; + principalId?: string; +} + +// @public (undocumented) +export type Versions = "2023-11-15"; + +// @public +export interface VirtualNetworkRule { + action?: string; + id: string; + state?: string; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics.api.md new file mode 100644 index 00000000000..fb52a21ee65 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics.api.md @@ -0,0 +1,579 @@ +## API Report File for "@azure/arm-networkanalytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { AbortSignalLike } from '@azure/abort-controller'; +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { OperationOptions } from '@azure-rest/core-client'; +import { OperationState } from '@azure/core-lro'; +import { Paged } from '@azure/core-paging'; +import { PathUncheckedResponse } from '@azure-rest/core-client'; +import { Pipeline } from '@azure/core-rest-pipeline'; +import { PollerLike } from '@azure/core-lro'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; + +// @public +export interface AccountSas { + expiryTimeStamp: Date; + ipAddress: string; + startTimeStamp: Date; +} + +// @public +export interface AccountSasToken { + storageAccountSasToken: string; +} + +// @public +export type ActionType = string; + +// @public +export interface ArmOperationStatus { + readonly endTime?: Date; + readonly error?: ErrorDetail; + readonly name?: string; + readonly percentComplete?: number; + readonly startTime?: Date; + status: ResourceProvisioningState; +} + +// @public +export interface ConsumptionEndpointsProperties { + readonly fileAccessResourceId?: string; + readonly fileAccessUrl?: string; + readonly ingestionResourceId?: string; + readonly ingestionUrl?: string; + readonly queryResourceId?: string; + readonly queryUrl?: string; +} + +// @public +export interface ContainerSaS { + expiryTimeStamp: Date; + ipAddress: string; + startTimeStamp: Date; +} + +// @public +export interface ContainerSasToken { + storageContainerSasToken: string; +} + +// @public +export type ContinuablePage = TPage & { + continuationToken?: string; +}; + +// @public +export type ControlState = string; + +// @public +export type CreatedByType = string; + +// @public +export interface DataProduct extends TrackedResource { + identity?: ManagedServiceIdentity; + properties?: DataProductProperties; +} + +// @public +export interface DataProductInformation { + dataProductName: string; + dataProductVersions: DataProductVersion[]; + description: string; +} + +// @public +export interface DataProductListResult { + nextLink?: string; + value: DataProduct[]; +} + +// @public +export interface DataProductNetworkAcls { + allowedQueryIpRangeList: string[]; + defaultAction: DefaultAction; + ipRules: IPRules[]; + virtualNetworkRule: VirtualNetworkRule[]; +} + +// @public +export interface DataProductProperties { + readonly availableMinorVersions?: string[]; + readonly consumptionEndpoints?: ConsumptionEndpointsProperties; + currentMinorVersion?: string; + customerEncryptionKey?: EncryptionKeyDetails; + customerManagedKeyEncryptionEnabled?: ControlState; + readonly documentation?: string; + readonly keyVaultUrl?: string; + majorVersion: string; + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + networkacls?: DataProductNetworkAcls; + owners?: string[]; + privateLinksEnabled?: ControlState; + product: string; + readonly provisioningState?: ProvisioningState; + publicNetworkAccess?: ControlState; + publisher: string; + purviewAccount?: string; + purviewCollection?: string; + redundancy?: ControlState; + readonly resourceGuid?: string; +} + +// @public (undocumented) +export interface DataProductsAddUserRoleOptionalParams extends OperationOptions { +} + +// @public +export interface DataProductsCatalog extends ProxyResource { + properties?: DataProductsCatalogProperties; +} + +// @public +export interface DataProductsCatalogListResult { + nextLink?: string; + value: DataProductsCatalog[]; +} + +// @public +export interface DataProductsCatalogProperties { + readonly provisioningState?: ProvisioningState; + publishers: PublisherInformation[]; +} + +// @public (undocumented) +export interface DataProductsCatalogsGetOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsCatalogsListByResourceGroupOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsCatalogsListBySubscriptionOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsCatalogsOperations { + // (undocumented) + get: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams) => Promise; + // (undocumented) + listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + // (undocumented) + listBySubscription: (subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; +} + +// @public (undocumented) +export interface DataProductsCreateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataProductsDeleteOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsGetOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsListByResourceGroupOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsListBySubscriptionOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsListRolesAssignmentsOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsOperations { + // (undocumented) + addUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams) => Promise; + // (undocumented) + create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams) => PollerLike, DataProduct>; + // (undocumented) + delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams) => PollerLike, void>; + // (undocumented) + generateStorageAccountSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams) => Promise; + // (undocumented) + get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams) => Promise; + // (undocumented) + listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + // (undocumented) + listBySubscription: (subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; + // (undocumented) + listRolesAssignments: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams) => Promise; + // (undocumented) + removeUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams) => Promise; + // (undocumented) + rotateKey: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams) => Promise; + // (undocumented) + update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams) => PollerLike, DataProduct>; +} + +// @public (undocumented) +export interface DataProductsRemoveUserRoleOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsRotateKeyOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataProductsUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface DataProductUpdate { + identity?: ManagedServiceIdentity; + // (undocumented) + properties?: DataProductUpdateProperties; + tags?: Record; +} + +// @public +export interface DataProductUpdateProperties { + currentMinorVersion?: string; + owners?: string[]; + privateLinksEnabled?: ControlState; + purviewAccount?: string; + purviewCollection?: string; +} + +// @public +export type DataProductUserRole = string; + +// @public +export interface DataProductVersion { + version: string; +} + +// @public +export interface DataType extends ProxyResource { + properties?: DataTypeProperties; +} + +// @public +export interface DataTypeListResult { + nextLink?: string; + value: DataType[]; +} + +// @public +export interface DataTypeProperties { + databaseCacheRetention?: number; + databaseRetention?: number; + readonly provisioningState?: ProvisioningState; + state?: DataTypeState; + readonly stateReason?: string; + storageOutputRetention?: number; + readonly visualizationUrl?: string; +} + +// @public (undocumented) +export interface DataTypesCreateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataTypesDeleteDataOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataTypesDeleteOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataTypesGetOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataTypesListByDataProductOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface DataTypesOperations { + // (undocumented) + create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams) => PollerLike, DataType>; + // (undocumented) + delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams) => PollerLike, void>; + // (undocumented) + deleteData: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams) => PollerLike, void>; + // (undocumented) + generateStorageContainerSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams) => Promise; + // (undocumented) + get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams) => Promise; + // (undocumented) + listByDataProduct: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams) => PagedAsyncIterableIterator; + // (undocumented) + update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams) => PollerLike, DataType>; +} + +// @public +export type DataTypeState = string; + +// @public (undocumented) +export interface DataTypesUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface DataTypeUpdate { + // (undocumented) + properties?: DataTypeUpdateProperties; +} + +// @public +export interface DataTypeUpdateProperties { + databaseCacheRetention?: number; + databaseRetention?: number; + state?: DataTypeState; + storageOutputRetention?: number; +} + +// @public +export type DefaultAction = string; + +// @public +export interface EncryptionKeyDetails { + keyName: string; + keyVaultUri: string; + keyVersion: string; +} + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export interface IPRules { + action: string; + value?: string; +} + +// @public +export interface KeyVaultInfo { + keyVaultUrl: string; +} + +// @public +export interface ListRoleAssignments { + count: number; + roleAssignmentResponse: RoleAssignmentDetail[]; +} + +// @public +export interface ManagedResourceGroupConfiguration { + location: string; + name: string; +} + +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: UserAssignedIdentities; +} + +// @public +export type ManagedServiceIdentityType = string; + +// @public (undocumented) +export class NetworkAnalyticsClient { + constructor(credential: TokenCredential, options?: NetworkAnalyticsClientOptions); + readonly dataProducts: DataProductsOperations; + readonly dataProductsCatalogs: DataProductsCatalogsOperations; + readonly dataTypes: DataTypesOperations; + readonly operations: OperationsOperations; + readonly pipeline: Pipeline; +} + +// @public (undocumented) +export interface NetworkAnalyticsClientOptions extends ClientOptions { + apiVersion?: string; +} + +// @public +export interface Operation { + actionType?: ActionType; + display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public (undocumented) +export interface OperationsListOptionalParams extends OperationOptions { +} + +// @public (undocumented) +export interface OperationsOperations { + // (undocumented) + list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; +} + +// @public +export type Origin = string; + +// @public +export interface PagedAsyncIterableIterator { + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; + next(): Promise>; +} + +// @public +export interface PagedOperation { + nextLink?: string; + value: Operation[]; +} + +// @public +export interface PageSettings { + continuationToken?: string; +} + +// @public +export type ProvisioningState = string; + +// @public +export interface ProxyResource extends Resource { +} + +// @public +export interface PublisherInformation { + dataProducts: DataProductInformation[]; + publisherName: string; +} + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export type ResourceProvisioningState = string; + +// Warning: (ae-forgotten-export) The symbol "NetworkAnalyticsContext" needs to be exported by the entry point index.d.ts +// +// @public +export function restorePoller(client: NetworkAnalyticsContext | NetworkAnalyticsClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike, TResult>, options?: RestorePollerOptions): PollerLike, TResult>; + +// @public (undocumented) +export interface RestorePollerOptions extends OperationOptions { + abortSignal?: AbortSignalLike; + processResponseBody?: (result: TResponse) => Promise; + updateIntervalInMs?: number; +} + +// @public +export interface RoleAssignmentCommonProperties { + dataTypeScope: string[]; + principalId: string; + principalType: string; + role: DataProductUserRole; + roleId: string; + userName: string; +} + +// @public +export interface RoleAssignmentDetail { + dataTypeScope: string[]; + principalId: string; + principalType: string; + role: DataProductUserRole; + roleAssignmentId: string; + roleId: string; + userName: string; +} + +// @public +export interface SystemData { + readonly createdAt?: Date; + readonly createdBy?: string; + readonly createdByType?: CreatedByType; + readonly lastModifiedAt?: Date; + readonly lastModifiedBy?: string; + readonly lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: Record; +} + +// @public +export interface UserAssignedIdentities extends Record { +} + +// @public +export interface UserAssignedIdentity { + clientId?: string; + principalId?: string; +} + +// @public (undocumented) +export type Versions = "2023-11-15"; + +// @public +export interface VirtualNetworkRule { + action?: string; + id: string; + state?: string; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/rollup.config.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/rollup.config.js new file mode 100644 index 00000000000..61251d7a8d5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/rollup.config.js @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +// #region Warning Handler + +/** + * A function that can determine whether a rollup warning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEval(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependency(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && + warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"], + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true, + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"], + }), + cjs(), + json(), + sourcemaps(), + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false, + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false, +}; + +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}), + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies), + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve()], + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts new file mode 100644 index 00000000000..3651fff278b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts @@ -0,0 +1,56 @@ +import { PollerLike, OperationState } from "@azure/core-lro"; +import { DataProduct, DataProductUpdate, AccountSas, AccountSasToken, KeyVaultInfo, RoleAssignmentCommonProperties, RoleAssignmentDetail, ListRoleAssignments, DataProductListResult } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { DataProductsAddUserRole200Response, DataProductsAddUserRoleDefaultResponse, DataProductsCreate200Response, DataProductsCreate201Response, DataProductsCreateDefaultResponse, DataProductsCreateLogicalResponse, DataProductsDelete202Response, DataProductsDelete204Response, DataProductsDeleteDefaultResponse, DataProductsDeleteLogicalResponse, DataProductsGenerateStorageAccountSasToken200Response, DataProductsGenerateStorageAccountSasTokenDefaultResponse, DataProductsGet200Response, DataProductsGetDefaultResponse, DataProductsListByResourceGroup200Response, DataProductsListByResourceGroupDefaultResponse, DataProductsListBySubscription200Response, DataProductsListBySubscriptionDefaultResponse, DataProductsListRolesAssignments200Response, DataProductsListRolesAssignmentsDefaultResponse, DataProductsRemoveUserRole204Response, DataProductsRemoveUserRoleDefaultResponse, DataProductsRotateKey204Response, DataProductsRotateKeyDefaultResponse, DataProductsUpdate200Response, DataProductsUpdate202Response, DataProductsUpdateDefaultResponse, DataProductsUpdateLogicalResponse, NetworkAnalyticsContext as Client } from "../../rest/index.js"; +import { StreamableMethod } from "@azure-rest/core-client"; +import { DataProductsCreateOptionalParams, DataProductsGetOptionalParams, DataProductsUpdateOptionalParams, DataProductsDeleteOptionalParams, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsRotateKeyOptionalParams, DataProductsAddUserRoleOptionalParams, DataProductsRemoveUserRoleOptionalParams, DataProductsListRolesAssignmentsOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsListBySubscriptionOptionalParams } from "../../models/options.js"; +export declare function _createSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): StreamableMethod; +export declare function _createDeserialize(result: DataProductsCreate200Response | DataProductsCreate201Response | DataProductsCreateDefaultResponse | DataProductsCreateLogicalResponse): Promise; +/** Create data product resource. */ +export declare function create(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): PollerLike, DataProduct>; +export declare function _getSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): StreamableMethod; +export declare function _getDeserialize(result: DataProductsGet200Response | DataProductsGetDefaultResponse): Promise; +/** Retrieve data product resource. */ +export declare function get(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; +export declare function _updateSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): StreamableMethod; +export declare function _updateDeserialize(result: DataProductsUpdate200Response | DataProductsUpdate202Response | DataProductsUpdateDefaultResponse | DataProductsUpdateLogicalResponse): Promise; +/** Update data product resource. */ +export declare function update(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): PollerLike, DataProduct>; +export declare function _$deleteSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): StreamableMethod; +export declare function _$deleteDeserialize(result: DataProductsDelete202Response | DataProductsDelete204Response | DataProductsDeleteDefaultResponse | DataProductsDeleteLogicalResponse): Promise; +/** Delete data product resource. */ +/** + * @fixme delete is a reserved word that cannot be used as an operation name. + * Please add @clientName("clientName") or @clientName("", "javascript") + * to the operation to override the generated name. + */ +export declare function $delete(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): PollerLike, void>; +export declare function _generateStorageAccountSasTokenSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): StreamableMethod; +export declare function _generateStorageAccountSasTokenDeserialize(result: DataProductsGenerateStorageAccountSasToken200Response | DataProductsGenerateStorageAccountSasTokenDefaultResponse): Promise; +/** Generate sas token for storage account. */ +export declare function generateStorageAccountSasToken(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; +export declare function _rotateKeySend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): StreamableMethod; +export declare function _rotateKeyDeserialize(result: DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse): Promise; +/** Initiate key rotation on Data Product. */ +export declare function rotateKey(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): Promise; +export declare function _addUserRoleSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): StreamableMethod; +export declare function _addUserRoleDeserialize(result: DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse): Promise; +/** Assign role to the data product. */ +export declare function addUserRole(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): Promise; +export declare function _removeUserRoleSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): StreamableMethod; +export declare function _removeUserRoleDeserialize(result: DataProductsRemoveUserRole204Response | DataProductsRemoveUserRoleDefaultResponse): Promise; +/** Remove role from the data product. */ +export declare function removeUserRole(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): Promise; +export declare function _listRolesAssignmentsSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): StreamableMethod; +export declare function _listRolesAssignmentsDeserialize(result: DataProductsListRolesAssignments200Response | DataProductsListRolesAssignmentsDefaultResponse): Promise; +/** List user roles associated with the data product. */ +export declare function listRolesAssignments(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; +export declare function _listByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): StreamableMethod; +export declare function _listByResourceGroupDeserialize(result: DataProductsListByResourceGroup200Response | DataProductsListByResourceGroupDefaultResponse): Promise; +/** List data products by resource group. */ +export declare function listByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; +export declare function _listBySubscriptionSend(context: Client, subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams): StreamableMethod; +export declare function _listBySubscriptionDeserialize(result: DataProductsListBySubscription200Response | DataProductsListBySubscriptionDefaultResponse): Promise; +/** List data products by subscription. */ +export declare function listBySubscription(context: Client, subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts.map new file mode 100644 index 00000000000..42dc002c337 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,8BAA8B,EAC9B,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EACL,kCAAkC,EAClC,sCAAsC,EACtC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,qDAAqD,EACrD,yDAAyD,EACzD,0BAA0B,EAC1B,8BAA8B,EAC9B,0CAA0C,EAC1C,8CAA8C,EAC9C,yCAAyC,EACzC,6CAA6C,EAC7C,2CAA2C,EAC3C,+CAA+C,EAC/C,qCAAqC,EACrC,yCAAyC,EACzC,gCAAgC,EAChC,oCAAoC,EACpC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EAEjC,uBAAuB,IAAI,MAAM,EAClC,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B,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,4CAER,GACA,0BAA0B,CAAC,WAAW,CAAC,CAOzC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js new file mode 100644 index 00000000000..da956a5810e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js @@ -0,0 +1,775 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { getLongRunningPoller } from "../pollingHelpers.js"; +import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { isUnexpected, } from "../../rest/index.js"; +import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client"; +export function _createSend(context, subscriptionId, resourceGroupName, dataProductName, resource, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId, resourceGroupName, dataProductName) + .put({ + ...operationOptionsToRequestParameters(options), + body: { + location: resource["location"], + tags: resource["tags"], + properties: !resource.properties + ? undefined + : { + publisher: resource.properties?.["publisher"], + product: resource.properties?.["product"], + majorVersion: resource.properties?.["majorVersion"], + owners: resource.properties?.["owners"], + redundancy: resource.properties?.["redundancy"], + purviewAccount: resource.properties?.["purviewAccount"], + purviewCollection: resource.properties?.["purviewCollection"], + privateLinksEnabled: resource.properties?.["privateLinksEnabled"], + publicNetworkAccess: resource.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: resource.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !resource.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: resource.properties?.customerEncryptionKey?.["keyVaultUri"], + keyName: resource.properties?.customerEncryptionKey?.["keyName"], + keyVersion: resource.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !resource.properties?.networkacls + ? undefined + : { + virtualNetworkRule: resource.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: resource.properties?.networkacls?.["ipRules"].map((p) => ({ value: p["value"], action: p["action"] })), + allowedQueryIpRangeList: resource.properties?.networkacls?.["allowedQueryIpRangeList"], + defaultAction: resource.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !resource.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: resource.properties + ?.managedResourceGroupConfiguration?.["name"], + location: resource.properties?.managedResourceGroupConfiguration?.["location"], + }, + currentMinorVersion: resource.properties?.["currentMinorVersion"], + }, + identity: !resource.identity + ? undefined + : { + type: resource.identity?.["type"], + userAssignedIdentities: resource.identity?.["userAssignedIdentities"], + }, + }, + }); +} +export async function _createDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + result = result; + return { + location: result.body["location"], + tags: result.body["tags"], + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + resourceGuid: result.body.properties?.["resourceGuid"], + provisioningState: result.body.properties?.["provisioningState"], + publisher: result.body.properties?.["publisher"], + product: result.body.properties?.["product"], + majorVersion: result.body.properties?.["majorVersion"], + owners: result.body.properties?.["owners"], + redundancy: result.body.properties?.["redundancy"], + purviewAccount: result.body.properties?.["purviewAccount"], + purviewCollection: result.body.properties?.["purviewCollection"], + privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], + publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: result.body.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !result.body.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: result.body.properties?.customerEncryptionKey?.["keyVaultUri"], + keyName: result.body.properties?.customerEncryptionKey?.["keyName"], + keyVersion: result.body.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !result.body.properties?.networkacls + ? undefined + : { + virtualNetworkRule: result.body.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: result.body.properties?.networkacls?.["ipRules"].map((p) => ({ value: p["value"], action: p["action"] })), + allowedQueryIpRangeList: result.body.properties?.networkacls?.["allowedQueryIpRangeList"], + defaultAction: result.body.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !result.body.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: result.body.properties + ?.managedResourceGroupConfiguration?.["name"], + location: result.body.properties?.managedResourceGroupConfiguration?.["location"], + }, + availableMinorVersions: result.body.properties?.["availableMinorVersions"], + currentMinorVersion: result.body.properties?.["currentMinorVersion"], + documentation: result.body.properties?.["documentation"], + consumptionEndpoints: !result.body.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: result.body.properties?.consumptionEndpoints?.["ingestionUrl"], + ingestionResourceId: result.body.properties?.consumptionEndpoints?.["ingestionResourceId"], + fileAccessUrl: result.body.properties?.consumptionEndpoints?.["fileAccessUrl"], + fileAccessResourceId: result.body.properties?.consumptionEndpoints?.["fileAccessResourceId"], + queryUrl: result.body.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: result.body.properties?.consumptionEndpoints?.["queryResourceId"], + }, + keyVaultUrl: result.body.properties?.["keyVaultUrl"], + }, + identity: !result.body.identity + ? undefined + : { + tenantId: result.body.identity?.["tenantId"], + principalId: result.body.identity?.["principalId"], + type: result.body.identity?.["type"], + userAssignedIdentities: result.body.identity?.["userAssignedIdentities"], + }, + }; +} +/** Create data product resource. */ +export function create(context, subscriptionId, resourceGroupName, dataProductName, resource, options = { requestOptions: {} }) { + return getLongRunningPoller(context, _createDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => _createSend(context, subscriptionId, resourceGroupName, dataProductName, resource, options), + }); +} +export function _getSend(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId, resourceGroupName, dataProductName) + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _getDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + location: result.body["location"], + tags: result.body["tags"], + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + resourceGuid: result.body.properties?.["resourceGuid"], + provisioningState: result.body.properties?.["provisioningState"], + publisher: result.body.properties?.["publisher"], + product: result.body.properties?.["product"], + majorVersion: result.body.properties?.["majorVersion"], + owners: result.body.properties?.["owners"], + redundancy: result.body.properties?.["redundancy"], + purviewAccount: result.body.properties?.["purviewAccount"], + purviewCollection: result.body.properties?.["purviewCollection"], + privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], + publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: result.body.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !result.body.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: result.body.properties?.customerEncryptionKey?.["keyVaultUri"], + keyName: result.body.properties?.customerEncryptionKey?.["keyName"], + keyVersion: result.body.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !result.body.properties?.networkacls + ? undefined + : { + virtualNetworkRule: result.body.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: result.body.properties?.networkacls?.["ipRules"].map((p) => ({ value: p["value"], action: p["action"] })), + allowedQueryIpRangeList: result.body.properties?.networkacls?.["allowedQueryIpRangeList"], + defaultAction: result.body.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !result.body.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: result.body.properties + ?.managedResourceGroupConfiguration?.["name"], + location: result.body.properties?.managedResourceGroupConfiguration?.["location"], + }, + availableMinorVersions: result.body.properties?.["availableMinorVersions"], + currentMinorVersion: result.body.properties?.["currentMinorVersion"], + documentation: result.body.properties?.["documentation"], + consumptionEndpoints: !result.body.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: result.body.properties?.consumptionEndpoints?.["ingestionUrl"], + ingestionResourceId: result.body.properties?.consumptionEndpoints?.["ingestionResourceId"], + fileAccessUrl: result.body.properties?.consumptionEndpoints?.["fileAccessUrl"], + fileAccessResourceId: result.body.properties?.consumptionEndpoints?.["fileAccessResourceId"], + queryUrl: result.body.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: result.body.properties?.consumptionEndpoints?.["queryResourceId"], + }, + keyVaultUrl: result.body.properties?.["keyVaultUrl"], + }, + identity: !result.body.identity + ? undefined + : { + tenantId: result.body.identity?.["tenantId"], + principalId: result.body.identity?.["principalId"], + type: result.body.identity?.["type"], + userAssignedIdentities: result.body.identity?.["userAssignedIdentities"], + }, + }; +} +/** Retrieve data product resource. */ +export async function get(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { + const result = await _getSend(context, subscriptionId, resourceGroupName, dataProductName, options); + return _getDeserialize(result); +} +export function _updateSend(context, subscriptionId, resourceGroupName, dataProductName, properties, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId, resourceGroupName, dataProductName) + .patch({ + ...operationOptionsToRequestParameters(options), + body: { + identity: !properties.identity + ? undefined + : { + type: properties.identity?.["type"], + userAssignedIdentities: properties.identity?.["userAssignedIdentities"], + }, + tags: properties["tags"], + properties: !properties.properties + ? undefined + : { + owners: properties.properties?.["owners"], + purviewAccount: properties.properties?.["purviewAccount"], + purviewCollection: properties.properties?.["purviewCollection"], + privateLinksEnabled: properties.properties?.["privateLinksEnabled"], + currentMinorVersion: properties.properties?.["currentMinorVersion"], + }, + }, + }); +} +export async function _updateDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + result = result; + return { + location: result.body["location"], + tags: result.body["tags"], + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + resourceGuid: result.body.properties?.["resourceGuid"], + provisioningState: result.body.properties?.["provisioningState"], + publisher: result.body.properties?.["publisher"], + product: result.body.properties?.["product"], + majorVersion: result.body.properties?.["majorVersion"], + owners: result.body.properties?.["owners"], + redundancy: result.body.properties?.["redundancy"], + purviewAccount: result.body.properties?.["purviewAccount"], + purviewCollection: result.body.properties?.["purviewCollection"], + privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], + publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: result.body.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !result.body.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: result.body.properties?.customerEncryptionKey?.["keyVaultUri"], + keyName: result.body.properties?.customerEncryptionKey?.["keyName"], + keyVersion: result.body.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !result.body.properties?.networkacls + ? undefined + : { + virtualNetworkRule: result.body.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: result.body.properties?.networkacls?.["ipRules"].map((p) => ({ value: p["value"], action: p["action"] })), + allowedQueryIpRangeList: result.body.properties?.networkacls?.["allowedQueryIpRangeList"], + defaultAction: result.body.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !result.body.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: result.body.properties + ?.managedResourceGroupConfiguration?.["name"], + location: result.body.properties?.managedResourceGroupConfiguration?.["location"], + }, + availableMinorVersions: result.body.properties?.["availableMinorVersions"], + currentMinorVersion: result.body.properties?.["currentMinorVersion"], + documentation: result.body.properties?.["documentation"], + consumptionEndpoints: !result.body.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: result.body.properties?.consumptionEndpoints?.["ingestionUrl"], + ingestionResourceId: result.body.properties?.consumptionEndpoints?.["ingestionResourceId"], + fileAccessUrl: result.body.properties?.consumptionEndpoints?.["fileAccessUrl"], + fileAccessResourceId: result.body.properties?.consumptionEndpoints?.["fileAccessResourceId"], + queryUrl: result.body.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: result.body.properties?.consumptionEndpoints?.["queryResourceId"], + }, + keyVaultUrl: result.body.properties?.["keyVaultUrl"], + }, + identity: !result.body.identity + ? undefined + : { + tenantId: result.body.identity?.["tenantId"], + principalId: result.body.identity?.["principalId"], + type: result.body.identity?.["type"], + userAssignedIdentities: result.body.identity?.["userAssignedIdentities"], + }, + }; +} +/** Update data product resource. */ +export function update(context, subscriptionId, resourceGroupName, dataProductName, properties, options = { requestOptions: {} }) { + return getLongRunningPoller(context, _updateDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => _updateSend(context, subscriptionId, resourceGroupName, dataProductName, properties, options), + }); +} +export function _$deleteSend(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId, resourceGroupName, dataProductName) + .delete({ ...operationOptionsToRequestParameters(options) }); +} +export async function _$deleteDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + result = result; + return; +} +/** Delete data product resource. */ +/** + * @fixme delete is a reserved word that cannot be used as an operation name. + * Please add @clientName("clientName") or @clientName("", "javascript") + * to the operation to override the generated name. + */ +export function $delete(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { + return getLongRunningPoller(context, _$deleteDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => _$deleteSend(context, subscriptionId, resourceGroupName, dataProductName, options), + }); +} +export function _generateStorageAccountSasTokenSend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { + requestOptions: {}, +}) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", subscriptionId, resourceGroupName, dataProductName) + .post({ + ...operationOptionsToRequestParameters(options), + body: { + startTimeStamp: body["startTimeStamp"].toISOString(), + expiryTimeStamp: body["expiryTimeStamp"].toISOString(), + ipAddress: body["ipAddress"], + }, + }); +} +export async function _generateStorageAccountSasTokenDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + storageAccountSasToken: result.body["storageAccountSasToken"], + }; +} +/** Generate sas token for storage account. */ +export async function generateStorageAccountSasToken(context, subscriptionId, resourceGroupName, dataProductName, body, options = { + requestOptions: {}, +}) { + const result = await _generateStorageAccountSasTokenSend(context, subscriptionId, resourceGroupName, dataProductName, body, options); + return _generateStorageAccountSasTokenDeserialize(result); +} +export function _rotateKeySend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", subscriptionId, resourceGroupName, dataProductName) + .post({ + ...operationOptionsToRequestParameters(options), + body: { keyVaultUrl: body["keyVaultUrl"] }, + }); +} +export async function _rotateKeyDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return; +} +/** Initiate key rotation on Data Product. */ +export async function rotateKey(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { + const result = await _rotateKeySend(context, subscriptionId, resourceGroupName, dataProductName, body, options); + return _rotateKeyDeserialize(result); +} +export function _addUserRoleSend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", subscriptionId, resourceGroupName, dataProductName) + .post({ + ...operationOptionsToRequestParameters(options), + body: { + roleId: body["roleId"], + principalId: body["principalId"], + userName: body["userName"], + dataTypeScope: body["dataTypeScope"], + principalType: body["principalType"], + role: body["role"], + }, + }); +} +export async function _addUserRoleDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + roleId: result.body["roleId"], + principalId: result.body["principalId"], + userName: result.body["userName"], + dataTypeScope: result.body["dataTypeScope"], + principalType: result.body["principalType"], + role: result.body["role"], + roleAssignmentId: result.body["roleAssignmentId"], + }; +} +/** Assign role to the data product. */ +export async function addUserRole(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { + const result = await _addUserRoleSend(context, subscriptionId, resourceGroupName, dataProductName, body, options); + return _addUserRoleDeserialize(result); +} +export function _removeUserRoleSend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", subscriptionId, resourceGroupName, dataProductName) + .post({ + ...operationOptionsToRequestParameters(options), + body: { + roleId: body["roleId"], + principalId: body["principalId"], + userName: body["userName"], + dataTypeScope: body["dataTypeScope"], + principalType: body["principalType"], + role: body["role"], + roleAssignmentId: body["roleAssignmentId"], + }, + }); +} +export async function _removeUserRoleDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return; +} +/** Remove role from the data product. */ +export async function removeUserRole(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { + const result = await _removeUserRoleSend(context, subscriptionId, resourceGroupName, dataProductName, body, options); + return _removeUserRoleDeserialize(result); +} +export function _listRolesAssignmentsSend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { + requestOptions: {}, +}) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", subscriptionId, resourceGroupName, dataProductName) + .post({ ...operationOptionsToRequestParameters(options), body: body }); +} +export async function _listRolesAssignmentsDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + count: result.body["count"], + roleAssignmentResponse: result.body["roleAssignmentResponse"].map((p) => ({ + roleId: p["roleId"], + principalId: p["principalId"], + userName: p["userName"], + dataTypeScope: p["dataTypeScope"], + principalType: p["principalType"], + role: p["role"], + roleAssignmentId: p["roleAssignmentId"], + })), + }; +} +/** List user roles associated with the data product. */ +export async function listRolesAssignments(context, subscriptionId, resourceGroupName, dataProductName, body, options = { + requestOptions: {}, +}) { + const result = await _listRolesAssignmentsSend(context, subscriptionId, resourceGroupName, dataProductName, body, options); + return _listRolesAssignmentsDeserialize(result); +} +export function _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options = { + requestOptions: {}, +}) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", subscriptionId, resourceGroupName) + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _listByResourceGroupDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + value: result.body["value"].map((p) => ({ + location: p["location"], + tags: p["tags"], + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + resourceGuid: p.properties?.["resourceGuid"], + provisioningState: p.properties?.["provisioningState"], + publisher: p.properties?.["publisher"], + product: p.properties?.["product"], + majorVersion: p.properties?.["majorVersion"], + owners: p.properties?.["owners"], + redundancy: p.properties?.["redundancy"], + purviewAccount: p.properties?.["purviewAccount"], + purviewCollection: p.properties?.["purviewCollection"], + privateLinksEnabled: p.properties?.["privateLinksEnabled"], + publicNetworkAccess: p.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: p.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !p.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: p.properties?.customerEncryptionKey?.["keyVaultUri"], + keyName: p.properties?.customerEncryptionKey?.["keyName"], + keyVersion: p.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !p.properties?.networkacls + ? undefined + : { + virtualNetworkRule: p.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: p.properties?.networkacls?.["ipRules"].map((p) => ({ + value: p["value"], + action: p["action"], + })), + allowedQueryIpRangeList: p.properties?.networkacls?.["allowedQueryIpRangeList"], + defaultAction: p.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !p.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: p.properties?.managedResourceGroupConfiguration?.["name"], + location: p.properties?.managedResourceGroupConfiguration?.["location"], + }, + availableMinorVersions: p.properties?.["availableMinorVersions"], + currentMinorVersion: p.properties?.["currentMinorVersion"], + documentation: p.properties?.["documentation"], + consumptionEndpoints: !p.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: p.properties?.consumptionEndpoints?.["ingestionUrl"], + ingestionResourceId: p.properties?.consumptionEndpoints?.["ingestionResourceId"], + fileAccessUrl: p.properties?.consumptionEndpoints?.["fileAccessUrl"], + fileAccessResourceId: p.properties?.consumptionEndpoints?.["fileAccessResourceId"], + queryUrl: p.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: p.properties?.consumptionEndpoints?.["queryResourceId"], + }, + keyVaultUrl: p.properties?.["keyVaultUrl"], + }, + identity: !p.identity + ? undefined + : { + tenantId: p.identity?.["tenantId"], + principalId: p.identity?.["principalId"], + type: p.identity?.["type"], + userAssignedIdentities: p.identity?.["userAssignedIdentities"], + }, + })), + nextLink: result.body["nextLink"], + }; +} +/** List data products by resource group. */ +export function listByResourceGroup(context, subscriptionId, resourceGroupName, options = { + requestOptions: {}, +}) { + return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _listByResourceGroupDeserialize, { itemName: "value", nextLinkName: "nextLink" }); +} +export function _listBySubscriptionSend(context, subscriptionId, options = { + requestOptions: {}, +}) { + return context + .path("/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", subscriptionId) + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _listBySubscriptionDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + value: result.body["value"].map((p) => ({ + location: p["location"], + tags: p["tags"], + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + resourceGuid: p.properties?.["resourceGuid"], + provisioningState: p.properties?.["provisioningState"], + publisher: p.properties?.["publisher"], + product: p.properties?.["product"], + majorVersion: p.properties?.["majorVersion"], + owners: p.properties?.["owners"], + redundancy: p.properties?.["redundancy"], + purviewAccount: p.properties?.["purviewAccount"], + purviewCollection: p.properties?.["purviewCollection"], + privateLinksEnabled: p.properties?.["privateLinksEnabled"], + publicNetworkAccess: p.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: p.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !p.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: p.properties?.customerEncryptionKey?.["keyVaultUri"], + keyName: p.properties?.customerEncryptionKey?.["keyName"], + keyVersion: p.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !p.properties?.networkacls + ? undefined + : { + virtualNetworkRule: p.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: p.properties?.networkacls?.["ipRules"].map((p) => ({ + value: p["value"], + action: p["action"], + })), + allowedQueryIpRangeList: p.properties?.networkacls?.["allowedQueryIpRangeList"], + defaultAction: p.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !p.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: p.properties?.managedResourceGroupConfiguration?.["name"], + location: p.properties?.managedResourceGroupConfiguration?.["location"], + }, + availableMinorVersions: p.properties?.["availableMinorVersions"], + currentMinorVersion: p.properties?.["currentMinorVersion"], + documentation: p.properties?.["documentation"], + consumptionEndpoints: !p.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: p.properties?.consumptionEndpoints?.["ingestionUrl"], + ingestionResourceId: p.properties?.consumptionEndpoints?.["ingestionResourceId"], + fileAccessUrl: p.properties?.consumptionEndpoints?.["fileAccessUrl"], + fileAccessResourceId: p.properties?.consumptionEndpoints?.["fileAccessResourceId"], + queryUrl: p.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: p.properties?.consumptionEndpoints?.["queryResourceId"], + }, + keyVaultUrl: p.properties?.["keyVaultUrl"], + }, + identity: !p.identity + ? undefined + : { + tenantId: p.identity?.["tenantId"], + principalId: p.identity?.["principalId"], + type: p.identity?.["type"], + userAssignedIdentities: p.identity?.["userAssignedIdentities"], + }, + })), + nextLink: result.body["nextLink"], + }; +} +/** List data products by subscription. */ +export function listBySubscription(context, subscriptionId, options = { + requestOptions: {}, +}) { + return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, subscriptionId, options), _listBySubscriptionDeserialize, { itemName: "value", nextLinkName: "nextLink" }); +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js.map new file mode 100644 index 00000000000..66f0d1646d4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAc5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EA6BL,YAAY,GAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mCAAmC,EACnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAejC,MAAM,UAAU,WAAW,CACzB,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,QAAqB,EACrB,UAA4C,EAAE,cAAc,EAAE,EAAE,EAAE;IAOlE,OAAO,OAAO;SACX,IAAI,CACH,wIAAwI,EACxI,cAAc,EACd,iBAAiB,EACjB,eAAe,CAChB;SACA,GAAG,CAAC;QACH,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,IAAI,EAAE;YACJ,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC;YAC9B,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC;YACtB,UAAU,EAAE,CAAC,QAAQ,CAAC,UAAU;gBAC9B,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC;oBACE,SAAS,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC;oBAC7C,OAAO,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC;oBACzC,YAAY,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAC,cAAc,CAAC;oBACnD,MAAM,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAC,QAA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Q,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC;oBAClC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC;oBACxC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC;oBAC1B,sBAAsB,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,wBAAwB,CAAC;iBAC/D;SACN,CAAC,CAAC;QACH,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,0CAA0C;AAC1C,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,cAAsB,EACtB,UAAwD;IACtD,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAC/D,8BAA8B,EAC9B,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.ts new file mode 100644 index 00000000000..6a682a1cc3d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.ts @@ -0,0 +1,1410 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getLongRunningPoller } from "../pollingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; +import { + DataProduct, + DataProductUpdate, + AccountSas, + AccountSasToken, + KeyVaultInfo, + RoleAssignmentCommonProperties, + RoleAssignmentDetail, + ListRoleAssignments, + DataProductListResult, +} from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { + DataProductsAddUserRole200Response, + DataProductsAddUserRoleDefaultResponse, + DataProductsCreate200Response, + DataProductsCreate201Response, + DataProductsCreateDefaultResponse, + DataProductsCreateLogicalResponse, + DataProductsDelete202Response, + DataProductsDelete204Response, + DataProductsDeleteDefaultResponse, + DataProductsDeleteLogicalResponse, + DataProductsGenerateStorageAccountSasToken200Response, + DataProductsGenerateStorageAccountSasTokenDefaultResponse, + DataProductsGet200Response, + DataProductsGetDefaultResponse, + DataProductsListByResourceGroup200Response, + DataProductsListByResourceGroupDefaultResponse, + DataProductsListBySubscription200Response, + DataProductsListBySubscriptionDefaultResponse, + DataProductsListRolesAssignments200Response, + DataProductsListRolesAssignmentsDefaultResponse, + DataProductsRemoveUserRole204Response, + DataProductsRemoveUserRoleDefaultResponse, + DataProductsRotateKey204Response, + DataProductsRotateKeyDefaultResponse, + DataProductsUpdate200Response, + DataProductsUpdate202Response, + DataProductsUpdateDefaultResponse, + DataProductsUpdateLogicalResponse, + isUnexpected, + NetworkAnalyticsContext as Client, +} from "../../rest/index.js"; +import { + StreamableMethod, + operationOptionsToRequestParameters, + createRestError, +} from "@azure-rest/core-client"; +import { + DataProductsCreateOptionalParams, + DataProductsGetOptionalParams, + DataProductsUpdateOptionalParams, + DataProductsDeleteOptionalParams, + DataProductsGenerateStorageAccountSasTokenOptionalParams, + DataProductsRotateKeyOptionalParams, + DataProductsAddUserRoleOptionalParams, + DataProductsRemoveUserRoleOptionalParams, + DataProductsListRolesAssignmentsOptionalParams, + DataProductsListByResourceGroupOptionalParams, + DataProductsListBySubscriptionOptionalParams, +} from "../../models/options.js"; + +export function _createSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + resource: DataProduct, + options: DataProductsCreateOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataProductsCreate200Response + | DataProductsCreate201Response + | DataProductsCreateDefaultResponse + | DataProductsCreateLogicalResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: { + location: resource["location"], + tags: resource["tags"], + properties: !resource.properties + ? undefined + : { + publisher: resource.properties?.["publisher"], + product: resource.properties?.["product"], + majorVersion: resource.properties?.["majorVersion"], + owners: resource.properties?.["owners"], + redundancy: resource.properties?.["redundancy"], + purviewAccount: resource.properties?.["purviewAccount"], + purviewCollection: resource.properties?.["purviewCollection"], + privateLinksEnabled: resource.properties?.["privateLinksEnabled"], + publicNetworkAccess: resource.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: + resource.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !resource.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: + resource.properties?.customerEncryptionKey?.[ + "keyVaultUri" + ], + keyName: + resource.properties?.customerEncryptionKey?.["keyName"], + keyVersion: + resource.properties?.customerEncryptionKey?.[ + "keyVersion" + ], + }, + networkacls: !resource.properties?.networkacls + ? undefined + : { + virtualNetworkRule: resource.properties?.networkacls?.[ + "virtualNetworkRule" + ].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: resource.properties?.networkacls?.["ipRules"].map( + (p) => ({ value: p["value"], action: p["action"] }), + ), + allowedQueryIpRangeList: + resource.properties?.networkacls?.[ + "allowedQueryIpRangeList" + ], + defaultAction: + resource.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !resource.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: resource.properties + ?.managedResourceGroupConfiguration?.["name"], + location: + resource.properties?.managedResourceGroupConfiguration?.[ + "location" + ], + }, + currentMinorVersion: resource.properties?.["currentMinorVersion"], + }, + identity: !resource.identity + ? undefined + : { + type: resource.identity?.["type"], + userAssignedIdentities: + resource.identity?.["userAssignedIdentities"], + }, + }, + }); +} + +export async function _createDeserialize( + result: + | DataProductsCreate200Response + | DataProductsCreate201Response + | DataProductsCreateDefaultResponse + | DataProductsCreateLogicalResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + result = result as DataProductsCreateLogicalResponse; + return { + location: result.body["location"], + tags: result.body["tags"], + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: + result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: + result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + resourceGuid: result.body.properties?.["resourceGuid"], + provisioningState: result.body.properties?.["provisioningState"], + publisher: result.body.properties?.["publisher"], + product: result.body.properties?.["product"], + majorVersion: result.body.properties?.["majorVersion"], + owners: result.body.properties?.["owners"], + redundancy: result.body.properties?.["redundancy"], + purviewAccount: result.body.properties?.["purviewAccount"], + purviewCollection: result.body.properties?.["purviewCollection"], + privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], + publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: + result.body.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !result.body.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: + result.body.properties?.customerEncryptionKey?.[ + "keyVaultUri" + ], + keyName: + result.body.properties?.customerEncryptionKey?.["keyName"], + keyVersion: + result.body.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !result.body.properties?.networkacls + ? undefined + : { + virtualNetworkRule: result.body.properties?.networkacls?.[ + "virtualNetworkRule" + ].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: result.body.properties?.networkacls?.["ipRules"].map( + (p) => ({ value: p["value"], action: p["action"] }), + ), + allowedQueryIpRangeList: + result.body.properties?.networkacls?.[ + "allowedQueryIpRangeList" + ], + defaultAction: + result.body.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !result.body.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: result.body.properties + ?.managedResourceGroupConfiguration?.["name"], + location: + result.body.properties?.managedResourceGroupConfiguration?.[ + "location" + ], + }, + availableMinorVersions: + result.body.properties?.["availableMinorVersions"], + currentMinorVersion: result.body.properties?.["currentMinorVersion"], + documentation: result.body.properties?.["documentation"], + consumptionEndpoints: !result.body.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: + result.body.properties?.consumptionEndpoints?.[ + "ingestionUrl" + ], + ingestionResourceId: + result.body.properties?.consumptionEndpoints?.[ + "ingestionResourceId" + ], + fileAccessUrl: + result.body.properties?.consumptionEndpoints?.[ + "fileAccessUrl" + ], + fileAccessResourceId: + result.body.properties?.consumptionEndpoints?.[ + "fileAccessResourceId" + ], + queryUrl: + result.body.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: + result.body.properties?.consumptionEndpoints?.[ + "queryResourceId" + ], + }, + keyVaultUrl: result.body.properties?.["keyVaultUrl"], + }, + identity: !result.body.identity + ? undefined + : { + tenantId: result.body.identity?.["tenantId"], + principalId: result.body.identity?.["principalId"], + type: result.body.identity?.["type"], + userAssignedIdentities: + result.body.identity?.["userAssignedIdentities"], + }, + }; +} + +/** Create data product resource. */ +export function create( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + resource: DataProduct, + options: DataProductsCreateOptionalParams = { requestOptions: {} }, +): PollerLike, DataProduct> { + return getLongRunningPoller(context, _createDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _createSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + resource, + options, + ), + }) as PollerLike, DataProduct>; +} + +export function _getSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options: DataProductsGetOptionalParams = { requestOptions: {} }, +): StreamableMethod< + DataProductsGet200Response | DataProductsGetDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _getDeserialize( + result: DataProductsGet200Response | DataProductsGetDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + location: result.body["location"], + tags: result.body["tags"], + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: + result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: + result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + resourceGuid: result.body.properties?.["resourceGuid"], + provisioningState: result.body.properties?.["provisioningState"], + publisher: result.body.properties?.["publisher"], + product: result.body.properties?.["product"], + majorVersion: result.body.properties?.["majorVersion"], + owners: result.body.properties?.["owners"], + redundancy: result.body.properties?.["redundancy"], + purviewAccount: result.body.properties?.["purviewAccount"], + purviewCollection: result.body.properties?.["purviewCollection"], + privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], + publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: + result.body.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !result.body.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: + result.body.properties?.customerEncryptionKey?.[ + "keyVaultUri" + ], + keyName: + result.body.properties?.customerEncryptionKey?.["keyName"], + keyVersion: + result.body.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !result.body.properties?.networkacls + ? undefined + : { + virtualNetworkRule: result.body.properties?.networkacls?.[ + "virtualNetworkRule" + ].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: result.body.properties?.networkacls?.["ipRules"].map( + (p) => ({ value: p["value"], action: p["action"] }), + ), + allowedQueryIpRangeList: + result.body.properties?.networkacls?.[ + "allowedQueryIpRangeList" + ], + defaultAction: + result.body.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !result.body.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: result.body.properties + ?.managedResourceGroupConfiguration?.["name"], + location: + result.body.properties?.managedResourceGroupConfiguration?.[ + "location" + ], + }, + availableMinorVersions: + result.body.properties?.["availableMinorVersions"], + currentMinorVersion: result.body.properties?.["currentMinorVersion"], + documentation: result.body.properties?.["documentation"], + consumptionEndpoints: !result.body.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: + result.body.properties?.consumptionEndpoints?.[ + "ingestionUrl" + ], + ingestionResourceId: + result.body.properties?.consumptionEndpoints?.[ + "ingestionResourceId" + ], + fileAccessUrl: + result.body.properties?.consumptionEndpoints?.[ + "fileAccessUrl" + ], + fileAccessResourceId: + result.body.properties?.consumptionEndpoints?.[ + "fileAccessResourceId" + ], + queryUrl: + result.body.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: + result.body.properties?.consumptionEndpoints?.[ + "queryResourceId" + ], + }, + keyVaultUrl: result.body.properties?.["keyVaultUrl"], + }, + identity: !result.body.identity + ? undefined + : { + tenantId: result.body.identity?.["tenantId"], + principalId: result.body.identity?.["principalId"], + type: result.body.identity?.["type"], + userAssignedIdentities: + result.body.identity?.["userAssignedIdentities"], + }, + }; +} + +/** Retrieve data product resource. */ +export async function get( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options: DataProductsGetOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _getSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + options, + ); + return _getDeserialize(result); +} + +export function _updateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + properties: DataProductUpdate, + options: DataProductsUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataProductsUpdate200Response + | DataProductsUpdate202Response + | DataProductsUpdateDefaultResponse + | DataProductsUpdateLogicalResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: { + identity: !properties.identity + ? undefined + : { + type: properties.identity?.["type"], + userAssignedIdentities: + properties.identity?.["userAssignedIdentities"], + }, + tags: properties["tags"], + properties: !properties.properties + ? undefined + : { + owners: properties.properties?.["owners"], + purviewAccount: properties.properties?.["purviewAccount"], + purviewCollection: properties.properties?.["purviewCollection"], + privateLinksEnabled: + properties.properties?.["privateLinksEnabled"], + currentMinorVersion: + properties.properties?.["currentMinorVersion"], + }, + }, + }); +} + +export async function _updateDeserialize( + result: + | DataProductsUpdate200Response + | DataProductsUpdate202Response + | DataProductsUpdateDefaultResponse + | DataProductsUpdateLogicalResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + result = result as DataProductsUpdateLogicalResponse; + return { + location: result.body["location"], + tags: result.body["tags"], + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: + result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: + result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + resourceGuid: result.body.properties?.["resourceGuid"], + provisioningState: result.body.properties?.["provisioningState"], + publisher: result.body.properties?.["publisher"], + product: result.body.properties?.["product"], + majorVersion: result.body.properties?.["majorVersion"], + owners: result.body.properties?.["owners"], + redundancy: result.body.properties?.["redundancy"], + purviewAccount: result.body.properties?.["purviewAccount"], + purviewCollection: result.body.properties?.["purviewCollection"], + privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], + publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: + result.body.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !result.body.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: + result.body.properties?.customerEncryptionKey?.[ + "keyVaultUri" + ], + keyName: + result.body.properties?.customerEncryptionKey?.["keyName"], + keyVersion: + result.body.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !result.body.properties?.networkacls + ? undefined + : { + virtualNetworkRule: result.body.properties?.networkacls?.[ + "virtualNetworkRule" + ].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: result.body.properties?.networkacls?.["ipRules"].map( + (p) => ({ value: p["value"], action: p["action"] }), + ), + allowedQueryIpRangeList: + result.body.properties?.networkacls?.[ + "allowedQueryIpRangeList" + ], + defaultAction: + result.body.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !result.body.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: result.body.properties + ?.managedResourceGroupConfiguration?.["name"], + location: + result.body.properties?.managedResourceGroupConfiguration?.[ + "location" + ], + }, + availableMinorVersions: + result.body.properties?.["availableMinorVersions"], + currentMinorVersion: result.body.properties?.["currentMinorVersion"], + documentation: result.body.properties?.["documentation"], + consumptionEndpoints: !result.body.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: + result.body.properties?.consumptionEndpoints?.[ + "ingestionUrl" + ], + ingestionResourceId: + result.body.properties?.consumptionEndpoints?.[ + "ingestionResourceId" + ], + fileAccessUrl: + result.body.properties?.consumptionEndpoints?.[ + "fileAccessUrl" + ], + fileAccessResourceId: + result.body.properties?.consumptionEndpoints?.[ + "fileAccessResourceId" + ], + queryUrl: + result.body.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: + result.body.properties?.consumptionEndpoints?.[ + "queryResourceId" + ], + }, + keyVaultUrl: result.body.properties?.["keyVaultUrl"], + }, + identity: !result.body.identity + ? undefined + : { + tenantId: result.body.identity?.["tenantId"], + principalId: result.body.identity?.["principalId"], + type: result.body.identity?.["type"], + userAssignedIdentities: + result.body.identity?.["userAssignedIdentities"], + }, + }; +} + +/** Update data product resource. */ +export function update( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + properties: DataProductUpdate, + options: DataProductsUpdateOptionalParams = { requestOptions: {} }, +): PollerLike, DataProduct> { + return getLongRunningPoller(context, _updateDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _updateSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + properties, + options, + ), + }) as PollerLike, DataProduct>; +} + +export function _$deleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options: DataProductsDeleteOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataProductsDelete202Response + | DataProductsDelete204Response + | DataProductsDeleteDefaultResponse + | DataProductsDeleteLogicalResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _$deleteDeserialize( + result: + | DataProductsDelete202Response + | DataProductsDelete204Response + | DataProductsDeleteDefaultResponse + | DataProductsDeleteLogicalResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + result = result as DataProductsDeleteLogicalResponse; + return; +} + +/** Delete data product resource. */ +/** + * @fixme delete is a reserved word that cannot be used as an operation name. + * Please add @clientName("clientName") or @clientName("", "javascript") + * to the operation to override the generated name. + */ +export function $delete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options: DataProductsDeleteOptionalParams = { requestOptions: {} }, +): PollerLike, void> { + return getLongRunningPoller(context, _$deleteDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _$deleteSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + options, + ), + }) as PollerLike, void>; +} + +export function _generateStorageAccountSasTokenSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: AccountSas, + options: DataProductsGenerateStorageAccountSasTokenOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod< + | DataProductsGenerateStorageAccountSasToken200Response + | DataProductsGenerateStorageAccountSasTokenDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .post({ + ...operationOptionsToRequestParameters(options), + body: { + startTimeStamp: body["startTimeStamp"].toISOString(), + expiryTimeStamp: body["expiryTimeStamp"].toISOString(), + ipAddress: body["ipAddress"], + }, + }); +} + +export async function _generateStorageAccountSasTokenDeserialize( + result: + | DataProductsGenerateStorageAccountSasToken200Response + | DataProductsGenerateStorageAccountSasTokenDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + storageAccountSasToken: result.body["storageAccountSasToken"], + }; +} + +/** Generate sas token for storage account. */ +export async function generateStorageAccountSasToken( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: AccountSas, + options: DataProductsGenerateStorageAccountSasTokenOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _generateStorageAccountSasTokenSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ); + return _generateStorageAccountSasTokenDeserialize(result); +} + +export function _rotateKeySend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: KeyVaultInfo, + options: DataProductsRotateKeyOptionalParams = { requestOptions: {} }, +): StreamableMethod< + DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .post({ + ...operationOptionsToRequestParameters(options), + body: { keyVaultUrl: body["keyVaultUrl"] }, + }); +} + +export async function _rotateKeyDeserialize( + result: + | DataProductsRotateKey204Response + | DataProductsRotateKeyDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return; +} + +/** Initiate key rotation on Data Product. */ +export async function rotateKey( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: KeyVaultInfo, + options: DataProductsRotateKeyOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _rotateKeySend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ); + return _rotateKeyDeserialize(result); +} + +export function _addUserRoleSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentCommonProperties, + options: DataProductsAddUserRoleOptionalParams = { requestOptions: {} }, +): StreamableMethod< + DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .post({ + ...operationOptionsToRequestParameters(options), + body: { + roleId: body["roleId"], + principalId: body["principalId"], + userName: body["userName"], + dataTypeScope: body["dataTypeScope"], + principalType: body["principalType"], + role: body["role"], + }, + }); +} + +export async function _addUserRoleDeserialize( + result: + | DataProductsAddUserRole200Response + | DataProductsAddUserRoleDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + roleId: result.body["roleId"], + principalId: result.body["principalId"], + userName: result.body["userName"], + dataTypeScope: result.body["dataTypeScope"], + principalType: result.body["principalType"], + role: result.body["role"], + roleAssignmentId: result.body["roleAssignmentId"], + }; +} + +/** Assign role to the data product. */ +export async function addUserRole( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentCommonProperties, + options: DataProductsAddUserRoleOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _addUserRoleSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ); + return _addUserRoleDeserialize(result); +} + +export function _removeUserRoleSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentDetail, + options: DataProductsRemoveUserRoleOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataProductsRemoveUserRole204Response + | DataProductsRemoveUserRoleDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .post({ + ...operationOptionsToRequestParameters(options), + body: { + roleId: body["roleId"], + principalId: body["principalId"], + userName: body["userName"], + dataTypeScope: body["dataTypeScope"], + principalType: body["principalType"], + role: body["role"], + roleAssignmentId: body["roleAssignmentId"], + }, + }); +} + +export async function _removeUserRoleDeserialize( + result: + | DataProductsRemoveUserRole204Response + | DataProductsRemoveUserRoleDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return; +} + +/** Remove role from the data product. */ +export async function removeUserRole( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentDetail, + options: DataProductsRemoveUserRoleOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _removeUserRoleSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ); + return _removeUserRoleDeserialize(result); +} + +export function _listRolesAssignmentsSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: Record, + options: DataProductsListRolesAssignmentsOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod< + | DataProductsListRolesAssignments200Response + | DataProductsListRolesAssignmentsDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .post({ ...operationOptionsToRequestParameters(options), body: body }); +} + +export async function _listRolesAssignmentsDeserialize( + result: + | DataProductsListRolesAssignments200Response + | DataProductsListRolesAssignmentsDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + count: result.body["count"], + roleAssignmentResponse: result.body["roleAssignmentResponse"].map((p) => ({ + roleId: p["roleId"], + principalId: p["principalId"], + userName: p["userName"], + dataTypeScope: p["dataTypeScope"], + principalType: p["principalType"], + role: p["role"], + roleAssignmentId: p["roleAssignmentId"], + })), + }; +} + +/** List user roles associated with the data product. */ +export async function listRolesAssignments( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: Record, + options: DataProductsListRolesAssignmentsOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _listRolesAssignmentsSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ); + return _listRolesAssignmentsDeserialize(result); +} + +export function _listByResourceGroupSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: DataProductsListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod< + | DataProductsListByResourceGroup200Response + | DataProductsListByResourceGroupDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", + subscriptionId, + resourceGroupName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _listByResourceGroupDeserialize( + result: + | DataProductsListByResourceGroup200Response + | DataProductsListByResourceGroupDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + value: result.body["value"].map((p) => ({ + location: p["location"], + tags: p["tags"], + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: + p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: + p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + resourceGuid: p.properties?.["resourceGuid"], + provisioningState: p.properties?.["provisioningState"], + publisher: p.properties?.["publisher"], + product: p.properties?.["product"], + majorVersion: p.properties?.["majorVersion"], + owners: p.properties?.["owners"], + redundancy: p.properties?.["redundancy"], + purviewAccount: p.properties?.["purviewAccount"], + purviewCollection: p.properties?.["purviewCollection"], + privateLinksEnabled: p.properties?.["privateLinksEnabled"], + publicNetworkAccess: p.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: + p.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !p.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: + p.properties?.customerEncryptionKey?.["keyVaultUri"], + keyName: p.properties?.customerEncryptionKey?.["keyName"], + keyVersion: + p.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !p.properties?.networkacls + ? undefined + : { + virtualNetworkRule: p.properties?.networkacls?.[ + "virtualNetworkRule" + ].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: p.properties?.networkacls?.["ipRules"].map((p) => ({ + value: p["value"], + action: p["action"], + })), + allowedQueryIpRangeList: + p.properties?.networkacls?.["allowedQueryIpRangeList"], + defaultAction: p.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !p.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: p.properties?.managedResourceGroupConfiguration?.[ + "name" + ], + location: + p.properties?.managedResourceGroupConfiguration?.[ + "location" + ], + }, + availableMinorVersions: p.properties?.["availableMinorVersions"], + currentMinorVersion: p.properties?.["currentMinorVersion"], + documentation: p.properties?.["documentation"], + consumptionEndpoints: !p.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: + p.properties?.consumptionEndpoints?.["ingestionUrl"], + ingestionResourceId: + p.properties?.consumptionEndpoints?.["ingestionResourceId"], + fileAccessUrl: + p.properties?.consumptionEndpoints?.["fileAccessUrl"], + fileAccessResourceId: + p.properties?.consumptionEndpoints?.[ + "fileAccessResourceId" + ], + queryUrl: p.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: + p.properties?.consumptionEndpoints?.["queryResourceId"], + }, + keyVaultUrl: p.properties?.["keyVaultUrl"], + }, + identity: !p.identity + ? undefined + : { + tenantId: p.identity?.["tenantId"], + principalId: p.identity?.["principalId"], + type: p.identity?.["type"], + userAssignedIdentities: p.identity?.["userAssignedIdentities"], + }, + })), + nextLink: result.body["nextLink"], + }; +} + +/** List data products by resource group. */ +export function listByResourceGroup( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: DataProductsListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _listByResourceGroupSend( + context, + subscriptionId, + resourceGroupName, + options, + ), + _listByResourceGroupDeserialize, + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _listBySubscriptionSend( + context: Client, + subscriptionId: string, + options: DataProductsListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod< + | DataProductsListBySubscription200Response + | DataProductsListBySubscriptionDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", + subscriptionId, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _listBySubscriptionDeserialize( + result: + | DataProductsListBySubscription200Response + | DataProductsListBySubscriptionDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + value: result.body["value"].map((p) => ({ + location: p["location"], + tags: p["tags"], + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: + p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: + p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + resourceGuid: p.properties?.["resourceGuid"], + provisioningState: p.properties?.["provisioningState"], + publisher: p.properties?.["publisher"], + product: p.properties?.["product"], + majorVersion: p.properties?.["majorVersion"], + owners: p.properties?.["owners"], + redundancy: p.properties?.["redundancy"], + purviewAccount: p.properties?.["purviewAccount"], + purviewCollection: p.properties?.["purviewCollection"], + privateLinksEnabled: p.properties?.["privateLinksEnabled"], + publicNetworkAccess: p.properties?.["publicNetworkAccess"], + customerManagedKeyEncryptionEnabled: + p.properties?.["customerManagedKeyEncryptionEnabled"], + customerEncryptionKey: !p.properties?.customerEncryptionKey + ? undefined + : { + keyVaultUri: + p.properties?.customerEncryptionKey?.["keyVaultUri"], + keyName: p.properties?.customerEncryptionKey?.["keyName"], + keyVersion: + p.properties?.customerEncryptionKey?.["keyVersion"], + }, + networkacls: !p.properties?.networkacls + ? undefined + : { + virtualNetworkRule: p.properties?.networkacls?.[ + "virtualNetworkRule" + ].map((p) => ({ + id: p["id"], + action: p["action"], + state: p["state"], + })), + ipRules: p.properties?.networkacls?.["ipRules"].map((p) => ({ + value: p["value"], + action: p["action"], + })), + allowedQueryIpRangeList: + p.properties?.networkacls?.["allowedQueryIpRangeList"], + defaultAction: p.properties?.networkacls?.["defaultAction"], + }, + managedResourceGroupConfiguration: !p.properties + ?.managedResourceGroupConfiguration + ? undefined + : { + name: p.properties?.managedResourceGroupConfiguration?.[ + "name" + ], + location: + p.properties?.managedResourceGroupConfiguration?.[ + "location" + ], + }, + availableMinorVersions: p.properties?.["availableMinorVersions"], + currentMinorVersion: p.properties?.["currentMinorVersion"], + documentation: p.properties?.["documentation"], + consumptionEndpoints: !p.properties?.consumptionEndpoints + ? undefined + : { + ingestionUrl: + p.properties?.consumptionEndpoints?.["ingestionUrl"], + ingestionResourceId: + p.properties?.consumptionEndpoints?.["ingestionResourceId"], + fileAccessUrl: + p.properties?.consumptionEndpoints?.["fileAccessUrl"], + fileAccessResourceId: + p.properties?.consumptionEndpoints?.[ + "fileAccessResourceId" + ], + queryUrl: p.properties?.consumptionEndpoints?.["queryUrl"], + queryResourceId: + p.properties?.consumptionEndpoints?.["queryResourceId"], + }, + keyVaultUrl: p.properties?.["keyVaultUrl"], + }, + identity: !p.identity + ? undefined + : { + tenantId: p.identity?.["tenantId"], + principalId: p.identity?.["principalId"], + type: p.identity?.["type"], + userAssignedIdentities: p.identity?.["userAssignedIdentities"], + }, + })), + nextLink: result.body["nextLink"], + }; +} + +/** List data products by subscription. */ +export function listBySubscription( + context: Client, + subscriptionId: string, + options: DataProductsListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _listBySubscriptionSend(context, subscriptionId, options), + _listBySubscriptionDeserialize, + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts new file mode 100644 index 00000000000..de8b209d781 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts @@ -0,0 +1,18 @@ +import { DataProductsCatalog, DataProductsCatalogListResult } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { DataProductsCatalogsGet200Response, DataProductsCatalogsGetDefaultResponse, DataProductsCatalogsListByResourceGroup200Response, DataProductsCatalogsListByResourceGroupDefaultResponse, DataProductsCatalogsListBySubscription200Response, DataProductsCatalogsListBySubscriptionDefaultResponse, NetworkAnalyticsContext as Client } from "../../rest/index.js"; +import { StreamableMethod } from "@azure-rest/core-client"; +import { DataProductsCatalogsGetOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsListBySubscriptionOptionalParams } from "../../models/options.js"; +export declare function _getSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): StreamableMethod; +export declare function _getDeserialize(result: DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse): Promise; +/** Retrieve data type resource. */ +export declare function get(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; +export declare function _listByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): StreamableMethod; +export declare function _listByResourceGroupDeserialize(result: DataProductsCatalogsListByResourceGroup200Response | DataProductsCatalogsListByResourceGroupDefaultResponse): Promise; +/** List data catalog by resource group. */ +export declare function listByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; +export declare function _listBySubscriptionSend(context: Client, subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams): StreamableMethod; +export declare function _listBySubscriptionDeserialize(result: DataProductsCatalogsListBySubscription200Response | DataProductsCatalogsListBySubscriptionDefaultResponse): Promise; +/** List data catalog by subscription. */ +export declare function listBySubscription(context: Client, subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts.map new file mode 100644 index 00000000000..4c93ba0196b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EACL,kCAAkC,EAClC,sCAAsC,EACtC,kDAAkD,EAClD,sDAAsD,EACtD,iDAAiD,EACjD,qDAAqD,EAErD,uBAAuB,IAAI,MAAM,EAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qCAAqC,EACrC,qDAAqD,EACrD,oDAAoD,EACrD,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EAC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tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js new file mode 100644 index 00000000000..dd5950c7c70 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { isUnexpected, } from "../../rest/index.js"; +import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client"; +export function _getSend(context, subscriptionId, resourceGroupName, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", subscriptionId, resourceGroupName) + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _getDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + provisioningState: result.body.properties?.["provisioningState"], + publishers: result.body.properties?.["publishers"].map((p) => ({ + publisherName: p["publisherName"], + dataProducts: p["dataProducts"].map((p) => ({ + dataProductName: p["dataProductName"], + description: p["description"], + dataProductVersions: p["dataProductVersions"].map((p) => ({ + version: p["version"], + })), + })), + })), + }, + }; +} +/** Retrieve data type resource. */ +export async function get(context, subscriptionId, resourceGroupName, options = { requestOptions: {} }) { + const result = await _getSend(context, subscriptionId, resourceGroupName, options); + return _getDeserialize(result); +} +export function _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options = { + requestOptions: {}, +}) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", subscriptionId, resourceGroupName) + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _listByResourceGroupDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + value: result.body["value"].map((p) => ({ + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + provisioningState: p.properties?.["provisioningState"], + publishers: p.properties?.["publishers"].map((p) => ({ + publisherName: p["publisherName"], + dataProducts: p["dataProducts"].map((p) => ({ + dataProductName: p["dataProductName"], + description: p["description"], + dataProductVersions: p["dataProductVersions"].map((p) => ({ + version: p["version"], + })), + })), + })), + }, + })), + nextLink: result.body["nextLink"], + }; +} +/** List data catalog by resource group. */ +export function listByResourceGroup(context, subscriptionId, resourceGroupName, options = { + requestOptions: {}, +}) { + return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _listByResourceGroupDeserialize, { itemName: "value", nextLinkName: "nextLink" }); +} +export function _listBySubscriptionSend(context, subscriptionId, options = { + requestOptions: {}, +}) { + return context + .path("/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", subscriptionId) + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _listBySubscriptionDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + value: result.body["value"].map((p) => ({ + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + provisioningState: p.properties?.["provisioningState"], + publishers: p.properties?.["publishers"].map((p) => ({ + publisherName: p["publisherName"], + dataProducts: p["dataProducts"].map((p) => ({ + dataProductName: p["dataProductName"], + description: p["description"], + dataProductVersions: p["dataProductVersions"].map((p) => ({ + version: p["version"], + })), + })), + })), + }, + })), + nextLink: result.body["nextLink"], + }; +} +/** List data catalog by subscription. */ +export function listBySubscription(context, subscriptionId, options = { + requestOptions: {}, +}) { + return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, subscriptionId, options), _listBySubscriptionDeserialize, { itemName: "value", nextLinkName: "nextLink" }); +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js.map new file mode 100644 index 00000000000..6f33195e3ce --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAOL,YAAY,GAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mCAAmC,EACnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAOjC,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAIvE,OAAO,OAAO;SACX,IAAI,CACH,sIAAsI,EACtI,cAAc,EACd,iBAAiB,CAClB;SACA,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAE0C;IAE1C,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QACL,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACzB,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;YACjC,CAAC,CAAC,SAAS;YACX,CAAC,CAAC;gBACE,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC;gBAChD,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,eAAe,CAAC;gBACxD,SAAS,EACP,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW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AC;QACH,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,yCAAyC;AACzC,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,cAAsB,EACtB,UAAgE;IAC9D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAC/D,8BAA8B,EAC9B,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.ts new file mode 100644 index 00000000000..1153d3e39c9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.ts @@ -0,0 +1,286 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + DataProductsCatalog, + DataProductsCatalogListResult, +} from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { + DataProductsCatalogsGet200Response, + DataProductsCatalogsGetDefaultResponse, + DataProductsCatalogsListByResourceGroup200Response, + DataProductsCatalogsListByResourceGroupDefaultResponse, + DataProductsCatalogsListBySubscription200Response, + DataProductsCatalogsListBySubscriptionDefaultResponse, + isUnexpected, + NetworkAnalyticsContext as Client, +} from "../../rest/index.js"; +import { + StreamableMethod, + operationOptionsToRequestParameters, + createRestError, +} from "@azure-rest/core-client"; +import { + DataProductsCatalogsGetOptionalParams, + DataProductsCatalogsListByResourceGroupOptionalParams, + DataProductsCatalogsListBySubscriptionOptionalParams, +} from "../../models/options.js"; + +export function _getSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: DataProductsCatalogsGetOptionalParams = { requestOptions: {} }, +): StreamableMethod< + DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", + subscriptionId, + resourceGroupName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _getDeserialize( + result: + | DataProductsCatalogsGet200Response + | DataProductsCatalogsGetDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: + result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: + result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + provisioningState: result.body.properties?.["provisioningState"], + publishers: result.body.properties?.["publishers"].map((p) => ({ + publisherName: p["publisherName"], + dataProducts: p["dataProducts"].map((p) => ({ + dataProductName: p["dataProductName"], + description: p["description"], + dataProductVersions: p["dataProductVersions"].map((p) => ({ + version: p["version"], + })), + })), + })), + }, + }; +} + +/** Retrieve data type resource. */ +export async function get( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: DataProductsCatalogsGetOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _getSend( + context, + subscriptionId, + resourceGroupName, + options, + ); + return _getDeserialize(result); +} + +export function _listByResourceGroupSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: DataProductsCatalogsListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod< + | DataProductsCatalogsListByResourceGroup200Response + | DataProductsCatalogsListByResourceGroupDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + subscriptionId, + resourceGroupName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _listByResourceGroupDeserialize( + result: + | DataProductsCatalogsListByResourceGroup200Response + | DataProductsCatalogsListByResourceGroupDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + value: result.body["value"].map((p) => ({ + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: + p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: + p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + provisioningState: p.properties?.["provisioningState"], + publishers: p.properties?.["publishers"].map((p) => ({ + publisherName: p["publisherName"], + dataProducts: p["dataProducts"].map((p) => ({ + dataProductName: p["dataProductName"], + description: p["description"], + dataProductVersions: p["dataProductVersions"].map((p) => ({ + version: p["version"], + })), + })), + })), + }, + })), + nextLink: result.body["nextLink"], + }; +} + +/** List data catalog by resource group. */ +export function listByResourceGroup( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: DataProductsCatalogsListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _listByResourceGroupSend( + context, + subscriptionId, + resourceGroupName, + options, + ), + _listByResourceGroupDeserialize, + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _listBySubscriptionSend( + context: Client, + subscriptionId: string, + options: DataProductsCatalogsListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod< + | DataProductsCatalogsListBySubscription200Response + | DataProductsCatalogsListBySubscriptionDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + subscriptionId, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _listBySubscriptionDeserialize( + result: + | DataProductsCatalogsListBySubscription200Response + | DataProductsCatalogsListBySubscriptionDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + value: result.body["value"].map((p) => ({ + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: + p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: + p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + provisioningState: p.properties?.["provisioningState"], + publishers: p.properties?.["publishers"].map((p) => ({ + publisherName: p["publisherName"], + dataProducts: p["dataProducts"].map((p) => ({ + dataProductName: p["dataProductName"], + description: p["description"], + dataProductVersions: p["dataProductVersions"].map((p) => ({ + version: p["version"], + })), + })), + })), + }, + })), + nextLink: result.body["nextLink"], + }; +} + +/** List data catalog by subscription. */ +export function listBySubscription( + context: Client, + subscriptionId: string, + options: DataProductsCatalogsListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _listBySubscriptionSend(context, subscriptionId, options), + _listBySubscriptionDeserialize, + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts new file mode 100644 index 00000000000..561ec6488c2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts @@ -0,0 +1,40 @@ +import { PollerLike, OperationState } from "@azure/core-lro"; +import { DataType, DataTypeUpdate, ContainerSaS, ContainerSasToken, DataTypeListResult } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { DataTypesCreate200Response, DataTypesCreate201Response, DataTypesCreateDefaultResponse, DataTypesCreateLogicalResponse, DataTypesDelete202Response, DataTypesDelete204Response, DataTypesDeleteData202Response, DataTypesDeleteData204Response, DataTypesDeleteDataDefaultResponse, DataTypesDeleteDataLogicalResponse, DataTypesDeleteDefaultResponse, DataTypesDeleteLogicalResponse, DataTypesGenerateStorageContainerSasToken200Response, DataTypesGenerateStorageContainerSasTokenDefaultResponse, DataTypesGet200Response, DataTypesGetDefaultResponse, DataTypesListByDataProduct200Response, DataTypesListByDataProductDefaultResponse, DataTypesUpdate200Response, DataTypesUpdate202Response, DataTypesUpdateDefaultResponse, DataTypesUpdateLogicalResponse, NetworkAnalyticsContext as Client } from "../../rest/index.js"; +import { StreamableMethod } from "@azure-rest/core-client"; +import { DataTypesCreateOptionalParams, DataTypesGetOptionalParams, DataTypesUpdateOptionalParams, DataTypesDeleteOptionalParams, DataTypesDeleteDataOptionalParams, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesListByDataProductOptionalParams } from "../../models/options.js"; +export declare function _createSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): StreamableMethod; +export declare function _createDeserialize(result: DataTypesCreate200Response | DataTypesCreate201Response | DataTypesCreateDefaultResponse | DataTypesCreateLogicalResponse): Promise; +/** Create data type resource. */ +export declare function create(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): PollerLike, DataType>; +export declare function _getSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): StreamableMethod; +export declare function _getDeserialize(result: DataTypesGet200Response | DataTypesGetDefaultResponse): Promise; +/** Retrieve data type resource. */ +export declare function get(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; +export declare function _updateSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): StreamableMethod; +export declare function _updateDeserialize(result: DataTypesUpdate200Response | DataTypesUpdate202Response | DataTypesUpdateDefaultResponse | DataTypesUpdateLogicalResponse): Promise; +/** Update data type resource. */ +export declare function update(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): PollerLike, DataType>; +export declare function _$deleteSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): StreamableMethod; +export declare function _$deleteDeserialize(result: DataTypesDelete202Response | DataTypesDelete204Response | DataTypesDeleteDefaultResponse | DataTypesDeleteLogicalResponse): Promise; +/** Delete data type resource. */ +/** + * @fixme delete is a reserved word that cannot be used as an operation name. + * Please add @clientName("clientName") or @clientName("", "javascript") + * to the operation to override the generated name. + */ +export declare function $delete(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): PollerLike, void>; +export declare function _deleteDataSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): StreamableMethod; +export declare function _deleteDataDeserialize(result: DataTypesDeleteData202Response | DataTypesDeleteData204Response | DataTypesDeleteDataDefaultResponse | DataTypesDeleteDataLogicalResponse): Promise; +/** Delete data for data type. */ +export declare function deleteData(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): PollerLike, void>; +export declare function _generateStorageContainerSasTokenSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): StreamableMethod; +export declare function _generateStorageContainerSasTokenDeserialize(result: DataTypesGenerateStorageContainerSasToken200Response | DataTypesGenerateStorageContainerSasTokenDefaultResponse): Promise; +/** Generate sas token for storage container. */ +export declare function generateStorageContainerSasToken(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; +export declare function _listByDataProductSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): StreamableMethod; +export declare function _listByDataProductDeserialize(result: DataTypesListByDataProduct200Response | DataTypesListByDataProductDefaultResponse): Promise; +/** List data type by parent resource. */ +export declare function listByDataProduct(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts.map new file mode 100644 index 00000000000..11db7e26fbb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,8BAA8B,EAC9B,8BAA8B,EAC9B,oDAAoD,EACpD,wDAAwD,EACxD,uBAAuB,EACvB,2BAA2B,EAC3B,qCAAqC,EACrC,yCAAyC,EACzC,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAE9B,uBAAuB,IAAI,MAAM,EAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,uDAAuD,EACvD,wCAAwC,EACzC,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,GAAE,6BAAsD,GAC9D,gBAAgB,CACf,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C,CAW5B;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,wCAAiE,GACzE,gBAAgB,CACf,qCAAqC,GACrC,yCAAyC,CAC5C,CASA;AAED,wBAAsB,6BAA6B,CACjD,MAAM,EACF,qCAAqC,GACrC,yCAAyC,GAC5C,OAAO,CAAC,kBAAkB,CAAC,CAwC7B;AAED,yCAAyC;AACzC,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,wCAAiE,GACzE,0BAA0B,CAAC,QAAQ,CAAC,CActC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js new file mode 100644 index 00000000000..7fa9006d0ae --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js @@ -0,0 +1,295 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { getLongRunningPoller } from "../pollingHelpers.js"; +import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { isUnexpected, } from "../../rest/index.js"; +import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client"; +export function _createSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId, resourceGroupName, dataProductName, dataTypeName) + .put({ + ...operationOptionsToRequestParameters(options), + body: { + properties: !resource.properties + ? undefined + : { + state: resource.properties?.["state"], + storageOutputRetention: resource.properties?.["storageOutputRetention"], + databaseCacheRetention: resource.properties?.["databaseCacheRetention"], + databaseRetention: resource.properties?.["databaseRetention"], + }, + }, + }); +} +export async function _createDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + result = result; + return { + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + provisioningState: result.body.properties?.["provisioningState"], + state: result.body.properties?.["state"], + stateReason: result.body.properties?.["stateReason"], + storageOutputRetention: result.body.properties?.["storageOutputRetention"], + databaseCacheRetention: result.body.properties?.["databaseCacheRetention"], + databaseRetention: result.body.properties?.["databaseRetention"], + visualizationUrl: result.body.properties?.["visualizationUrl"], + }, + }; +} +/** Create data type resource. */ +export function create(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options = { requestOptions: {} }) { + return getLongRunningPoller(context, _createDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => _createSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options), + }); +} +export function _getSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId, resourceGroupName, dataProductName, dataTypeName) + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _getDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + provisioningState: result.body.properties?.["provisioningState"], + state: result.body.properties?.["state"], + stateReason: result.body.properties?.["stateReason"], + storageOutputRetention: result.body.properties?.["storageOutputRetention"], + databaseCacheRetention: result.body.properties?.["databaseCacheRetention"], + databaseRetention: result.body.properties?.["databaseRetention"], + visualizationUrl: result.body.properties?.["visualizationUrl"], + }, + }; +} +/** Retrieve data type resource. */ +export async function get(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options = { requestOptions: {} }) { + const result = await _getSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options); + return _getDeserialize(result); +} +export function _updateSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId, resourceGroupName, dataProductName, dataTypeName) + .patch({ + ...operationOptionsToRequestParameters(options), + body: { + properties: !properties.properties + ? undefined + : { + state: properties.properties?.["state"], + storageOutputRetention: properties.properties?.["storageOutputRetention"], + databaseCacheRetention: properties.properties?.["databaseCacheRetention"], + databaseRetention: properties.properties?.["databaseRetention"], + }, + }, + }); +} +export async function _updateDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + result = result; + return { + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + provisioningState: result.body.properties?.["provisioningState"], + state: result.body.properties?.["state"], + stateReason: result.body.properties?.["stateReason"], + storageOutputRetention: result.body.properties?.["storageOutputRetention"], + databaseCacheRetention: result.body.properties?.["databaseCacheRetention"], + databaseRetention: result.body.properties?.["databaseRetention"], + visualizationUrl: result.body.properties?.["visualizationUrl"], + }, + }; +} +/** Update data type resource. */ +export function update(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options = { requestOptions: {} }) { + return getLongRunningPoller(context, _updateDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => _updateSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options), + }); +} +export function _$deleteSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId, resourceGroupName, dataProductName, dataTypeName) + .delete({ ...operationOptionsToRequestParameters(options) }); +} +export async function _$deleteDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + result = result; + return; +} +/** Delete data type resource. */ +/** + * @fixme delete is a reserved word that cannot be used as an operation name. + * Please add @clientName("clientName") or @clientName("", "javascript") + * to the operation to override the generated name. + */ +export function $delete(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options = { requestOptions: {} }) { + return getLongRunningPoller(context, _$deleteDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => _$deleteSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options), + }); +} +export function _deleteDataSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", subscriptionId, resourceGroupName, dataProductName, dataTypeName) + .post({ ...operationOptionsToRequestParameters(options), body: body }); +} +export async function _deleteDataDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + result = result; + return; +} +/** Delete data for data type. */ +export function deleteData(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options = { requestOptions: {} }) { + return getLongRunningPoller(context, _deleteDataDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => _deleteDataSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options), + }); +} +export function _generateStorageContainerSasTokenSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options = { + requestOptions: {}, +}) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", subscriptionId, resourceGroupName, dataProductName, dataTypeName) + .post({ + ...operationOptionsToRequestParameters(options), + body: { + startTimeStamp: body["startTimeStamp"].toISOString(), + expiryTimeStamp: body["expiryTimeStamp"].toISOString(), + ipAddress: body["ipAddress"], + }, + }); +} +export async function _generateStorageContainerSasTokenDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + storageContainerSasToken: result.body["storageContainerSasToken"], + }; +} +/** Generate sas token for storage container. */ +export async function generateStorageContainerSasToken(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options = { + requestOptions: {}, +}) { + const result = await _generateStorageContainerSasTokenSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options); + return _generateStorageContainerSasTokenDeserialize(result); +} +export function _listByDataProductSend(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { + return context + .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", subscriptionId, resourceGroupName, dataProductName) + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _listByDataProductDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + value: result.body["value"].map((p) => ({ + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + provisioningState: p.properties?.["provisioningState"], + state: p.properties?.["state"], + stateReason: p.properties?.["stateReason"], + storageOutputRetention: p.properties?.["storageOutputRetention"], + databaseCacheRetention: p.properties?.["databaseCacheRetention"], + databaseRetention: p.properties?.["databaseRetention"], + visualizationUrl: p.properties?.["visualizationUrl"], + }, + })), + nextLink: result.body["nextLink"], + }; +} +/** List data type by parent resource. */ +export function listByDataProduct(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { + return buildPagedAsyncIterator(context, () => _listByDataProductSend(context, subscriptionId, resourceGroupName, dataProductName, options), _listByDataProductDeserialize, { itemName: "value", nextLinkName: "nextLink" }); +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js.map new file mode 100644 index 00000000000..8569872a853 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAU5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAuBL,YAAY,GAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mCAAmC,EACnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAWjC,MAAM,UAAU,WAAW,CACzB,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,QAAkB,EAClB,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAO/D,OAAO,OAAO;SACX,IAAI,CACH,iKAAiK,EACjK,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb;SACA,GAAG,CAAC;QACH,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,IAAI,EAAE;YACJ,UAAU,EAAE,CAAC,QAAQ,CAAC,UAAU;gBAC9B,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC;oBACE,KAAK,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC;oBACrC,sBAAsB,E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CAAC,gBAAgB,CAAC,KAAK,SAAS;wBAC5C,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,gBAAgB,CAAC,CAAC;wBAC5C,CAAC,CAAC,SAAS;iBAChB;YACL,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU;gBACvB,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC;oBACE,iBAAiB,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,mBAAmB,CAAC;oBACtD,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC;oBAC9B,WAAW,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC;oBAC1C,sBAAsB,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,wBAAwB,CAAC;oBAChE,sBAAsB,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,wBAAwB,CAAC;oBAChE,iBAAiB,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,mBAAmB,CAAC;oBACtD,gBAAgB,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,kBAAkB,CAAC;iBACrD;SACN,CAAC,CAAC;QACH,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,yCAAyC;AACzC,MAAM,UAAU,iBAAiB,CAC/B,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAoD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE1E,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CACH,sBAAsB,CACpB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,EACH,6BAA6B,EAC7B,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.ts new file mode 100644 index 00000000000..74f6ce02280 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.ts @@ -0,0 +1,655 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getLongRunningPoller } from "../pollingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; +import { + DataType, + DataTypeUpdate, + ContainerSaS, + ContainerSasToken, + DataTypeListResult, +} from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { + DataTypesCreate200Response, + DataTypesCreate201Response, + DataTypesCreateDefaultResponse, + DataTypesCreateLogicalResponse, + DataTypesDelete202Response, + DataTypesDelete204Response, + DataTypesDeleteData202Response, + DataTypesDeleteData204Response, + DataTypesDeleteDataDefaultResponse, + DataTypesDeleteDataLogicalResponse, + DataTypesDeleteDefaultResponse, + DataTypesDeleteLogicalResponse, + DataTypesGenerateStorageContainerSasToken200Response, + DataTypesGenerateStorageContainerSasTokenDefaultResponse, + DataTypesGet200Response, + DataTypesGetDefaultResponse, + DataTypesListByDataProduct200Response, + DataTypesListByDataProductDefaultResponse, + DataTypesUpdate200Response, + DataTypesUpdate202Response, + DataTypesUpdateDefaultResponse, + DataTypesUpdateLogicalResponse, + isUnexpected, + NetworkAnalyticsContext as Client, +} from "../../rest/index.js"; +import { + StreamableMethod, + operationOptionsToRequestParameters, + createRestError, +} from "@azure-rest/core-client"; +import { + DataTypesCreateOptionalParams, + DataTypesGetOptionalParams, + DataTypesUpdateOptionalParams, + DataTypesDeleteOptionalParams, + DataTypesDeleteDataOptionalParams, + DataTypesGenerateStorageContainerSasTokenOptionalParams, + DataTypesListByDataProductOptionalParams, +} from "../../models/options.js"; + +export function _createSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + resource: DataType, + options: DataTypesCreateOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataTypesCreate200Response + | DataTypesCreate201Response + | DataTypesCreateDefaultResponse + | DataTypesCreateLogicalResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: { + properties: !resource.properties + ? undefined + : { + state: resource.properties?.["state"], + storageOutputRetention: + resource.properties?.["storageOutputRetention"], + databaseCacheRetention: + resource.properties?.["databaseCacheRetention"], + databaseRetention: resource.properties?.["databaseRetention"], + }, + }, + }); +} + +export async function _createDeserialize( + result: + | DataTypesCreate200Response + | DataTypesCreate201Response + | DataTypesCreateDefaultResponse + | DataTypesCreateLogicalResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + result = result as DataTypesCreateLogicalResponse; + return { + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: + result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: + result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + provisioningState: result.body.properties?.["provisioningState"], + state: result.body.properties?.["state"], + stateReason: result.body.properties?.["stateReason"], + storageOutputRetention: + result.body.properties?.["storageOutputRetention"], + databaseCacheRetention: + result.body.properties?.["databaseCacheRetention"], + databaseRetention: result.body.properties?.["databaseRetention"], + visualizationUrl: result.body.properties?.["visualizationUrl"], + }, + }; +} + +/** Create data type resource. */ +export function create( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + resource: DataType, + options: DataTypesCreateOptionalParams = { requestOptions: {} }, +): PollerLike, DataType> { + return getLongRunningPoller(context, _createDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _createSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + resource, + options, + ), + }) as PollerLike, DataType>; +} + +export function _getSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options: DataTypesGetOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _getDeserialize( + result: DataTypesGet200Response | DataTypesGetDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: + result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: + result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + provisioningState: result.body.properties?.["provisioningState"], + state: result.body.properties?.["state"], + stateReason: result.body.properties?.["stateReason"], + storageOutputRetention: + result.body.properties?.["storageOutputRetention"], + databaseCacheRetention: + result.body.properties?.["databaseCacheRetention"], + databaseRetention: result.body.properties?.["databaseRetention"], + visualizationUrl: result.body.properties?.["visualizationUrl"], + }, + }; +} + +/** Retrieve data type resource. */ +export async function get( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options: DataTypesGetOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _getSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + options, + ); + return _getDeserialize(result); +} + +export function _updateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + properties: DataTypeUpdate, + options: DataTypesUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataTypesUpdate200Response + | DataTypesUpdate202Response + | DataTypesUpdateDefaultResponse + | DataTypesUpdateLogicalResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: { + properties: !properties.properties + ? undefined + : { + state: properties.properties?.["state"], + storageOutputRetention: + properties.properties?.["storageOutputRetention"], + databaseCacheRetention: + properties.properties?.["databaseCacheRetention"], + databaseRetention: properties.properties?.["databaseRetention"], + }, + }, + }); +} + +export async function _updateDeserialize( + result: + | DataTypesUpdate200Response + | DataTypesUpdate202Response + | DataTypesUpdateDefaultResponse + | DataTypesUpdateLogicalResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + result = result as DataTypesUpdateLogicalResponse; + return { + id: result.body["id"], + name: result.body["name"], + type: result.body["type"], + systemData: !result.body.systemData + ? undefined + : { + createdBy: result.body.systemData?.["createdBy"], + createdByType: result.body.systemData?.["createdByType"], + createdAt: + result.body.systemData?.["createdAt"] !== undefined + ? new Date(result.body.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: result.body.systemData?.["lastModifiedBy"], + lastModifiedByType: result.body.systemData?.["lastModifiedByType"], + lastModifiedAt: + result.body.systemData?.["lastModifiedAt"] !== undefined + ? new Date(result.body.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !result.body.properties + ? undefined + : { + provisioningState: result.body.properties?.["provisioningState"], + state: result.body.properties?.["state"], + stateReason: result.body.properties?.["stateReason"], + storageOutputRetention: + result.body.properties?.["storageOutputRetention"], + databaseCacheRetention: + result.body.properties?.["databaseCacheRetention"], + databaseRetention: result.body.properties?.["databaseRetention"], + visualizationUrl: result.body.properties?.["visualizationUrl"], + }, + }; +} + +/** Update data type resource. */ +export function update( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + properties: DataTypeUpdate, + options: DataTypesUpdateOptionalParams = { requestOptions: {} }, +): PollerLike, DataType> { + return getLongRunningPoller(context, _updateDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _updateSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + properties, + options, + ), + }) as PollerLike, DataType>; +} + +export function _$deleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options: DataTypesDeleteOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataTypesDelete202Response + | DataTypesDelete204Response + | DataTypesDeleteDefaultResponse + | DataTypesDeleteLogicalResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _$deleteDeserialize( + result: + | DataTypesDelete202Response + | DataTypesDelete204Response + | DataTypesDeleteDefaultResponse + | DataTypesDeleteLogicalResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + result = result as DataTypesDeleteLogicalResponse; + return; +} + +/** Delete data type resource. */ +/** + * @fixme delete is a reserved word that cannot be used as an operation name. + * Please add @clientName("clientName") or @clientName("", "javascript") + * to the operation to override the generated name. + */ +export function $delete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options: DataTypesDeleteOptionalParams = { requestOptions: {} }, +): PollerLike, void> { + return getLongRunningPoller(context, _$deleteDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _$deleteSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + options, + ), + }) as PollerLike, void>; +} + +export function _deleteDataSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: Record, + options: DataTypesDeleteDataOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataTypesDeleteData202Response + | DataTypesDeleteData204Response + | DataTypesDeleteDataDefaultResponse + | DataTypesDeleteDataLogicalResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + ) + .post({ ...operationOptionsToRequestParameters(options), body: body }); +} + +export async function _deleteDataDeserialize( + result: + | DataTypesDeleteData202Response + | DataTypesDeleteData204Response + | DataTypesDeleteDataDefaultResponse + | DataTypesDeleteDataLogicalResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + result = result as DataTypesDeleteDataLogicalResponse; + return; +} + +/** Delete data for data type. */ +export function deleteData( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: Record, + options: DataTypesDeleteDataOptionalParams = { requestOptions: {} }, +): PollerLike, void> { + return getLongRunningPoller(context, _deleteDataDeserialize, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _deleteDataSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + body, + options, + ), + }) as PollerLike, void>; +} + +export function _generateStorageContainerSasTokenSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: ContainerSaS, + options: DataTypesGenerateStorageContainerSasTokenOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod< + | DataTypesGenerateStorageContainerSasToken200Response + | DataTypesGenerateStorageContainerSasTokenDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + ) + .post({ + ...operationOptionsToRequestParameters(options), + body: { + startTimeStamp: body["startTimeStamp"].toISOString(), + expiryTimeStamp: body["expiryTimeStamp"].toISOString(), + ipAddress: body["ipAddress"], + }, + }); +} + +export async function _generateStorageContainerSasTokenDeserialize( + result: + | DataTypesGenerateStorageContainerSasToken200Response + | DataTypesGenerateStorageContainerSasTokenDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + storageContainerSasToken: result.body["storageContainerSasToken"], + }; +} + +/** Generate sas token for storage container. */ +export async function generateStorageContainerSasToken( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: ContainerSaS, + options: DataTypesGenerateStorageContainerSasTokenOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _generateStorageContainerSasTokenSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + body, + options, + ); + return _generateStorageContainerSasTokenDeserialize(result); +} + +export function _listByDataProductSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options: DataTypesListByDataProductOptionalParams = { requestOptions: {} }, +): StreamableMethod< + | DataTypesListByDataProduct200Response + | DataTypesListByDataProductDefaultResponse +> { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", + subscriptionId, + resourceGroupName, + dataProductName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _listByDataProductDeserialize( + result: + | DataTypesListByDataProduct200Response + | DataTypesListByDataProductDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + value: result.body["value"].map((p) => ({ + id: p["id"], + name: p["name"], + type: p["type"], + systemData: !p.systemData + ? undefined + : { + createdBy: p.systemData?.["createdBy"], + createdByType: p.systemData?.["createdByType"], + createdAt: + p.systemData?.["createdAt"] !== undefined + ? new Date(p.systemData?.["createdAt"]) + : undefined, + lastModifiedBy: p.systemData?.["lastModifiedBy"], + lastModifiedByType: p.systemData?.["lastModifiedByType"], + lastModifiedAt: + p.systemData?.["lastModifiedAt"] !== undefined + ? new Date(p.systemData?.["lastModifiedAt"]) + : undefined, + }, + properties: !p.properties + ? undefined + : { + provisioningState: p.properties?.["provisioningState"], + state: p.properties?.["state"], + stateReason: p.properties?.["stateReason"], + storageOutputRetention: p.properties?.["storageOutputRetention"], + databaseCacheRetention: p.properties?.["databaseCacheRetention"], + databaseRetention: p.properties?.["databaseRetention"], + visualizationUrl: p.properties?.["visualizationUrl"], + }, + })), + nextLink: result.body["nextLink"], + }; +} + +/** List data type by parent resource. */ +export function listByDataProduct( + context: Client, + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options: DataTypesListByDataProductOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _listByDataProductSend( + context, + subscriptionId, + resourceGroupName, + dataProductName, + options, + ), + _listByDataProductDeserialize, + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts new file mode 100644 index 00000000000..8e83eed5c3c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts @@ -0,0 +1,2 @@ +export { createNetworkAnalytics, NetworkAnalyticsClientOptions, NetworkAnalyticsContext, } from "./networkAnalyticsContext.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts.map new file mode 100644 index 00000000000..bc6a03a6fa8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js new file mode 100644 index 00000000000..63bd3d28579 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export { createNetworkAnalytics, } from "./networkAnalyticsContext.js"; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js.map new file mode 100644 index 00000000000..37e0e2db63b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sBAAsB,GAGvB,MAAM,8BAA8B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.ts new file mode 100644 index 00000000000..b9d427b4a66 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.ts @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export { + createNetworkAnalytics, + NetworkAnalyticsClientOptions, + NetworkAnalyticsContext, +} from "./networkAnalyticsContext.js"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts new file mode 100644 index 00000000000..c53a09585f3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts @@ -0,0 +1,10 @@ +import { TokenCredential } from "@azure/core-auth"; +import { ClientOptions } from "@azure-rest/core-client"; +import { NetworkAnalyticsContext } from "../rest/index.js"; +export interface NetworkAnalyticsClientOptions extends ClientOptions { + /** The API version to use for this operation. */ + apiVersion?: string; +} +export { NetworkAnalyticsContext } from "../rest/index.js"; +export declare function createNetworkAnalytics(credential: TokenCredential, options?: NetworkAnalyticsClientOptions): NetworkAnalyticsContext; +//# sourceMappingURL=networkAnalyticsContext.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts.map new file mode 100644 index 00000000000..7878e1bfbb2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"networkAnalyticsContext.d.ts","sourceRoot":"","sources":["networkAnalyticsContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAG3D,MAAM,WAAW,6BAA8B,SAAQ,aAAa;IAClE,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC,GAC1C,uBAAuB,CAGzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js new file mode 100644 index 00000000000..204567fc303 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import getClient from "../rest/index.js"; +export function createNetworkAnalytics(credential, options = {}) { + const clientContext = getClient(credential, options); + return clientContext; +} +//# sourceMappingURL=networkAnalyticsContext.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js.map new file mode 100644 index 00000000000..b8cce98415e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js.map @@ -0,0 +1 @@ +{"version":3,"file":"networkAnalyticsContext.js","sourceRoot":"","sources":["networkAnalyticsContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,SAAS,MAAM,kBAAkB,CAAC;AASzC,MAAM,UAAU,sBAAsB,CACpC,UAA2B,EAC3B,UAAyC,EAAE;IAE3C,MAAM,aAAa,GAAG,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACrD,OAAO,aAAa,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.ts new file mode 100644 index 00000000000..3c21444f2d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.ts @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { TokenCredential } from "@azure/core-auth"; +import { ClientOptions } from "@azure-rest/core-client"; +import { NetworkAnalyticsContext } from "../rest/index.js"; +import getClient from "../rest/index.js"; + +export interface NetworkAnalyticsClientOptions extends ClientOptions { + /** The API version to use for this operation. */ + apiVersion?: string; +} + +export { NetworkAnalyticsContext } from "../rest/index.js"; + +export function createNetworkAnalytics( + credential: TokenCredential, + options: NetworkAnalyticsClientOptions = {}, +): NetworkAnalyticsContext { + const clientContext = getClient(credential, options); + return clientContext; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts new file mode 100644 index 00000000000..7e6f304e22f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts @@ -0,0 +1,10 @@ +import { PagedOperation, Operation } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { NetworkAnalyticsContext as Client, OperationsList200Response, OperationsListDefaultResponse } from "../../rest/index.js"; +import { StreamableMethod } from "@azure-rest/core-client"; +import { OperationsListOptionalParams } from "../../models/options.js"; +export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod; +export declare function _listDeserialize(result: OperationsList200Response | OperationsListDefaultResponse): Promise; +/** List the operations for the provider */ +export declare function list(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts.map new file mode 100644 index 00000000000..4b373cc4e84 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EAEL,uBAAuB,IAAI,MAAM,EACjC,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAAC,yBAAyB,GAAG,6BAA6B,CAAC,CAI7E;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,yBAAyB,GAAG,6BAA6B,GAChE,OAAO,CAAC,cAAc,CAAC,CAsBzB;AAED,2CAA2C;AAC3C,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAOvC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js new file mode 100644 index 00000000000..2869c607eb8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { isUnexpected, } from "../../rest/index.js"; +import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client"; +export function _listSend(context, options = { requestOptions: {} }) { + return context + .path("/providers/Microsoft.NetworkAnalytics/operations") + .get({ ...operationOptionsToRequestParameters(options) }); +} +export async function _listDeserialize(result) { + if (isUnexpected(result)) { + throw createRestError(result); + } + return { + value: result.body["value"].map((p) => ({ + name: p["name"], + isDataAction: p["isDataAction"], + display: !p.display + ? undefined + : { + provider: p.display?.["provider"], + resource: p.display?.["resource"], + operation: p.display?.["operation"], + description: p.display?.["description"], + }, + origin: p["origin"], + actionType: p["actionType"], + })), + nextLink: result.body["nextLink"], + }; +} +/** List the operations for the provider */ +export function list(context, options = { requestOptions: {} }) { + return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, { itemName: "value", nextLinkName: "nextLink" }); +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js.map new file mode 100644 index 00000000000..1865c237eb6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,YAAY,GAIb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mCAAmC,EACnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,kDAAkD,CAAC;SACxD,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAAiE;IAEjE,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACtC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YACf,YAAY,EAAE,CAAC,CAAC,cAAc,CAAC;YAC/B,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO;gBACjB,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC;oBACE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC;oBACjC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC;oBACjC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC;oBACnC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC;iBACxC;YACL,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC;YACnB,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC;SAC5B,CAAC,CAAC;QACH,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.ts new file mode 100644 index 00000000000..ae7bcb55cc5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.ts @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { PagedOperation, Operation } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { + isUnexpected, + NetworkAnalyticsContext as Client, + OperationsList200Response, + OperationsListDefaultResponse, +} from "../../rest/index.js"; +import { + StreamableMethod, + operationOptionsToRequestParameters, + createRestError, +} from "@azure-rest/core-client"; +import { OperationsListOptionalParams } from "../../models/options.js"; + +export function _listSend( + context: Client, + options: OperationsListOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path("/providers/Microsoft.NetworkAnalytics/operations") + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _listDeserialize( + result: OperationsList200Response | OperationsListDefaultResponse, +): Promise { + if (isUnexpected(result)) { + throw createRestError(result); + } + + return { + value: result.body["value"].map((p) => ({ + name: p["name"], + isDataAction: p["isDataAction"], + display: !p.display + ? undefined + : { + provider: p.display?.["provider"], + resource: p.display?.["resource"], + operation: p.display?.["operation"], + description: p.display?.["description"], + }, + origin: p["origin"], + actionType: p["actionType"], + })), + nextLink: result.body["nextLink"], + }; +} + +/** List the operations for the provider */ +export function list( + context: Client, + options: OperationsListOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _listSend(context, options), + _listDeserialize, + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts new file mode 100644 index 00000000000..98a4e21cd14 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts @@ -0,0 +1,7 @@ +import { Client, PathUncheckedResponse } from "@azure-rest/core-client"; +import { BuildPagedAsyncIteratorOptions, PageSettings, PagedAsyncIterableIterator } from "../models/pagingTypes.js"; +/** + * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator + */ +export declare function buildPagedAsyncIterator(client: Client, getInitialResponse: () => PromiseLike, processResponseBody: (result: TResponse) => PromiseLike, options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator; +//# sourceMappingURL=pagingHelpers.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts.map new file mode 100644 index 00000000000..d600a521828 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,MAAM,EAEN,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,8BAA8B,EAE9B,YAAY,EACZ,0BAA0B,EAE3B,MAAM,0BAA0B,CAAC;AAGlC;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAE/D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,EAChD,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,CAAC,OAAO,CAAC,EAChE,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js new file mode 100644 index 00000000000..4f05ecc67cc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { createRestError, } from "@azure-rest/core-client"; +import { RestError } from "@azure/core-rest-pipeline"; +import { isUnexpected } from "../rest/index.js"; +/** + * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator + */ +export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, options = {}) { + const itemName = options.itemName ?? "value"; + const nextLinkName = options.nextLinkName ?? "nextLink"; + const pagedResult = { + getPage: async (pageLink) => { + const result = pageLink === undefined + ? await getInitialResponse() + : await client.pathUnchecked(pageLink).get(); + checkPagingRequest(result); + const results = await processResponseBody(result); + const nextLink = getNextLink(results, nextLinkName); + const values = getElements(results, itemName); + return { + page: values, + nextPageLink: nextLink, + }; + }, + byPage: (settings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }, + }; + return getPagedAsyncIterator(pagedResult); +} +/** + * returns an async iterator that iterates over results. It also has a `byPage` + * method that returns pages of items at once. + * + * @param pagedResult - an object that specifies how to get pages. + * @returns a paged async iterator that iterates over results. + */ +function getPagedAsyncIterator(pagedResult) { + const iter = getItemAsyncIterator(pagedResult); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: pagedResult?.byPage ?? + ((settings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }), + }; +} +async function* getItemAsyncIterator(pagedResult) { + const pages = getPageAsyncIterator(pagedResult); + for await (const page of pages) { + yield* page; + } +} +async function* getPageAsyncIterator(pagedResult, options = {}) { + const { pageLink } = options; + let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); + if (!response) { + return; + } + let result = response.page; + result.continuationToken = response.nextPageLink; + yield result; + while (response.nextPageLink) { + response = await pagedResult.getPage(response.nextPageLink); + if (!response) { + return; + } + result = response.page; + result.continuationToken = response.nextPageLink; + yield result; + } +} +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body, nextLinkName) { + if (!nextLinkName) { + return undefined; + } + const nextLink = body[nextLinkName]; + if (typeof nextLink !== "string" && + typeof nextLink !== "undefined" && + nextLink !== null) { + throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`); + } + if (nextLink === null) { + return undefined; + } + return nextLink; +} +/** + * Gets the elements of the current request in the body. + */ +function getElements(body, itemName) { + const value = body[itemName]; + if (!Array.isArray(value)) { + throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`); + } + return value ?? []; +} +/** + * Checks if a request failed + */ +function checkPagingRequest(response) { + if (isUnexpected(response)) { + throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response); + } +} +//# sourceMappingURL=pagingHelpers.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js.map new file mode 100644 index 00000000000..d797804d85f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAEL,eAAe,GAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQtD,OAA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,GAAG,QAAQ,CAAC,IAAwC,CAAC;QAC3D,MAAM,CAAC,iBAAiB,GAAG,QAAQ,CAAC,YAAY,CAAC;QACjD,MAAM,MAAM,CAAC;IACf,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,IAAa,EAAE,YAAqB;IACvD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,QAAQ,GAAI,IAAgC,CAAC,YAAY,CAAC,CAAC;IAEjE,IACE,OAAO,QAAQ,KAAK,QAAQ;QAC5B,OAAO,QAAQ,KAAK,WAAW;QAC/B,QAAQ,KAAK,IAAI,EACjB,CAAC;QACD,MAAM,IAAI,SAAS,CACjB,iBAAiB,YAAY,oDAAoD,OAAO,QAAQ,EAAE,CACnG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,IAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3B,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.ts new file mode 100644 index 00000000000..9780e76e04a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.ts @@ -0,0 +1,191 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + Client, + createRestError, + PathUncheckedResponse, +} from "@azure-rest/core-client"; +import { RestError } from "@azure/core-rest-pipeline"; +import { + BuildPagedAsyncIteratorOptions, + ContinuablePage, + PageSettings, + PagedAsyncIterableIterator, + PagedResult, +} from "../models/pagingTypes.js"; +import { isUnexpected } from "../rest/index.js"; + +/** + * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator + */ +export function buildPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, + TResponse extends PathUncheckedResponse = PathUncheckedResponse, +>( + client: Client, + getInitialResponse: () => PromiseLike, + processResponseBody: (result: TResponse) => PromiseLike, + options: BuildPagedAsyncIteratorOptions = {}, +): PagedAsyncIterableIterator { + const itemName = options.itemName ?? "value"; + const nextLinkName = options.nextLinkName ?? "nextLink"; + const pagedResult: PagedResult = { + getPage: async (pageLink?: string) => { + const result = + pageLink === undefined + ? await getInitialResponse() + : await client.pathUnchecked(pageLink).get(); + checkPagingRequest(result); + const results = await processResponseBody(result as TResponse); + const nextLink = getNextLink(results, nextLinkName); + const values = getElements(results, itemName) as TPage; + return { + page: values, + nextPageLink: nextLink, + }; + }, + byPage: (settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }, + }; + return getPagedAsyncIterator(pagedResult); +} + +/** + * returns an async iterator that iterates over results. It also has a `byPage` + * method that returns pages of items at once. + * + * @param pagedResult - an object that specifies how to get pages. + * @returns a paged async iterator that iterates over results. + */ + +function getPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +>( + pagedResult: PagedResult, +): PagedAsyncIterableIterator { + const iter = getItemAsyncIterator( + pagedResult, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: + pagedResult?.byPage ?? + ((settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }), + }; +} + +async function* getItemAsyncIterator< + TElement, + TPage, + TPageSettings extends PageSettings, +>( + pagedResult: PagedResult, +): AsyncIterableIterator { + const pages = getPageAsyncIterator(pagedResult); + for await (const page of pages) { + yield* page as unknown as TElement[]; + } +} + +async function* getPageAsyncIterator< + TElement, + TPage, + TPageSettings extends PageSettings, +>( + pagedResult: PagedResult, + options: { + pageLink?: string; + } = {}, +): AsyncIterableIterator> { + const { pageLink } = options; + let response = await pagedResult.getPage( + pageLink ?? pagedResult.firstPageLink, + ); + if (!response) { + return; + } + let result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + while (response.nextPageLink) { + response = await pagedResult.getPage(response.nextPageLink); + if (!response) { + return; + } + result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + } +} + +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body: unknown, nextLinkName?: string): string | undefined { + if (!nextLinkName) { + return undefined; + } + + const nextLink = (body as Record)[nextLinkName]; + + if ( + typeof nextLink !== "string" && + typeof nextLink !== "undefined" && + nextLink !== null + ) { + throw new RestError( + `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, + ); + } + + if (nextLink === null) { + return undefined; + } + + return nextLink; +} + +/** + * Gets the elements of the current request in the body. + */ +function getElements(body: unknown, itemName: string): T[] { + const value = (body as Record)[itemName] as T[]; + if (!Array.isArray(value)) { + throw new RestError( + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, + ); + } + + return value ?? []; +} + +/** + * Checks if a request failed + */ +function checkPagingRequest(response: PathUncheckedResponse): void { + if (isUnexpected(response)) { + throw createRestError( + `Pagination failed with unexpected statusCode ${response.status}`, + response, + ); + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts new file mode 100644 index 00000000000..9c493f64915 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts @@ -0,0 +1,30 @@ +import { PollerLike, OperationState, ResourceLocationConfig } from "@azure/core-lro"; +import { Client, PathUncheckedResponse } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; +export interface GetLongRunningPollerOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** + * The potential location of the result of the LRO if specified by the LRO extension in the swagger. + */ + resourceLocationConfig?: ResourceLocationConfig; + /** + * The original url of the LRO + * Should not be null when restoreFrom is set + */ + initialRequestUrl?: string; + /** + * A serialized poller which can be used to resume an existing paused Long-Running-Operation. + */ + restoreFrom?: string; + /** + * The function to get the initial response + */ + getInitialResponse?: () => PromiseLike; +} +export declare function getLongRunningPoller(client: Client, processResponseBody: (result: TResponse) => Promise, options: GetLongRunningPollerOptions): PollerLike, TResult>; +//# sourceMappingURL=pollingHelpers.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts.map new file mode 100644 index 00000000000..39b0d9eec35 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["pollingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,MAAM,EACN,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,MAAM,WAAW,2BAA2B,CAAC,SAAS;IACpD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC;CACnD;AACD,wBAAgB,oBAAoB,CAClC,SAAS,SAAS,qBAAqB,EACvC,OAAO,GAAG,IAAI,EAEd,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5D,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAC9C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAiE9C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js new file mode 100644 index 00000000000..a5e0f9c12e6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { createHttpPoller, } from "@azure/core-lro"; +import { createRestError, } from "@azure-rest/core-client"; +import { isUnexpected } from "../rest/index.js"; +export function getLongRunningPoller(client, processResponseBody, options) { + const { restoreFrom, getInitialResponse } = options; + if (!restoreFrom && !getInitialResponse) { + throw new Error("Either restoreFrom or getInitialResponse must be specified"); + } + let initialResponse = undefined; + const pollAbortController = new AbortController(); + const poller = { + sendInitialRequest: async () => { + if (!getInitialResponse) { + throw new Error("getInitialResponse is required when initializing a new poller"); + } + initialResponse = await getInitialResponse(); + return getLroResponse(initialResponse); + }, + sendPollRequest: async (path, pollOptions) => { + // The poll request would both listen to the user provided abort signal and the poller's own abort signal + function abortListener() { + pollAbortController.abort(); + } + const abortSignal = pollAbortController.signal; + if (options.abortSignal?.aborted) { + pollAbortController.abort(); + } + else if (pollOptions?.abortSignal?.aborted) { + pollAbortController.abort(); + } + else if (!abortSignal.aborted) { + options.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + pollOptions?.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client.pathUnchecked(path).get({ abortSignal }); + } + finally { + options.abortSignal?.removeEventListener("abort", abortListener); + pollOptions?.abortSignal?.removeEventListener("abort", abortListener); + } + if (options.initialRequestUrl || initialResponse) { + response.headers["x-ms-original-url"] = + options.initialRequestUrl ?? initialResponse.request.url; + } + return getLroResponse(response); + }, + }; + return createHttpPoller(poller, { + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: options?.resourceLocationConfig, + restoreFrom: options?.restoreFrom, + processResult: (result) => { + return processResponseBody(result); + }, + }); +} +/** + * Converts a Rest Client response to a response that the LRO implementation understands + * @param response - a rest client http response + * @param deserializeFn - deserialize function to convert Rest response to modular output + * @returns - An LRO response that the LRO implementation understands + */ +function getLroResponse(response) { + if (isUnexpected(response)) { + throw createRestError(response); + } + return { + flatResponse: response, + rawResponse: { + ...response, + statusCode: Number.parseInt(response.status), + body: response.body, + }, + }; +} +//# sourceMappingURL=pollingHelpers.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js.map new file mode 100644 index 00000000000..6e4c82aca12 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["pollingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAGL,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA2BhD,MAAM,UAAU,oBAAoB,CAIlC,MAAc,EACd,mBAA4D,EAC5D,OAA+C;IAE/C,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;IACpD,IAAI,CAAC,WAAW,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CACb,4DAA4D,CAC7D,CAAC;IACJ,CAAC;IACD,IAAI,eAAe,GAA0B,SAAS,CAAC;IACvD,MAAM,mBAAmB,G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C,CAAC;gBACjE,WAAW,EAAE,WAAW,EAAE,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;YACxE,CAAC;YACD,IAAI,OAAO,CAAC,iBAAiB,IAAI,eAAe,EAAE,CAAC;gBACjD,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC;oBACnC,OAAO,CAAC,iBAAiB,IAAI,eAAgB,CAAC,OAAO,CAAC,GAAG,CAAC;YAC9D,CAAC;YAED,OAAO,cAAc,CAAC,QAAqB,CAAC,CAAC;QAC/C,CAAC;KACF,CAAC;IACF,OAAO,gBAAgB,CAAC,MAAM,EAAE;QAC9B,YAAY,EAAE,OAAO,EAAE,kBAAkB;QACzC,sBAAsB,EAAE,OAAO,EAAE,sBAAsB;QACvD,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,aAAa,EAAE,CAAC,MAAe,EAAE,EAAE;YACjC,OAAO,mBAAmB,CAAC,MAAmB,CAAC,CAAC;QAClD,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AACD;;;;;GAKG;AACH,SAAS,cAAc,CACrB,QAAmB;IAEnB,IAAI,YAAY,CAAC,QAAiC,CAAC,EAAE,CAAC;QACpD,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE;YACX,GAAG,QAAQ;YACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.ts new file mode 100644 index 00000000000..f3bd59e41b4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.ts @@ -0,0 +1,139 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + PollerLike, + OperationState, + ResourceLocationConfig, + RunningOperation, + createHttpPoller, + OperationResponse, +} from "@azure/core-lro"; + +import { + Client, + PathUncheckedResponse, + createRestError, +} from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; +import { isUnexpected } from "../rest/index.js"; + +export interface GetLongRunningPollerOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** + * The potential location of the result of the LRO if specified by the LRO extension in the swagger. + */ + resourceLocationConfig?: ResourceLocationConfig; + /** + * The original url of the LRO + * Should not be null when restoreFrom is set + */ + initialRequestUrl?: string; + /** + * A serialized poller which can be used to resume an existing paused Long-Running-Operation. + */ + restoreFrom?: string; + /** + * The function to get the initial response + */ + getInitialResponse?: () => PromiseLike; +} +export function getLongRunningPoller< + TResponse extends PathUncheckedResponse, + TResult = void, +>( + client: Client, + processResponseBody: (result: TResponse) => Promise, + options: GetLongRunningPollerOptions, +): PollerLike, TResult> { + const { restoreFrom, getInitialResponse } = options; + if (!restoreFrom && !getInitialResponse) { + throw new Error( + "Either restoreFrom or getInitialResponse must be specified", + ); + } + let initialResponse: TResponse | undefined = undefined; + const pollAbortController = new AbortController(); + const poller: RunningOperation = { + sendInitialRequest: async () => { + if (!getInitialResponse) { + throw new Error( + "getInitialResponse is required when initializing a new poller", + ); + } + initialResponse = await getInitialResponse(); + return getLroResponse(initialResponse); + }, + sendPollRequest: async ( + path: string, + pollOptions?: { + abortSignal?: AbortSignalLike; + }, + ) => { + // The poll request would both listen to the user provided abort signal and the poller's own abort signal + function abortListener(): void { + pollAbortController.abort(); + } + const abortSignal = pollAbortController.signal; + if (options.abortSignal?.aborted) { + pollAbortController.abort(); + } else if (pollOptions?.abortSignal?.aborted) { + pollAbortController.abort(); + } else if (!abortSignal.aborted) { + options.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + pollOptions?.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client.pathUnchecked(path).get({ abortSignal }); + } finally { + options.abortSignal?.removeEventListener("abort", abortListener); + pollOptions?.abortSignal?.removeEventListener("abort", abortListener); + } + if (options.initialRequestUrl || initialResponse) { + response.headers["x-ms-original-url"] = + options.initialRequestUrl ?? initialResponse!.request.url; + } + + return getLroResponse(response as TResponse); + }, + }; + return createHttpPoller(poller, { + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: options?.resourceLocationConfig, + restoreFrom: options?.restoreFrom, + processResult: (result: unknown) => { + return processResponseBody(result as TResponse); + }, + }); +} +/** + * Converts a Rest Client response to a response that the LRO implementation understands + * @param response - a rest client http response + * @param deserializeFn - deserialize function to convert Rest response to modular output + * @returns - An LRO response that the LRO implementation understands + */ +function getLroResponse( + response: TResponse, +): OperationResponse { + if (isUnexpected(response as PathUncheckedResponse)) { + throw createRestError(response); + } + return { + flatResponse: response, + rawResponse: { + ...response, + statusCode: Number.parseInt(response.status), + body: response.body, + }, + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts new file mode 100644 index 00000000000..85b0f58cb57 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts @@ -0,0 +1,33 @@ +import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; +import { DataProduct, DataProductUpdate, AccountSas, AccountSasToken, KeyVaultInfo, RoleAssignmentCommonProperties, RoleAssignmentDetail, ListRoleAssignments } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; +import { DataProductsCreateOptionalParams, DataProductsGetOptionalParams, DataProductsUpdateOptionalParams, DataProductsDeleteOptionalParams, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsRotateKeyOptionalParams, DataProductsAddUserRoleOptionalParams, DataProductsRemoveUserRoleOptionalParams, DataProductsListRolesAssignmentsOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsListBySubscriptionOptionalParams } from "../../models/options.js"; +export interface DataProductsOperations { + create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams) => PollerLike, DataProduct>; + get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams) => Promise; + update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams) => PollerLike, DataProduct>; + delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams) => PollerLike, void>; + generateStorageAccountSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams) => Promise; + rotateKey: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams) => Promise; + addUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams) => Promise; + removeUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams) => Promise; + listRolesAssignments: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams) => Promise; + listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; +} +export declare function getDataProducts(context: NetworkAnalyticsContext): { + create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams) => PollerLike, DataProduct>; + get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams) => Promise; + update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams) => PollerLike, DataProduct>; + delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams) => PollerLike, void>; + generateStorageAccountSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams) => Promise; + rotateKey: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams) => Promise; + addUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams) => Promise; + removeUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams) => Promise; + listRolesAssignments: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams) => Promise; + listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; +}; +export declare function getDataProductsOperations(context: NetworkAnalyticsContext): DataProductsOperations; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts.map new file mode 100644 index 00000000000..23f5653cc5e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,8BAA8B,EAC9B,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAchC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,gCAAgC,EAChC,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,wDAAwD,EACxD,mCAAmC,EACnC,qCAAqC,EACrC,wCAAwC,EACxC,8CAA8C,EAC9C,6CAA6C,EAC7C,4CAA4C,EAC7C,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,CACN,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,gCAAgC,KACvC,UAAU,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;IAC1D,GAAG,EAAE,CACH,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO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AAuB,GAC/B,sBAAsB,CAIxB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js new file mode 100644 index 00000000000..4fd837612af --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { create, get, update, $delete, generateStorageAccountSasToken, rotateKey, addUserRole, removeUserRole, listRolesAssignments, listByResourceGroup, listBySubscription, } from "../../api/dataProducts/index.js"; +export function getDataProducts(context) { + return { + create: (subscriptionId, resourceGroupName, dataProductName, resource, options) => create(context, subscriptionId, resourceGroupName, dataProductName, resource, options), + get: (subscriptionId, resourceGroupName, dataProductName, options) => get(context, subscriptionId, resourceGroupName, dataProductName, options), + update: (subscriptionId, resourceGroupName, dataProductName, properties, options) => update(context, subscriptionId, resourceGroupName, dataProductName, properties, options), + delete: (subscriptionId, resourceGroupName, dataProductName, options) => $delete(context, subscriptionId, resourceGroupName, dataProductName, options), + generateStorageAccountSasToken: (subscriptionId, resourceGroupName, dataProductName, body, options) => generateStorageAccountSasToken(context, subscriptionId, resourceGroupName, dataProductName, body, options), + rotateKey: (subscriptionId, resourceGroupName, dataProductName, body, options) => rotateKey(context, subscriptionId, resourceGroupName, dataProductName, body, options), + addUserRole: (subscriptionId, resourceGroupName, dataProductName, body, options) => addUserRole(context, subscriptionId, resourceGroupName, dataProductName, body, options), + removeUserRole: (subscriptionId, resourceGroupName, dataProductName, body, options) => removeUserRole(context, subscriptionId, resourceGroupName, dataProductName, body, options), + listRolesAssignments: (subscriptionId, resourceGroupName, dataProductName, body, options) => listRolesAssignments(context, subscriptionId, resourceGroupName, dataProductName, body, options), + listByResourceGroup: (subscriptionId, resourceGroupName, options) => listByResourceGroup(context, subscriptionId, resourceGroupName, options), + listBySubscription: (subscriptionId, options) => listBySubscription(context, subscriptionId, options), + }; +} +export function getDataProductsOperations(context) { + return { + ...getDataProducts(context), + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js.map new file mode 100644 index 00000000000..77cc82c88d7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAalC,OAAO,EACL,MAAM,EACN,GAAG,EACH,MAAM,EACN,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AA0FzC,MAAM,UAAU,eAAe,CAAC,OAAgC;IAC9D,OAAO;QACL,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,QAAqB,EACrB,OAA0C,EAC1C,EAAE,CACF,MAAM,CACJ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,OAAO,CACR;QACH,GAAG,EAAE,CACH,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,OAAuC,EACvC,EAAE,CACF,GAAG,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO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,EACjB,eAAe,EACf,IAAI,EACJ,OAAO,CACR;QACH,mBAAmB,EAAE,CACnB,cAAsB,EACtB,iBAAyB,EACzB,OAAuD,EACvD,EAAE,CACF,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC1E,kBAAkB,EAAE,CAClB,cAAsB,EACtB,OAAsD,EACtD,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,OAAgC;IAEhC,OAAO;QACL,GAAG,eAAe,CAAC,OAAO,CAAC;KAC5B,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.ts new file mode 100644 index 00000000000..c6780397e84 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.ts @@ -0,0 +1,263 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; +import { + DataProduct, + DataProductUpdate, + AccountSas, + AccountSasToken, + KeyVaultInfo, + RoleAssignmentCommonProperties, + RoleAssignmentDetail, + ListRoleAssignments, +} from "../../models/models.js"; +import { + create, + get, + update, + $delete, + generateStorageAccountSasToken, + rotateKey, + addUserRole, + removeUserRole, + listRolesAssignments, + listByResourceGroup, + listBySubscription, +} from "../../api/dataProducts/index.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; +import { + DataProductsCreateOptionalParams, + DataProductsGetOptionalParams, + DataProductsUpdateOptionalParams, + DataProductsDeleteOptionalParams, + DataProductsGenerateStorageAccountSasTokenOptionalParams, + DataProductsRotateKeyOptionalParams, + DataProductsAddUserRoleOptionalParams, + DataProductsRemoveUserRoleOptionalParams, + DataProductsListRolesAssignmentsOptionalParams, + DataProductsListByResourceGroupOptionalParams, + DataProductsListBySubscriptionOptionalParams, +} from "../../models/options.js"; + +export interface DataProductsOperations { + create: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + resource: DataProduct, + options?: DataProductsCreateOptionalParams, + ) => PollerLike, DataProduct>; + get: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options?: DataProductsGetOptionalParams, + ) => Promise; + update: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + properties: DataProductUpdate, + options?: DataProductsUpdateOptionalParams, + ) => PollerLike, DataProduct>; + delete: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options?: DataProductsDeleteOptionalParams, + ) => PollerLike, void>; + generateStorageAccountSasToken: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: AccountSas, + options?: DataProductsGenerateStorageAccountSasTokenOptionalParams, + ) => Promise; + rotateKey: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: KeyVaultInfo, + options?: DataProductsRotateKeyOptionalParams, + ) => Promise; + addUserRole: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentCommonProperties, + options?: DataProductsAddUserRoleOptionalParams, + ) => Promise; + removeUserRole: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentDetail, + options?: DataProductsRemoveUserRoleOptionalParams, + ) => Promise; + listRolesAssignments: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: Record, + options?: DataProductsListRolesAssignmentsOptionalParams, + ) => Promise; + listByResourceGroup: ( + subscriptionId: string, + resourceGroupName: string, + options?: DataProductsListByResourceGroupOptionalParams, + ) => PagedAsyncIterableIterator; + listBySubscription: ( + subscriptionId: string, + options?: DataProductsListBySubscriptionOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getDataProducts(context: NetworkAnalyticsContext) { + return { + create: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + resource: DataProduct, + options?: DataProductsCreateOptionalParams, + ) => + create( + context, + subscriptionId, + resourceGroupName, + dataProductName, + resource, + options, + ), + get: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options?: DataProductsGetOptionalParams, + ) => + get(context, subscriptionId, resourceGroupName, dataProductName, options), + update: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + properties: DataProductUpdate, + options?: DataProductsUpdateOptionalParams, + ) => + update( + context, + subscriptionId, + resourceGroupName, + dataProductName, + properties, + options, + ), + delete: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options?: DataProductsDeleteOptionalParams, + ) => + $delete( + context, + subscriptionId, + resourceGroupName, + dataProductName, + options, + ), + generateStorageAccountSasToken: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: AccountSas, + options?: DataProductsGenerateStorageAccountSasTokenOptionalParams, + ) => + generateStorageAccountSasToken( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ), + rotateKey: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: KeyVaultInfo, + options?: DataProductsRotateKeyOptionalParams, + ) => + rotateKey( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ), + addUserRole: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentCommonProperties, + options?: DataProductsAddUserRoleOptionalParams, + ) => + addUserRole( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ), + removeUserRole: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: RoleAssignmentDetail, + options?: DataProductsRemoveUserRoleOptionalParams, + ) => + removeUserRole( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ), + listRolesAssignments: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + body: Record, + options?: DataProductsListRolesAssignmentsOptionalParams, + ) => + listRolesAssignments( + context, + subscriptionId, + resourceGroupName, + dataProductName, + body, + options, + ), + listByResourceGroup: ( + subscriptionId: string, + resourceGroupName: string, + options?: DataProductsListByResourceGroupOptionalParams, + ) => + listByResourceGroup(context, subscriptionId, resourceGroupName, options), + listBySubscription: ( + subscriptionId: string, + options?: DataProductsListBySubscriptionOptionalParams, + ) => listBySubscription(context, subscriptionId, options), + }; +} + +export function getDataProductsOperations( + context: NetworkAnalyticsContext, +): DataProductsOperations { + return { + ...getDataProducts(context), + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts new file mode 100644 index 00000000000..80fec841a10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts @@ -0,0 +1,16 @@ +import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; +import { DataProductsCatalog } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { DataProductsCatalogsGetOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsListBySubscriptionOptionalParams } from "../../models/options.js"; +export interface DataProductsCatalogsOperations { + get: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams) => Promise; + listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; +} +export declare function getDataProductsCatalogs(context: NetworkAnalyticsContext): { + get: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams) => Promise; + listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; +}; +export declare function getDataProductsCatalogsOperations(context: NetworkAnalyticsContext): DataProductsCatalogsOperations; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts.map new file mode 100644 index 00000000000..ba129653e66 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAM7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EACL,qCAAqC,EACrC,qDAAqD,EACrD,oDAAoD,EACrD,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,8BAA8B;IAC7C,GAAG,EAAE,CACH,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,KAC5C,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClC,mBAAmB,EAAE,CACnB,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,KAC5D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACrD,kBAAkB,EAAE,CAClB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,oDAAoD,KAC3D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;CACtD;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,uBAAuB;0BAGlD,MAAM,qBACH,MAAM,YACf,qCAAqC;0CAG/B,MAAM,qBACH,MAAM,YACf,qDAAqD;yCAI/C,MAAM,YACZ,oDAAoD;EAGnE;AAED,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,uBAAuB,GAC/B,8BAA8B,CAIhC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js new file mode 100644 index 00000000000..31793e82165 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { get, listByResourceGroup, listBySubscription, } from "../../api/dataProductsCatalogs/index.js"; +export function getDataProductsCatalogs(context) { + return { + get: (subscriptionId, resourceGroupName, options) => get(context, subscriptionId, resourceGroupName, options), + listByResourceGroup: (subscriptionId, resourceGroupName, options) => listByResourceGroup(context, subscriptionId, resourceGroupName, options), + listBySubscription: (subscriptionId, options) => listBySubscription(context, subscriptionId, options), + }; +} +export function getDataProductsCatalogsOperations(context) { + return { + ...getDataProductsCatalogs(context), + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js.map new file mode 100644 index 00000000000..0b29ce3582c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,GAAG,EACH,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,yCAAyC,CAAC;AAyBjD,MAAM,UAAU,uBAAuB,CAAC,OAAgC;IACtE,OAAO;QACL,GAAG,EAAE,CACH,cAAsB,EACtB,iBAAyB,EACzB,OAA+C,EAC/C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,mBAAmB,EAAE,CACnB,cAAsB,EACtB,iBAAyB,EACzB,OAA+D,EAC/D,EAAE,CACF,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC1E,kBAAkB,EAAE,CAClB,cAAsB,EACtB,OAA8D,EAC9D,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAAgC;IAEhC,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.ts new file mode 100644 index 00000000000..017a35e7fd8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.ts @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; +import { DataProductsCatalog } from "../../models/models.js"; +import { + get, + listByResourceGroup, + listBySubscription, +} from "../../api/dataProductsCatalogs/index.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { + DataProductsCatalogsGetOptionalParams, + DataProductsCatalogsListByResourceGroupOptionalParams, + DataProductsCatalogsListBySubscriptionOptionalParams, +} from "../../models/options.js"; + +export interface DataProductsCatalogsOperations { + get: ( + subscriptionId: string, + resourceGroupName: string, + options?: DataProductsCatalogsGetOptionalParams, + ) => Promise; + listByResourceGroup: ( + subscriptionId: string, + resourceGroupName: string, + options?: DataProductsCatalogsListByResourceGroupOptionalParams, + ) => PagedAsyncIterableIterator; + listBySubscription: ( + subscriptionId: string, + options?: DataProductsCatalogsListBySubscriptionOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getDataProductsCatalogs(context: NetworkAnalyticsContext) { + return { + get: ( + subscriptionId: string, + resourceGroupName: string, + options?: DataProductsCatalogsGetOptionalParams, + ) => get(context, subscriptionId, resourceGroupName, options), + listByResourceGroup: ( + subscriptionId: string, + resourceGroupName: string, + options?: DataProductsCatalogsListByResourceGroupOptionalParams, + ) => + listByResourceGroup(context, subscriptionId, resourceGroupName, options), + listBySubscription: ( + subscriptionId: string, + options?: DataProductsCatalogsListBySubscriptionOptionalParams, + ) => listBySubscription(context, subscriptionId, options), + }; +} + +export function getDataProductsCatalogsOperations( + context: NetworkAnalyticsContext, +): DataProductsCatalogsOperations { + return { + ...getDataProductsCatalogs(context), + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts new file mode 100644 index 00000000000..fdc341f0f99 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts @@ -0,0 +1,25 @@ +import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; +import { DataType, DataTypeUpdate, ContainerSaS, ContainerSasToken } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; +import { DataTypesCreateOptionalParams, DataTypesGetOptionalParams, DataTypesUpdateOptionalParams, DataTypesDeleteOptionalParams, DataTypesDeleteDataOptionalParams, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesListByDataProductOptionalParams } from "../../models/options.js"; +export interface DataTypesOperations { + create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams) => PollerLike, DataType>; + get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams) => Promise; + update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams) => PollerLike, DataType>; + delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams) => PollerLike, void>; + deleteData: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams) => PollerLike, void>; + generateStorageContainerSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams) => Promise; + listByDataProduct: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams) => PagedAsyncIterableIterator; +} +export declare function getDataTypes(context: NetworkAnalyticsContext): { + create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams) => PollerLike, DataType>; + get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams) => Promise; + update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams) => PollerLike, DataType>; + delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams) => PollerLike, void>; + deleteData: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams) => PollerLike, void>; + generateStorageContainerSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams) => Promise; + listByDataProduct: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams) => PagedAsyncIterableIterator; +}; +export declare function getDataTypesOperations(context: NetworkAnalyticsContext): DataTypesOperations; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts.map new file mode 100644 index 00000000000..05a73dc8e71 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EACL,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,uDAAuD,EACvD,wCAAwC,EACzC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,CACN,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,CAAC,EAAE,6BAA6B,KACpC,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;IACpD,GAAG,EAAE,CACH,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,0BAA0B,KACjC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvB,MAAM,EAAE,CACN,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,cAAc,EAC1B,OAAO,CAAC,EAAE,6BAA6B,KACpC,UAAU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,gBACT,MAAM,YACV,6BAA6B;iCAWvB,MAAM,qBACH,MAAM,mBACR,MAAM,gBACT,MAAM,QACd,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YACf,iCAAiC;uDAY3B,MAAM,qBACH,MAAM,mBACR,MAAM,gBACT,MAAM,QACd,YAAY,YACR,uDAAuD;wCAYjD,MAAM,qBACH,MAAM,mBACR,MAAM,YACb,wCAAwC;EAUvD;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,mBAAmB,CAIrB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js new file mode 100644 index 00000000000..4cdc21479c5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { create, get, update, $delete, deleteData, generateStorageContainerSasToken, listByDataProduct, } from "../../api/dataTypes/index.js"; +export function getDataTypes(context) { + return { + create: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options) => create(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options), + get: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, options) => get(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options), + update: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options) => update(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options), + delete: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, options) => $delete(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options), + deleteData: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options) => deleteData(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options), + generateStorageContainerSasToken: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options) => generateStorageContainerSasToken(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options), + listByDataProduct: (subscriptionId, resourceGroupName, dataProductName, options) => listByDataProduct(context, subscriptionId, resourceGroupName, dataProductName, options), + }; +} +export function getDataTypesOperations(context) { + return { + ...getDataTypes(context), + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js.map new file mode 100644 index 00000000000..e525c90f7a5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,MAAM,EACN,GAAG,EACH,MAAM,EACN,OAAO,EACP,UAAU,EACV,gCAAgC,EAChC,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAoEtC,MAAM,UAAU,YAAY,CAAC,OAAgC;IAC3D,OAAO;QACL,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,QAAkB,EAClB,OAAuC,EACvC,EAAE,CACF,MAAM,CACJ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,OAAO,CACR;QACH,GAAG,EAAE,CACH,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,OAAoC,EACpC,EAAE,CACF,GAAG,CACD,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,OAAO,CACR;QACH,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,UAA0B,EAC1B,OAAuC,EACvC,EAAE,CACF,MAAM,CACJ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,UAAU,EACV,OAAO,CACR;QACH,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,OAAuC,EACvC,EAAE,CACF,OAAO,CACL,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,OAAO,CACR;QACH,UAAU,EAAE,CACV,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,IAAyB,EACzB,OAA2C,EAC3C,EAAE,CACF,UAAU,CACR,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,OAAO,CACR;QACH,gCAAgC,EAAE,CAChC,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,IAAkB,EAClB,OAAiE,EACjE,EAAE,CACF,gCAAgC,CAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,OAAO,CACR;QACH,iBAAiB,EAAE,CACjB,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,OAAkD,EAClD,EAAE,CACF,iBAAiB,CACf,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,OAAgC;IAEhC,OAAO;QACL,GAAG,YAAY,CAAC,OAAO,CAAC;KACzB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.ts new file mode 100644 index 00000000000..7a5bed98f51 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.ts @@ -0,0 +1,209 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; +import { + DataType, + DataTypeUpdate, + ContainerSaS, + ContainerSasToken, +} from "../../models/models.js"; +import { + create, + get, + update, + $delete, + deleteData, + generateStorageContainerSasToken, + listByDataProduct, +} from "../../api/dataTypes/index.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; +import { + DataTypesCreateOptionalParams, + DataTypesGetOptionalParams, + DataTypesUpdateOptionalParams, + DataTypesDeleteOptionalParams, + DataTypesDeleteDataOptionalParams, + DataTypesGenerateStorageContainerSasTokenOptionalParams, + DataTypesListByDataProductOptionalParams, +} from "../../models/options.js"; + +export interface DataTypesOperations { + create: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + resource: DataType, + options?: DataTypesCreateOptionalParams, + ) => PollerLike, DataType>; + get: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesGetOptionalParams, + ) => Promise; + update: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + properties: DataTypeUpdate, + options?: DataTypesUpdateOptionalParams, + ) => PollerLike, DataType>; + delete: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesDeleteOptionalParams, + ) => PollerLike, void>; + deleteData: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: Record, + options?: DataTypesDeleteDataOptionalParams, + ) => PollerLike, void>; + generateStorageContainerSasToken: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: ContainerSaS, + options?: DataTypesGenerateStorageContainerSasTokenOptionalParams, + ) => Promise; + listByDataProduct: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options?: DataTypesListByDataProductOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getDataTypes(context: NetworkAnalyticsContext) { + return { + create: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + resource: DataType, + options?: DataTypesCreateOptionalParams, + ) => + create( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + resource, + options, + ), + get: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesGetOptionalParams, + ) => + get( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + options, + ), + update: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + properties: DataTypeUpdate, + options?: DataTypesUpdateOptionalParams, + ) => + update( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + properties, + options, + ), + delete: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + options?: DataTypesDeleteOptionalParams, + ) => + $delete( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + options, + ), + deleteData: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: Record, + options?: DataTypesDeleteDataOptionalParams, + ) => + deleteData( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + body, + options, + ), + generateStorageContainerSasToken: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + body: ContainerSaS, + options?: DataTypesGenerateStorageContainerSasTokenOptionalParams, + ) => + generateStorageContainerSasToken( + context, + subscriptionId, + resourceGroupName, + dataProductName, + dataTypeName, + body, + options, + ), + listByDataProduct: ( + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + options?: DataTypesListByDataProductOptionalParams, + ) => + listByDataProduct( + context, + subscriptionId, + resourceGroupName, + dataProductName, + options, + ), + }; +} + +export function getDataTypesOperations( + context: NetworkAnalyticsContext, +): DataTypesOperations { + return { + ...getDataTypes(context), + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts new file mode 100644 index 00000000000..f9cd341826b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts @@ -0,0 +1,5 @@ +export { DataProductsOperations } from "./dataProducts/index.js"; +export { DataProductsCatalogsOperations } from "./dataProductsCatalogs/index.js"; +export { DataTypesOperations } from "./dataTypes/index.js"; +export { OperationsOperations } from "./operations/index.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts.map new file mode 100644 index 00000000000..35e891fe6a4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js new file mode 100644 index 00000000000..f24ddb28ec4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js.map new file mode 100644 index 00000000000..cc9128b8ecc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.ts new file mode 100644 index 00000000000..c3085aa6f3a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.ts @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export { DataProductsOperations } from "./dataProducts/index.js"; +export { DataProductsCatalogsOperations } from "./dataProductsCatalogs/index.js"; +export { DataTypesOperations } from "./dataTypes/index.js"; +export { OperationsOperations } from "./operations/index.js"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts new file mode 100644 index 00000000000..003c5840f1a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts @@ -0,0 +1,12 @@ +import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; +import { Operation } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { OperationsListOptionalParams } from "../../models/options.js"; +export interface OperationsOperations { + list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; +} +export declare function getOperations(context: NetworkAnalyticsContext): { + list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; +}; +export declare function getOperationsOperations(context: NetworkAnalyticsContext): OperationsOperations; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts.map new file mode 100644 index 00000000000..ed908a9c8a9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,CACJ,OAAO,CAAC,EAAE,4BAA4B,KACnC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC5C;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,uBAAuB;qBAEzC,4BAA4B;EAEhD;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,uBAAuB,GAC/B,oBAAoB,CAItB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js new file mode 100644 index 00000000000..61237580d5e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { list } from "../../api/operations/index.js"; +export function getOperations(context) { + return { + list: (options) => list(context, options), + }; +} +export function getOperationsOperations(context) { + return { + ...getOperations(context), + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js.map new file mode 100644 index 00000000000..82caada12cf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,aAAa,CAAC,OAAgC;IAC5D,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,OAAgC;IAEhC,OAAO;QACL,GAAG,aAAa,CAAC,OAAO,CAAC;KAC1B,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.ts new file mode 100644 index 00000000000..2ea697a9d67 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; +import { Operation } from "../../models/models.js"; +import { list } from "../../api/operations/index.js"; +import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { OperationsListOptionalParams } from "../../models/options.js"; + +export interface OperationsOperations { + list: ( + options?: OperationsListOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getOperations(context: NetworkAnalyticsContext) { + return { + list: (options?: OperationsListOptionalParams) => list(context, options), + }; +} + +export function getOperationsOperations( + context: NetworkAnalyticsContext, +): OperationsOperations { + return { + ...getOperations(context), + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts new file mode 100644 index 00000000000..5e6832eb6ef --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts @@ -0,0 +1,5 @@ +export { NetworkAnalyticsClient, NetworkAnalyticsClientOptions, } from "./networkAnalyticsClient.js"; +export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; +export { Resource, SystemData, CreatedByType, TrackedResource, DataProduct, DataProductProperties, ProvisioningState, ControlState, EncryptionKeyDetails, DataProductNetworkAcls, VirtualNetworkRule, IPRules, DefaultAction, ManagedResourceGroupConfiguration, ConsumptionEndpointsProperties, ManagedServiceIdentity, ManagedServiceIdentityType, UserAssignedIdentity, UserAssignedIdentities, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, DataProductUpdate, DataProductUpdateProperties, ArmOperationStatus, ResourceProvisioningState, AccountSas, AccountSasToken, KeyVaultInfo, RoleAssignmentCommonProperties, DataProductUserRole, RoleAssignmentDetail, ListRoleAssignments, DataProductListResult, ProxyResource, DataType, DataTypeProperties, DataTypeState, DataTypeUpdate, DataTypeUpdateProperties, ContainerSaS, ContainerSasToken, DataTypeListResult, DataProductsCatalog, DataProductsCatalogProperties, PublisherInformation, DataProductInformation, DataProductVersion, DataProductsCatalogListResult, PagedOperation, Operation, OperationDisplay, Origin, ActionType, Versions, OperationsListOptionalParams, DataProductsCatalogsGetOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsListBySubscriptionOptionalParams, DataTypesCreateOptionalParams, DataTypesGetOptionalParams, DataTypesUpdateOptionalParams, DataTypesDeleteOptionalParams, DataTypesDeleteDataOptionalParams, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesListByDataProductOptionalParams, DataProductsCreateOptionalParams, DataProductsGetOptionalParams, DataProductsUpdateOptionalParams, DataProductsDeleteOptionalParams, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsRotateKeyOptionalParams, DataProductsAddUserRoleOptionalParams, DataProductsRemoveUserRoleOptionalParams, DataProductsListRolesAssignmentsOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsListBySubscriptionOptionalParams, PageSettings, ContinuablePage, PagedAsyncIterableIterator, } from "./models/index.js"; +export { DataProductsOperations, DataProductsCatalogsOperations, DataTypesOperations, OperationsOperations, } from "./classic/index.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts.map new file mode 100644 index 00000000000..3c01338a43c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,OAAO,EACP,aAAa,EACb,iCAAiC,EACjC,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,4BAA4B,EAC5B,qCAAqC,EACrC,qDAAqD,EACrD,oDAAoD,EACpD,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,uDAAuD,EACvD,wCAAwC,EACxC,gCAAgC,EAChC,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,wDAAwD,EACxD,mCAAmC,EACnC,qCAAqC,EACrC,wCAAwC,EACxC,8CAA8C,EAC9C,6CAA6C,EAC7C,4CAA4C,EAC5C,YAAY,EACZ,eAAe,EACf,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js new file mode 100644 index 00000000000..cc4bab0020e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export { NetworkAnalyticsClient, } from "./networkAnalyticsClient.js"; +export { restorePoller } from "./restorePollerHelpers.js"; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js.map new file mode 100644 index 00000000000..14ef5812bd0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sBAAsB,GAEvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAwB,MAAM,2BAA2B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.ts new file mode 100644 index 00000000000..582a7364da6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.ts @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export { + NetworkAnalyticsClient, + NetworkAnalyticsClientOptions, +} from "./networkAnalyticsClient.js"; +export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; +export { + Resource, + SystemData, + CreatedByType, + TrackedResource, + DataProduct, + DataProductProperties, + ProvisioningState, + ControlState, + EncryptionKeyDetails, + DataProductNetworkAcls, + VirtualNetworkRule, + IPRules, + DefaultAction, + ManagedResourceGroupConfiguration, + ConsumptionEndpointsProperties, + ManagedServiceIdentity, + ManagedServiceIdentityType, + UserAssignedIdentity, + UserAssignedIdentities, + ErrorResponse, + ErrorDetail, + ErrorAdditionalInfo, + DataProductUpdate, + DataProductUpdateProperties, + ArmOperationStatus, + ResourceProvisioningState, + AccountSas, + AccountSasToken, + KeyVaultInfo, + RoleAssignmentCommonProperties, + DataProductUserRole, + RoleAssignmentDetail, + ListRoleAssignments, + DataProductListResult, + ProxyResource, + DataType, + DataTypeProperties, + DataTypeState, + DataTypeUpdate, + DataTypeUpdateProperties, + ContainerSaS, + ContainerSasToken, + DataTypeListResult, + DataProductsCatalog, + DataProductsCatalogProperties, + PublisherInformation, + DataProductInformation, + DataProductVersion, + DataProductsCatalogListResult, + PagedOperation, + Operation, + OperationDisplay, + Origin, + ActionType, + Versions, + OperationsListOptionalParams, + DataProductsCatalogsGetOptionalParams, + DataProductsCatalogsListByResourceGroupOptionalParams, + DataProductsCatalogsListBySubscriptionOptionalParams, + DataTypesCreateOptionalParams, + DataTypesGetOptionalParams, + DataTypesUpdateOptionalParams, + DataTypesDeleteOptionalParams, + DataTypesDeleteDataOptionalParams, + DataTypesGenerateStorageContainerSasTokenOptionalParams, + DataTypesListByDataProductOptionalParams, + DataProductsCreateOptionalParams, + DataProductsGetOptionalParams, + DataProductsUpdateOptionalParams, + DataProductsDeleteOptionalParams, + DataProductsGenerateStorageAccountSasTokenOptionalParams, + DataProductsRotateKeyOptionalParams, + DataProductsAddUserRoleOptionalParams, + DataProductsRemoveUserRoleOptionalParams, + DataProductsListRolesAssignmentsOptionalParams, + DataProductsListByResourceGroupOptionalParams, + DataProductsListBySubscriptionOptionalParams, + PageSettings, + ContinuablePage, + PagedAsyncIterableIterator, +} from "./models/index.js"; +export { + DataProductsOperations, + DataProductsCatalogsOperations, + DataTypesOperations, + OperationsOperations, +} from "./classic/index.js"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts new file mode 100644 index 00000000000..66ece8e69dd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts @@ -0,0 +1,2 @@ +export declare const logger: any; +//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts.map new file mode 100644 index 00000000000..99272a543b1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,KAA6C,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js new file mode 100644 index 00000000000..7e939bf5277 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("arm-networkanalytics"); +//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js.map new file mode 100644 index 00000000000..c3ee896dfb4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js.map @@ -0,0 +1 @@ +{"version":3,"file":"logger.js","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.ts new file mode 100644 index 00000000000..409e00e83f7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("arm-networkanalytics"); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts new file mode 100644 index 00000000000..11275b61c53 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts @@ -0,0 +1,4 @@ +export { Resource, SystemData, CreatedByType, TrackedResource, DataProduct, DataProductProperties, ProvisioningState, ControlState, EncryptionKeyDetails, DataProductNetworkAcls, VirtualNetworkRule, IPRules, DefaultAction, ManagedResourceGroupConfiguration, ConsumptionEndpointsProperties, ManagedServiceIdentity, ManagedServiceIdentityType, UserAssignedIdentity, UserAssignedIdentities, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, DataProductUpdate, DataProductUpdateProperties, ArmOperationStatus, ResourceProvisioningState, AccountSas, AccountSasToken, KeyVaultInfo, RoleAssignmentCommonProperties, DataProductUserRole, RoleAssignmentDetail, ListRoleAssignments, DataProductListResult, ProxyResource, DataType, DataTypeProperties, DataTypeState, DataTypeUpdate, DataTypeUpdateProperties, ContainerSaS, ContainerSasToken, DataTypeListResult, DataProductsCatalog, DataProductsCatalogProperties, PublisherInformation, DataProductInformation, DataProductVersion, DataProductsCatalogListResult, PagedOperation, Operation, OperationDisplay, Origin, ActionType, Versions, } from "./models.js"; +export { OperationsListOptionalParams, DataProductsCatalogsGetOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsListBySubscriptionOptionalParams, DataTypesCreateOptionalParams, DataTypesGetOptionalParams, DataTypesUpdateOptionalParams, DataTypesDeleteOptionalParams, DataTypesDeleteDataOptionalParams, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesListByDataProductOptionalParams, DataProductsCreateOptionalParams, DataProductsGetOptionalParams, DataProductsUpdateOptionalParams, DataProductsDeleteOptionalParams, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsRotateKeyOptionalParams, DataProductsAddUserRoleOptionalParams, DataProductsRemoveUserRoleOptionalParams, DataProductsListRolesAssignmentsOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsListBySubscriptionOptionalParams, } from "./options.js"; +export { PageSettings, ContinuablePage, PagedAsyncIterableIterator, } from "./pagingTypes.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts.map new file mode 100644 index 00000000000..32ad0ed7c46 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,OAAO,EACP,aAAa,EACb,iCAAiC,EACjC,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,QAAQ,GACT,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EACrC,qDAAqD,EACrD,oDAAoD,EACpD,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,uDAAuD,EACvD,wCAAwC,EACxC,gCAAgC,EAChC,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,wDAAwD,EACxD,mCAAmC,EACnC,qCAAqC,EACrC,wCAAwC,EACxC,8CAA8C,EAC9C,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,YAAY,EACZ,eAAe,EACf,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js new file mode 100644 index 00000000000..f24ddb28ec4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js.map new file mode 100644 index 00000000000..cc9128b8ecc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.ts new file mode 100644 index 00000000000..55b6b705ea9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.ts @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export { + Resource, + SystemData, + CreatedByType, + TrackedResource, + DataProduct, + DataProductProperties, + ProvisioningState, + ControlState, + EncryptionKeyDetails, + DataProductNetworkAcls, + VirtualNetworkRule, + IPRules, + DefaultAction, + ManagedResourceGroupConfiguration, + ConsumptionEndpointsProperties, + ManagedServiceIdentity, + ManagedServiceIdentityType, + UserAssignedIdentity, + UserAssignedIdentities, + ErrorResponse, + ErrorDetail, + ErrorAdditionalInfo, + DataProductUpdate, + DataProductUpdateProperties, + ArmOperationStatus, + ResourceProvisioningState, + AccountSas, + AccountSasToken, + KeyVaultInfo, + RoleAssignmentCommonProperties, + DataProductUserRole, + RoleAssignmentDetail, + ListRoleAssignments, + DataProductListResult, + ProxyResource, + DataType, + DataTypeProperties, + DataTypeState, + DataTypeUpdate, + DataTypeUpdateProperties, + ContainerSaS, + ContainerSasToken, + DataTypeListResult, + DataProductsCatalog, + DataProductsCatalogProperties, + PublisherInformation, + DataProductInformation, + DataProductVersion, + DataProductsCatalogListResult, + PagedOperation, + Operation, + OperationDisplay, + Origin, + ActionType, + Versions, +} from "./models.js"; +export { + OperationsListOptionalParams, + DataProductsCatalogsGetOptionalParams, + DataProductsCatalogsListByResourceGroupOptionalParams, + DataProductsCatalogsListBySubscriptionOptionalParams, + DataTypesCreateOptionalParams, + DataTypesGetOptionalParams, + DataTypesUpdateOptionalParams, + DataTypesDeleteOptionalParams, + DataTypesDeleteDataOptionalParams, + DataTypesGenerateStorageContainerSasTokenOptionalParams, + DataTypesListByDataProductOptionalParams, + DataProductsCreateOptionalParams, + DataProductsGetOptionalParams, + DataProductsUpdateOptionalParams, + DataProductsDeleteOptionalParams, + DataProductsGenerateStorageAccountSasTokenOptionalParams, + DataProductsRotateKeyOptionalParams, + DataProductsAddUserRoleOptionalParams, + DataProductsRemoveUserRoleOptionalParams, + DataProductsListRolesAssignmentsOptionalParams, + DataProductsListByResourceGroupOptionalParams, + DataProductsListBySubscriptionOptionalParams, +} from "./options.js"; +export { + PageSettings, + ContinuablePage, + PagedAsyncIterableIterator, +} from "./pagingTypes.js"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts new file mode 100644 index 00000000000..12fb0e2b925 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts @@ -0,0 +1,454 @@ +/** Common properties for all Azure Resource Manager resources. */ +export interface Resource { + /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ + readonly id?: string; + /** The name of the resource */ + readonly name?: string; + /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ + readonly type?: string; + /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ + readonly systemData?: SystemData; +} +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + readonly createdBy?: string; + /** The type of identity that created the resource. */ + readonly createdByType?: CreatedByType; + /** The type of identity that created the resource. */ + readonly createdAt?: Date; + /** The identity that last modified the resource. */ + readonly lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + readonly lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + readonly lastModifiedAt?: Date; +} +/** The kind of entity that created the resource. */ +/** "User", "Application", "ManagedIdentity", "Key" */ +export type CreatedByType = string; +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** The geo-location where the resource lives */ + location: string; + /** Resource tags. */ + tags?: Record; +} +/** The data product resource. */ +export interface DataProduct extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductProperties; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; +} +/** The data product properties. */ +export interface DataProductProperties { + /** The resource GUID property of the data product resource. */ + readonly resourceGuid?: string; + /** Latest provisioning state of data product. */ + readonly provisioningState?: ProvisioningState; + /** Data product publisher name. */ + publisher: string; + /** Product name of data product. */ + product: string; + /** Major version of data product. */ + majorVersion: string; + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Flag to enable or disable redundancy for data product. */ + redundancy?: ControlState; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Flag to enable or disable public access of data product resource. */ + publicNetworkAccess?: ControlState; + /** Flag to enable customer managed key encryption for data product. */ + customerManagedKeyEncryptionEnabled?: ControlState; + /** Customer managed encryption key details for data product. */ + customerEncryptionKey?: EncryptionKeyDetails; + /** Network rule set for data product. */ + networkacls?: DataProductNetworkAcls; + /** Managed resource group configuration. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + /** List of available minor versions of the data product resource. */ + readonly availableMinorVersions?: string[]; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; + /** Documentation link for the data product based on definition file. */ + readonly documentation?: string; + /** Resource links which exposed to the customer to query the data. */ + readonly consumptionEndpoints?: ConsumptionEndpointsProperties; + /** Key vault url. */ + readonly keyVaultUrl?: string; +} +/** The status of the current operation. */ +/** "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted" */ +export type ProvisioningState = string; +/** The data type state */ +/** "Enabled", "Disabled" */ +export type ControlState = string; +/** Encryption key details. */ +export interface EncryptionKeyDetails { + /** The Uri of the key vault. */ + keyVaultUri: string; + /** The name of the key vault key. */ + keyName: string; + /** The version of the key vault key. */ + keyVersion: string; +} +/** Data Product Network rule set */ +export interface DataProductNetworkAcls { + /** Virtual Network Rule */ + virtualNetworkRule: VirtualNetworkRule[]; + /** IP rule with specific IP or IP range in CIDR format. */ + ipRules: IPRules[]; + /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ + allowedQueryIpRangeList: string[]; + /** Default Action */ + defaultAction: DefaultAction; +} +/** Virtual Network Rule */ +export interface VirtualNetworkRule { + /** Resource ID of a subnet */ + id: string; + /** The action of virtual network rule. */ + action?: string; + /** Gets the state of virtual network rule. */ + state?: string; +} +/** IP rule with specific IP or IP range in CIDR format. */ +export interface IPRules { + /** IP Rules Value */ + value?: string; + /** The action of virtual network rule. */ + action: string; +} +/** Specifies the default action of allow or deny when no other rules match. */ +/** "Allow", "Deny" */ +export type DefaultAction = string; +/** ManagedResourceGroup related properties */ +export interface ManagedResourceGroupConfiguration { + /** Name of managed resource group */ + name: string; + /** Managed Resource Group location */ + location: string; +} +/** Details of Consumption Properties */ +export interface ConsumptionEndpointsProperties { + /** Ingestion url to upload the data. */ + readonly ingestionUrl?: string; + /** Resource Id of ingestion endpoint. */ + readonly ingestionResourceId?: string; + /** Url to consume file type. */ + readonly fileAccessUrl?: string; + /** Resource Id of file access endpoint. */ + readonly fileAccessResourceId?: string; + /** Url to consume the processed data. */ + readonly queryUrl?: string; + /** Resource Id of query endpoint. */ + readonly queryResourceId?: string; +} +/** The properties of the managed service identities assigned to this resource. */ +export interface ManagedServiceIdentity { + /** The Active Directory tenant id of the principal. */ + readonly tenantId?: string; + /** The active directory identifier of this principal. */ + readonly principalId?: string; + /** The type of managed identity assigned to this resource. */ + type: ManagedServiceIdentityType; + /** The identities assigned to this resource by the user. */ + userAssignedIdentities?: UserAssignedIdentities; +} +/** The kind of managed identity assigned to this resource. */ +/** "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" */ +export type ManagedServiceIdentityType = string; +/** A managed identity assigned by the user. */ +export interface UserAssignedIdentity { + /** The active directory client identifier for this principal. */ + clientId?: string; + /** The active directory identifier for this principal. */ + principalId?: string; +} +/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ +export interface UserAssignedIdentities extends Record { +} +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} +/** The error detail. */ +export interface ErrorDetail { + /** The error code. */ + readonly code?: string; + /** The error message. */ + readonly message?: string; + /** The error target. */ + readonly target?: string; + /** The error details. */ + readonly details?: ErrorDetail[]; + /** The error additional info. */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** The additional info type. */ + readonly type?: string; + /** The additional info. */ + readonly info?: Record; +} +/** The type used for update operations of the DataProduct. */ +export interface DataProductUpdate { + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; + /** Resource tags. */ + tags?: Record; + properties?: DataProductUpdateProperties; +} +/** The updatable properties of the DataProduct. */ +export interface DataProductUpdateProperties { + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; +} +/** Standard Azure Resource Manager operation status response */ +export interface ArmOperationStatus { + /** The operation status */ + status: ResourceProvisioningState; + /** The name of the operationStatus resource */ + readonly name?: string; + /** Operation start time */ + readonly startTime?: Date; + /** Operation complete time */ + readonly endTime?: Date; + /** The progress made toward completing the operation */ + readonly percentComplete?: number; + /** Errors that occurred if the operation ended with Canceled or Failed status */ + readonly error?: ErrorDetail; +} +/** The provisioning state of a resource type. */ +/** "Succeeded", "Failed", "Canceled" */ +export type ResourceProvisioningState = string; +/** The details for storage account sas creation. */ +export interface AccountSas { + /** Sas token start timestamp. */ + startTimeStamp: Date; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date; + /** Ip Address */ + ipAddress: string; +} +/** Details of storage account sas token . */ +export interface AccountSasToken { + /** Field to specify storage account sas token. */ + storageAccountSasToken: string; +} +/** Details for KeyVault. */ +export interface KeyVaultInfo { + /** key vault url. */ + keyVaultUrl: string; +} +/** The details for role assignment common properties. */ +export interface RoleAssignmentCommonProperties { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; +} +/** The data type state */ +/** "Reader", "SensitiveReader" */ +export type DataProductUserRole = string; +/** The details for role assignment response. */ +export interface RoleAssignmentDetail { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; + /** Id of role assignment request */ + roleAssignmentId: string; +} +/** list role assignments. */ +export interface ListRoleAssignments { + /** Count of role assignments. */ + count: number; + /** list of role assignments */ + roleAssignmentResponse: RoleAssignmentDetail[]; +} +/** The response of a DataProduct list operation. */ +export interface DataProductListResult { + /** The DataProduct items on this page */ + value: DataProduct[]; + /** The link to the next page of items */ + nextLink?: string; +} +/** The base proxy resource. */ +export interface ProxyResource extends Resource { +} +/** The data type resource. */ +export interface DataType extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataTypeProperties; +} +/** The data type properties */ +export interface DataTypeProperties { + /** Latest provisioning state of data product. */ + readonly provisioningState?: ProvisioningState; + /** State of data type. */ + state?: DataTypeState; + /** Reason for the state of data type. */ + readonly stateReason?: string; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; + /** Url for data visualization. */ + readonly visualizationUrl?: string; +} +/** The data type state */ +/** "Stopped", "Running" */ +export type DataTypeState = string; +/** The type used for update operations of the DataType. */ +export interface DataTypeUpdate { + properties?: DataTypeUpdateProperties; +} +/** The updatable properties of the DataType. */ +export interface DataTypeUpdateProperties { + /** State of data type. */ + state?: DataTypeState; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; +} +/** The details for container sas creation. */ +export interface ContainerSaS { + /** Sas token start timestamp. */ + startTimeStamp: Date; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date; + /** Ip Address */ + ipAddress: string; +} +/** Details of storage container account sas token . */ +export interface ContainerSasToken { + /** Field to specify storage container sas token. */ + storageContainerSasToken: string; +} +/** The response of a DataType list operation. */ +export interface DataTypeListResult { + /** The DataType items on this page */ + value: DataType[]; + /** The link to the next page of items */ + nextLink?: string; +} +/** The data catalog resource. */ +export interface DataProductsCatalog extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductsCatalogProperties; +} +/** Details for data catalog properties. */ +export interface DataProductsCatalogProperties { + /** The data catalog provisioning state. */ + readonly provisioningState?: ProvisioningState; + /** The data product publisher information. */ + publishers: PublisherInformation[]; +} +/** Details for Publisher Information. */ +export interface PublisherInformation { + /** Name of the publisher. */ + publisherName: string; + /** Data product information. */ + dataProducts: DataProductInformation[]; +} +/** Data Product Information */ +export interface DataProductInformation { + /** Name of data product. */ + dataProductName: string; + /** Description about data product. */ + description: string; + /** Version information of data product. */ + dataProductVersions: DataProductVersion[]; +} +/** Data Product Version. */ +export interface DataProductVersion { + /** Version of data product */ + version: string; +} +/** The response of a DataProductsCatalog list operation. */ +export interface DataProductsCatalogListResult { + /** The DataProductsCatalog items on this page */ + value: DataProductsCatalog[]; + /** The link to the next page of items */ + nextLink?: string; +} +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface PagedOperation { + /** The Operation items on this page */ + value: Operation[]; + /** The link to the next page of items */ + nextLink?: string; +} +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ + readonly name?: string; + /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ + readonly origin?: Origin; + /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ + actionType?: ActionType; +} +/** Localized display information for and operation. */ +export interface OperationDisplay { + /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ + provider?: string; + /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ + resource?: string; + /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ + operation?: string; + /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ + description?: string; +} +/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ +/** "user", "system", "user,system" */ +export type Origin = string; +/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ +/** "Internal" */ +export type ActionType = string; +/** The available API versions for the Microsoft.NetworkAnalytics RP. */ +/** */ +export type Versions = "2023-11-15"; +//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts.map new file mode 100644 index 00000000000..108cd8f61bc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAGA,kEAAkE;AAClE,MAAM,WAAW,QAAQ;IACvB,gMAAgM;IAChM,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,gHAAgH;IAChH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,uFAAuF;IACvF,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU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AED,0FAA0F;AAC1F,MAAM,WAAW,SAAS;IACxB,sLAAsL;IACtL,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,6JAA6J;IAC7J,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,mEAAmE;IACnE,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,2IAA2I;IAC3I,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,gHAAgH;IAChH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,uDAAuD;AACvD,MAAM,WAAW,gBAAgB;IAC/B,8HAA8H;IAC9H,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yIAAyI;IACzI,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0JAA0J;IAC1J,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6GAA6G;IAC7G,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,2IAA2I;AAC3I,sCAAsC;AACtC,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAC5B,gHAAgH;AAChH,iBAAiB;AACjB,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,wEAAwE;AACxE,MAAM;AACN,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js new file mode 100644 index 00000000000..63155a9f043 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js.map new file mode 100644 index 00000000000..f38b51ae9e8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js.map @@ -0,0 +1 @@ +{"version":3,"file":"models.js","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.ts new file mode 100644 index 00000000000..5af6ebdf459 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.ts @@ -0,0 +1,506 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** Common properties for all Azure Resource Manager resources. */ +export interface Resource { + /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ + readonly id?: string; + /** The name of the resource */ + readonly name?: string; + /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ + readonly type?: string; + /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + readonly createdBy?: string; + /** The type of identity that created the resource. */ + readonly createdByType?: CreatedByType; + /** The type of identity that created the resource. */ + readonly createdAt?: Date; + /** The identity that last modified the resource. */ + readonly lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + readonly lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + readonly lastModifiedAt?: Date; +} + +/** The kind of entity that created the resource. */ +/** "User", "Application", "ManagedIdentity", "Key" */ +export type CreatedByType = string; + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** The geo-location where the resource lives */ + location: string; + /** Resource tags. */ + tags?: Record; +} + +/** The data product resource. */ +export interface DataProduct extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductProperties; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; +} + +/** The data product properties. */ +export interface DataProductProperties { + /** The resource GUID property of the data product resource. */ + readonly resourceGuid?: string; + /** Latest provisioning state of data product. */ + readonly provisioningState?: ProvisioningState; + /** Data product publisher name. */ + publisher: string; + /** Product name of data product. */ + product: string; + /** Major version of data product. */ + majorVersion: string; + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Flag to enable or disable redundancy for data product. */ + redundancy?: ControlState; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Flag to enable or disable public access of data product resource. */ + publicNetworkAccess?: ControlState; + /** Flag to enable customer managed key encryption for data product. */ + customerManagedKeyEncryptionEnabled?: ControlState; + /** Customer managed encryption key details for data product. */ + customerEncryptionKey?: EncryptionKeyDetails; + /** Network rule set for data product. */ + networkacls?: DataProductNetworkAcls; + /** Managed resource group configuration. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + /** List of available minor versions of the data product resource. */ + readonly availableMinorVersions?: string[]; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; + /** Documentation link for the data product based on definition file. */ + readonly documentation?: string; + /** Resource links which exposed to the customer to query the data. */ + readonly consumptionEndpoints?: ConsumptionEndpointsProperties; + /** Key vault url. */ + readonly keyVaultUrl?: string; +} + +/** The status of the current operation. */ +/** "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted" */ +export type ProvisioningState = string; +/** The data type state */ +/** "Enabled", "Disabled" */ +export type ControlState = string; + +/** Encryption key details. */ +export interface EncryptionKeyDetails { + /** The Uri of the key vault. */ + keyVaultUri: string; + /** The name of the key vault key. */ + keyName: string; + /** The version of the key vault key. */ + keyVersion: string; +} + +/** Data Product Network rule set */ +export interface DataProductNetworkAcls { + /** Virtual Network Rule */ + virtualNetworkRule: VirtualNetworkRule[]; + /** IP rule with specific IP or IP range in CIDR format. */ + ipRules: IPRules[]; + /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ + allowedQueryIpRangeList: string[]; + /** Default Action */ + defaultAction: DefaultAction; +} + +/** Virtual Network Rule */ +export interface VirtualNetworkRule { + /** Resource ID of a subnet */ + id: string; + /** The action of virtual network rule. */ + action?: string; + /** Gets the state of virtual network rule. */ + state?: string; +} + +/** IP rule with specific IP or IP range in CIDR format. */ +export interface IPRules { + /** IP Rules Value */ + value?: string; + /** The action of virtual network rule. */ + action: string; +} + +/** Specifies the default action of allow or deny when no other rules match. */ +/** "Allow", "Deny" */ +export type DefaultAction = string; + +/** ManagedResourceGroup related properties */ +export interface ManagedResourceGroupConfiguration { + /** Name of managed resource group */ + name: string; + /** Managed Resource Group location */ + location: string; +} + +/** Details of Consumption Properties */ +export interface ConsumptionEndpointsProperties { + /** Ingestion url to upload the data. */ + readonly ingestionUrl?: string; + /** Resource Id of ingestion endpoint. */ + readonly ingestionResourceId?: string; + /** Url to consume file type. */ + readonly fileAccessUrl?: string; + /** Resource Id of file access endpoint. */ + readonly fileAccessResourceId?: string; + /** Url to consume the processed data. */ + readonly queryUrl?: string; + /** Resource Id of query endpoint. */ + readonly queryResourceId?: string; +} + +/** The properties of the managed service identities assigned to this resource. */ +export interface ManagedServiceIdentity { + /** The Active Directory tenant id of the principal. */ + readonly tenantId?: string; + /** The active directory identifier of this principal. */ + readonly principalId?: string; + /** The type of managed identity assigned to this resource. */ + type: ManagedServiceIdentityType; + /** The identities assigned to this resource by the user. */ + userAssignedIdentities?: UserAssignedIdentities; +} + +/** The kind of managed identity assigned to this resource. */ +/** "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" */ +export type ManagedServiceIdentityType = string; + +/** A managed identity assigned by the user. */ +export interface UserAssignedIdentity { + /** The active directory client identifier for this principal. */ + clientId?: string; + /** The active directory identifier for this principal. */ + principalId?: string; +} + +/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ +export interface UserAssignedIdentities + extends Record {} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** The error code. */ + readonly code?: string; + /** The error message. */ + readonly message?: string; + /** The error target. */ + readonly target?: string; + /** The error details. */ + readonly details?: ErrorDetail[]; + /** The error additional info. */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** The additional info type. */ + readonly type?: string; + /** The additional info. */ + readonly info?: Record; +} + +/** The type used for update operations of the DataProduct. */ +export interface DataProductUpdate { + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; + /** Resource tags. */ + tags?: Record; + properties?: DataProductUpdateProperties; +} + +/** The updatable properties of the DataProduct. */ +export interface DataProductUpdateProperties { + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; +} + +/** Standard Azure Resource Manager operation status response */ +export interface ArmOperationStatus { + /** The operation status */ + status: ResourceProvisioningState; + /** The name of the operationStatus resource */ + readonly name?: string; + /** Operation start time */ + readonly startTime?: Date; + /** Operation complete time */ + readonly endTime?: Date; + /** The progress made toward completing the operation */ + readonly percentComplete?: number; + /** Errors that occurred if the operation ended with Canceled or Failed status */ + readonly error?: ErrorDetail; +} + +/** The provisioning state of a resource type. */ +/** "Succeeded", "Failed", "Canceled" */ +export type ResourceProvisioningState = string; + +/** The details for storage account sas creation. */ +export interface AccountSas { + /** Sas token start timestamp. */ + startTimeStamp: Date; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date; + /** Ip Address */ + ipAddress: string; +} + +/** Details of storage account sas token . */ +export interface AccountSasToken { + /** Field to specify storage account sas token. */ + storageAccountSasToken: string; +} + +/** Details for KeyVault. */ +export interface KeyVaultInfo { + /** key vault url. */ + keyVaultUrl: string; +} + +/** The details for role assignment common properties. */ +export interface RoleAssignmentCommonProperties { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; +} + +/** The data type state */ +/** "Reader", "SensitiveReader" */ +export type DataProductUserRole = string; + +/** The details for role assignment response. */ +export interface RoleAssignmentDetail { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; + /** Id of role assignment request */ + roleAssignmentId: string; +} + +/** list role assignments. */ +export interface ListRoleAssignments { + /** Count of role assignments. */ + count: number; + /** list of role assignments */ + roleAssignmentResponse: RoleAssignmentDetail[]; +} + +/** The response of a DataProduct list operation. */ +export interface DataProductListResult { + /** The DataProduct items on this page */ + value: DataProduct[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** The base proxy resource. */ +export interface ProxyResource extends Resource {} + +/** The data type resource. */ +export interface DataType extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataTypeProperties; +} + +/** The data type properties */ +export interface DataTypeProperties { + /** Latest provisioning state of data product. */ + readonly provisioningState?: ProvisioningState; + /** State of data type. */ + state?: DataTypeState; + /** Reason for the state of data type. */ + readonly stateReason?: string; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; + /** Url for data visualization. */ + readonly visualizationUrl?: string; +} + +/** The data type state */ +/** "Stopped", "Running" */ +export type DataTypeState = string; + +/** The type used for update operations of the DataType. */ +export interface DataTypeUpdate { + properties?: DataTypeUpdateProperties; +} + +/** The updatable properties of the DataType. */ +export interface DataTypeUpdateProperties { + /** State of data type. */ + state?: DataTypeState; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; +} + +/** The details for container sas creation. */ +export interface ContainerSaS { + /** Sas token start timestamp. */ + startTimeStamp: Date; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date; + /** Ip Address */ + ipAddress: string; +} + +/** Details of storage container account sas token . */ +export interface ContainerSasToken { + /** Field to specify storage container sas token. */ + storageContainerSasToken: string; +} + +/** The response of a DataType list operation. */ +export interface DataTypeListResult { + /** The DataType items on this page */ + value: DataType[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** The data catalog resource. */ +export interface DataProductsCatalog extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductsCatalogProperties; +} + +/** Details for data catalog properties. */ +export interface DataProductsCatalogProperties { + /** The data catalog provisioning state. */ + readonly provisioningState?: ProvisioningState; + /** The data product publisher information. */ + publishers: PublisherInformation[]; +} + +/** Details for Publisher Information. */ +export interface PublisherInformation { + /** Name of the publisher. */ + publisherName: string; + /** Data product information. */ + dataProducts: DataProductInformation[]; +} + +/** Data Product Information */ +export interface DataProductInformation { + /** Name of data product. */ + dataProductName: string; + /** Description about data product. */ + description: string; + /** Version information of data product. */ + dataProductVersions: DataProductVersion[]; +} + +/** Data Product Version. */ +export interface DataProductVersion { + /** Version of data product */ + version: string; +} + +/** The response of a DataProductsCatalog list operation. */ +export interface DataProductsCatalogListResult { + /** The DataProductsCatalog items on this page */ + value: DataProductsCatalog[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface PagedOperation { + /** The Operation items on this page */ + value: Operation[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ + readonly name?: string; + /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ + readonly origin?: Origin; + /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ + actionType?: ActionType; +} + +/** Localized display information for and operation. */ +export interface OperationDisplay { + /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ + provider?: string; + /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ + resource?: string; + /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ + operation?: string; + /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ + description?: string; +} + +/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ +/** "user", "system", "user,system" */ +export type Origin = string; +/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ +/** "Internal" */ +export type ActionType = string; +/** The available API versions for the Microsoft.NetworkAnalytics RP. */ +/** */ +export type Versions = "2023-11-15"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts new file mode 100644 index 00000000000..a50cc9224a1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts @@ -0,0 +1,60 @@ +import { OperationOptions } from "@azure-rest/core-client"; +export interface OperationsListOptionalParams extends OperationOptions { +} +export interface DataProductsCatalogsGetOptionalParams extends OperationOptions { +} +export interface DataProductsCatalogsListByResourceGroupOptionalParams extends OperationOptions { +} +export interface DataProductsCatalogsListBySubscriptionOptionalParams extends OperationOptions { +} +export interface DataTypesCreateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} +export interface DataTypesGetOptionalParams extends OperationOptions { +} +export interface DataTypesUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} +export interface DataTypesDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} +export interface DataTypesDeleteDataOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} +export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends OperationOptions { +} +export interface DataTypesListByDataProductOptionalParams extends OperationOptions { +} +export interface DataProductsCreateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} +export interface DataProductsGetOptionalParams extends OperationOptions { +} +export interface DataProductsUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} +export interface DataProductsDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} +export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends OperationOptions { +} +export interface DataProductsRotateKeyOptionalParams extends OperationOptions { +} +export interface DataProductsAddUserRoleOptionalParams extends OperationOptions { +} +export interface DataProductsRemoveUserRoleOptionalParams extends OperationOptions { +} +export interface DataProductsListRolesAssignmentsOptionalParams extends OperationOptions { +} +export interface DataProductsListByResourceGroupOptionalParams extends OperationOptions { +} +export interface DataProductsListBySubscriptionOptionalParams extends OperationOptions { +} +//# sourceMappingURL=options.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts.map new file mode 100644 index 00000000000..a1490b4c2e1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE,MAAM,WAAW,qCACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,qDACf,SAAQ,gBAAgB;CAAG;AAE7B,MA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M,WAAW,4CACf,SAAQ,gBAAgB;CAAG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js new file mode 100644 index 00000000000..8d614ef9cdd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=options.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js.map new file mode 100644 index 00000000000..4e4484b0a85 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"options.js","sourceRoot":"","sources":["options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.ts new file mode 100644 index 00000000000..b9822bea3da --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.ts @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { OperationOptions } from "@azure-rest/core-client"; + +export interface OperationsListOptionalParams extends OperationOptions {} + +export interface DataProductsCatalogsGetOptionalParams + extends OperationOptions {} + +export interface DataProductsCatalogsListByResourceGroupOptionalParams + extends OperationOptions {} + +export interface DataProductsCatalogsListBySubscriptionOptionalParams + extends OperationOptions {} + +export interface DataTypesCreateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +export interface DataTypesGetOptionalParams extends OperationOptions {} + +export interface DataTypesUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +export interface DataTypesDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +export interface DataTypesDeleteDataOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +export interface DataTypesGenerateStorageContainerSasTokenOptionalParams + extends OperationOptions {} + +export interface DataTypesListByDataProductOptionalParams + extends OperationOptions {} + +export interface DataProductsCreateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +export interface DataProductsGetOptionalParams extends OperationOptions {} + +export interface DataProductsUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +export interface DataProductsDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +export interface DataProductsGenerateStorageAccountSasTokenOptionalParams + extends OperationOptions {} + +export interface DataProductsRotateKeyOptionalParams extends OperationOptions {} + +export interface DataProductsAddUserRoleOptionalParams + extends OperationOptions {} + +export interface DataProductsRemoveUserRoleOptionalParams + extends OperationOptions {} + +export interface DataProductsListRolesAssignmentsOptionalParams + extends OperationOptions {} + +export interface DataProductsListByResourceGroupOptionalParams + extends OperationOptions {} + +export interface DataProductsListBySubscriptionOptionalParams + extends OperationOptions {} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts new file mode 100644 index 00000000000..7e2656a3f22 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts @@ -0,0 +1,67 @@ +/** + * Options for the byPage method + */ +export interface PageSettings { + /** + * A reference to a specific page to start iterating from. + */ + continuationToken?: string; +} +/** + * An interface that describes a page of results. + */ +export type ContinuablePage = TPage & { + /** + * The token that keeps track of where to continue the iterator + */ + continuationToken?: string; +}; +/** + * An interface that allows async iterable iteration both to completion and by page. + */ +export interface PagedAsyncIterableIterator { + /** + * The next method, part of the iteration protocol + */ + next(): Promise>; + /** + * The connection to the async iterator, part of the iteration protocol + */ + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + /** + * Return an AsyncIterableIterator that works a page at a time + */ + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; +} +/** + * An interface that describes how to communicate with the service. + */ +export interface PagedResult { + /** + * Link to the first page of results. + */ + firstPageLink?: string; + /** + * A method that returns a page of results. + */ + getPage: (pageLink?: string) => Promise<{ + page: TPage; + nextPageLink?: string; + } | undefined>; + /** + * a function to implement the `byPage` method on the paged async iterator. + */ + byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; + /** + * A function to extract elements from a page. + */ + toElements?: (page: TPage) => TElement[]; +} +/** + * Options for the paging helper + */ +export interface BuildPagedAsyncIteratorOptions { + itemName?: string; + nextLinkName?: string; +} +//# sourceMappingURL=pagingTypes.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts.map new file mode 100644 index 00000000000..4dfc54e59e2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pagingTypes.d.ts","sourceRoot":"","sources":["pagingTypes.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,KAAK,GAAG;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAClD,QAAQ,EACR,KAAK,EACL,aAAa,CACd,CAAC;IACF;;OAEG;IACH,MAAM,EAAE,CACN,QAAQ,CAAC,EAAE,aAAa,KACrB,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;CAC9D;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAC1B,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,CACP,QAAQ,CAAC,EAAE,MAAM,KACd,OAAO,CAAC;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,MAAM,CAAC,EAAE,CACP,QAAQ,CAAC,EAAE,aAAa,KACrB,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IAE7D;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,QAAQ,EAAE,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js new file mode 100644 index 00000000000..30e0a4c4de7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=pagingTypes.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js.map new file mode 100644 index 00000000000..45b49108fd6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pagingTypes.js","sourceRoot":"","sources":["pagingTypes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.ts new file mode 100644 index 00000000000..f734b48e62f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.ts @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * Options for the byPage method + */ +export interface PageSettings { + /** + * A reference to a specific page to start iterating from. + */ + continuationToken?: string; +} + +/** + * An interface that describes a page of results. + */ +export type ContinuablePage = TPage & { + /** + * The token that keeps track of where to continue the iterator + */ + continuationToken?: string; +}; + +/** + * An interface that allows async iterable iteration both to completion and by page. + */ +export interface PagedAsyncIterableIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * The next method, part of the iteration protocol + */ + next(): Promise>; + /** + * The connection to the async iterator, part of the iteration protocol + */ + [Symbol.asyncIterator](): PagedAsyncIterableIterator< + TElement, + TPage, + TPageSettings + >; + /** + * Return an AsyncIterableIterator that works a page at a time + */ + byPage: ( + settings?: TPageSettings, + ) => AsyncIterableIterator>; +} + +/** + * An interface that describes how to communicate with the service. + */ +export interface PagedResult< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * Link to the first page of results. + */ + firstPageLink?: string; + /** + * A method that returns a page of results. + */ + getPage: ( + pageLink?: string, + ) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; + /** + * a function to implement the `byPage` method on the paged async iterator. + */ + byPage?: ( + settings?: TPageSettings, + ) => AsyncIterableIterator>; + + /** + * A function to extract elements from a page. + */ + toElements?: (page: TPage) => TElement[]; +} + +/** + * Options for the paging helper + */ +export interface BuildPagedAsyncIteratorOptions { + itemName?: string; + nextLinkName?: string; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts new file mode 100644 index 00000000000..b311cddd45f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts @@ -0,0 +1,23 @@ +import { TokenCredential } from "@azure/core-auth"; +import { Pipeline } from "@azure/core-rest-pipeline"; +import { OperationsOperations } from "./classic/operations/index.js"; +import { DataProductsCatalogsOperations } from "./classic/dataProductsCatalogs/index.js"; +import { DataTypesOperations } from "./classic/dataTypes/index.js"; +import { DataProductsOperations } from "./classic/dataProducts/index.js"; +import { NetworkAnalyticsClientOptions } from "./api/index.js"; +export { NetworkAnalyticsClientOptions } from "./api/networkAnalyticsContext.js"; +export declare class NetworkAnalyticsClient { + private _client; + /** The pipeline used by this client to make requests */ + readonly pipeline: Pipeline; + constructor(credential: TokenCredential, options?: NetworkAnalyticsClientOptions); + /** The operation groups for Operations */ + readonly operations: OperationsOperations; + /** The operation groups for DataProductsCatalogs */ + readonly dataProductsCatalogs: DataProductsCatalogsOperations; + /** The operation groups for DataTypes */ + readonly dataTypes: DataTypesOperations; + /** The operation groups for DataProducts */ + readonly dataProducts: DataProductsOperations; +} +//# sourceMappingURL=networkAnalyticsClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts.map new file mode 100644 index 00000000000..2291266930b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"networkAnalyticsClient.d.ts","sourceRoot":"","sources":["networkAnalyticsClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAEL,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,6BAA6B,EAE9B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAEjF,qBAAa,sBAAsB;IACjC,OAAO,CAAC,OAAO,CAA0B;IACzC,wDAAwD;IACxD,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC;IAU7C,0CAA0C;IAC1C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;IACjD,oDAAoD;IACpD,SAAgB,oBAAoB,EAAE,8BAA8B,CAAC;IACrE,yCAAyC;IACzC,SAAgB,SAAS,EAAE,mBAAmB,CAAC;IAC/C,4CAA4C;IAC5C,SAAgB,YAAY,EAAE,sBAAsB,CAAC;CACtD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js new file mode 100644 index 00000000000..5d4eeb60476 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { getOperationsOperations, } from "./classic/operations/index.js"; +import { getDataProductsCatalogsOperations, } from "./classic/dataProductsCatalogs/index.js"; +import { getDataTypesOperations, } from "./classic/dataTypes/index.js"; +import { getDataProductsOperations, } from "./classic/dataProducts/index.js"; +import { createNetworkAnalytics, } from "./api/index.js"; +export class NetworkAnalyticsClient { + _client; + /** The pipeline used by this client to make requests */ + pipeline; + constructor(credential, options = {}) { + this._client = createNetworkAnalytics(credential, options); + this.pipeline = this._client.pipeline; + this.operations = getOperationsOperations(this._client); + this.dataProductsCatalogs = getDataProductsCatalogsOperations(this._client); + this.dataTypes = getDataTypesOperations(this._client); + this.dataProducts = getDataProductsOperations(this._client); + } + /** The operation groups for Operations */ + operations; + /** The operation groups for DataProductsCatalogs */ + dataProductsCatalogs; + /** The operation groups for DataTypes */ + dataTypes; + /** The operation groups for DataProducts */ + dataProducts; +} +//# sourceMappingURL=networkAnalyticsClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js.map new file mode 100644 index 00000000000..701f74d643d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js.map @@ -0,0 +1 @@ +{"version":3,"file":"networkAnalyticsClient.js","sourceRoot":"","sources":["networkAnalyticsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,uBAAuB,GAExB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,iCAAiC,GAElC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,sBAAsB,GAEvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,yBAAyB,GAE1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,sBAAsB,GAGvB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,OAAO,sBAAsB;IACzB,OAAO,CAA0B;IACzC,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,YACE,UAA2B,EAC3B,UAAyC,EAAE;QAE3C,IAAI,CAAC,OAAO,GAAG,sBAAsB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,oBAAoB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5E,IAAI,CAAC,SAAS,GAAG,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,IAAI,CAAC,YAAY,GAAG,yBAAyB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,0CAA0C;IAC1B,UAAU,CAAuB;IACjD,oDAAoD;IACpC,oBAAoB,CAAiC;IACrE,yCAAyC;IACzB,SAAS,CAAsB;IAC/C,4CAA4C;IAC5B,YAAY,CAAyB;CACtD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.ts new file mode 100644 index 00000000000..d8b59e13404 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { TokenCredential } from "@azure/core-auth"; +import { Pipeline } from "@azure/core-rest-pipeline"; +import { + getOperationsOperations, + OperationsOperations, +} from "./classic/operations/index.js"; +import { + getDataProductsCatalogsOperations, + DataProductsCatalogsOperations, +} from "./classic/dataProductsCatalogs/index.js"; +import { + getDataTypesOperations, + DataTypesOperations, +} from "./classic/dataTypes/index.js"; +import { + getDataProductsOperations, + DataProductsOperations, +} from "./classic/dataProducts/index.js"; +import { + createNetworkAnalytics, + NetworkAnalyticsClientOptions, + NetworkAnalyticsContext, +} from "./api/index.js"; + +export { NetworkAnalyticsClientOptions } from "./api/networkAnalyticsContext.js"; + +export class NetworkAnalyticsClient { + private _client: NetworkAnalyticsContext; + /** The pipeline used by this client to make requests */ + public readonly pipeline: Pipeline; + + constructor( + credential: TokenCredential, + options: NetworkAnalyticsClientOptions = {}, + ) { + this._client = createNetworkAnalytics(credential, options); + this.pipeline = this._client.pipeline; + this.operations = getOperationsOperations(this._client); + this.dataProductsCatalogs = getDataProductsCatalogsOperations(this._client); + this.dataTypes = getDataTypesOperations(this._client); + this.dataProducts = getDataProductsOperations(this._client); + } + + /** The operation groups for Operations */ + public readonly operations: OperationsOperations; + /** The operation groups for DataProductsCatalogs */ + public readonly dataProductsCatalogs: DataProductsCatalogsOperations; + /** The operation groups for DataTypes */ + public readonly dataTypes: DataTypesOperations; + /** The operation groups for DataProducts */ + public readonly dataProducts: DataProductsOperations; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts new file mode 100644 index 00000000000..b191b96ca7b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts @@ -0,0 +1,117 @@ +import { OperationsListParameters, DataProductsCatalogsGetParameters, DataProductsCatalogsListByResourceGroupParameters, DataProductsCatalogsListBySubscriptionParameters, DataTypesCreateParameters, DataTypesGetParameters, DataTypesUpdateParameters, DataTypesDeleteParameters, DataTypesDeleteDataParameters, DataTypesGenerateStorageContainerSasTokenParameters, DataTypesListByDataProductParameters, DataProductsCreateParameters, DataProductsGetParameters, DataProductsUpdateParameters, DataProductsDeleteParameters, DataProductsGenerateStorageAccountSasTokenParameters, DataProductsRotateKeyParameters, DataProductsAddUserRoleParameters, DataProductsRemoveUserRoleParameters, DataProductsListRolesAssignmentsParameters, DataProductsListByResourceGroupParameters, DataProductsListBySubscriptionParameters } from "./parameters.js"; +import { OperationsList200Response, OperationsListDefaultResponse, DataProductsCatalogsGet200Response, DataProductsCatalogsGetDefaultResponse, DataProductsCatalogsListByResourceGroup200Response, DataProductsCatalogsListByResourceGroupDefaultResponse, DataProductsCatalogsListBySubscription200Response, DataProductsCatalogsListBySubscriptionDefaultResponse, DataTypesCreate200Response, DataTypesCreate201Response, DataTypesCreateDefaultResponse, DataTypesGet200Response, DataTypesGetDefaultResponse, DataTypesUpdate200Response, DataTypesUpdate202Response, DataTypesUpdateDefaultResponse, DataTypesDelete202Response, DataTypesDelete204Response, DataTypesDeleteDefaultResponse, DataTypesDeleteData202Response, DataTypesDeleteData204Response, DataTypesDeleteDataDefaultResponse, DataTypesGenerateStorageContainerSasToken200Response, DataTypesGenerateStorageContainerSasTokenDefaultResponse, DataTypesListByDataProduct200Response, DataTypesListByDataProductDefaultResponse, DataProductsCreate200Response, DataProductsCreate201Response, DataProductsCreateDefaultResponse, DataProductsGet200Response, DataProductsGetDefaultResponse, DataProductsUpdate200Response, DataProductsUpdate202Response, DataProductsUpdateDefaultResponse, DataProductsDelete202Response, DataProductsDelete204Response, DataProductsDeleteDefaultResponse, DataProductsGenerateStorageAccountSasToken200Response, DataProductsGenerateStorageAccountSasTokenDefaultResponse, DataProductsRotateKey204Response, DataProductsRotateKeyDefaultResponse, DataProductsAddUserRole200Response, DataProductsAddUserRoleDefaultResponse, DataProductsRemoveUserRole204Response, DataProductsRemoveUserRoleDefaultResponse, DataProductsListRolesAssignments200Response, DataProductsListRolesAssignmentsDefaultResponse, DataProductsListByResourceGroup200Response, DataProductsListByResourceGroupDefaultResponse, DataProductsListBySubscription200Response, DataProductsListBySubscriptionDefaultResponse } from "./responses.js"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; +export interface OperationsList { + /** List the operations for the provider */ + get(options?: OperationsListParameters): StreamableMethod; +} +export interface DataProductsCatalogsGet { + /** Retrieve data type resource. */ + get(options?: DataProductsCatalogsGetParameters): StreamableMethod; +} +export interface DataProductsCatalogsListByResourceGroup { + /** List data catalog by resource group. */ + get(options?: DataProductsCatalogsListByResourceGroupParameters): StreamableMethod; +} +export interface DataProductsCatalogsListBySubscription { + /** List data catalog by subscription. */ + get(options?: DataProductsCatalogsListBySubscriptionParameters): StreamableMethod; +} +export interface DataTypesCreate { + /** Create data type resource. */ + put(options: DataTypesCreateParameters): StreamableMethod; + /** Retrieve data type resource. */ + get(options?: DataTypesGetParameters): StreamableMethod; + /** Update data type resource. */ + patch(options: DataTypesUpdateParameters): StreamableMethod; + /** Delete data type resource. */ + delete(options?: DataTypesDeleteParameters): StreamableMethod; +} +export interface DataTypesDeleteData { + /** Delete data for data type. */ + post(options: DataTypesDeleteDataParameters): StreamableMethod; +} +export interface DataTypesGenerateStorageContainerSasToken { + /** Generate sas token for storage container. */ + post(options: DataTypesGenerateStorageContainerSasTokenParameters): StreamableMethod; +} +export interface DataTypesListByDataProduct { + /** List data type by parent resource. */ + get(options?: DataTypesListByDataProductParameters): StreamableMethod; +} +export interface DataProductsCreate { + /** Create data product resource. */ + put(options: DataProductsCreateParameters): StreamableMethod; + /** Retrieve data product resource. */ + get(options?: DataProductsGetParameters): StreamableMethod; + /** Update data product resource. */ + patch(options: DataProductsUpdateParameters): StreamableMethod; + /** Delete data product resource. */ + delete(options?: DataProductsDeleteParameters): StreamableMethod; +} +export interface DataProductsGenerateStorageAccountSasToken { + /** Generate sas token for storage account. */ + post(options: DataProductsGenerateStorageAccountSasTokenParameters): StreamableMethod; +} +export interface DataProductsRotateKey { + /** Initiate key rotation on Data Product. */ + post(options: DataProductsRotateKeyParameters): StreamableMethod; +} +export interface DataProductsAddUserRole { + /** Assign role to the data product. */ + post(options: DataProductsAddUserRoleParameters): StreamableMethod; +} +export interface DataProductsRemoveUserRole { + /** Remove role from the data product. */ + post(options: DataProductsRemoveUserRoleParameters): StreamableMethod; +} +export interface DataProductsListRolesAssignments { + /** List user roles associated with the data product. */ + post(options: DataProductsListRolesAssignmentsParameters): StreamableMethod; +} +export interface DataProductsListByResourceGroup { + /** List data products by resource group. */ + get(options?: DataProductsListByResourceGroupParameters): StreamableMethod; +} +export interface DataProductsListBySubscription { + /** List data products by subscription. */ + get(options?: DataProductsListBySubscriptionParameters): StreamableMethod; +} +export interface Routes { + /** Resource for '/providers/Microsoft.NetworkAnalytics/operations' has methods for the following verbs: get */ + (path: "/providers/Microsoft.NetworkAnalytics/operations"): OperationsList; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default' has methods for the following verbs: get */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", subscriptionId: string, resourceGroupName: string): DataProductsCatalogsGet; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs' has methods for the following verbs: get */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", subscriptionId: string, resourceGroupName: string): DataProductsCatalogsListByResourceGroup; + /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs' has methods for the following verbs: get */ + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", subscriptionId: string): DataProductsCatalogsListBySubscription; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}' has methods for the following verbs: put, get, patch, delete */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string): DataTypesCreate; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}/deleteData' has methods for the following verbs: post */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string): DataTypesDeleteData; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}/generateStorageContainerSasToken' has methods for the following verbs: post */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string): DataTypesGenerateStorageContainerSasToken; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes' has methods for the following verbs: get */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataTypesListByDataProduct; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}' has methods for the following verbs: put, get, patch, delete */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsCreate; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/generateStorageAccountSasToken' has methods for the following verbs: post */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsGenerateStorageAccountSasToken; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/rotateKey' has methods for the following verbs: post */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsRotateKey; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/addUserRole' has methods for the following verbs: post */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsAddUserRole; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/removeUserRole' has methods for the following verbs: post */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsRemoveUserRole; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/listRolesAssignments' has methods for the following verbs: post */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsListRolesAssignments; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts' has methods for the following verbs: get */ + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", subscriptionId: string, resourceGroupName: string): DataProductsListByResourceGroup; + /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.NetworkAnalytics/dataProducts' has methods for the following verbs: get */ + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", subscriptionId: string): DataProductsListBySubscription; +} +export type NetworkAnalyticsContext = Client & { + path: Routes; +}; +//# sourceMappingURL=clientDefinitions.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts.map new file mode 100644 index 00000000000..a7e053e98f8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,EACxB,iCAAiC,EACjC,iDAAiD,EACjD,gDAAgD,EAChD,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,mDAAmD,EACnD,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,4BAA4B,EAC5B,4BAA4B,EAC5B,oDAAoD,EACpD,+BAA+B,EAC/B,iCAAiC,EACjC,oCAAoC,EACpC,0CAA0C,EAC1C,yCAAyC,EACzC,wCAAwC,EACzC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,kCAAkC,EAClC,sCAAsC,EACtC,kDAAkD,EAClD,sDAAsD,EACtD,iDAAiD,EACjD,qDAAqD,EACrD,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,kCAAkC,EAClC,oDAAoD,EACpD,wDAAwD,EACxD,qCAAqC,EACrC,yCAAyC,EACzC,6BAA6B,EAC7B,6BAA6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Ae,EAAE,MAAM,GACtB,qBAAqB,CAAC;IACzB,wNAAwN;IACxN,CACE,IAAI,EAAE,oJAAoJ,EAC1J,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACtB,uBAAuB,CAAC;IAC3B,2NAA2N;IAC3N,CACE,IAAI,EAAE,uJAAuJ,EAC7J,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACtB,0BAA0B,CAAC;IAC9B,iOAAiO;IACjO,CACE,IAAI,EAAE,6JAA6J,EACnK,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACtB,gCAAgC,CAAC;IACpC,uLAAuL;IACvL,CACE,IAAI,EAAE,sHAAsH,EAC5H,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,GACxB,+BAA+B,CAAC;IACnC,kJAAkJ;IAClJ,CACE,IAAI,EAAE,mFAAmF,EACzF,cAAc,EAAE,MAAM,GACrB,8BAA8B,CAAC;CACnC;AAED,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js new file mode 100644 index 00000000000..b71417cf8e6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=clientDefinitions.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js.map new file mode 100644 index 00000000000..ec834a878d5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.ts new file mode 100644 index 00000000000..a4af4bdf0f0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.ts @@ -0,0 +1,392 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + OperationsListParameters, + DataProductsCatalogsGetParameters, + DataProductsCatalogsListByResourceGroupParameters, + DataProductsCatalogsListBySubscriptionParameters, + DataTypesCreateParameters, + DataTypesGetParameters, + DataTypesUpdateParameters, + DataTypesDeleteParameters, + DataTypesDeleteDataParameters, + DataTypesGenerateStorageContainerSasTokenParameters, + DataTypesListByDataProductParameters, + DataProductsCreateParameters, + DataProductsGetParameters, + DataProductsUpdateParameters, + DataProductsDeleteParameters, + DataProductsGenerateStorageAccountSasTokenParameters, + DataProductsRotateKeyParameters, + DataProductsAddUserRoleParameters, + DataProductsRemoveUserRoleParameters, + DataProductsListRolesAssignmentsParameters, + DataProductsListByResourceGroupParameters, + DataProductsListBySubscriptionParameters, +} from "./parameters.js"; +import { + OperationsList200Response, + OperationsListDefaultResponse, + DataProductsCatalogsGet200Response, + DataProductsCatalogsGetDefaultResponse, + DataProductsCatalogsListByResourceGroup200Response, + DataProductsCatalogsListByResourceGroupDefaultResponse, + DataProductsCatalogsListBySubscription200Response, + DataProductsCatalogsListBySubscriptionDefaultResponse, + DataTypesCreate200Response, + DataTypesCreate201Response, + DataTypesCreateDefaultResponse, + DataTypesGet200Response, + DataTypesGetDefaultResponse, + DataTypesUpdate200Response, + DataTypesUpdate202Response, + DataTypesUpdateDefaultResponse, + DataTypesDelete202Response, + DataTypesDelete204Response, + DataTypesDeleteDefaultResponse, + DataTypesDeleteData202Response, + DataTypesDeleteData204Response, + DataTypesDeleteDataDefaultResponse, + DataTypesGenerateStorageContainerSasToken200Response, + DataTypesGenerateStorageContainerSasTokenDefaultResponse, + DataTypesListByDataProduct200Response, + DataTypesListByDataProductDefaultResponse, + DataProductsCreate200Response, + DataProductsCreate201Response, + DataProductsCreateDefaultResponse, + DataProductsGet200Response, + DataProductsGetDefaultResponse, + DataProductsUpdate200Response, + DataProductsUpdate202Response, + DataProductsUpdateDefaultResponse, + DataProductsDelete202Response, + DataProductsDelete204Response, + DataProductsDeleteDefaultResponse, + DataProductsGenerateStorageAccountSasToken200Response, + DataProductsGenerateStorageAccountSasTokenDefaultResponse, + DataProductsRotateKey204Response, + DataProductsRotateKeyDefaultResponse, + DataProductsAddUserRole200Response, + DataProductsAddUserRoleDefaultResponse, + DataProductsRemoveUserRole204Response, + DataProductsRemoveUserRoleDefaultResponse, + DataProductsListRolesAssignments200Response, + DataProductsListRolesAssignmentsDefaultResponse, + DataProductsListByResourceGroup200Response, + DataProductsListByResourceGroupDefaultResponse, + DataProductsListBySubscription200Response, + DataProductsListBySubscriptionDefaultResponse, +} from "./responses.js"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; + +export interface OperationsList { + /** List the operations for the provider */ + get( + options?: OperationsListParameters, + ): StreamableMethod< + OperationsList200Response | OperationsListDefaultResponse + >; +} + +export interface DataProductsCatalogsGet { + /** Retrieve data type resource. */ + get( + options?: DataProductsCatalogsGetParameters, + ): StreamableMethod< + DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse + >; +} + +export interface DataProductsCatalogsListByResourceGroup { + /** List data catalog by resource group. */ + get( + options?: DataProductsCatalogsListByResourceGroupParameters, + ): StreamableMethod< + | DataProductsCatalogsListByResourceGroup200Response + | DataProductsCatalogsListByResourceGroupDefaultResponse + >; +} + +export interface DataProductsCatalogsListBySubscription { + /** List data catalog by subscription. */ + get( + options?: DataProductsCatalogsListBySubscriptionParameters, + ): StreamableMethod< + | DataProductsCatalogsListBySubscription200Response + | DataProductsCatalogsListBySubscriptionDefaultResponse + >; +} + +export interface DataTypesCreate { + /** Create data type resource. */ + put( + options: DataTypesCreateParameters, + ): StreamableMethod< + | DataTypesCreate200Response + | DataTypesCreate201Response + | DataTypesCreateDefaultResponse + >; + /** Retrieve data type resource. */ + get( + options?: DataTypesGetParameters, + ): StreamableMethod; + /** Update data type resource. */ + patch( + options: DataTypesUpdateParameters, + ): StreamableMethod< + | DataTypesUpdate200Response + | DataTypesUpdate202Response + | DataTypesUpdateDefaultResponse + >; + /** Delete data type resource. */ + delete( + options?: DataTypesDeleteParameters, + ): StreamableMethod< + | DataTypesDelete202Response + | DataTypesDelete204Response + | DataTypesDeleteDefaultResponse + >; +} + +export interface DataTypesDeleteData { + /** Delete data for data type. */ + post( + options: DataTypesDeleteDataParameters, + ): StreamableMethod< + | DataTypesDeleteData202Response + | DataTypesDeleteData204Response + | DataTypesDeleteDataDefaultResponse + >; +} + +export interface DataTypesGenerateStorageContainerSasToken { + /** Generate sas token for storage container. */ + post( + options: DataTypesGenerateStorageContainerSasTokenParameters, + ): StreamableMethod< + | DataTypesGenerateStorageContainerSasToken200Response + | DataTypesGenerateStorageContainerSasTokenDefaultResponse + >; +} + +export interface DataTypesListByDataProduct { + /** List data type by parent resource. */ + get( + options?: DataTypesListByDataProductParameters, + ): StreamableMethod< + | DataTypesListByDataProduct200Response + | DataTypesListByDataProductDefaultResponse + >; +} + +export interface DataProductsCreate { + /** Create data product resource. */ + put( + options: DataProductsCreateParameters, + ): StreamableMethod< + | DataProductsCreate200Response + | DataProductsCreate201Response + | DataProductsCreateDefaultResponse + >; + /** Retrieve data product resource. */ + get( + options?: DataProductsGetParameters, + ): StreamableMethod< + DataProductsGet200Response | DataProductsGetDefaultResponse + >; + /** Update data product resource. */ + patch( + options: DataProductsUpdateParameters, + ): StreamableMethod< + | DataProductsUpdate200Response + | DataProductsUpdate202Response + | DataProductsUpdateDefaultResponse + >; + /** Delete data product resource. */ + delete( + options?: DataProductsDeleteParameters, + ): StreamableMethod< + | DataProductsDelete202Response + | DataProductsDelete204Response + | DataProductsDeleteDefaultResponse + >; +} + +export interface DataProductsGenerateStorageAccountSasToken { + /** Generate sas token for storage account. */ + post( + options: DataProductsGenerateStorageAccountSasTokenParameters, + ): StreamableMethod< + | DataProductsGenerateStorageAccountSasToken200Response + | DataProductsGenerateStorageAccountSasTokenDefaultResponse + >; +} + +export interface DataProductsRotateKey { + /** Initiate key rotation on Data Product. */ + post( + options: DataProductsRotateKeyParameters, + ): StreamableMethod< + DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse + >; +} + +export interface DataProductsAddUserRole { + /** Assign role to the data product. */ + post( + options: DataProductsAddUserRoleParameters, + ): StreamableMethod< + DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse + >; +} + +export interface DataProductsRemoveUserRole { + /** Remove role from the data product. */ + post( + options: DataProductsRemoveUserRoleParameters, + ): StreamableMethod< + | DataProductsRemoveUserRole204Response + | DataProductsRemoveUserRoleDefaultResponse + >; +} + +export interface DataProductsListRolesAssignments { + /** List user roles associated with the data product. */ + post( + options: DataProductsListRolesAssignmentsParameters, + ): StreamableMethod< + | DataProductsListRolesAssignments200Response + | DataProductsListRolesAssignmentsDefaultResponse + >; +} + +export interface DataProductsListByResourceGroup { + /** List data products by resource group. */ + get( + options?: DataProductsListByResourceGroupParameters, + ): StreamableMethod< + | DataProductsListByResourceGroup200Response + | DataProductsListByResourceGroupDefaultResponse + >; +} + +export interface DataProductsListBySubscription { + /** List data products by subscription. */ + get( + options?: DataProductsListBySubscriptionParameters, + ): StreamableMethod< + | DataProductsListBySubscription200Response + | DataProductsListBySubscriptionDefaultResponse + >; +} + +export interface Routes { + /** Resource for '/providers/Microsoft.NetworkAnalytics/operations' has methods for the following verbs: get */ + (path: "/providers/Microsoft.NetworkAnalytics/operations"): OperationsList; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default' has methods for the following verbs: get */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", + subscriptionId: string, + resourceGroupName: string, + ): DataProductsCatalogsGet; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs' has methods for the following verbs: get */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + subscriptionId: string, + resourceGroupName: string, + ): DataProductsCatalogsListByResourceGroup; + /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs' has methods for the following verbs: get */ + ( + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + subscriptionId: string, + ): DataProductsCatalogsListBySubscription; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}' has methods for the following verbs: put, get, patch, delete */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + ): DataTypesCreate; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}/deleteData' has methods for the following verbs: post */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + ): DataTypesDeleteData; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}/generateStorageContainerSasToken' has methods for the following verbs: post */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + dataTypeName: string, + ): DataTypesGenerateStorageContainerSasToken; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes' has methods for the following verbs: get */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + ): DataTypesListByDataProduct; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}' has methods for the following verbs: put, get, patch, delete */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + ): DataProductsCreate; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/generateStorageAccountSasToken' has methods for the following verbs: post */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + ): DataProductsGenerateStorageAccountSasToken; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/rotateKey' has methods for the following verbs: post */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + ): DataProductsRotateKey; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/addUserRole' has methods for the following verbs: post */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + ): DataProductsAddUserRole; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/removeUserRole' has methods for the following verbs: post */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + ): DataProductsRemoveUserRole; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/listRolesAssignments' has methods for the following verbs: post */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", + subscriptionId: string, + resourceGroupName: string, + dataProductName: string, + ): DataProductsListRolesAssignments; + /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts' has methods for the following verbs: get */ + ( + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", + subscriptionId: string, + resourceGroupName: string, + ): DataProductsListByResourceGroup; + /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.NetworkAnalytics/dataProducts' has methods for the following verbs: get */ + ( + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", + subscriptionId: string, + ): DataProductsListBySubscription; +} + +export type NetworkAnalyticsContext = Client & { + path: Routes; +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts new file mode 100644 index 00000000000..aad040ed027 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts @@ -0,0 +1,12 @@ +import NetworkAnalyticsClient from "./networkAnalyticsClient.js"; +export * from "./networkAnalyticsClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; +export * from "./pollingHelper.js"; +export default NetworkAnalyticsClient; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts.map new file mode 100644 index 00000000000..ce519f11b93 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AAEjE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAEnC,eAAe,sBAAsB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js new file mode 100644 index 00000000000..a38f0b18308 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import NetworkAnalyticsClient from "./networkAnalyticsClient.js"; +export * from "./networkAnalyticsClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; +export * from "./pollingHelper.js"; +export default NetworkAnalyticsClient; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js.map new file mode 100644 index 00000000000..c777c52cedd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AAEjE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAEnC,eAAe,sBAAsB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.ts new file mode 100644 index 00000000000..4d65fa19423 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import NetworkAnalyticsClient from "./networkAnalyticsClient.js"; + +export * from "./networkAnalyticsClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; +export * from "./pollingHelper.js"; + +export default NetworkAnalyticsClient; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts new file mode 100644 index 00000000000..c1860aa7517 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts @@ -0,0 +1,24 @@ +import { OperationsList200Response, OperationsListDefaultResponse, DataProductsCatalogsGet200Response, DataProductsCatalogsGetDefaultResponse, DataProductsCatalogsListByResourceGroup200Response, DataProductsCatalogsListByResourceGroupDefaultResponse, DataProductsCatalogsListBySubscription200Response, DataProductsCatalogsListBySubscriptionDefaultResponse, DataTypesCreate200Response, DataTypesCreate201Response, DataTypesCreateLogicalResponse, DataTypesCreateDefaultResponse, DataTypesGet200Response, DataTypesGetDefaultResponse, DataTypesUpdate200Response, DataTypesUpdate202Response, DataTypesUpdateLogicalResponse, DataTypesUpdateDefaultResponse, DataTypesDelete202Response, DataTypesDelete204Response, DataTypesDeleteLogicalResponse, DataTypesDeleteDefaultResponse, DataTypesDeleteData202Response, DataTypesDeleteData204Response, DataTypesDeleteDataLogicalResponse, DataTypesDeleteDataDefaultResponse, DataTypesGenerateStorageContainerSasToken200Response, DataTypesGenerateStorageContainerSasTokenDefaultResponse, DataTypesListByDataProduct200Response, DataTypesListByDataProductDefaultResponse, DataProductsCreate200Response, DataProductsCreate201Response, DataProductsCreateLogicalResponse, DataProductsCreateDefaultResponse, DataProductsGet200Response, DataProductsGetDefaultResponse, DataProductsUpdate200Response, DataProductsUpdate202Response, DataProductsUpdateLogicalResponse, DataProductsUpdateDefaultResponse, DataProductsDelete202Response, DataProductsDelete204Response, DataProductsDeleteLogicalResponse, DataProductsDeleteDefaultResponse, DataProductsGenerateStorageAccountSasToken200Response, DataProductsGenerateStorageAccountSasTokenDefaultResponse, DataProductsRotateKey204Response, DataProductsRotateKeyDefaultResponse, DataProductsAddUserRole200Response, DataProductsAddUserRoleDefaultResponse, DataProductsRemoveUserRole204Response, DataProductsRemoveUserRoleDefaultResponse, DataProductsListRolesAssignments200Response, DataProductsListRolesAssignmentsDefaultResponse, DataProductsListByResourceGroup200Response, DataProductsListByResourceGroupDefaultResponse, DataProductsListBySubscription200Response, DataProductsListBySubscriptionDefaultResponse } from "./responses.js"; +export declare function isUnexpected(response: OperationsList200Response | OperationsListDefaultResponse): response is OperationsListDefaultResponse; +export declare function isUnexpected(response: DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse): response is DataProductsCatalogsGetDefaultResponse; +export declare function isUnexpected(response: DataProductsCatalogsListByResourceGroup200Response | DataProductsCatalogsListByResourceGroupDefaultResponse): response is DataProductsCatalogsListByResourceGroupDefaultResponse; +export declare function isUnexpected(response: DataProductsCatalogsListBySubscription200Response | DataProductsCatalogsListBySubscriptionDefaultResponse): response is DataProductsCatalogsListBySubscriptionDefaultResponse; +export declare function isUnexpected(response: DataTypesCreate200Response | DataTypesCreate201Response | DataTypesCreateLogicalResponse | DataTypesCreateDefaultResponse): response is DataTypesCreateDefaultResponse; +export declare function isUnexpected(response: DataTypesGet200Response | DataTypesGetDefaultResponse): response is DataTypesGetDefaultResponse; +export declare function isUnexpected(response: DataTypesUpdate200Response | DataTypesUpdate202Response | DataTypesUpdateLogicalResponse | DataTypesUpdateDefaultResponse): response is DataTypesUpdateDefaultResponse; +export declare function isUnexpected(response: DataTypesDelete202Response | DataTypesDelete204Response | DataTypesDeleteLogicalResponse | DataTypesDeleteDefaultResponse): response is DataTypesDeleteDefaultResponse; +export declare function isUnexpected(response: DataTypesDeleteData202Response | DataTypesDeleteData204Response | DataTypesDeleteDataLogicalResponse | DataTypesDeleteDataDefaultResponse): response is DataTypesDeleteDataDefaultResponse; +export declare function isUnexpected(response: DataTypesGenerateStorageContainerSasToken200Response | DataTypesGenerateStorageContainerSasTokenDefaultResponse): response is DataTypesGenerateStorageContainerSasTokenDefaultResponse; +export declare function isUnexpected(response: DataTypesListByDataProduct200Response | DataTypesListByDataProductDefaultResponse): response is DataTypesListByDataProductDefaultResponse; +export declare function isUnexpected(response: DataProductsCreate200Response | DataProductsCreate201Response | DataProductsCreateLogicalResponse | DataProductsCreateDefaultResponse): response is DataProductsCreateDefaultResponse; +export declare function isUnexpected(response: DataProductsGet200Response | DataProductsGetDefaultResponse): response is DataProductsGetDefaultResponse; +export declare function isUnexpected(response: DataProductsUpdate200Response | DataProductsUpdate202Response | DataProductsUpdateLogicalResponse | DataProductsUpdateDefaultResponse): response is DataProductsUpdateDefaultResponse; +export declare function isUnexpected(response: DataProductsDelete202Response | DataProductsDelete204Response | DataProductsDeleteLogicalResponse | DataProductsDeleteDefaultResponse): response is DataProductsDeleteDefaultResponse; +export declare function isUnexpected(response: DataProductsGenerateStorageAccountSasToken200Response | DataProductsGenerateStorageAccountSasTokenDefaultResponse): response is DataProductsGenerateStorageAccountSasTokenDefaultResponse; +export declare function isUnexpected(response: DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse): response is DataProductsRotateKeyDefaultResponse; +export declare function isUnexpected(response: DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse): response is DataProductsAddUserRoleDefaultResponse; +export declare function isUnexpected(response: DataProductsRemoveUserRole204Response | DataProductsRemoveUserRoleDefaultResponse): response is DataProductsRemoveUserRoleDefaultResponse; +export declare function isUnexpected(response: DataProductsListRolesAssignments200Response | DataProductsListRolesAssignmentsDefaultResponse): response is DataProductsListRolesAssignmentsDefaultResponse; +export declare function isUnexpected(response: DataProductsListByResourceGroup200Response | DataProductsListByResourceGroupDefaultResponse): response is DataProductsListByResourceGroupDefaultResponse; +export declare function isUnexpected(response: DataProductsListBySubscription200Response | DataProductsListBySubscriptionDefaultResponse): response is DataProductsListBySubscriptionDefaultResponse; +//# sourceMappingURL=isUnexpected.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts.map new file mode 100644 index 00000000000..303aca6d808 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,kCAAkC,EAClC,sCAAsC,EACtC,kDAAkD,EAClD,sDAAsD,EACtD,iDAAiD,EACjD,qDAAqD,EACrD,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,oDAAoD,EACpD,wDAAwD,EACxD,qCAAqC,EACrC,yCAAyC,EACzC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAi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yCAAyC,CAAC;AACzD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,2CAA2C,GAC3C,+CAA+C,GAClD,QAAQ,IAAI,+CAA+C,CAAC;AAC/D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,0CAA0C,GAC1C,8CAA8C,GACjD,QAAQ,IAAI,8CAA8C,CAAC;AAC9D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,yCAAyC,GACzC,6CAA6C,GAChD,QAAQ,IAAI,6CAA6C,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js new file mode 100644 index 00000000000..a48860f2a73 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +const responseMap = { + "GET /providers/Microsoft.NetworkAnalytics/operations": ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default": ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs": ["200"], + "GET /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs": ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": ["200"], + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": ["200", "201"], + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": ["200", "202"], + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": ["202", "204"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": ["200", "202", "204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": ["202", "204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken": ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes": ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": ["200"], + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": ["200", "201"], + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": ["200", "202"], + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": ["202", "204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken": ["200"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey": ["204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole": ["200"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole": ["204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments": ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts": ["200"], + "GET /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts": ["200"], +}; +export function isUnexpected(response) { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} +function getParametrizedPathSuccess(method, path) { + const pathParts = path.split("/"); + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, matchedValue = []; + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); + if (!isMatched) { + found = false; + break; + } + continue; + } + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + return matchedValue; +} +function getPathFromMapKey(mapKey) { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} +//# sourceMappingURL=isUnexpected.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js.map new file mode 100644 index 00000000000..053359448b0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA+DlC,MAAM,WAAW,GAA6B;IAC5C,sDAAsD,EAAE,CAAC,KAAK,CAAC;IAC/D,0IAA0I,EACxI,CAAC,KAAK,CAAC;IACT,kIAAkI,EAChI,CAAC,KAAK,CAAC;IACT,+FAA+F,EAC7F,CAAC,KAAK,CAAC;IACT,qKAAqK,EACnK,CAAC,KAAK,CAAC;IACT,qKAAqK,EACnK,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,uKAAuK,EACrK,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,wKAAwK,EACtK,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,gLAAgL,EAC9K,CAAC,KAAK,EAAE,KAAK,EAAE,KAA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Ac,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAC1C,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;gBAE3B,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.ts new file mode 100644 index 00000000000..ed504bc78ad --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.ts @@ -0,0 +1,395 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + OperationsList200Response, + OperationsListDefaultResponse, + DataProductsCatalogsGet200Response, + DataProductsCatalogsGetDefaultResponse, + DataProductsCatalogsListByResourceGroup200Response, + DataProductsCatalogsListByResourceGroupDefaultResponse, + DataProductsCatalogsListBySubscription200Response, + DataProductsCatalogsListBySubscriptionDefaultResponse, + DataTypesCreate200Response, + DataTypesCreate201Response, + DataTypesCreateLogicalResponse, + DataTypesCreateDefaultResponse, + DataTypesGet200Response, + DataTypesGetDefaultResponse, + DataTypesUpdate200Response, + DataTypesUpdate202Response, + DataTypesUpdateLogicalResponse, + DataTypesUpdateDefaultResponse, + DataTypesDelete202Response, + DataTypesDelete204Response, + DataTypesDeleteLogicalResponse, + DataTypesDeleteDefaultResponse, + DataTypesDeleteData202Response, + DataTypesDeleteData204Response, + DataTypesDeleteDataLogicalResponse, + DataTypesDeleteDataDefaultResponse, + DataTypesGenerateStorageContainerSasToken200Response, + DataTypesGenerateStorageContainerSasTokenDefaultResponse, + DataTypesListByDataProduct200Response, + DataTypesListByDataProductDefaultResponse, + DataProductsCreate200Response, + DataProductsCreate201Response, + DataProductsCreateLogicalResponse, + DataProductsCreateDefaultResponse, + DataProductsGet200Response, + DataProductsGetDefaultResponse, + DataProductsUpdate200Response, + DataProductsUpdate202Response, + DataProductsUpdateLogicalResponse, + DataProductsUpdateDefaultResponse, + DataProductsDelete202Response, + DataProductsDelete204Response, + DataProductsDeleteLogicalResponse, + DataProductsDeleteDefaultResponse, + DataProductsGenerateStorageAccountSasToken200Response, + DataProductsGenerateStorageAccountSasTokenDefaultResponse, + DataProductsRotateKey204Response, + DataProductsRotateKeyDefaultResponse, + DataProductsAddUserRole200Response, + DataProductsAddUserRoleDefaultResponse, + DataProductsRemoveUserRole204Response, + DataProductsRemoveUserRoleDefaultResponse, + DataProductsListRolesAssignments200Response, + DataProductsListRolesAssignmentsDefaultResponse, + DataProductsListByResourceGroup200Response, + DataProductsListByResourceGroupDefaultResponse, + DataProductsListBySubscription200Response, + DataProductsListBySubscriptionDefaultResponse, +} from "./responses.js"; + +const responseMap: Record = { + "GET /providers/Microsoft.NetworkAnalytics/operations": ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default": + ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs": + ["200"], + "GET /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs": + ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": + ["200"], + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": + ["200", "201"], + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": + ["200", "202"], + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": + ["202", "204"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": + ["200", "202", "204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": + ["202", "204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken": + ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes": + ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": + ["200"], + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": + ["200", "201"], + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": + ["200", "202"], + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": + ["202", "204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken": + ["200"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey": + ["204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole": + ["200"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole": + ["204"], + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments": + ["200"], + "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts": + ["200"], + "GET /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts": + ["200"], +}; + +export function isUnexpected( + response: OperationsList200Response | OperationsListDefaultResponse, +): response is OperationsListDefaultResponse; +export function isUnexpected( + response: + | DataProductsCatalogsGet200Response + | DataProductsCatalogsGetDefaultResponse, +): response is DataProductsCatalogsGetDefaultResponse; +export function isUnexpected( + response: + | DataProductsCatalogsListByResourceGroup200Response + | DataProductsCatalogsListByResourceGroupDefaultResponse, +): response is DataProductsCatalogsListByResourceGroupDefaultResponse; +export function isUnexpected( + response: + | DataProductsCatalogsListBySubscription200Response + | DataProductsCatalogsListBySubscriptionDefaultResponse, +): response is DataProductsCatalogsListBySubscriptionDefaultResponse; +export function isUnexpected( + response: + | DataTypesCreate200Response + | DataTypesCreate201Response + | DataTypesCreateLogicalResponse + | DataTypesCreateDefaultResponse, +): response is DataTypesCreateDefaultResponse; +export function isUnexpected( + response: DataTypesGet200Response | DataTypesGetDefaultResponse, +): response is DataTypesGetDefaultResponse; +export function isUnexpected( + response: + | DataTypesUpdate200Response + | DataTypesUpdate202Response + | DataTypesUpdateLogicalResponse + | DataTypesUpdateDefaultResponse, +): response is DataTypesUpdateDefaultResponse; +export function isUnexpected( + response: + | DataTypesDelete202Response + | DataTypesDelete204Response + | DataTypesDeleteLogicalResponse + | DataTypesDeleteDefaultResponse, +): response is DataTypesDeleteDefaultResponse; +export function isUnexpected( + response: + | DataTypesDeleteData202Response + | DataTypesDeleteData204Response + | DataTypesDeleteDataLogicalResponse + | DataTypesDeleteDataDefaultResponse, +): response is DataTypesDeleteDataDefaultResponse; +export function isUnexpected( + response: + | DataTypesGenerateStorageContainerSasToken200Response + | DataTypesGenerateStorageContainerSasTokenDefaultResponse, +): response is DataTypesGenerateStorageContainerSasTokenDefaultResponse; +export function isUnexpected( + response: + | DataTypesListByDataProduct200Response + | DataTypesListByDataProductDefaultResponse, +): response is DataTypesListByDataProductDefaultResponse; +export function isUnexpected( + response: + | DataProductsCreate200Response + | DataProductsCreate201Response + | DataProductsCreateLogicalResponse + | DataProductsCreateDefaultResponse, +): response is DataProductsCreateDefaultResponse; +export function isUnexpected( + response: DataProductsGet200Response | DataProductsGetDefaultResponse, +): response is DataProductsGetDefaultResponse; +export function isUnexpected( + response: + | DataProductsUpdate200Response + | DataProductsUpdate202Response + | DataProductsUpdateLogicalResponse + | DataProductsUpdateDefaultResponse, +): response is DataProductsUpdateDefaultResponse; +export function isUnexpected( + response: + | DataProductsDelete202Response + | DataProductsDelete204Response + | DataProductsDeleteLogicalResponse + | DataProductsDeleteDefaultResponse, +): response is DataProductsDeleteDefaultResponse; +export function isUnexpected( + response: + | DataProductsGenerateStorageAccountSasToken200Response + | DataProductsGenerateStorageAccountSasTokenDefaultResponse, +): response is DataProductsGenerateStorageAccountSasTokenDefaultResponse; +export function isUnexpected( + response: + | DataProductsRotateKey204Response + | DataProductsRotateKeyDefaultResponse, +): response is DataProductsRotateKeyDefaultResponse; +export function isUnexpected( + response: + | DataProductsAddUserRole200Response + | DataProductsAddUserRoleDefaultResponse, +): response is DataProductsAddUserRoleDefaultResponse; +export function isUnexpected( + response: + | DataProductsRemoveUserRole204Response + | DataProductsRemoveUserRoleDefaultResponse, +): response is DataProductsRemoveUserRoleDefaultResponse; +export function isUnexpected( + response: + | DataProductsListRolesAssignments200Response + | DataProductsListRolesAssignmentsDefaultResponse, +): response is DataProductsListRolesAssignmentsDefaultResponse; +export function isUnexpected( + response: + | DataProductsListByResourceGroup200Response + | DataProductsListByResourceGroupDefaultResponse, +): response is DataProductsListByResourceGroupDefaultResponse; +export function isUnexpected( + response: + | DataProductsListBySubscription200Response + | DataProductsListBySubscriptionDefaultResponse, +): response is DataProductsListBySubscriptionDefaultResponse; +export function isUnexpected( + response: + | OperationsList200Response + | OperationsListDefaultResponse + | DataProductsCatalogsGet200Response + | DataProductsCatalogsGetDefaultResponse + | DataProductsCatalogsListByResourceGroup200Response + | DataProductsCatalogsListByResourceGroupDefaultResponse + | DataProductsCatalogsListBySubscription200Response + | DataProductsCatalogsListBySubscriptionDefaultResponse + | DataTypesCreate200Response + | DataTypesCreate201Response + | DataTypesCreateLogicalResponse + | DataTypesCreateDefaultResponse + | DataTypesGet200Response + | DataTypesGetDefaultResponse + | DataTypesUpdate200Response + | DataTypesUpdate202Response + | DataTypesUpdateLogicalResponse + | DataTypesUpdateDefaultResponse + | DataTypesDelete202Response + | DataTypesDelete204Response + | DataTypesDeleteLogicalResponse + | DataTypesDeleteDefaultResponse + | DataTypesDeleteData202Response + | DataTypesDeleteData204Response + | DataTypesDeleteDataLogicalResponse + | DataTypesDeleteDataDefaultResponse + | DataTypesGenerateStorageContainerSasToken200Response + | DataTypesGenerateStorageContainerSasTokenDefaultResponse + | DataTypesListByDataProduct200Response + | DataTypesListByDataProductDefaultResponse + | DataProductsCreate200Response + | DataProductsCreate201Response + | DataProductsCreateLogicalResponse + | DataProductsCreateDefaultResponse + | DataProductsGet200Response + | DataProductsGetDefaultResponse + | DataProductsUpdate200Response + | DataProductsUpdate202Response + | DataProductsUpdateLogicalResponse + | DataProductsUpdateDefaultResponse + | DataProductsDelete202Response + | DataProductsDelete204Response + | DataProductsDeleteLogicalResponse + | DataProductsDeleteDefaultResponse + | DataProductsGenerateStorageAccountSasToken200Response + | DataProductsGenerateStorageAccountSasTokenDefaultResponse + | DataProductsRotateKey204Response + | DataProductsRotateKeyDefaultResponse + | DataProductsAddUserRole200Response + | DataProductsAddUserRoleDefaultResponse + | DataProductsRemoveUserRole204Response + | DataProductsRemoveUserRoleDefaultResponse + | DataProductsListRolesAssignments200Response + | DataProductsListRolesAssignmentsDefaultResponse + | DataProductsListByResourceGroup200Response + | DataProductsListByResourceGroupDefaultResponse + | DataProductsListBySubscription200Response + | DataProductsListBySubscriptionDefaultResponse, +): response is + | OperationsListDefaultResponse + | DataProductsCatalogsGetDefaultResponse + | DataProductsCatalogsListByResourceGroupDefaultResponse + | DataProductsCatalogsListBySubscriptionDefaultResponse + | DataTypesCreateDefaultResponse + | DataTypesGetDefaultResponse + | DataTypesUpdateDefaultResponse + | DataTypesDeleteDefaultResponse + | DataTypesDeleteDataDefaultResponse + | DataTypesGenerateStorageContainerSasTokenDefaultResponse + | DataTypesListByDataProductDefaultResponse + | DataProductsCreateDefaultResponse + | DataProductsGetDefaultResponse + | DataProductsUpdateDefaultResponse + | DataProductsDeleteDefaultResponse + | DataProductsGenerateStorageAccountSasTokenDefaultResponse + | DataProductsRotateKeyDefaultResponse + | DataProductsAddUserRoleDefaultResponse + | DataProductsRemoveUserRoleDefaultResponse + | DataProductsListRolesAssignmentsDefaultResponse + | DataProductsListByResourceGroupDefaultResponse + | DataProductsListBySubscriptionDefaultResponse { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} + +function getParametrizedPathSuccess(method: string, path: string): string[] { + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: string[] = []; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- + ) { + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts new file mode 100644 index 00000000000..c8b01d25f17 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts @@ -0,0 +1,319 @@ +/** The data catalog resource. */ +export interface DataProductsCatalog extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductsCatalogProperties; +} +/** Details for data catalog properties. */ +export interface DataProductsCatalogProperties { + /** The data product publisher information. */ + publishers: Array; +} +/** Details for Publisher Information. */ +export interface PublisherInformation { + /** Name of the publisher. */ + publisherName: string; + /** Data product information. */ + dataProducts: Array; +} +/** Data Product Information */ +export interface DataProductInformation { + /** Name of data product. */ + dataProductName: string; + /** Description about data product. */ + description: string; + /** Version information of data product. */ + dataProductVersions: Array; +} +/** Data Product Version. */ +export interface DataProductVersion { + /** Version of data product */ + version: string; +} +/** The base proxy resource. */ +export interface ProxyResource extends Resource { +} +/** Common properties for all Azure Resource Manager resources. */ +export interface Resource { +} +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { +} +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** The geo-location where the resource lives */ + location: string; + /** Resource tags. */ + tags?: Record; +} +/** The data product resource. */ +export interface DataProduct extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductProperties; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; +} +/** The data product properties. */ +export interface DataProductProperties { + /** Data product publisher name. */ + publisher: string; + /** Product name of data product. */ + product: string; + /** Major version of data product. */ + majorVersion: string; + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Flag to enable or disable redundancy for data product. */ + redundancy?: ControlState; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Flag to enable or disable public access of data product resource. */ + publicNetworkAccess?: ControlState; + /** Flag to enable customer managed key encryption for data product. */ + customerManagedKeyEncryptionEnabled?: ControlState; + /** Customer managed encryption key details for data product. */ + customerEncryptionKey?: EncryptionKeyDetails; + /** Network rule set for data product. */ + networkacls?: DataProductNetworkAcls; + /** Managed resource group configuration. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; +} +/** Encryption key details. */ +export interface EncryptionKeyDetails { + /** The Uri of the key vault. */ + keyVaultUri: string; + /** The name of the key vault key. */ + keyName: string; + /** The version of the key vault key. */ + keyVersion: string; +} +/** Data Product Network rule set */ +export interface DataProductNetworkAcls { + /** Virtual Network Rule */ + virtualNetworkRule: Array; + /** IP rule with specific IP or IP range in CIDR format. */ + ipRules: Array; + /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ + allowedQueryIpRangeList: string[]; + /** Default Action */ + defaultAction: DefaultAction; +} +/** Virtual Network Rule */ +export interface VirtualNetworkRule { + /** Resource ID of a subnet */ + id: string; + /** The action of virtual network rule. */ + action?: string; + /** Gets the state of virtual network rule. */ + state?: string; +} +/** IP rule with specific IP or IP range in CIDR format. */ +export interface IPRules { + /** IP Rules Value */ + value?: string; + /** The action of virtual network rule. */ + action: string; +} +/** ManagedResourceGroup related properties */ +export interface ManagedResourceGroupConfiguration { + /** Name of managed resource group */ + name: string; + /** Managed Resource Group location */ + location: string; +} +/** Details of Consumption Properties */ +export interface ConsumptionEndpointsProperties { +} +/** The properties of the managed service identities assigned to this resource. */ +export interface ManagedServiceIdentity { + /** The type of managed identity assigned to this resource. */ + type: ManagedServiceIdentityType; + /** The identities assigned to this resource by the user. */ + userAssignedIdentities?: UserAssignedIdentities; +} +/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ +export interface UserAssignedIdentities extends Record { +} +/** A managed identity assigned by the user. */ +export interface UserAssignedIdentity { + /** The active directory client identifier for this principal. */ + clientId?: string; + /** The active directory identifier for this principal. */ + principalId?: string; +} +/** The base extension resource. */ +export interface ExtensionResource extends Resource { +} +/** The resource model definition for an Azure Resource Manager resource with an etag. */ +export interface AzureEntityResource extends Resource { +} +/** The private endpoint connection resource */ +export interface PrivateEndpointConnection extends ProxyResource { + /** The private endpoint connection properties */ + properties?: PrivateEndpointConnectionProperties; +} +/** Properties of he private endpoint connection resource */ +export interface PrivateEndpointConnectionProperties { + /** The private endpoint resource */ + privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** The provisioning state of the private endpoint connection resource. */ + provisioningState?: PrivateEndpointConnectionProvisioningState; +} +/** The private endpoint resource */ +export interface PrivateEndpoint { + /** The resource identifier for private endpoint */ + id?: string; +} +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} +export interface PrivateLinkResource extends ProxyResource { + /** Properties of the private link resource. */ + properties?: PrivateLinkResourceProperties; +} +/** Properties of a private link resource. */ +export interface PrivateLinkResourceProperties { + /** The private link resource private link DNS zone name. */ + requiredZoneNames?: string[]; +} +/** The data type resource. */ +export interface DataType extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataTypeProperties; +} +/** The data type properties */ +export interface DataTypeProperties { + /** State of data type. */ + state?: DataTypeState; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; +} +/** The type used for update operations of the DataType. */ +export interface DataTypeUpdate { + properties?: DataTypeUpdateProperties; +} +/** The updatable properties of the DataType. */ +export interface DataTypeUpdateProperties { + /** State of data type. */ + state?: DataTypeState; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; +} +/** The details for container sas creation. */ +export interface ContainerSaS { + /** Sas token start timestamp. */ + startTimeStamp: Date | string; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date | string; + /** Ip Address */ + ipAddress: string; +} +/** The type used for update operations of the DataProduct. */ +export interface DataProductUpdate { + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; + /** Resource tags. */ + tags?: Record; + properties?: DataProductUpdateProperties; +} +/** The updatable properties of the DataProduct. */ +export interface DataProductUpdateProperties { + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; +} +/** The details for storage account sas creation. */ +export interface AccountSas { + /** Sas token start timestamp. */ + startTimeStamp: Date | string; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date | string; + /** Ip Address */ + ipAddress: string; +} +/** Details for KeyVault. */ +export interface KeyVaultInfo { + /** key vault url. */ + keyVaultUrl: string; +} +/** The details for role assignment common properties. */ +export interface RoleAssignmentCommonProperties { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; +} +/** The details for role assignment response. */ +export interface RoleAssignmentDetail { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; + /** Id of role assignment request */ + roleAssignmentId: string; +} +/** Alias for ProvisioningState */ +export type ProvisioningState = string | "Succeeded" | "Failed" | "Canceled" | "Provisioning" | "Updating" | "Deleting" | "Accepted"; +/** Alias for CreatedByType */ +export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key" | string; +/** Alias for ControlState */ +export type ControlState = string | "Enabled" | "Disabled"; +/** Alias for DefaultAction */ +export type DefaultAction = string | "Allow" | "Deny"; +/** Alias for ManagedServiceIdentityType */ +export type ManagedServiceIdentityType = "None" | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | string; +/** Alias for PrivateEndpointServiceConnectionStatus */ +export type PrivateEndpointServiceConnectionStatus = "Pending" | "Approved" | "Rejected" | string; +/** Alias for ResourceProvisioningState */ +export type ResourceProvisioningState = "Succeeded" | "Failed" | "Canceled" | string; +/** Alias for PrivateEndpointConnectionProvisioningState */ +export type PrivateEndpointConnectionProvisioningState = ResourceProvisioningState | "Creating" | "Deleting"; +/** Alias for DataTypeState */ +export type DataTypeState = string | "Stopped" | "Running"; +/** Alias for DataProductUserRole */ +export type DataProductUserRole = string | "Reader" | "SensitiveReader"; +//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts.map new file mode 100644 index 00000000000..72c1003416f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAGA,iCAAiC;AACjC,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,0DAA0D;IAC1D,UAAU,CAAC,EAAE,6BAA6B,CAAC;CAC5C;AAED,2CAA2C;AAC3C,MAAM,WAAW,6BAA6B;IAC5C,8CAA8C;IAC9C,UAAU,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CACzC;AAED,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,YAAY,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CAC7C;AAED,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,mBAAmB,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CAChD;AAED,4BAA4B;AAC5B,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,+BAA+B;AAC/B,MAAM,WAAW,aAAc,SAAQ,QAAQ;CAAG;AAElD,kEAAkE;AAClE,MAAM,WAAW,QAAQ;CAAG;AAE5B,6EAA6E;AAC7E,MAAM,WAAW,UAAU;CAAG;AAE9B,+HAA+H;AAC/H,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,gDAAgD;IAChD,QAAQ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AM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AACtD,2CAA2C;AAC3C,MAAM,MAAM,0BAA0B,GAClC,MAAM,GACN,gBAAgB,GAChB,cAAc,GACd,8BAA8B,GAC9B,MAAM,CAAC;AACX,uDAAuD;AACvD,MAAM,MAAM,sCAAsC,GAC9C,SAAS,GACT,UAAU,GACV,UAAU,GACV,MAAM,CAAC;AACX,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GACjC,WAAW,GACX,QAAQ,GACR,UAAU,GACV,MAAM,CAAC;AACX,2DAA2D;AAC3D,MAAM,MAAM,0CAA0C,GAClD,yBAAyB,GACzB,UAAU,GACV,UAAU,CAAC;AACf,8BAA8B;AAC9B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAC3D,oCAAoC;AACpC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,iBAAiB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js new file mode 100644 index 00000000000..63155a9f043 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js.map new file mode 100644 index 00000000000..f38b51ae9e8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js.map @@ -0,0 +1 @@ +{"version":3,"file":"models.js","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.ts new file mode 100644 index 00000000000..570b5f0aa63 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.ts @@ -0,0 +1,383 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** The data catalog resource. */ +export interface DataProductsCatalog extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductsCatalogProperties; +} + +/** Details for data catalog properties. */ +export interface DataProductsCatalogProperties { + /** The data product publisher information. */ + publishers: Array; +} + +/** Details for Publisher Information. */ +export interface PublisherInformation { + /** Name of the publisher. */ + publisherName: string; + /** Data product information. */ + dataProducts: Array; +} + +/** Data Product Information */ +export interface DataProductInformation { + /** Name of data product. */ + dataProductName: string; + /** Description about data product. */ + description: string; + /** Version information of data product. */ + dataProductVersions: Array; +} + +/** Data Product Version. */ +export interface DataProductVersion { + /** Version of data product */ + version: string; +} + +/** The base proxy resource. */ +export interface ProxyResource extends Resource {} + +/** Common properties for all Azure Resource Manager resources. */ +export interface Resource {} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData {} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** The geo-location where the resource lives */ + location: string; + /** Resource tags. */ + tags?: Record; +} + +/** The data product resource. */ +export interface DataProduct extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: DataProductProperties; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; +} + +/** The data product properties. */ +export interface DataProductProperties { + /** Data product publisher name. */ + publisher: string; + /** Product name of data product. */ + product: string; + /** Major version of data product. */ + majorVersion: string; + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Flag to enable or disable redundancy for data product. */ + redundancy?: ControlState; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Flag to enable or disable public access of data product resource. */ + publicNetworkAccess?: ControlState; + /** Flag to enable customer managed key encryption for data product. */ + customerManagedKeyEncryptionEnabled?: ControlState; + /** Customer managed encryption key details for data product. */ + customerEncryptionKey?: EncryptionKeyDetails; + /** Network rule set for data product. */ + networkacls?: DataProductNetworkAcls; + /** Managed resource group configuration. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; +} + +/** Encryption key details. */ +export interface EncryptionKeyDetails { + /** The Uri of the key vault. */ + keyVaultUri: string; + /** The name of the key vault key. */ + keyName: string; + /** The version of the key vault key. */ + keyVersion: string; +} + +/** Data Product Network rule set */ +export interface DataProductNetworkAcls { + /** Virtual Network Rule */ + virtualNetworkRule: Array; + /** IP rule with specific IP or IP range in CIDR format. */ + ipRules: Array; + /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ + allowedQueryIpRangeList: string[]; + /** Default Action */ + defaultAction: DefaultAction; +} + +/** Virtual Network Rule */ +export interface VirtualNetworkRule { + /** Resource ID of a subnet */ + id: string; + /** The action of virtual network rule. */ + action?: string; + /** Gets the state of virtual network rule. */ + state?: string; +} + +/** IP rule with specific IP or IP range in CIDR format. */ +export interface IPRules { + /** IP Rules Value */ + value?: string; + /** The action of virtual network rule. */ + action: string; +} + +/** ManagedResourceGroup related properties */ +export interface ManagedResourceGroupConfiguration { + /** Name of managed resource group */ + name: string; + /** Managed Resource Group location */ + location: string; +} + +/** Details of Consumption Properties */ +export interface ConsumptionEndpointsProperties {} + +/** The properties of the managed service identities assigned to this resource. */ +export interface ManagedServiceIdentity { + /** The type of managed identity assigned to this resource. */ + type: ManagedServiceIdentityType; + /** The identities assigned to this resource by the user. */ + userAssignedIdentities?: UserAssignedIdentities; +} + +/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ +export interface UserAssignedIdentities + extends Record {} + +/** A managed identity assigned by the user. */ +export interface UserAssignedIdentity { + /** The active directory client identifier for this principal. */ + clientId?: string; + /** The active directory identifier for this principal. */ + principalId?: string; +} + +/** The base extension resource. */ +export interface ExtensionResource extends Resource {} + +/** The resource model definition for an Azure Resource Manager resource with an etag. */ +export interface AzureEntityResource extends Resource {} + +/** The private endpoint connection resource */ +export interface PrivateEndpointConnection extends ProxyResource { + /** The private endpoint connection properties */ + properties?: PrivateEndpointConnectionProperties; +} + +/** Properties of he private endpoint connection resource */ +export interface PrivateEndpointConnectionProperties { + /** The private endpoint resource */ + privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** The provisioning state of the private endpoint connection resource. */ + provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +/** The private endpoint resource */ +export interface PrivateEndpoint { + /** The resource identifier for private endpoint */ + id?: string; +} + +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} + +export interface PrivateLinkResource extends ProxyResource { + /** Properties of the private link resource. */ + properties?: PrivateLinkResourceProperties; +} + +/** Properties of a private link resource. */ +export interface PrivateLinkResourceProperties { + /** The private link resource private link DNS zone name. */ + requiredZoneNames?: string[]; +} + +/** The data type resource. */ +export interface DataType extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: DataTypeProperties; +} + +/** The data type properties */ +export interface DataTypeProperties { + /** State of data type. */ + state?: DataTypeState; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; +} + +/** The type used for update operations of the DataType. */ +export interface DataTypeUpdate { + properties?: DataTypeUpdateProperties; +} + +/** The updatable properties of the DataType. */ +export interface DataTypeUpdateProperties { + /** State of data type. */ + state?: DataTypeState; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; +} + +/** The details for container sas creation. */ +export interface ContainerSaS { + /** Sas token start timestamp. */ + startTimeStamp: Date | string; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date | string; + /** Ip Address */ + ipAddress: string; +} + +/** The type used for update operations of the DataProduct. */ +export interface DataProductUpdate { + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; + /** Resource tags. */ + tags?: Record; + properties?: DataProductUpdateProperties; +} + +/** The updatable properties of the DataProduct. */ +export interface DataProductUpdateProperties { + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlState; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; +} + +/** The details for storage account sas creation. */ +export interface AccountSas { + /** Sas token start timestamp. */ + startTimeStamp: Date | string; + /** Sas token expiry timestamp. */ + expiryTimeStamp: Date | string; + /** Ip Address */ + ipAddress: string; +} + +/** Details for KeyVault. */ +export interface KeyVaultInfo { + /** key vault url. */ + keyVaultUrl: string; +} + +/** The details for role assignment common properties. */ +export interface RoleAssignmentCommonProperties { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; +} + +/** The details for role assignment response. */ +export interface RoleAssignmentDetail { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRole; + /** Id of role assignment request */ + roleAssignmentId: string; +} + +/** Alias for ProvisioningState */ +export type ProvisioningState = + | string + | "Succeeded" + | "Failed" + | "Canceled" + | "Provisioning" + | "Updating" + | "Deleting" + | "Accepted"; +/** Alias for CreatedByType */ +export type CreatedByType = + | "User" + | "Application" + | "ManagedIdentity" + | "Key" + | string; +/** Alias for ControlState */ +export type ControlState = string | "Enabled" | "Disabled"; +/** Alias for DefaultAction */ +export type DefaultAction = string | "Allow" | "Deny"; +/** Alias for ManagedServiceIdentityType */ +export type ManagedServiceIdentityType = + | "None" + | "SystemAssigned" + | "UserAssigned" + | "SystemAssigned, UserAssigned" + | string; +/** Alias for PrivateEndpointServiceConnectionStatus */ +export type PrivateEndpointServiceConnectionStatus = + | "Pending" + | "Approved" + | "Rejected" + | string; +/** Alias for ResourceProvisioningState */ +export type ResourceProvisioningState = + | "Succeeded" + | "Failed" + | "Canceled" + | string; +/** Alias for PrivateEndpointConnectionProvisioningState */ +export type PrivateEndpointConnectionProvisioningState = + | ResourceProvisioningState + | "Creating" + | "Deleting"; +/** Alias for DataTypeState */ +export type DataTypeState = string | "Stopped" | "Running"; +/** Alias for DataProductUserRole */ +export type DataProductUserRole = string | "Reader" | "SensitiveReader"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts new file mode 100644 index 00000000000..5b0ed1183c7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts @@ -0,0 +1,10 @@ +import { ClientOptions } from "@azure-rest/core-client"; +import { TokenCredential } from "@azure/core-auth"; +import { NetworkAnalyticsContext } from "./clientDefinitions.js"; +/** + * Initialize a new instance of `NetworkAnalyticsContext` + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters + */ +export default function createClient(credentials: TokenCredential, options?: ClientOptions): NetworkAnalyticsContext; +//# sourceMappingURL=networkAnalyticsClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts.map new file mode 100644 index 00000000000..fdb073854fd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"networkAnalyticsClient.d.ts","sourceRoot":"","sources":["networkAnalyticsClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAAW,EAAE,eAAe,EAC5B,OAAO,GAAE,aAAkB,GAC1B,uBAAuB,CA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js new file mode 100644 index 00000000000..68dccfe6ead --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { getClient } from "@azure-rest/core-client"; +import { logger } from "../logger.js"; +/** + * Initialize a new instance of `NetworkAnalyticsContext` + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters + */ +export default function createClient(credentials, options = {}) { + const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; + options.apiVersion = options.apiVersion ?? "2023-11-15"; + const userAgentInfo = `azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1`; + const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + const client = getClient(endpointUrl, credentials, options); + return client; +} +//# sourceMappingURL=networkAnalyticsClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js.map new file mode 100644 index 00000000000..b0ebf7efa61 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js.map @@ -0,0 +1 @@ +{"version":3,"file":"networkAnalyticsClient.js","sourceRoot":"","sources":["networkAnalyticsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAiB,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAA4B,EAC5B,UAAyB,EAAE;IAE3B,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IACxE,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACxD,MAAM,aAAa,GAAG,iDAAiD,CAAC;IACxE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,GAAG;QACR,GAAG,OAAO;QACV,gBAAgB,EAAE;YAChB,eAAe;SAChB;QACD,cAAc,EAAE;YACd,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI;SACtD;QACD,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CACtB,WAAW,EACX,WAAW,EACX,OAAO,CACmB,CAAC;IAE7B,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.ts new file mode 100644 index 00000000000..18f17548d5f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.ts @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "../logger.js"; +import { TokenCredential } from "@azure/core-auth"; +import { NetworkAnalyticsContext } from "./clientDefinitions.js"; + +/** + * Initialize a new instance of `NetworkAnalyticsContext` + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters + */ +export default function createClient( + credentials: TokenCredential, + options: ClientOptions = {}, +): NetworkAnalyticsContext { + const endpointUrl = + options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; + options.apiVersion = options.apiVersion ?? "2023-11-15"; + const userAgentInfo = `azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + + const client = getClient( + endpointUrl, + credentials, + options, + ) as NetworkAnalyticsContext; + + return client; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts new file mode 100644 index 00000000000..97cd4b0028c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts @@ -0,0 +1,388 @@ +import { Paged } from "@azure/core-paging"; +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface OperationOutput { + /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ + readonly name?: string; + /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplayOutput; + /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ + readonly origin?: OriginOutput; + /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ + actionType?: ActionTypeOutput; +} +/** Localized display information for and operation. */ +export interface OperationDisplayOutput { + /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ + provider?: string; + /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ + resource?: string; + /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ + operation?: string; + /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ + description?: string; +} +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ +export interface ErrorResponseOutput { + /** The error object. */ + error?: ErrorDetailOutput; +} +/** The error detail. */ +export interface ErrorDetailOutput { + /** The error code. */ + readonly code?: string; + /** The error message. */ + readonly message?: string; + /** The error target. */ + readonly target?: string; + /** The error details. */ + readonly details?: Array; + /** The error additional info. */ + readonly additionalInfo?: Array; +} +/** The resource management error additional info. */ +export interface ErrorAdditionalInfoOutput { + /** The additional info type. */ + readonly type?: string; + /** The additional info. */ + readonly info?: Record; +} +/** The data catalog resource. */ +export interface DataProductsCatalogOutput extends ProxyResourceOutput { + /** The resource-specific properties for this resource. */ + properties?: DataProductsCatalogPropertiesOutput; +} +/** Details for data catalog properties. */ +export interface DataProductsCatalogPropertiesOutput { + /** The data catalog provisioning state. */ + readonly provisioningState?: ProvisioningStateOutput; + /** The data product publisher information. */ + publishers: Array; +} +/** Details for Publisher Information. */ +export interface PublisherInformationOutput { + /** Name of the publisher. */ + publisherName: string; + /** Data product information. */ + dataProducts: Array; +} +/** Data Product Information */ +export interface DataProductInformationOutput { + /** Name of data product. */ + dataProductName: string; + /** Description about data product. */ + description: string; + /** Version information of data product. */ + dataProductVersions: Array; +} +/** Data Product Version. */ +export interface DataProductVersionOutput { + /** Version of data product */ + version: string; +} +/** The base proxy resource. */ +export interface ProxyResourceOutput extends ResourceOutput { +} +/** Common properties for all Azure Resource Manager resources. */ +export interface ResourceOutput { + /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ + readonly id?: string; + /** The name of the resource */ + readonly name?: string; + /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ + readonly type?: string; + /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ + readonly systemData?: SystemDataOutput; +} +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemDataOutput { + /** The identity that created the resource. */ + readonly createdBy?: string; + /** The type of identity that created the resource. */ + readonly createdByType?: CreatedByTypeOutput; + /** The type of identity that created the resource. */ + readonly createdAt?: string; + /** The identity that last modified the resource. */ + readonly lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + readonly lastModifiedByType?: CreatedByTypeOutput; + /** The timestamp of resource last modification (UTC) */ + readonly lastModifiedAt?: string; +} +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResourceOutput extends ResourceOutput { + /** The geo-location where the resource lives */ + location: string; + /** Resource tags. */ + tags?: Record; +} +/** The data product resource. */ +export interface DataProductOutput extends TrackedResourceOutput { + /** The resource-specific properties for this resource. */ + properties?: DataProductPropertiesOutput; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentityOutput; +} +/** The data product properties. */ +export interface DataProductPropertiesOutput { + /** The resource GUID property of the data product resource. */ + readonly resourceGuid?: string; + /** Latest provisioning state of data product. */ + readonly provisioningState?: ProvisioningStateOutput; + /** Data product publisher name. */ + publisher: string; + /** Product name of data product. */ + product: string; + /** Major version of data product. */ + majorVersion: string; + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Flag to enable or disable redundancy for data product. */ + redundancy?: ControlStateOutput; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlStateOutput; + /** Flag to enable or disable public access of data product resource. */ + publicNetworkAccess?: ControlStateOutput; + /** Flag to enable customer managed key encryption for data product. */ + customerManagedKeyEncryptionEnabled?: ControlStateOutput; + /** Customer managed encryption key details for data product. */ + customerEncryptionKey?: EncryptionKeyDetailsOutput; + /** Network rule set for data product. */ + networkacls?: DataProductNetworkAclsOutput; + /** Managed resource group configuration. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfigurationOutput; + /** List of available minor versions of the data product resource. */ + readonly availableMinorVersions?: string[]; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; + /** Documentation link for the data product based on definition file. */ + readonly documentation?: string; + /** Resource links which exposed to the customer to query the data. */ + readonly consumptionEndpoints?: ConsumptionEndpointsPropertiesOutput; + /** Key vault url. */ + readonly keyVaultUrl?: string; +} +/** Encryption key details. */ +export interface EncryptionKeyDetailsOutput { + /** The Uri of the key vault. */ + keyVaultUri: string; + /** The name of the key vault key. */ + keyName: string; + /** The version of the key vault key. */ + keyVersion: string; +} +/** Data Product Network rule set */ +export interface DataProductNetworkAclsOutput { + /** Virtual Network Rule */ + virtualNetworkRule: Array; + /** IP rule with specific IP or IP range in CIDR format. */ + ipRules: Array; + /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ + allowedQueryIpRangeList: string[]; + /** Default Action */ + defaultAction: DefaultActionOutput; +} +/** Virtual Network Rule */ +export interface VirtualNetworkRuleOutput { + /** Resource ID of a subnet */ + id: string; + /** The action of virtual network rule. */ + action?: string; + /** Gets the state of virtual network rule. */ + state?: string; +} +/** IP rule with specific IP or IP range in CIDR format. */ +export interface IPRulesOutput { + /** IP Rules Value */ + value?: string; + /** The action of virtual network rule. */ + action: string; +} +/** ManagedResourceGroup related properties */ +export interface ManagedResourceGroupConfigurationOutput { + /** Name of managed resource group */ + name: string; + /** Managed Resource Group location */ + location: string; +} +/** Details of Consumption Properties */ +export interface ConsumptionEndpointsPropertiesOutput { + /** Ingestion url to upload the data. */ + readonly ingestionUrl?: string; + /** Resource Id of ingestion endpoint. */ + readonly ingestionResourceId?: string; + /** Url to consume file type. */ + readonly fileAccessUrl?: string; + /** Resource Id of file access endpoint. */ + readonly fileAccessResourceId?: string; + /** Url to consume the processed data. */ + readonly queryUrl?: string; + /** Resource Id of query endpoint. */ + readonly queryResourceId?: string; +} +/** The properties of the managed service identities assigned to this resource. */ +export interface ManagedServiceIdentityOutput { + /** The Active Directory tenant id of the principal. */ + readonly tenantId?: string; + /** The active directory identifier of this principal. */ + readonly principalId?: string; + /** The type of managed identity assigned to this resource. */ + type: ManagedServiceIdentityTypeOutput; + /** The identities assigned to this resource by the user. */ + userAssignedIdentities?: UserAssignedIdentitiesOutput; +} +/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ +export interface UserAssignedIdentitiesOutput extends Record { +} +/** A managed identity assigned by the user. */ +export interface UserAssignedIdentityOutput { + /** The active directory client identifier for this principal. */ + clientId?: string; + /** The active directory identifier for this principal. */ + principalId?: string; +} +/** The base extension resource. */ +export interface ExtensionResourceOutput extends ResourceOutput { +} +/** The resource model definition for an Azure Resource Manager resource with an etag. */ +export interface AzureEntityResourceOutput extends ResourceOutput { + /** Resource Etag. */ + readonly etag: string; +} +/** The private endpoint connection resource */ +export interface PrivateEndpointConnectionOutput extends ProxyResourceOutput { + /** The private endpoint connection properties */ + properties?: PrivateEndpointConnectionPropertiesOutput; +} +/** Properties of he private endpoint connection resource */ +export interface PrivateEndpointConnectionPropertiesOutput { + /** The group identifiers for the private endpoint resource */ + readonly groupIds?: string[]; + /** The private endpoint resource */ + privateEndpoint?: PrivateEndpointOutput; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput; + /** The provisioning state of the private endpoint connection resource. */ + provisioningState?: PrivateEndpointConnectionProvisioningStateOutput; +} +/** The private endpoint resource */ +export interface PrivateEndpointOutput { + /** The resource identifier for private endpoint */ + id?: string; +} +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionStateOutput { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatusOutput; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} +export interface PrivateLinkResourceOutput extends ProxyResourceOutput { + /** Properties of the private link resource. */ + properties?: PrivateLinkResourcePropertiesOutput; +} +/** Properties of a private link resource. */ +export interface PrivateLinkResourcePropertiesOutput { + /** The private link resource group id. */ + readonly groupId?: string; + /** The private link resource required member names. */ + readonly requiredMembers?: string[]; + /** The private link resource private link DNS zone name. */ + requiredZoneNames?: string[]; +} +/** The data type resource. */ +export interface DataTypeOutput extends ProxyResourceOutput { + /** The resource-specific properties for this resource. */ + properties?: DataTypePropertiesOutput; +} +/** The data type properties */ +export interface DataTypePropertiesOutput { + /** Latest provisioning state of data product. */ + readonly provisioningState?: ProvisioningStateOutput; + /** State of data type. */ + state?: DataTypeStateOutput; + /** Reason for the state of data type. */ + readonly stateReason?: string; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; + /** Url for data visualization. */ + readonly visualizationUrl?: string; +} +/** Details of storage container account sas token . */ +export interface ContainerSasTokenOutput { + /** Field to specify storage container sas token. */ + storageContainerSasToken: string; +} +/** Details of storage account sas token . */ +export interface AccountSasTokenOutput { + /** Field to specify storage account sas token. */ + storageAccountSasToken: string; +} +/** The details for role assignment response. */ +export interface RoleAssignmentDetailOutput { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRoleOutput; + /** Id of role assignment request */ + roleAssignmentId: string; +} +/** list role assignments. */ +export interface ListRoleAssignmentsOutput { + /** Count of role assignments. */ + count: number; + /** list of role assignments */ + roleAssignmentResponse: Array; +} +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export type PagedOperationOutput = Paged; +/** Alias for OriginOutput */ +export type OriginOutput = "user" | "system" | "user,system" | string; +/** Alias for ActionTypeOutput */ +export type ActionTypeOutput = "Internal" | string; +/** Alias for ProvisioningStateOutput */ +export type ProvisioningStateOutput = string | "Succeeded" | "Failed" | "Canceled" | "Provisioning" | "Updating" | "Deleting" | "Accepted"; +/** Alias for CreatedByTypeOutput */ +export type CreatedByTypeOutput = "User" | "Application" | "ManagedIdentity" | "Key" | string; +/** Alias for ControlStateOutput */ +export type ControlStateOutput = string | "Enabled" | "Disabled"; +/** Alias for DefaultActionOutput */ +export type DefaultActionOutput = string | "Allow" | "Deny"; +/** Alias for ManagedServiceIdentityTypeOutput */ +export type ManagedServiceIdentityTypeOutput = "None" | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | string; +/** Alias for PrivateEndpointServiceConnectionStatusOutput */ +export type PrivateEndpointServiceConnectionStatusOutput = "Pending" | "Approved" | "Rejected" | string; +/** Alias for ResourceProvisioningStateOutput */ +export type ResourceProvisioningStateOutput = "Succeeded" | "Failed" | "Canceled" | string; +/** Alias for PrivateEndpointConnectionProvisioningStateOutput */ +export type PrivateEndpointConnectionProvisioningStateOutput = ResourceProvisioningStateOutput | "Creating" | "Deleting"; +/** Alias for DataTypeStateOutput */ +export type DataTypeStateOutput = string | "Stopped" | "Running"; +/** The response of a DataProductsCatalog list operation. */ +export type DataProductsCatalogListResultOutput = Paged; +/** The response of a DataType list operation. */ +export type DataTypeListResultOutput = Paged; +/** Alias for DataProductUserRoleOutput */ +export type DataProductUserRoleOutput = string | "Reader" | "SensitiveReader"; +/** The response of a DataProduct list operation. */ +export type DataProductListResultOutput = Paged; +//# sourceMappingURL=outputModels.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts.map new file mode 100644 index 00000000000..5ee89e81961 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,sLAAsL;IACtL,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,6JAA6J;IAC7J,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,mEAAmE;IACnE,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,2IAA2I;IAC3I,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IAC/B,gHAAgH;IAChH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC,8HAA8H;IAC9H,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yIAAyI;IACzI,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0JAA0J;IAC1J,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6GAA6G;IAC7G,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,+GAA+G;AAC/G,MAAM,WAAW,mBAAmB;IAClC,wBAAwB;IACxB,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,wBAAwB;AACxB,MAAM,WAAW,iBAAiB;IAChC,sBAAsB;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,yBAAyB;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,wBAAwB;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,yBAAyB;IACzB,QAAQ,CAAC,OAAO,CAAC,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AACX,6DAA6D;AAC7D,MAAM,MAAM,4CAA4C,GACpD,SAAS,GACT,UAAU,GACV,UAAU,GACV,MAAM,CAAC;AACX,gDAAgD;AAChD,MAAM,MAAM,+BAA+B,GACvC,WAAW,GACX,QAAQ,GACR,UAAU,GACV,MAAM,CAAC;AACX,iEAAiE;AACjE,MAAM,MAAM,gDAAgD,GACxD,+BAA+B,GAC/B,UAAU,GACV,UAAU,CAAC;AACf,oCAAoC;AACpC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AACjE,4DAA4D;AAC5D,MAAM,MAAM,mCAAmC,GAC7C,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnC,iDAAiD;AACjD,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAC7D,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,QAAQ,GAAG,iBAAiB,CAAC;AAC9E,oDAAoD;AACpD,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js new file mode 100644 index 00000000000..c83a68646c8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=outputModels.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js.map new file mode 100644 index 00000000000..61942e37630 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js.map @@ -0,0 +1 @@ +{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.ts new file mode 100644 index 00000000000..c63010bf15a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.ts @@ -0,0 +1,458 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Paged } from "@azure/core-paging"; + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface OperationOutput { + /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ + readonly name?: string; + /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplayOutput; + /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ + readonly origin?: OriginOutput; + /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ + actionType?: ActionTypeOutput; +} + +/** Localized display information for and operation. */ +export interface OperationDisplayOutput { + /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ + provider?: string; + /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ + resource?: string; + /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ + operation?: string; + /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ + description?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ +export interface ErrorResponseOutput { + /** The error object. */ + error?: ErrorDetailOutput; +} + +/** The error detail. */ +export interface ErrorDetailOutput { + /** The error code. */ + readonly code?: string; + /** The error message. */ + readonly message?: string; + /** The error target. */ + readonly target?: string; + /** The error details. */ + readonly details?: Array; + /** The error additional info. */ + readonly additionalInfo?: Array; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfoOutput { + /** The additional info type. */ + readonly type?: string; + /** The additional info. */ + readonly info?: Record; +} + +/** The data catalog resource. */ +export interface DataProductsCatalogOutput extends ProxyResourceOutput { + /** The resource-specific properties for this resource. */ + properties?: DataProductsCatalogPropertiesOutput; +} + +/** Details for data catalog properties. */ +export interface DataProductsCatalogPropertiesOutput { + /** The data catalog provisioning state. */ + readonly provisioningState?: ProvisioningStateOutput; + /** The data product publisher information. */ + publishers: Array; +} + +/** Details for Publisher Information. */ +export interface PublisherInformationOutput { + /** Name of the publisher. */ + publisherName: string; + /** Data product information. */ + dataProducts: Array; +} + +/** Data Product Information */ +export interface DataProductInformationOutput { + /** Name of data product. */ + dataProductName: string; + /** Description about data product. */ + description: string; + /** Version information of data product. */ + dataProductVersions: Array; +} + +/** Data Product Version. */ +export interface DataProductVersionOutput { + /** Version of data product */ + version: string; +} + +/** The base proxy resource. */ +export interface ProxyResourceOutput extends ResourceOutput {} + +/** Common properties for all Azure Resource Manager resources. */ +export interface ResourceOutput { + /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ + readonly id?: string; + /** The name of the resource */ + readonly name?: string; + /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ + readonly type?: string; + /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ + readonly systemData?: SystemDataOutput; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemDataOutput { + /** The identity that created the resource. */ + readonly createdBy?: string; + /** The type of identity that created the resource. */ + readonly createdByType?: CreatedByTypeOutput; + /** The type of identity that created the resource. */ + readonly createdAt?: string; + /** The identity that last modified the resource. */ + readonly lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + readonly lastModifiedByType?: CreatedByTypeOutput; + /** The timestamp of resource last modification (UTC) */ + readonly lastModifiedAt?: string; +} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResourceOutput extends ResourceOutput { + /** The geo-location where the resource lives */ + location: string; + /** Resource tags. */ + tags?: Record; +} + +/** The data product resource. */ +export interface DataProductOutput extends TrackedResourceOutput { + /** The resource-specific properties for this resource. */ + properties?: DataProductPropertiesOutput; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentityOutput; +} + +/** The data product properties. */ +export interface DataProductPropertiesOutput { + /** The resource GUID property of the data product resource. */ + readonly resourceGuid?: string; + /** Latest provisioning state of data product. */ + readonly provisioningState?: ProvisioningStateOutput; + /** Data product publisher name. */ + publisher: string; + /** Product name of data product. */ + product: string; + /** Major version of data product. */ + majorVersion: string; + /** List of name or email associated with data product resource deployment. */ + owners?: string[]; + /** Flag to enable or disable redundancy for data product. */ + redundancy?: ControlStateOutput; + /** Purview account url for data product to connect to. */ + purviewAccount?: string; + /** Purview collection url for data product to connect to. */ + purviewCollection?: string; + /** Flag to enable or disable private link for data product resource. */ + privateLinksEnabled?: ControlStateOutput; + /** Flag to enable or disable public access of data product resource. */ + publicNetworkAccess?: ControlStateOutput; + /** Flag to enable customer managed key encryption for data product. */ + customerManagedKeyEncryptionEnabled?: ControlStateOutput; + /** Customer managed encryption key details for data product. */ + customerEncryptionKey?: EncryptionKeyDetailsOutput; + /** Network rule set for data product. */ + networkacls?: DataProductNetworkAclsOutput; + /** Managed resource group configuration. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfigurationOutput; + /** List of available minor versions of the data product resource. */ + readonly availableMinorVersions?: string[]; + /** Current configured minor version of the data product resource. */ + currentMinorVersion?: string; + /** Documentation link for the data product based on definition file. */ + readonly documentation?: string; + /** Resource links which exposed to the customer to query the data. */ + readonly consumptionEndpoints?: ConsumptionEndpointsPropertiesOutput; + /** Key vault url. */ + readonly keyVaultUrl?: string; +} + +/** Encryption key details. */ +export interface EncryptionKeyDetailsOutput { + /** The Uri of the key vault. */ + keyVaultUri: string; + /** The name of the key vault key. */ + keyName: string; + /** The version of the key vault key. */ + keyVersion: string; +} + +/** Data Product Network rule set */ +export interface DataProductNetworkAclsOutput { + /** Virtual Network Rule */ + virtualNetworkRule: Array; + /** IP rule with specific IP or IP range in CIDR format. */ + ipRules: Array; + /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ + allowedQueryIpRangeList: string[]; + /** Default Action */ + defaultAction: DefaultActionOutput; +} + +/** Virtual Network Rule */ +export interface VirtualNetworkRuleOutput { + /** Resource ID of a subnet */ + id: string; + /** The action of virtual network rule. */ + action?: string; + /** Gets the state of virtual network rule. */ + state?: string; +} + +/** IP rule with specific IP or IP range in CIDR format. */ +export interface IPRulesOutput { + /** IP Rules Value */ + value?: string; + /** The action of virtual network rule. */ + action: string; +} + +/** ManagedResourceGroup related properties */ +export interface ManagedResourceGroupConfigurationOutput { + /** Name of managed resource group */ + name: string; + /** Managed Resource Group location */ + location: string; +} + +/** Details of Consumption Properties */ +export interface ConsumptionEndpointsPropertiesOutput { + /** Ingestion url to upload the data. */ + readonly ingestionUrl?: string; + /** Resource Id of ingestion endpoint. */ + readonly ingestionResourceId?: string; + /** Url to consume file type. */ + readonly fileAccessUrl?: string; + /** Resource Id of file access endpoint. */ + readonly fileAccessResourceId?: string; + /** Url to consume the processed data. */ + readonly queryUrl?: string; + /** Resource Id of query endpoint. */ + readonly queryResourceId?: string; +} + +/** The properties of the managed service identities assigned to this resource. */ +export interface ManagedServiceIdentityOutput { + /** The Active Directory tenant id of the principal. */ + readonly tenantId?: string; + /** The active directory identifier of this principal. */ + readonly principalId?: string; + /** The type of managed identity assigned to this resource. */ + type: ManagedServiceIdentityTypeOutput; + /** The identities assigned to this resource by the user. */ + userAssignedIdentities?: UserAssignedIdentitiesOutput; +} + +/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ +export interface UserAssignedIdentitiesOutput + extends Record {} + +/** A managed identity assigned by the user. */ +export interface UserAssignedIdentityOutput { + /** The active directory client identifier for this principal. */ + clientId?: string; + /** The active directory identifier for this principal. */ + principalId?: string; +} + +/** The base extension resource. */ +export interface ExtensionResourceOutput extends ResourceOutput {} + +/** The resource model definition for an Azure Resource Manager resource with an etag. */ +export interface AzureEntityResourceOutput extends ResourceOutput { + /** Resource Etag. */ + readonly etag: string; +} + +/** The private endpoint connection resource */ +export interface PrivateEndpointConnectionOutput extends ProxyResourceOutput { + /** The private endpoint connection properties */ + properties?: PrivateEndpointConnectionPropertiesOutput; +} + +/** Properties of he private endpoint connection resource */ +export interface PrivateEndpointConnectionPropertiesOutput { + /** The group identifiers for the private endpoint resource */ + readonly groupIds?: string[]; + /** The private endpoint resource */ + privateEndpoint?: PrivateEndpointOutput; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput; + /** The provisioning state of the private endpoint connection resource. */ + provisioningState?: PrivateEndpointConnectionProvisioningStateOutput; +} + +/** The private endpoint resource */ +export interface PrivateEndpointOutput { + /** The resource identifier for private endpoint */ + id?: string; +} + +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionStateOutput { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatusOutput; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} + +export interface PrivateLinkResourceOutput extends ProxyResourceOutput { + /** Properties of the private link resource. */ + properties?: PrivateLinkResourcePropertiesOutput; +} + +/** Properties of a private link resource. */ +export interface PrivateLinkResourcePropertiesOutput { + /** The private link resource group id. */ + readonly groupId?: string; + /** The private link resource required member names. */ + readonly requiredMembers?: string[]; + /** The private link resource private link DNS zone name. */ + requiredZoneNames?: string[]; +} + +/** The data type resource. */ +export interface DataTypeOutput extends ProxyResourceOutput { + /** The resource-specific properties for this resource. */ + properties?: DataTypePropertiesOutput; +} + +/** The data type properties */ +export interface DataTypePropertiesOutput { + /** Latest provisioning state of data product. */ + readonly provisioningState?: ProvisioningStateOutput; + /** State of data type. */ + state?: DataTypeStateOutput; + /** Reason for the state of data type. */ + readonly stateReason?: string; + /** Field for storage output retention in days. */ + storageOutputRetention?: number; + /** Field for database cache retention in days. */ + databaseCacheRetention?: number; + /** Field for database data retention in days. */ + databaseRetention?: number; + /** Url for data visualization. */ + readonly visualizationUrl?: string; +} + +/** Details of storage container account sas token . */ +export interface ContainerSasTokenOutput { + /** Field to specify storage container sas token. */ + storageContainerSasToken: string; +} + +/** Details of storage account sas token . */ +export interface AccountSasTokenOutput { + /** Field to specify storage account sas token. */ + storageAccountSasToken: string; +} + +/** The details for role assignment response. */ +export interface RoleAssignmentDetailOutput { + /** Role Id of the Built-In Role */ + roleId: string; + /** Object ID of the AAD principal or security-group. */ + principalId: string; + /** User name. */ + userName: string; + /** Data Type Scope at which the role assignment is created. */ + dataTypeScope: string[]; + /** Type of the principal Id: User, Group or ServicePrincipal */ + principalType: string; + /** Data Product role to be assigned to a user. */ + role: DataProductUserRoleOutput; + /** Id of role assignment request */ + roleAssignmentId: string; +} + +/** list role assignments. */ +export interface ListRoleAssignmentsOutput { + /** Count of role assignments. */ + count: number; + /** list of role assignments */ + roleAssignmentResponse: Array; +} + +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export type PagedOperationOutput = Paged; +/** Alias for OriginOutput */ +export type OriginOutput = "user" | "system" | "user,system" | string; +/** Alias for ActionTypeOutput */ +export type ActionTypeOutput = "Internal" | string; +/** Alias for ProvisioningStateOutput */ +export type ProvisioningStateOutput = + | string + | "Succeeded" + | "Failed" + | "Canceled" + | "Provisioning" + | "Updating" + | "Deleting" + | "Accepted"; +/** Alias for CreatedByTypeOutput */ +export type CreatedByTypeOutput = + | "User" + | "Application" + | "ManagedIdentity" + | "Key" + | string; +/** Alias for ControlStateOutput */ +export type ControlStateOutput = string | "Enabled" | "Disabled"; +/** Alias for DefaultActionOutput */ +export type DefaultActionOutput = string | "Allow" | "Deny"; +/** Alias for ManagedServiceIdentityTypeOutput */ +export type ManagedServiceIdentityTypeOutput = + | "None" + | "SystemAssigned" + | "UserAssigned" + | "SystemAssigned, UserAssigned" + | string; +/** Alias for PrivateEndpointServiceConnectionStatusOutput */ +export type PrivateEndpointServiceConnectionStatusOutput = + | "Pending" + | "Approved" + | "Rejected" + | string; +/** Alias for ResourceProvisioningStateOutput */ +export type ResourceProvisioningStateOutput = + | "Succeeded" + | "Failed" + | "Canceled" + | string; +/** Alias for PrivateEndpointConnectionProvisioningStateOutput */ +export type PrivateEndpointConnectionProvisioningStateOutput = + | ResourceProvisioningStateOutput + | "Creating" + | "Deleting"; +/** Alias for DataTypeStateOutput */ +export type DataTypeStateOutput = string | "Stopped" | "Running"; +/** The response of a DataProductsCatalog list operation. */ +export type DataProductsCatalogListResultOutput = + Paged; +/** The response of a DataType list operation. */ +export type DataTypeListResultOutput = Paged; +/** Alias for DataProductUserRoleOutput */ +export type DataProductUserRoleOutput = string | "Reader" | "SensitiveReader"; +/** The response of a DataProduct list operation. */ +export type DataProductListResultOutput = Paged; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts new file mode 100644 index 00000000000..b4e218132a2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts @@ -0,0 +1,43 @@ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Client, PathUncheckedResponse } from "@azure-rest/core-client"; +/** + * Helper type to extract the type of an array + */ +export type GetArrayType = T extends Array ? TData : never; +/** + * The type of a custom function that defines how to get a page and a link to the next one if any. + */ +export type GetPage = (pageLink: string, maxPageSize?: number) => Promise<{ + page: TPage; + nextPageLink?: string; +}>; +/** + * Options for the paging helper + */ +export interface PagingOptions { + /** + * Custom function to extract pagination details for crating the PagedAsyncIterableIterator + */ + customGetPage?: GetPage[]>; +} +/** + * Helper type to infer the Type of the paged elements from the response type + * This type is generated based on the swagger information for x-ms-pageable + * specifically on the itemName property which indicates the property of the response + * where the page items are found. The default value is `value`. + * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter + */ +export type PaginateReturn = TResult extends { + body: { + value?: infer TPage; + }; +} ? GetArrayType : Array; +/** + * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension + * @param client - Client to use for sending the next page requests + * @param initialResponse - Initial response containing the nextLink and current page of elements + * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results + * @returns - PagedAsyncIterableIterator to iterate the elements + */ +export declare function paginate(client: Client, initialResponse: TResponse, options?: PagingOptions): PagedAsyncIterableIterator>; +//# sourceMappingURL=paginateHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts.map new file mode 100644 index 00000000000..07c4e5bcd70 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,0BAA0B,EAE3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,MAAM,EAEN,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SAAS;IACpD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACG,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA4BvD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js new file mode 100644 index 00000000000..572880491d7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { getPagedAsyncIterator, } from "@azure/core-paging"; +import { createRestError, } from "@azure-rest/core-client"; +/** + * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension + * @param client - Client to use for sending the next page requests + * @param initialResponse - Initial response containing the nextLink and current page of elements + * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results + * @returns - PagedAsyncIterableIterator to iterate the elements + */ +export function paginate(client, initialResponse, options = {}) { + let firstRun = true; + const itemName = "value"; + const nextLinkName = "nextLink"; + const { customGetPage } = options; + const pagedResult = { + firstPageLink: "", + getPage: typeof customGetPage === "function" + ? customGetPage + : async (pageLink) => { + const result = firstRun + ? initialResponse + : await client.pathUnchecked(pageLink).get(); + firstRun = false; + checkPagingRequest(result); + const nextLink = getNextLink(result.body, nextLinkName); + const values = getElements(result.body, itemName); + return { + page: values, + nextPageLink: nextLink, + }; + }, + }; + return getPagedAsyncIterator(pagedResult); +} +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body, nextLinkName) { + if (!nextLinkName) { + return undefined; + } + const nextLink = body[nextLinkName]; + if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { + throw new Error(`Body Property ${nextLinkName} should be a string or undefined`); + } + return nextLink; +} +/** + * Gets the elements of the current request in the body. + */ +function getElements(body, itemName) { + const value = body[itemName]; + // value has to be an array according to the x-ms-pageable extension. + // The fact that this must be an array is used above to calculate the + // type of elements in the page in PaginateReturn + if (!Array.isArray(value)) { + throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`); + } + return value ?? []; +} +/** + * Checks if a request failed + */ +function checkPagingRequest(response) { + const Http2xxStatusCodes = [ + "200", + "201", + "202", + "203", + "204", + "205", + "206", + "207", + "208", + "226", + ]; + if (!Http2xxStatusCodes.includes(response.status)) { + throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response); + } +} +//# sourceMappingURL=paginateHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js.map new file mode 100644 index 00000000000..4de832822f4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,qBAAqB,GAGtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,eAAe,GAEhB,MAAM,yBAAyB,CAAC;AAyCjC;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IAC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,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IAEjE,qEAAqE;IACrE,qEAAqE;IACrE,iDAAiD;IACjD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,IAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG;QACzB,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;KACN,CAAC;IACF,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.ts new file mode 100644 index 00000000000..3aac141db0e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.ts @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + getPagedAsyncIterator, + PagedAsyncIterableIterator, + PagedResult, +} from "@azure/core-paging"; +import { + Client, + createRestError, + PathUncheckedResponse, +} from "@azure-rest/core-client"; + +/** + * Helper type to extract the type of an array + */ +export type GetArrayType = T extends Array ? TData : never; + +/** + * The type of a custom function that defines how to get a page and a link to the next one if any. + */ +export type GetPage = ( + pageLink: string, + maxPageSize?: number, +) => Promise<{ + page: TPage; + nextPageLink?: string; +}>; + +/** + * Options for the paging helper + */ +export interface PagingOptions { + /** + * Custom function to extract pagination details for crating the PagedAsyncIterableIterator + */ + customGetPage?: GetPage[]>; +} + +/** + * Helper type to infer the Type of the paged elements from the response type + * This type is generated based on the swagger information for x-ms-pageable + * specifically on the itemName property which indicates the property of the response + * where the page items are found. The default value is `value`. + * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter + */ +export type PaginateReturn = TResult extends { + body: { value?: infer TPage }; +} + ? GetArrayType + : Array; + +/** + * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension + * @param client - Client to use for sending the next page requests + * @param initialResponse - Initial response containing the nextLink and current page of elements + * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results + * @returns - PagedAsyncIterableIterator to iterate the elements + */ +export function paginate( + client: Client, + initialResponse: TResponse, + options: PagingOptions = {}, +): PagedAsyncIterableIterator> { + // Extract element type from initial response + type TElement = PaginateReturn; + let firstRun = true; + const itemName = "value"; + const nextLinkName = "nextLink"; + const { customGetPage } = options; + const pagedResult: PagedResult = { + firstPageLink: "", + getPage: + typeof customGetPage === "function" + ? customGetPage + : async (pageLink: string) => { + const result = firstRun + ? initialResponse + : await client.pathUnchecked(pageLink).get(); + firstRun = false; + checkPagingRequest(result); + const nextLink = getNextLink(result.body, nextLinkName); + const values = getElements(result.body, itemName); + return { + page: values, + nextPageLink: nextLink, + }; + }, + }; + + return getPagedAsyncIterator(pagedResult); +} + +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body: unknown, nextLinkName?: string): string | undefined { + if (!nextLinkName) { + return undefined; + } + + const nextLink = (body as Record)[nextLinkName]; + + if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { + throw new Error( + `Body Property ${nextLinkName} should be a string or undefined`, + ); + } + + return nextLink; +} + +/** + * Gets the elements of the current request in the body. + */ +function getElements(body: unknown, itemName: string): T[] { + const value = (body as Record)[itemName] as T[]; + + // value has to be an array according to the x-ms-pageable extension. + // The fact that this must be an array is used above to calculate the + // type of elements in the page in PaginateReturn + if (!Array.isArray(value)) { + throw new Error( + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, + ); + } + + return value ?? []; +} + +/** + * Checks if a request failed + */ +function checkPagingRequest(response: PathUncheckedResponse): void { + const Http2xxStatusCodes = [ + "200", + "201", + "202", + "203", + "204", + "205", + "206", + "207", + "208", + "226", + ]; + if (!Http2xxStatusCodes.includes(response.status)) { + throw createRestError( + `Pagination failed with unexpected statusCode ${response.status}`, + response, + ); + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts new file mode 100644 index 00000000000..354c723638b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts @@ -0,0 +1,69 @@ +import { RequestParameters } from "@azure-rest/core-client"; +import { DataType, DataTypeUpdate, ContainerSaS, DataProduct, DataProductUpdate, AccountSas, KeyVaultInfo, RoleAssignmentCommonProperties, RoleAssignmentDetail } from "./models.js"; +export type OperationsListParameters = RequestParameters; +export type DataProductsCatalogsGetParameters = RequestParameters; +export type DataProductsCatalogsListByResourceGroupParameters = RequestParameters; +export type DataProductsCatalogsListBySubscriptionParameters = RequestParameters; +export interface DataTypesCreateBodyParam { + /** Resource create parameters. */ + body: DataType; +} +export type DataTypesCreateParameters = DataTypesCreateBodyParam & RequestParameters; +export type DataTypesGetParameters = RequestParameters; +export interface DataTypesUpdateBodyParam { + /** The resource properties to be updated. */ + body: DataTypeUpdate; +} +export type DataTypesUpdateParameters = DataTypesUpdateBodyParam & RequestParameters; +export type DataTypesDeleteParameters = RequestParameters; +export interface DataTypesDeleteDataBodyParam { + /** The content of the action request */ + body: Record; +} +export type DataTypesDeleteDataParameters = DataTypesDeleteDataBodyParam & RequestParameters; +export interface DataTypesGenerateStorageContainerSasTokenBodyParam { + /** The content of the action request */ + body: ContainerSaS; +} +export type DataTypesGenerateStorageContainerSasTokenParameters = DataTypesGenerateStorageContainerSasTokenBodyParam & RequestParameters; +export type DataTypesListByDataProductParameters = RequestParameters; +export interface DataProductsCreateBodyParam { + /** Resource create parameters. */ + body: DataProduct; +} +export type DataProductsCreateParameters = DataProductsCreateBodyParam & RequestParameters; +export type DataProductsGetParameters = RequestParameters; +export interface DataProductsUpdateBodyParam { + /** The resource properties to be updated. */ + body: DataProductUpdate; +} +export type DataProductsUpdateParameters = DataProductsUpdateBodyParam & RequestParameters; +export type DataProductsDeleteParameters = RequestParameters; +export interface DataProductsGenerateStorageAccountSasTokenBodyParam { + /** The content of the action request */ + body: AccountSas; +} +export type DataProductsGenerateStorageAccountSasTokenParameters = DataProductsGenerateStorageAccountSasTokenBodyParam & RequestParameters; +export interface DataProductsRotateKeyBodyParam { + /** The content of the action request */ + body: KeyVaultInfo; +} +export type DataProductsRotateKeyParameters = DataProductsRotateKeyBodyParam & RequestParameters; +export interface DataProductsAddUserRoleBodyParam { + /** The content of the action request */ + body: RoleAssignmentCommonProperties; +} +export type DataProductsAddUserRoleParameters = DataProductsAddUserRoleBodyParam & RequestParameters; +export interface DataProductsRemoveUserRoleBodyParam { + /** The content of the action request */ + body: RoleAssignmentDetail; +} +export type DataProductsRemoveUserRoleParameters = DataProductsRemoveUserRoleBodyParam & RequestParameters; +export interface DataProductsListRolesAssignmentsBodyParam { + /** The content of the action request */ + body: Record; +} +export type DataProductsListRolesAssignmentsParameters = DataProductsListRolesAssignmentsBodyParam & RequestParameters; +export type DataProductsListByResourceGroupParameters = RequestParameters; +export type DataProductsListBySubscriptionParameters = RequestParameters; +//# sourceMappingURL=parameters.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts.map new file mode 100644 index 00000000000..95d03990be3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,8BAA8B,EAC9B,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AACzD,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC;AAClE,MAAM,MAAM,iDAAiD,GAC3D,iBAAiB,CAAC;AACpB,MAAM,MAAM,gDAAgD,GAC1D,iBAAiB,CAAC;AAEpB,MAAM,WAAW,wBAAwB;IACvC,kCAAkC;IAClC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,GAC9D,iBAAiB,CAAC;AACpB,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AAEvD,MAAM,WAAW,wBAAwB;IACvC,6CAA6C;IAC7C,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,GAC9D,iBAAiB,CAAC;AACpB,MAAM,MAAM,yBAAyB,GAAG,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BAAoB,CAAC;CAC5B;AAED,MAAM,MAAM,oCAAoC,GAC9C,mCAAmC,GAAG,iBAAiB,CAAC;AAE1D,MAAM,WAAW,yCAAyC;IACxD,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,MAAM,MAAM,0CAA0C,GACpD,yCAAyC,GAAG,iBAAiB,CAAC;AAChE,MAAM,MAAM,yCAAyC,GAAG,iBAAiB,CAAC;AAC1E,MAAM,MAAM,wCAAwC,GAAG,iBAAiB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js new file mode 100644 index 00000000000..b8effe53fdb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=parameters.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js.map new file mode 100644 index 00000000000..148ba0663ec --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parameters.js","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.ts new file mode 100644 index 00000000000..c4a499c4225 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.ts @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { RequestParameters } from "@azure-rest/core-client"; +import { + DataType, + DataTypeUpdate, + ContainerSaS, + DataProduct, + DataProductUpdate, + AccountSas, + KeyVaultInfo, + RoleAssignmentCommonProperties, + RoleAssignmentDetail, +} from "./models.js"; + +export type OperationsListParameters = RequestParameters; +export type DataProductsCatalogsGetParameters = RequestParameters; +export type DataProductsCatalogsListByResourceGroupParameters = + RequestParameters; +export type DataProductsCatalogsListBySubscriptionParameters = + RequestParameters; + +export interface DataTypesCreateBodyParam { + /** Resource create parameters. */ + body: DataType; +} + +export type DataTypesCreateParameters = DataTypesCreateBodyParam & + RequestParameters; +export type DataTypesGetParameters = RequestParameters; + +export interface DataTypesUpdateBodyParam { + /** The resource properties to be updated. */ + body: DataTypeUpdate; +} + +export type DataTypesUpdateParameters = DataTypesUpdateBodyParam & + RequestParameters; +export type DataTypesDeleteParameters = RequestParameters; + +export interface DataTypesDeleteDataBodyParam { + /** The content of the action request */ + body: Record; +} + +export type DataTypesDeleteDataParameters = DataTypesDeleteDataBodyParam & + RequestParameters; + +export interface DataTypesGenerateStorageContainerSasTokenBodyParam { + /** The content of the action request */ + body: ContainerSaS; +} + +export type DataTypesGenerateStorageContainerSasTokenParameters = + DataTypesGenerateStorageContainerSasTokenBodyParam & RequestParameters; +export type DataTypesListByDataProductParameters = RequestParameters; + +export interface DataProductsCreateBodyParam { + /** Resource create parameters. */ + body: DataProduct; +} + +export type DataProductsCreateParameters = DataProductsCreateBodyParam & + RequestParameters; +export type DataProductsGetParameters = RequestParameters; + +export interface DataProductsUpdateBodyParam { + /** The resource properties to be updated. */ + body: DataProductUpdate; +} + +export type DataProductsUpdateParameters = DataProductsUpdateBodyParam & + RequestParameters; +export type DataProductsDeleteParameters = RequestParameters; + +export interface DataProductsGenerateStorageAccountSasTokenBodyParam { + /** The content of the action request */ + body: AccountSas; +} + +export type DataProductsGenerateStorageAccountSasTokenParameters = + DataProductsGenerateStorageAccountSasTokenBodyParam & RequestParameters; + +export interface DataProductsRotateKeyBodyParam { + /** The content of the action request */ + body: KeyVaultInfo; +} + +export type DataProductsRotateKeyParameters = DataProductsRotateKeyBodyParam & + RequestParameters; + +export interface DataProductsAddUserRoleBodyParam { + /** The content of the action request */ + body: RoleAssignmentCommonProperties; +} + +export type DataProductsAddUserRoleParameters = + DataProductsAddUserRoleBodyParam & RequestParameters; + +export interface DataProductsRemoveUserRoleBodyParam { + /** The content of the action request */ + body: RoleAssignmentDetail; +} + +export type DataProductsRemoveUserRoleParameters = + DataProductsRemoveUserRoleBodyParam & RequestParameters; + +export interface DataProductsListRolesAssignmentsBodyParam { + /** The content of the action request */ + body: Record; +} + +export type DataProductsListRolesAssignmentsParameters = + DataProductsListRolesAssignmentsBodyParam & RequestParameters; +export type DataProductsListByResourceGroupParameters = RequestParameters; +export type DataProductsListBySubscriptionParameters = RequestParameters; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts new file mode 100644 index 00000000000..4956eea8901 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts @@ -0,0 +1,83 @@ +import { Client } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; +import { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro"; +import { DataTypesCreate200Response, DataTypesCreate201Response, DataTypesCreateDefaultResponse, DataTypesCreateLogicalResponse, DataTypesUpdate200Response, DataTypesUpdate202Response, DataTypesUpdateDefaultResponse, DataTypesUpdateLogicalResponse, DataTypesDelete202Response, DataTypesDelete204Response, DataTypesDeleteDefaultResponse, DataTypesDeleteLogicalResponse, DataTypesDeleteData202Response, DataTypesDeleteData204Response, DataTypesDeleteDataDefaultResponse, DataTypesDeleteDataLogicalResponse, DataProductsCreate200Response, DataProductsCreate201Response, DataProductsCreateDefaultResponse, DataProductsCreateLogicalResponse, DataProductsUpdate200Response, DataProductsUpdate202Response, DataProductsUpdateDefaultResponse, DataProductsUpdateLogicalResponse, DataProductsDelete202Response, DataProductsDelete204Response, DataProductsDeleteDefaultResponse, DataProductsDeleteLogicalResponse } from "./responses.js"; +/** + * A simple poller that can be used to poll a long running operation. + */ +export interface SimplePollerLike, TResult> { + /** + * Returns true if the poller has finished polling. + */ + isDone(): boolean; + /** + * Returns the state of the operation. + */ + getOperationState(): TState; + /** + * Returns the result value of the operation, + * regardless of the state of the poller. + * It can return undefined or an incomplete form of the final TResult value + * depending on the implementation. + */ + getResult(): TResult | undefined; + /** + * Returns a promise that will resolve once a single polling request finishes. + * It does this by calling the update method of the Poller's operation. + */ + poll(options?: { + abortSignal?: AbortSignalLike; + }): Promise; + /** + * Returns a promise that will resolve once the underlying operation is completed. + */ + pollUntilDone(pollOptions?: { + abortSignal?: AbortSignalLike; + }): Promise; + /** + * Invokes the provided callback after each polling is completed, + * sending the current state of the poller's operation. + * + * It returns a method that can be used to stop receiving updates on the given callback function. + */ + onProgress(callback: (state: TState) => void): CancelOnProgress; + /** + * Returns a promise that could be used for serialized version of the poller's operation + * by invoking the operation's serialize method. + */ + serialize(): Promise; + /** + * Wait the poller to be submitted. + */ + submitted(): Promise; + /** + * Returns a string representation of the poller's operation. Similar to serialize but returns a string. + * @deprecated Use serialize() instead. + */ + toString(): string; + /** + * Stops the poller from continuing to poll. Please note this will only stop the client-side polling + * @deprecated Use abortSignal to stop polling instead. + */ + stopPolling(): void; + /** + * Returns true if the poller is stopped. + * @deprecated Use abortSignal status to track this instead. + */ + isStopped(): boolean; +} +/** + * Helper function that builds a Poller object to help polling a long running operation. + * @param client - Client to use for sending the request to get additional pages. + * @param initialResponse - The initial response. + * @param options - Options to set a resume state or custom polling interval. + * @returns - A poller object to poll for operation state updates and eventually get the final response. + */ +export declare function getLongRunningPoller(client: Client, initialResponse: DataTypesCreate200Response | DataTypesCreate201Response | DataTypesCreateDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; +export declare function getLongRunningPoller(client: Client, initialResponse: DataTypesUpdate200Response | DataTypesUpdate202Response | DataTypesUpdateDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; +export declare function getLongRunningPoller(client: Client, initialResponse: DataTypesDelete202Response | DataTypesDelete204Response | DataTypesDeleteDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; +export declare function getLongRunningPoller(client: Client, initialResponse: DataTypesDeleteData202Response | DataTypesDeleteData204Response | DataTypesDeleteDataDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; +export declare function getLongRunningPoller(client: Client, initialResponse: DataProductsCreate200Response | DataProductsCreate201Response | DataProductsCreateDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; +export declare function getLongRunningPoller(client: Client, initialResponse: DataProductsUpdate200Response | DataProductsUpdate202Response | DataProductsUpdateDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; +export declare function getLongRunningPoller(client: Client, initialResponse: DataProductsDelete202Response | DataProductsDelete204Response | DataProductsDeleteDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; +//# sourceMappingURL=pollingHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts.map new file mode 100644 index 00000000000..629b4b0fc80 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pollingHelper.d.ts","sourceRoot":"","sources":["pollingHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EAGvB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EAClC,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAC/B,MAAM,SAAS,cAAc,CAAC,OAAO,CAAC,EACtC,OAAO;IAEP;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAClB;;OAEG;IACH,iBAAiB,I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,cAAc,CAAC,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AAC/D,wBAAsB,oBAAoB,CACxC,OAAO,SACH,iCAAiC,GACjC,iCAAiC,EAErC,MAAM,EAAE,MAAM,EACd,eAAe,EACX,6BAA6B,GAC7B,6BAA6B,GAC7B,iCAAiC,EACrC,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js new file mode 100644 index 00000000000..fcb9d985486 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { createHttpPoller, } from "@azure/core-lro"; +export async function getLongRunningPoller(client, initialResponse, options = {}) { + const abortController = new AbortController(); + const poller = { + sendInitialRequest: async () => { + // In the case of Rest Clients we are building the LRO poller object from a response that's the reason + // we are not triggering the initial request here, just extracting the information from the + // response we were provided. + return getLroResponse(initialResponse); + }, + sendPollRequest: async (path, options) => { + // This is the callback that is going to be called to poll the service + // to get the latest status. We use the client provided and the polling path + // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location + // depending on the lro pattern that the service implements. If non is provided we default to the initial path. + function abortListener() { + abortController.abort(); + } + const inputAbortSignal = options?.abortSignal; + const abortSignal = abortController.signal; + if (inputAbortSignal?.aborted) { + abortController.abort(); + } + else if (!abortSignal.aborted) { + inputAbortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client + .pathUnchecked(path ?? initialResponse.request.url) + .get({ abortSignal }); + } + finally { + inputAbortSignal?.removeEventListener("abort", abortListener); + } + const lroResponse = getLroResponse(response); + lroResponse.rawResponse.headers["x-ms-original-url"] = + initialResponse.request.url; + return lroResponse; + }, + }; + options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; + const httpPoller = createHttpPoller(poller, options); + const simplePoller = { + isDone() { + return httpPoller.isDone; + }, + isStopped() { + return abortController.signal.aborted; + }, + getOperationState() { + if (!httpPoller.operationState) { + throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState()."); + } + return httpPoller.operationState; + }, + getResult() { + return httpPoller.result; + }, + toString() { + if (!httpPoller.operationState) { + throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState()."); + } + return JSON.stringify({ + state: httpPoller.operationState, + }); + }, + stopPolling() { + abortController.abort(); + }, + onProgress: httpPoller.onProgress, + poll: httpPoller.poll, + pollUntilDone: httpPoller.pollUntilDone, + serialize: httpPoller.serialize, + submitted: httpPoller.submitted, + }; + return simplePoller; +} +/** + * Converts a Rest Client response to a response that the LRO implementation understands + * @param response - a rest client http response + * @returns - An LRO response that the LRO implementation understands + */ +function getLroResponse(response) { + if (Number.isNaN(response.status)) { + throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); + } + return { + flatResponse: response, + rawResponse: { + ...response, + statusCode: Number.parseInt(response.status), + body: response.body, + }, + }; +} +//# sourceMappingURL=pollingHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js.map new file mode 100644 index 00000000000..bcc69460801 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAML,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAkMzB,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,eAAwB,EACxB,UAAqE,EAAE;IAEvE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,MAAM,GAA8B;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EACpB,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,SAAS,aAAa;gBACpB,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;YACD,MAAM,gBAAgB,GAAG,OAAO,EAAE,WAAW,CAAC;YAC9C,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC;YAC3C,IAAI,gBAAgB,EAAE,OAAO,EAAE,CAAC;gBAC9B,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;iBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;gBAChC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE;oBACzD,IAAI,EAAE,IAAI;iBACX,CAAC,CAAC;YACL,CAAC;YACD,IAAI,QAAQ,CAAC;YACb,IAAI,CAAC;gBACH,QAAQ,GA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AC;QAC1B,CAAC;QACD,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,aAAa,EAAE,UAAU,CAAC,aAAa;QACvC,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC,CAAC;IACF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,QAAiB;IAEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CACjB,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CACzE,CAAC;IACJ,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE;YACX,GAAG,QAAQ;YACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.ts new file mode 100644 index 00000000000..61469304770 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.ts @@ -0,0 +1,319 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Client, HttpResponse } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; +import { + CancelOnProgress, + CreateHttpPollerOptions, + RunningOperation, + OperationResponse, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { + DataTypesCreate200Response, + DataTypesCreate201Response, + DataTypesCreateDefaultResponse, + DataTypesCreateLogicalResponse, + DataTypesUpdate200Response, + DataTypesUpdate202Response, + DataTypesUpdateDefaultResponse, + DataTypesUpdateLogicalResponse, + DataTypesDelete202Response, + DataTypesDelete204Response, + DataTypesDeleteDefaultResponse, + DataTypesDeleteLogicalResponse, + DataTypesDeleteData202Response, + DataTypesDeleteData204Response, + DataTypesDeleteDataDefaultResponse, + DataTypesDeleteDataLogicalResponse, + DataProductsCreate200Response, + DataProductsCreate201Response, + DataProductsCreateDefaultResponse, + DataProductsCreateLogicalResponse, + DataProductsUpdate200Response, + DataProductsUpdate202Response, + DataProductsUpdateDefaultResponse, + DataProductsUpdateLogicalResponse, + DataProductsDelete202Response, + DataProductsDelete204Response, + DataProductsDeleteDefaultResponse, + DataProductsDeleteLogicalResponse, +} from "./responses.js"; + +/** + * A simple poller that can be used to poll a long running operation. + */ +export interface SimplePollerLike< + TState extends OperationState, + TResult, +> { + /** + * Returns true if the poller has finished polling. + */ + isDone(): boolean; + /** + * Returns the state of the operation. + */ + getOperationState(): TState; + /** + * Returns the result value of the operation, + * regardless of the state of the poller. + * It can return undefined or an incomplete form of the final TResult value + * depending on the implementation. + */ + getResult(): TResult | undefined; + /** + * Returns a promise that will resolve once a single polling request finishes. + * It does this by calling the update method of the Poller's operation. + */ + poll(options?: { abortSignal?: AbortSignalLike }): Promise; + /** + * Returns a promise that will resolve once the underlying operation is completed. + */ + pollUntilDone(pollOptions?: { + abortSignal?: AbortSignalLike; + }): Promise; + /** + * Invokes the provided callback after each polling is completed, + * sending the current state of the poller's operation. + * + * It returns a method that can be used to stop receiving updates on the given callback function. + */ + onProgress(callback: (state: TState) => void): CancelOnProgress; + + /** + * Returns a promise that could be used for serialized version of the poller's operation + * by invoking the operation's serialize method. + */ + serialize(): Promise; + + /** + * Wait the poller to be submitted. + */ + submitted(): Promise; + + /** + * Returns a string representation of the poller's operation. Similar to serialize but returns a string. + * @deprecated Use serialize() instead. + */ + toString(): string; + + /** + * Stops the poller from continuing to poll. Please note this will only stop the client-side polling + * @deprecated Use abortSignal to stop polling instead. + */ + stopPolling(): void; + + /** + * Returns true if the poller is stopped. + * @deprecated Use abortSignal status to track this instead. + */ + isStopped(): boolean; +} + +/** + * Helper function that builds a Poller object to help polling a long running operation. + * @param client - Client to use for sending the request to get additional pages. + * @param initialResponse - The initial response. + * @param options - Options to set a resume state or custom polling interval. + * @returns - A poller object to poll for operation state updates and eventually get the final response. + */ +export async function getLongRunningPoller< + TResult extends + | DataTypesCreateLogicalResponse + | DataTypesCreateDefaultResponse, +>( + client: Client, + initialResponse: + | DataTypesCreate200Response + | DataTypesCreate201Response + | DataTypesCreateDefaultResponse, + options?: CreateHttpPollerOptions>, +): Promise, TResult>>; +export async function getLongRunningPoller< + TResult extends + | DataTypesUpdateLogicalResponse + | DataTypesUpdateDefaultResponse, +>( + client: Client, + initialResponse: + | DataTypesUpdate200Response + | DataTypesUpdate202Response + | DataTypesUpdateDefaultResponse, + options?: CreateHttpPollerOptions>, +): Promise, TResult>>; +export async function getLongRunningPoller< + TResult extends + | DataTypesDeleteLogicalResponse + | DataTypesDeleteDefaultResponse, +>( + client: Client, + initialResponse: + | DataTypesDelete202Response + | DataTypesDelete204Response + | DataTypesDeleteDefaultResponse, + options?: CreateHttpPollerOptions>, +): Promise, TResult>>; +export async function getLongRunningPoller< + TResult extends + | DataTypesDeleteDataLogicalResponse + | DataTypesDeleteDataDefaultResponse, +>( + client: Client, + initialResponse: + | DataTypesDeleteData202Response + | DataTypesDeleteData204Response + | DataTypesDeleteDataDefaultResponse, + options?: CreateHttpPollerOptions>, +): Promise, TResult>>; +export async function getLongRunningPoller< + TResult extends + | DataProductsCreateLogicalResponse + | DataProductsCreateDefaultResponse, +>( + client: Client, + initialResponse: + | DataProductsCreate200Response + | DataProductsCreate201Response + | DataProductsCreateDefaultResponse, + options?: CreateHttpPollerOptions>, +): Promise, TResult>>; +export async function getLongRunningPoller< + TResult extends + | DataProductsUpdateLogicalResponse + | DataProductsUpdateDefaultResponse, +>( + client: Client, + initialResponse: + | DataProductsUpdate200Response + | DataProductsUpdate202Response + | DataProductsUpdateDefaultResponse, + options?: CreateHttpPollerOptions>, +): Promise, TResult>>; +export async function getLongRunningPoller< + TResult extends + | DataProductsDeleteLogicalResponse + | DataProductsDeleteDefaultResponse, +>( + client: Client, + initialResponse: + | DataProductsDelete202Response + | DataProductsDelete204Response + | DataProductsDeleteDefaultResponse, + options?: CreateHttpPollerOptions>, +): Promise, TResult>>; +export async function getLongRunningPoller( + client: Client, + initialResponse: TResult, + options: CreateHttpPollerOptions> = {}, +): Promise, TResult>> { + const abortController = new AbortController(); + const poller: RunningOperation = { + sendInitialRequest: async () => { + // In the case of Rest Clients we are building the LRO poller object from a response that's the reason + // we are not triggering the initial request here, just extracting the information from the + // response we were provided. + return getLroResponse(initialResponse); + }, + sendPollRequest: async ( + path: string, + options?: { abortSignal?: AbortSignalLike }, + ) => { + // This is the callback that is going to be called to poll the service + // to get the latest status. We use the client provided and the polling path + // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location + // depending on the lro pattern that the service implements. If non is provided we default to the initial path. + function abortListener(): void { + abortController.abort(); + } + const inputAbortSignal = options?.abortSignal; + const abortSignal = abortController.signal; + if (inputAbortSignal?.aborted) { + abortController.abort(); + } else if (!abortSignal.aborted) { + inputAbortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client + .pathUnchecked(path ?? initialResponse.request.url) + .get({ abortSignal }); + } finally { + inputAbortSignal?.removeEventListener("abort", abortListener); + } + const lroResponse = getLroResponse(response as TResult); + lroResponse.rawResponse.headers["x-ms-original-url"] = + initialResponse.request.url; + return lroResponse; + }, + }; + + options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; + const httpPoller = createHttpPoller(poller, options); + const simplePoller: SimplePollerLike, TResult> = { + isDone() { + return httpPoller.isDone; + }, + isStopped() { + return abortController.signal.aborted; + }, + getOperationState() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return httpPoller.operationState; + }, + getResult() { + return httpPoller.result; + }, + toString() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return JSON.stringify({ + state: httpPoller.operationState, + }); + }, + stopPolling() { + abortController.abort(); + }, + onProgress: httpPoller.onProgress, + poll: httpPoller.poll, + pollUntilDone: httpPoller.pollUntilDone, + serialize: httpPoller.serialize, + submitted: httpPoller.submitted, + }; + return simplePoller; +} + +/** + * Converts a Rest Client response to a response that the LRO implementation understands + * @param response - a rest client http response + * @returns - An LRO response that the LRO implementation understands + */ +function getLroResponse( + response: TResult, +): OperationResponse { + if (Number.isNaN(response.status)) { + throw new TypeError( + `Status code of the response is not a number. Value: ${response.status}`, + ); + } + + return { + flatResponse: response, + rawResponse: { + ...response, + statusCode: Number.parseInt(response.status), + body: response.body, + }, + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts new file mode 100644 index 00000000000..7a241a5708c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts @@ -0,0 +1,304 @@ +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import { HttpResponse } from "@azure-rest/core-client"; +import { PagedOperationOutput, ErrorResponseOutput, DataProductsCatalogOutput, DataProductsCatalogListResultOutput, DataTypeOutput, ContainerSasTokenOutput, DataTypeListResultOutput, DataProductOutput, AccountSasTokenOutput, RoleAssignmentDetailOutput, ListRoleAssignmentsOutput, DataProductListResultOutput } from "./outputModels.js"; +/** Azure operation completed successfully. */ +export interface OperationsList200Response extends HttpResponse { + status: "200"; + body: PagedOperationOutput; +} +export interface OperationsListDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsCatalogsGet200Response extends HttpResponse { + status: "200"; + body: DataProductsCatalogOutput; +} +export interface DataProductsCatalogsGetDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsCatalogsListByResourceGroup200Response extends HttpResponse { + status: "200"; + body: DataProductsCatalogListResultOutput; +} +export interface DataProductsCatalogsListByResourceGroupDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsCatalogsListBySubscription200Response extends HttpResponse { + status: "200"; + body: DataProductsCatalogListResultOutput; +} +export interface DataProductsCatalogsListBySubscriptionDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Resource 'DataType' update operation succeeded */ +export interface DataTypesCreate200Response extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} +export interface DataTypesCreate201Headers { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} +/** Resource 'DataType' create operation succeeded */ +export interface DataTypesCreate201Response extends HttpResponse { + status: "201"; + body: DataTypeOutput; + headers: RawHttpHeaders & DataTypesCreate201Headers; +} +export interface DataTypesCreateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** The final response for long-running create operation */ +export interface DataTypesCreateLogicalResponse extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} +/** Azure operation completed successfully. */ +export interface DataTypesGet200Response extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} +export interface DataTypesGetDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataTypesUpdate200Response extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} +export interface DataTypesUpdate202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} +/** Resource update request accepted. */ +export interface DataTypesUpdate202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataTypesUpdate202Headers; +} +export interface DataTypesUpdateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** The final response for long-running update operation */ +export interface DataTypesUpdateLogicalResponse extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} +export interface DataTypesDelete202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} +/** Resource deletion accepted. */ +export interface DataTypesDelete202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataTypesDelete202Headers; +} +/** Resource does not exist. */ +export interface DataTypesDelete204Response extends HttpResponse { + status: "204"; +} +export interface DataTypesDeleteDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** The final response for long-running delete operation */ +export interface DataTypesDeleteLogicalResponse extends HttpResponse { + status: "200"; +} +export interface DataTypesDeleteData202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} +/** Resource operation accepted. */ +export interface DataTypesDeleteData202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataTypesDeleteData202Headers; +} +/** Action completed successfully. */ +export interface DataTypesDeleteData204Response extends HttpResponse { + status: "204"; +} +export interface DataTypesDeleteDataDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** The final response for long-running deleteData operation */ +export interface DataTypesDeleteDataLogicalResponse extends HttpResponse { + status: "200"; +} +/** Azure operation completed successfully. */ +export interface DataTypesGenerateStorageContainerSasToken200Response extends HttpResponse { + status: "200"; + body: ContainerSasTokenOutput; +} +export interface DataTypesGenerateStorageContainerSasTokenDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataTypesListByDataProduct200Response extends HttpResponse { + status: "200"; + body: DataTypeListResultOutput; +} +export interface DataTypesListByDataProductDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Resource 'DataProduct' update operation succeeded */ +export interface DataProductsCreate200Response extends HttpResponse { + status: "200"; + body: DataProductOutput; +} +export interface DataProductsCreate201Headers { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} +/** Resource 'DataProduct' create operation succeeded */ +export interface DataProductsCreate201Response extends HttpResponse { + status: "201"; + body: DataProductOutput; + headers: RawHttpHeaders & DataProductsCreate201Headers; +} +export interface DataProductsCreateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** The final response for long-running create operation */ +export interface DataProductsCreateLogicalResponse extends HttpResponse { + status: "200"; + body: DataProductOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsGet200Response extends HttpResponse { + status: "200"; + body: DataProductOutput; +} +export interface DataProductsGetDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsUpdate200Response extends HttpResponse { + status: "200"; + body: DataProductOutput; +} +export interface DataProductsUpdate202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} +/** Resource update request accepted. */ +export interface DataProductsUpdate202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataProductsUpdate202Headers; +} +export interface DataProductsUpdateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** The final response for long-running update operation */ +export interface DataProductsUpdateLogicalResponse extends HttpResponse { + status: "200"; + body: DataProductOutput; +} +export interface DataProductsDelete202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} +/** Resource deletion accepted. */ +export interface DataProductsDelete202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataProductsDelete202Headers; +} +/** Resource does not exist. */ +export interface DataProductsDelete204Response extends HttpResponse { + status: "204"; +} +export interface DataProductsDeleteDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** The final response for long-running delete operation */ +export interface DataProductsDeleteLogicalResponse extends HttpResponse { + status: "200"; +} +/** Azure operation completed successfully. */ +export interface DataProductsGenerateStorageAccountSasToken200Response extends HttpResponse { + status: "200"; + body: AccountSasTokenOutput; +} +export interface DataProductsGenerateStorageAccountSasTokenDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Action completed successfully. */ +export interface DataProductsRotateKey204Response extends HttpResponse { + status: "204"; +} +export interface DataProductsRotateKeyDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsAddUserRole200Response extends HttpResponse { + status: "200"; + body: RoleAssignmentDetailOutput; +} +export interface DataProductsAddUserRoleDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Action completed successfully. */ +export interface DataProductsRemoveUserRole204Response extends HttpResponse { + status: "204"; +} +export interface DataProductsRemoveUserRoleDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsListRolesAssignments200Response extends HttpResponse { + status: "200"; + body: ListRoleAssignmentsOutput; +} +export interface DataProductsListRolesAssignmentsDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsListByResourceGroup200Response extends HttpResponse { + status: "200"; + body: DataProductListResultOutput; +} +export interface DataProductsListByResourceGroupDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +/** Azure operation completed successfully. */ +export interface DataProductsListBySubscription200Response extends HttpResponse { + status: "200"; + body: DataProductListResultOutput; +} +export interface DataProductsListBySubscriptionDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} +//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts.map new file mode 100644 index 00000000000..b8f13921dd2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,mCAAmC,EACnC,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,mBAAmB,CAAC;AAE3B,8CAA8C;AAC9C,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IA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,qCAAsC,SAAQ,YAAY;IACzE,MAAM,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,yCACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,2CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,+CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,0CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,WAAW,8CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,yCACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,WAAW,6CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js new file mode 100644 index 00000000000..589de5e8155 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +export {}; +//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js.map new file mode 100644 index 00000000000..d2483ec2197 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.js","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.ts new file mode 100644 index 00000000000..050b71813b0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.ts @@ -0,0 +1,400 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import { HttpResponse } from "@azure-rest/core-client"; +import { + PagedOperationOutput, + ErrorResponseOutput, + DataProductsCatalogOutput, + DataProductsCatalogListResultOutput, + DataTypeOutput, + ContainerSasTokenOutput, + DataTypeListResultOutput, + DataProductOutput, + AccountSasTokenOutput, + RoleAssignmentDetailOutput, + ListRoleAssignmentsOutput, + DataProductListResultOutput, +} from "./outputModels.js"; + +/** Azure operation completed successfully. */ +export interface OperationsList200Response extends HttpResponse { + status: "200"; + body: PagedOperationOutput; +} + +export interface OperationsListDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsCatalogsGet200Response extends HttpResponse { + status: "200"; + body: DataProductsCatalogOutput; +} + +export interface DataProductsCatalogsGetDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsCatalogsListByResourceGroup200Response + extends HttpResponse { + status: "200"; + body: DataProductsCatalogListResultOutput; +} + +export interface DataProductsCatalogsListByResourceGroupDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsCatalogsListBySubscription200Response + extends HttpResponse { + status: "200"; + body: DataProductsCatalogListResultOutput; +} + +export interface DataProductsCatalogsListBySubscriptionDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Resource 'DataType' update operation succeeded */ +export interface DataTypesCreate200Response extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} + +export interface DataTypesCreate201Headers { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} + +/** Resource 'DataType' create operation succeeded */ +export interface DataTypesCreate201Response extends HttpResponse { + status: "201"; + body: DataTypeOutput; + headers: RawHttpHeaders & DataTypesCreate201Headers; +} + +export interface DataTypesCreateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** The final response for long-running create operation */ +export interface DataTypesCreateLogicalResponse extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} + +/** Azure operation completed successfully. */ +export interface DataTypesGet200Response extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} + +export interface DataTypesGetDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataTypesUpdate200Response extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} + +export interface DataTypesUpdate202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} + +/** Resource update request accepted. */ +export interface DataTypesUpdate202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataTypesUpdate202Headers; +} + +export interface DataTypesUpdateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** The final response for long-running update operation */ +export interface DataTypesUpdateLogicalResponse extends HttpResponse { + status: "200"; + body: DataTypeOutput; +} + +export interface DataTypesDelete202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} + +/** Resource deletion accepted. */ +export interface DataTypesDelete202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataTypesDelete202Headers; +} + +/** Resource does not exist. */ +export interface DataTypesDelete204Response extends HttpResponse { + status: "204"; +} + +export interface DataTypesDeleteDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** The final response for long-running delete operation */ +export interface DataTypesDeleteLogicalResponse extends HttpResponse { + status: "200"; +} + +export interface DataTypesDeleteData202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} + +/** Resource operation accepted. */ +export interface DataTypesDeleteData202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataTypesDeleteData202Headers; +} + +/** Action completed successfully. */ +export interface DataTypesDeleteData204Response extends HttpResponse { + status: "204"; +} + +export interface DataTypesDeleteDataDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** The final response for long-running deleteData operation */ +export interface DataTypesDeleteDataLogicalResponse extends HttpResponse { + status: "200"; +} + +/** Azure operation completed successfully. */ +export interface DataTypesGenerateStorageContainerSasToken200Response + extends HttpResponse { + status: "200"; + body: ContainerSasTokenOutput; +} + +export interface DataTypesGenerateStorageContainerSasTokenDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataTypesListByDataProduct200Response extends HttpResponse { + status: "200"; + body: DataTypeListResultOutput; +} + +export interface DataTypesListByDataProductDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Resource 'DataProduct' update operation succeeded */ +export interface DataProductsCreate200Response extends HttpResponse { + status: "200"; + body: DataProductOutput; +} + +export interface DataProductsCreate201Headers { + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} + +/** Resource 'DataProduct' create operation succeeded */ +export interface DataProductsCreate201Response extends HttpResponse { + status: "201"; + body: DataProductOutput; + headers: RawHttpHeaders & DataProductsCreate201Headers; +} + +export interface DataProductsCreateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** The final response for long-running create operation */ +export interface DataProductsCreateLogicalResponse extends HttpResponse { + status: "200"; + body: DataProductOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsGet200Response extends HttpResponse { + status: "200"; + body: DataProductOutput; +} + +export interface DataProductsGetDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsUpdate200Response extends HttpResponse { + status: "200"; + body: DataProductOutput; +} + +export interface DataProductsUpdate202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} + +/** Resource update request accepted. */ +export interface DataProductsUpdate202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataProductsUpdate202Headers; +} + +export interface DataProductsUpdateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** The final response for long-running update operation */ +export interface DataProductsUpdateLogicalResponse extends HttpResponse { + status: "200"; + body: DataProductOutput; +} + +export interface DataProductsDelete202Headers { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + "retry-after"?: number; +} + +/** Resource deletion accepted. */ +export interface DataProductsDelete202Response extends HttpResponse { + status: "202"; + headers: RawHttpHeaders & DataProductsDelete202Headers; +} + +/** Resource does not exist. */ +export interface DataProductsDelete204Response extends HttpResponse { + status: "204"; +} + +export interface DataProductsDeleteDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** The final response for long-running delete operation */ +export interface DataProductsDeleteLogicalResponse extends HttpResponse { + status: "200"; +} + +/** Azure operation completed successfully. */ +export interface DataProductsGenerateStorageAccountSasToken200Response + extends HttpResponse { + status: "200"; + body: AccountSasTokenOutput; +} + +export interface DataProductsGenerateStorageAccountSasTokenDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Action completed successfully. */ +export interface DataProductsRotateKey204Response extends HttpResponse { + status: "204"; +} + +export interface DataProductsRotateKeyDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsAddUserRole200Response extends HttpResponse { + status: "200"; + body: RoleAssignmentDetailOutput; +} + +export interface DataProductsAddUserRoleDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Action completed successfully. */ +export interface DataProductsRemoveUserRole204Response extends HttpResponse { + status: "204"; +} + +export interface DataProductsRemoveUserRoleDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsListRolesAssignments200Response + extends HttpResponse { + status: "200"; + body: ListRoleAssignmentsOutput; +} + +export interface DataProductsListRolesAssignmentsDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsListByResourceGroup200Response + extends HttpResponse { + status: "200"; + body: DataProductListResultOutput; +} + +export interface DataProductsListByResourceGroupDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** Azure operation completed successfully. */ +export interface DataProductsListBySubscription200Response + extends HttpResponse { + status: "200"; + body: DataProductListResultOutput; +} + +export interface DataProductsListBySubscriptionDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts new file mode 100644 index 00000000000..851a0746e3b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts @@ -0,0 +1,22 @@ +import { PollerLike, OperationState } from "@azure/core-lro"; +import { NetworkAnalyticsContext } from "./api/networkAnalyticsContext.js"; +import { NetworkAnalyticsClient } from "./networkAnalyticsClient.js"; +import { PathUncheckedResponse, OperationOptions } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; +export interface RestorePollerOptions extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** Deserialization function for raw response body */ + processResponseBody?: (result: TResponse) => Promise; +} +/** + * Creates a poller from the serialized state of another poller. This can be + * useful when you want to create pollers on a different host or a poller + * needs to be constructed after the original one is not in scope. + */ +export declare function restorePoller(client: NetworkAnalyticsContext | NetworkAnalyticsClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike, TResult>, options?: RestorePollerOptions): PollerLike, TResult>; +//# sourceMappingURL=restorePollerHelpers.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts.map new file mode 100644 index 00000000000..157cdf2eb0e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAarE,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,uBAAuB,GAAG,sBAAsB,EACxD,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CACf,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjD,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA8B9C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js new file mode 100644 index 00000000000..23bc71b1b8d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { deserializeState, } from "@azure/core-lro"; +import { getLongRunningPoller } from "./api/pollingHelpers.js"; +import { _createDeserialize, _updateDeserialize, _$deleteDeserialize, _deleteDataDeserialize, } from "./api/dataTypes/index.js"; +import { _createDeserialize as _createDeserializeDataProducts, _updateDeserialize as _updateDeserializeDataProducts, _$deleteDeserialize as _$deleteDeserializeDataProducts, } from "./api/dataProducts/index.js"; +/** + * Creates a poller from the serialized state of another poller. This can be + * useful when you want to create pollers on a different host or a poller + * needs to be constructed after the original one is not in scope. + */ +export function restorePoller(client, serializedState, sourceOperation, options) { + const pollerConfig = deserializeState(serializedState).config; + const { initialRequestUrl, requestMethod, metadata } = pollerConfig; + if (!initialRequestUrl || !requestMethod) { + throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`); + } + const resourceLocationConfig = metadata?.["resourceLocationConfig"]; + const deserializeHelper = options?.processResponseBody ?? + getDeserializationHelper(initialRequestUrl, requestMethod); + if (!deserializeHelper) { + throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`); + } + return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + resourceLocationConfig, + restoreFrom: serializedState, + initialRequestUrl, + }); +} +const deserializeMap = { + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": _createDeserialize, + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": _updateDeserialize, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": _$deleteDeserialize, + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": _deleteDataDeserialize, + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": _createDeserializeDataProducts, + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": _updateDeserializeDataProducts, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": _$deleteDeserializeDataProducts, +}; +function getDeserializationHelper(urlStr, method) { + const path = new URL(urlStr).pathname; + const pathParts = path.split("/"); + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, matchedValue; + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(deserializeMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); + if (!isMatched) { + found = false; + break; + } + continue; + } + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + return matchedValue; +} +function getPathFromMapKey(mapKey) { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} +//# sourceMappingURL=restorePollerHelpers.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js.map new file mode 100644 index 00000000000..09eb6b3e696 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kBAAkB,IAAI,8BAA8B,EACpD,kBAAkB,IAAI,8BAA8B,EACpD,mBAAmB,IAAI,+BAA+B,GACvD,MAAM,6BAA6B,CAAC;AAqBrC;;;;GAIG;AACH,MAAM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AAI,MAAM,CAC1B,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAC1C,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;gBAE3B,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAA8C,CAAC;QAChE,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.ts new file mode 100644 index 00000000000..a5023d08069 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.ts @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + PollerLike, + OperationState, + deserializeState, + ResourceLocationConfig, +} from "@azure/core-lro"; +import { NetworkAnalyticsContext } from "./api/networkAnalyticsContext.js"; +import { NetworkAnalyticsClient } from "./networkAnalyticsClient.js"; +import { getLongRunningPoller } from "./api/pollingHelpers.js"; +import { + _createDeserialize, + _updateDeserialize, + _$deleteDeserialize, + _deleteDataDeserialize, +} from "./api/dataTypes/index.js"; +import { + _createDeserialize as _createDeserializeDataProducts, + _updateDeserialize as _updateDeserializeDataProducts, + _$deleteDeserialize as _$deleteDeserializeDataProducts, +} from "./api/dataProducts/index.js"; +import { + PathUncheckedResponse, + OperationOptions, +} from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; + +export interface RestorePollerOptions< + TResult, + TResponse extends PathUncheckedResponse = PathUncheckedResponse, +> extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** Deserialization function for raw response body */ + processResponseBody?: (result: TResponse) => Promise; +} + +/** + * Creates a poller from the serialized state of another poller. This can be + * useful when you want to create pollers on a different host or a poller + * needs to be constructed after the original one is not in scope. + */ +export function restorePoller( + client: NetworkAnalyticsContext | NetworkAnalyticsClient, + serializedState: string, + sourceOperation: ( + ...args: any[] + ) => PollerLike, TResult>, + options?: RestorePollerOptions, +): PollerLike, TResult> { + const pollerConfig = deserializeState(serializedState).config; + const { initialRequestUrl, requestMethod, metadata } = pollerConfig; + if (!initialRequestUrl || !requestMethod) { + throw new Error( + `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`, + ); + } + const resourceLocationConfig = metadata?.["resourceLocationConfig"] as + | ResourceLocationConfig + | undefined; + const deserializeHelper = + options?.processResponseBody ?? + getDeserializationHelper(initialRequestUrl, requestMethod); + if (!deserializeHelper) { + throw new Error( + `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`, + ); + } + return getLongRunningPoller( + (client as any)["_client"] ?? client, + deserializeHelper as (result: TResponse) => Promise, + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + resourceLocationConfig, + restoreFrom: serializedState, + initialRequestUrl, + }, + ); +} + +const deserializeMap: Record = { + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": + _createDeserialize, + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": + _updateDeserialize, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": + _$deleteDeserialize, + "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": + _deleteDataDeserialize, + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": + _createDeserializeDataProducts, + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": + _updateDeserializeDataProducts, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": + _$deleteDeserializeDataProducts, +}; + +function getDeserializationHelper( + urlStr: string, + method: string, +): ((result: unknown) => Promise) | undefined { + const path = new URL(urlStr).pathname; + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: ((result: unknown) => Promise) | undefined; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(deserializeMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- + ) { + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value as (result: unknown) => Promise; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts new file mode 100644 index 00000000000..d9138babf9f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts @@ -0,0 +1,4 @@ +export declare const testPollingOptions: { + updateIntervalInMs: number | undefined; +}; +//# sourceMappingURL=networkanalytics_operations_test.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts.map new file mode 100644 index 00000000000..1f12b155e1d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"networkanalytics_operations_test.spec.d.ts","sourceRoot":"","sources":["networkanalytics_operations_test.spec.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js new file mode 100644 index 00000000000..a8cc0da273c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ +import { env, isPlaybackMode, } from "@azure-tools/test-recorder"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert, beforeEach, afterEach, it, describe } from "vitest"; +import { NetworkAnalyticsClient } from "../../src/networkAnalyticsClient.js"; +import { createRecorder } from "./utils/recordedClient.js"; +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; +describe("NetworkAnalytics test", () => { + let recorder; + let subscriptionId; + let client; + let location; + let resourceGroup; + let resourcename; + beforeEach(async (context) => { + process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; + recorder = await createRecorder(context); + subscriptionId = env.SUBSCRIPTION_ID || ''; + // This is an example of how the environment variables are used + const credential = createTestCredential(); + client = new NetworkAnalyticsClient(credential, recorder.configureClientOptions({})); + location = "eastus2euap"; + resourceGroup = "myjstest"; + resourcename = "resourcetest"; + }); + afterEach(async function () { + if (recorder?.recordingId) { + await recorder.stop(); + } + }); + it("operation list test", async function () { + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + assert.notEqual(resArray.length, 0); + }); + // it("dataProducts create test", async function () { + // const res = await client.dataProducts.create( + // subscriptionId, + // resourceGroup, + // resourcename, + // { + // location, + // properties: { + // majorVersion: "1", + // product: "MCC", + // publisher: "Microsoft" + // } + // }, + // testPollingOptions); + // assert.equal(res.name, resourcename); + // }); + // it("dataProducts get test", async function () { + // const res = await client.dataProducts.get( + // subscriptionId, + // resourceGroup, + // resourcename); + // assert.equal(res.name, resourcename); + // }); + // it("dataProducts list test", async function () { + // const resArray = new Array(); + // for await (let item of client.dataProducts.listByResourceGroup( + // subscriptionId, + // resourceGroup)) { + // resArray.push(item); + // } + // assert.equal(resArray.length, 1); + // }); + // it("dataProducts delete test", async function () { + // const resArray = new Array(); + // const res = await client.dataProducts.delete( + // subscriptionId, + // resourceGroup, + // resourcename, + // testPollingOptions, + // ); + // for await (let item of client.dataProducts.listByResourceGroup(subscriptionId, resourceGroup)) { + // resArray.push(item); + // } + // assert.equal(resArray.length, 0); + // }); +}); +//# sourceMappingURL=networkanalytics_operations_test.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js.map new file mode 100644 index 00000000000..edb6dcc7b3f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"networkanalytics_operations_test.spec.js","sourceRoot":"","sources":["networkanalytics_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,GAAG,EAEH,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAA8B,CAAC;IACnC,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IAEzB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC3B,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,aAAa,CAAC;QACjE,QAAQ,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;QACzC,cAAc,GAAG,GAAG,CAAC,eAA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MAAM;IAEN,qDAAqD;IACrD,kCAAkC;IAClC,kDAAkD;IAClD,sBAAsB;IACtB,qBAAqB;IACrB,oBAAoB;IACpB,0BAA0B;IAC1B,OAAO;IACP,qGAAqG;IACrG,2BAA2B;IAC3B,MAAM;IACN,sCAAsC;IACtC,MAAM;AAER,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.ts new file mode 100644 index 00000000000..32e32432cc2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.ts @@ -0,0 +1,107 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + Recorder, + isPlaybackMode, +} from "@azure-tools/test-recorder"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert, beforeEach, afterEach, it, describe } from "vitest"; +import { NetworkAnalyticsClient } from "../../src/networkAnalyticsClient.js"; +import { createRecorder } from "./utils/recordedClient.js"; + +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + +describe("NetworkAnalytics test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: NetworkAnalyticsClient; + let location: string; + let resourceGroup: string; + let resourcename: string; + + beforeEach(async (context) => { + process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; + recorder = await createRecorder(context); + subscriptionId = env.SUBSCRIPTION_ID || ''; + // This is an example of how the environment variables are used + const credential = createTestCredential(); + client = new NetworkAnalyticsClient(credential, recorder.configureClientOptions({})); + location = "eastus2euap"; + resourceGroup = "myjstest"; + resourcename = "resourcetest"; + + }); + + afterEach(async function () { + if (recorder?.recordingId) { + await recorder.stop(); + } + }); + + it("operation list test", async function () { + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + assert.notEqual(resArray.length, 0); + }); + + // it("dataProducts create test", async function () { + // const res = await client.dataProducts.create( + // subscriptionId, + // resourceGroup, + // resourcename, + // { + // location, + // properties: { + // majorVersion: "1", + // product: "MCC", + // publisher: "Microsoft" + // } + // }, + // testPollingOptions); + // assert.equal(res.name, resourcename); + // }); + + // it("dataProducts get test", async function () { + // const res = await client.dataProducts.get( + // subscriptionId, + // resourceGroup, + // resourcename); + // assert.equal(res.name, resourcename); + // }); + + // it("dataProducts list test", async function () { + // const resArray = new Array(); + // for await (let item of client.dataProducts.listByResourceGroup( + // subscriptionId, + // resourceGroup)) { + // resArray.push(item); + // } + // assert.equal(resArray.length, 1); + // }); + + // it("dataProducts delete test", async function () { + // const resArray = new Array(); + // const res = await client.dataProducts.delete( + // subscriptionId, + // resourceGroup, + // resourcename, + // testPollingOptions, + // ); + // for await (let item of client.dataProducts.listByResourceGroup(subscriptionId, resourceGroup)) { + // resArray.push(item); + // } + // assert.equal(resArray.length, 0); + // }); + +}) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts new file mode 100644 index 00000000000..ee8ecefd900 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts @@ -0,0 +1,8 @@ +import { Recorder, VitestTestContext } from "@azure-tools/test-recorder"; +/** + * creates the recorder and reads the environment variables from the `.env` file. + * Should be called first in the test suite to make sure environment variables are + * read before they are being used. + */ +export declare function createRecorder(context: VitestTestContext): Promise; +//# sourceMappingURL=recordedClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts.map new file mode 100644 index 00000000000..fb50d476e0c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"recordedClient.d.ts","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAER,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAepC;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAIlF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js new file mode 100644 index 00000000000..bffd2ac21a5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { Recorder, } from "@azure-tools/test-recorder"; +const replaceableVariables = { + SUBSCRIPTION_ID: "azure_subscription_id" +}; +const recorderEnvSetup = { + envSetupForPlayback: replaceableVariables, + removeCentralSanitizers: [ + "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section + "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section + ], +}; +/** + * creates the recorder and reads the environment variables from the `.env` file. + * Should be called first in the test suite to make sure environment variables are + * read before they are being used. + */ +export async function createRecorder(context) { + const recorder = new Recorder(context); + await recorder.start(recorderEnvSetup); + return recorder; +} +//# sourceMappingURL=recordedClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js.map new file mode 100644 index 00000000000..eb60a3646b8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js.map @@ -0,0 +1 @@ +{"version":3,"file":"recordedClient.js","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,QAAQ,GAGT,MAAM,4BAA4B,CAAC;AAGpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,gBAAgB,GAAyB;IAC7C,mBAAmB,EAAE,oBAAoB;IACzC,uBAAuB,EAAE;QACvB,WAAW,EAAE,kFAAkF;QAC/F,WAAW,EAAE,gFAAgF;KAC9F;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAA0B;IAC7D,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC;IACvC,MAAM,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACvC,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.ts new file mode 100644 index 00000000000..a0b689456cb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + Recorder, + RecorderStartOptions, + VitestTestContext, +} from "@azure-tools/test-recorder"; + + +const replaceableVariables: Record = { + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderEnvSetup: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, + removeCentralSanitizers: [ + "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section + "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section + ], +}; + +/** + * creates the recorder and reads the environment variables from the `.env` file. + * Should be called first in the test suite to make sure environment variables are + * read before they are being used. + */ +export async function createRecorder(context: VitestTestContext): Promise { + const recorder = new Recorder(context); + await recorder.start(recorderEnvSetup); + return recorder; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.browser.config.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.browser.config.json new file mode 100644 index 00000000000..1b37aebc545 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.json new file mode 100644 index 00000000000..7483ff67760 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.json @@ -0,0 +1,15 @@ +{ + "extends": "../../../tsconfig.package", + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." + }, + "include": [ + "./src/**/*.ts", + "./src/**/*.mts", + "./src/**/*.cts", + "test/**/*.ts", + "./test/**/*.ts" + ] +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts new file mode 100644 index 00000000000..38572eb9c78 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts @@ -0,0 +1,3 @@ +declare const _default: import("vite").UserConfig; +export default _default; +//# sourceMappingURL=vitest.browser.config.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts.map new file mode 100644 index 00000000000..d4028bbf8c4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vitest.browser.config.d.ts","sourceRoot":"","sources":["vitest.browser.config.ts"],"names":[],"mappings":";AAQA,wBA4BG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js new file mode 100644 index 00000000000..374edf92d43 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); +export default defineConfig({ + define: { + "process.env": process.env, + }, + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + browser: { + enabled: true, + headless: true, + name: "chromium", + provider: "playwright", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["dist-test/browser/**/*.spec.js"], + coverage: { + include: ["dist-test/browser/**/*.spec.js"], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage-browser", + }, + testTimeout: 120000, + }, +}); +//# sourceMappingURL=vitest.browser.config.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js.map new file mode 100644 index 00000000000..e927d7b55f6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vitest.browser.config.js","sourceRoot":"","sources":["vitest.browser.config.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,CAAC,GAAG,CAAC,wBAAwB,GAAG,sBAAsB,EAAE,CAAC;AAEhE,eAAe,YAAY,CAAC;IAC1B,MAAM,EAAE;QACN,aAAa,EAAE,OAAO,CAAC,GAAG;KAC3B;IACD,IAAI,EAAE;QACJ,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7B,UAAU,EAAE;YACV,KAAK,EAAE,0BAA0B;SAClC;QACD,OAAO,EAAE;YACP,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,YAAY;SACvB;QACD,UAAU,EAAE;YACV,MAAM,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC;SAC/B;QACD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,CAAC,gCAAgC,CAAC;QAC3C,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,gCAAgC,CAAC;YAC3C,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;YAClC,gBAAgB,EAAE,kBAAkB;SACrC;QACD,WAAW,EAAE,MAAM;KACpB;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.ts new file mode 100644 index 00000000000..53738560ec3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.ts @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; + +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); + +export default defineConfig({ + define: { + "process.env": process.env, + }, + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + browser: { + enabled: true, + headless: true, + name: "chromium", + provider: "playwright", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["dist-test/browser/**/*.spec.js"], + coverage: { + include: ["dist-test/browser/**/*.spec.js"], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage-browser", + }, + testTimeout: 120000, + }, +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts new file mode 100644 index 00000000000..2b17c25926f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts @@ -0,0 +1,3 @@ +declare const _default: import("vite").UserConfig; +export default _default; +//# sourceMappingURL=vitest.config.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts.map new file mode 100644 index 00000000000..c30924a65c8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["vitest.config.ts"],"names":[],"mappings":";AAMA,wBA0BG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js new file mode 100644 index 00000000000..187fa6d5afe --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { defineConfig } from "vitest/config"; +export default defineConfig({ + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["test/**/*.spec.ts"], + exclude: ["test/**/browser/*.spec.ts"], + coverage: { + include: ["src/**/*.ts"], + exclude: [ + "src/**/*-browser.mts", + "src/**/*-react-native.mts", + "vitest*.config.ts", + "samples-dev/**/*.ts", + ], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage", + }, + testTimeout: 120000, + }, +}); +//# sourceMappingURL=vitest.config.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js.map new file mode 100644 index 00000000000..58ff01f7efa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["vitest.config.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,eAAe,YAAY,CAAC;IAC1B,IAAI,EAAE;QACJ,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7B,UAAU,EAAE;YACV,KAAK,EAAE,0BAA0B;SAClC;QACD,UAAU,EAAE;YACV,MAAM,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC;SAC/B;QACD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,CAAC,mBAAmB,CAAC;QAC9B,OAAO,EAAE,CAAC,2BAA2B,CAAC;QACtC,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,CAAC;YACxB,OAAO,EAAE;gBACP,sBAAsB;gBACtB,2BAA2B;gBAC3B,mBAAmB;gBACnB,qBAAqB;aACtB;YACD,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;YAClC,gBAAgB,EAAE,UAAU;SAC7B;QACD,WAAW,EAAE,MAAM;KACpB;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.ts new file mode 100644 index 00000000000..b8fd56b5d83 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.ts @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; + +export default defineConfig({ + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["test/**/*.spec.ts"], + exclude: ["test/**/browser/*.spec.ts"], + coverage: { + include: ["src/**/*.ts"], + exclude: [ + "src/**/*-browser.mts", + "src/**/*-react-native.mts", + "vitest*.config.ts", + "samples-dev/**/*.ts", + ], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage", + }, + testTimeout: 120000, + }, +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/.eslintrc.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/.eslintrc.json new file mode 100644 index 00000000000..619797ac39b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/.eslintrc.json @@ -0,0 +1,11 @@ +{ + "plugins": ["@azure/azure-sdk"], + "extends": ["plugin:@azure/azure-sdk/azure-sdk-base"], + "rules": { + "@azure/azure-sdk/ts-modules-only-named": "warn", + "@azure/azure-sdk/ts-apiextractor-json-types": "warn", + "@azure/azure-sdk/ts-package-json-types": "warn", + "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", + "tsdoc/syntax": "warn" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md new file mode 100644 index 00000000000..ba5e63ee7e2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md @@ -0,0 +1,23 @@ +# Release History + +## 1.0.0-beta.2 (Unreleased) + +### Features Added +- Added support for AAD authentication. + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + +## 1.0.0-beta.1 (2023-04-18) +Initial release + +### Features Added +- Added support for Text Translation - [Translate API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate) +- Added support for Text Transliteration - [Transliterate API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-transliterate) +- Added support for Finding Sentence Boundaries - [FindSentenceBoundaries API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-break-sentence) +- Added support for Getting the Supported Languages - [GetLanguages API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages) +- Added support for Looking up the Dictionary Entries - [LookupDictionaryEntries API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-lookup) +- Added support for Looking up the Dictionary Examples - [LookupDictionaryExamples API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-examples) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/README.md new file mode 100644 index 00000000000..335e193f1db --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/README.md @@ -0,0 +1,313 @@ +# Azure TextTranslation REST client library for JavaScript + +Text translation is a cloud-based REST API feature of the Translator service that uses neural +machine translation technology to enable quick and accurate source-to-target text translation +in real time across all supported languages. + +The following methods are supported by the Text Translation feature: + +Languages. Returns a list of languages supported by Translate, Transliterate, and Dictionary Lookup operations. + +Translate. Renders single source-language text to multiple target-language texts with a single request. + +Transliterate. Converts characters or letters of a source language to the corresponding characters or letters of a target language. + +Detect. Returns the source code language code and a boolean variable denoting whether the detected language is supported for text translation and transliteration. + +Dictionary lookup. Returns equivalent words for the source term in the target language. + +Dictionary example Returns grammatical structure and context examples for the source term and target term pair. + +**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library** + +Key links: + +- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/ai-translation-text) +- [API reference documentation](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference) +- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/samples) + +## Getting started + +### Currently supported environments + +- LTS versions of Node.js +- Latest versions of Edge, Chrome, Safar and Firefox + +### Prerequisites + +- An existing Translator service or Cognitive Services resource. + +### Install the `@azure-rest/ai-translation-text` package + +Install the Azure Text Translation REST client library for JavaScript with `npm`: + +```bash +npm install @azure-rest/ai-translation-text +``` + +#### Create a Translator service resource + +You can create Translator resource following [Create a Translator resource][translator_resource_create]. + +### Browser support + +#### JavaScript Bundle + +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + +### Authenticate the client + +Interaction with the service using the client library begins with creating an instance of the [TextTranslationClient][translator_client_class] class. You will need an **API key** or `TokenCredential` to instantiate a client object. For more information regarding authenticating with cognitive services, see [Authenticate requests to Translator Service][translator_auth]. + +#### Get an API key + +You can get the `endpoint`, `API key` and `Region` from the Cognitive Services resource or Translator service resource information in the [Azure Portal][azure_portal]. + +Alternatively, use the [Azure CLI][azure_cli] snippet below to get the API key from the Translator service resource. + +```PowerShell +az cognitiveservices account keys list --resource-group --name +``` + +### Create a `TextTranslationClient` using an API key and Region credential + +Once you have the value for the API key and Region, create an `TranslatorCredential`. + +With the value of the `TranslatorCredential` you can create the [TextTranslationClient][translator_client_class]: + +```javascript +const translateCedential = new TranslatorCredential(apiKey, region); +const translationClient = TextTranslationClient(endpoint, translateCedential); +``` + +## Examples + +The following section provides several code snippets using the `client` [created above](#create-a-texttranslationclient-using-an-api-key-and-region-credential), and covers the main features present in this client library. + +### Get Supported Languages + +Gets the set of languages currently supported by other operations of the Translator. + +```javascript +const langResponse = await translationClient.path("/languages").get(); + +if (isUnexpected(langResponse)) { + throw langResponse.body; +} + +const languages = langResponse.body; + +if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } +} + +if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } +} + +if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } +} +``` + +Please refer to the service documentation for a conceptual discussion of [languages][languages_doc]. + +### Translate + +Renders single source-language text to multiple target-language texts with a single request. + +```javascript +const inputText = [{ text: "This is a test." }]; +const parameters = { + to: "cs", + from: "en", +}; +const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(translateResponse)) { + throw translateResponse.body; +} + +const translations = translateResponse.body; +for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); +} +``` + +Please refer to the service documentation for a conceptual discussion of [translate][translate_doc]. + +### Transliterate + +Converts characters or letters of a source language to the corresponding characters or letters of a target language. + +```javascript +const inputText = [{ text: "这是个测试。" }]; +const parameters = { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", +}; +const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(transliterateResponse)) { + throw transliterateResponse.body; +} + +const translations = transliterateResponse.body; +for (const transliteration of translations) { + console.log( + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` + ); +} +``` + +Please refer to the service documentation for a conceptual discussion of [transliterate][transliterate_doc]. + +### Break Sentence + +Identifies the positioning of sentence boundaries in a piece of text. + +```javascript +const inputText = [{ text: "zhè shì gè cè shì。" }]; +const parameters = { + language: "zh-Hans", + script: "Latn", +}; +const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body; +} + +const breakSentences = breakSentenceResponse.body; +for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); +} +``` + +Please refer to the service documentation for a conceptual discussion of [break sentence][breaksentence_doc]. + +### Dictionary Lookup + +Returns equivalent words for the source term in the target language. + +```javascript +const inputText = [{ text: "fly" }]; +const parameters = { + to: "es", + from: "en", +}; +const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body; +} + +const dictionaryEntries = dictionaryResponse.body; +for (const dictionaryEntry of dictionaryEntries) { + console.log( + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` + ); + console.log( + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` + ); +} +``` + +Please refer to the service documentation for a conceptual discussion of [dictionary lookup][dictionarylookup_doc]. + +### Dictionary Examples + +Returns grammatical structure and context examples for the source term and target term pair. + +```javascript +const inputText = [{ text: "fly", translation: "volar" }]; +const parameters = { + to: "es", + from: "en", +}; +const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body; +} + +const dictionaryExamples = dictionaryResponse.body; +for (const dictionaryExample of dictionaryExamples) { + console.log( + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` + ); + const firstExample = dictionaryExample?.examples[0]; + console.log( + `Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.` + ); +} +``` + +Please refer to the service documentation for a conceptual discussion of [dictionary examples][dictionaryexamples_doc]. + +## Troubleshooting + +When you interact with the Translator Service using the TextTranslator client library, errors returned by the Translator service correspond to the same HTTP status codes returned for REST API requests. + +For example, if you submit a translation request without a target translate language, a `400` error is returned, indicating "Bad Request". + +You can find the different error codes returned by the service in the [Service Documentation][service_errors]. + +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +const { setLogLevel } = require("@azure/logger"); + +setLogLevel("info"); +``` + +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). + +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_portal]: https://portal.azure.com +[translator_resource_create]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource +[translator_auth]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference#authentication +[service_errors]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference#errors +[translator_client_class]: https://learn.microsoft.com/javascript/api/@azure-rest/ai-translation-text/texttranslationclient +[languages_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages +[translate_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate +[transliterate_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-transliterate +[breaksentence_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-break-sentence +[dictionarylookup_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-lookup +[dictionaryexamples_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-examples diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/api-extractor.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/api-extractor.json new file mode 100644 index 00000000000..ebfd2ff4505 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/api-extractor.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./types/src/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/ai-translation-text.d.ts" + }, + "messages": { + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, + "extractorMessageReporting": { + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } + } + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/assets.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/assets.json new file mode 100644 index 00000000000..530334f4570 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "js", + "TagPrefix": "js/translation/ai-translation-text-rest", + "Tag": "js/translation/ai-translation-text-rest_6dacbcc4a1" +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/karma.conf.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/karma.conf.js new file mode 100644 index 00000000000..756722cbcd1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/karma.conf.js @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +// https://github.com/karma-runner/karma-chrome-launcher +process.env.CHROME_BIN = require("puppeteer").executablePath(); +require("dotenv").config(); +const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); + +module.exports = function (config) { + config.set({ + // base path that will be used to resolve all patterns (eg. files, exclude) + basePath: "./", + + // frameworks to use + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter + frameworks: ["source-map-support", "mocha"], + + plugins: [ + "karma-mocha", + "karma-mocha-reporter", + "karma-chrome-launcher", + "karma-firefox-launcher", + "karma-env-preprocessor", + "karma-coverage", + "karma-sourcemap-loader", + "karma-junit-reporter", + "karma-source-map-support", + ], + + // list of files / patterns to load in the browser + files: [ + "dist-test/index.browser.js", + { + pattern: "dist-test/index.browser.js.map", + type: "html", + included: false, + served: true, + }, + ], + + // list of files / patterns to exclude + exclude: [], + + // preprocess matching files before serving them to the browser + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor + preprocessors: { + "**/*.js": ["sourcemap", "env"], + // IMPORTANT: COMMENT following line if you want to debug in your browsers!! + // Preprocess source file to calculate code coverage, however this will make source file unreadable + // "dist-test/index.js": ["coverage"] + }, + + envPreprocessor: [ + "TEST_MODE", + "TEXT_TRANSLATION_TENANT_ID", + "TEXT_TRANSLATION_CLIENT_ID", + "TEXT_TRANSLATION_CLIENT_SECRET", + "TEXT_TRANSLATION_ENDPOINT", + "TEXT_TRANSLATION_CUSTOM_ENDPOINT", + "TEXT_TRANSLATION_API_KEY", + "TEXT_TRANSLATION_REGION", + "RECORDINGS_RELATIVE_PATH", + "TEXT_TRANSLATION_AAD_REGION", + "TEXT_TRANSLATION_RESOURCE_ID", + ], + + // test results reporter to use + // possible values: 'dots', 'progress' + // available reporters: https://npmjs.org/browse/keyword/karma-reporter + reporters: ["mocha", "coverage", "junit"], + + coverageReporter: { + // specify a common output directory + dir: "coverage-browser/", + reporters: [ + { type: "json", subdir: ".", file: "coverage.json" }, + { type: "lcovonly", subdir: ".", file: "lcov.info" }, + { type: "html", subdir: "html" }, + { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, + ], + }, + + junitReporter: { + outputDir: "", // results will be saved as $outputDir/$browserName.xml + outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile + suite: "", // suite will become the package name attribute in xml testsuite element + useBrowserName: false, // add browser name to report and classes names + nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element + classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element + properties: {}, // key value pair of properties to add to the section of the report + }, + + // web server port + port: 9876, + + // enable / disable colors in the output (reporters and logs) + colors: true, + + // level of logging + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG + logLevel: config.LOG_INFO, + + // enable / disable watching file and executing tests whenever any file changes + autoWatch: false, + + // --no-sandbox allows our tests to run in Linux without having to change the system. + // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. + browsers: ["ChromeHeadlessNoSandbox"], + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: "ChromeHeadless", + flags: ["--no-sandbox", "--disable-web-security"], + }, + }, + + // Continuous Integration mode + // if true, Karma captures browsers, runs the tests and exits + singleRun: false, + + // Concurrency level + // how many browser should be started simultaneous + concurrency: 1, + + browserNoActivityTimeout: 60000000, + browserDisconnectTimeout: 10000, + browserDisconnectTolerance: 3, + + client: { + mocha: { + // change Karma's debug.html to the mocha web reporter + reporter: "html", + timeout: "600000", + }, + }, + }); +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json new file mode 100644 index 00000000000..0d2d53b154f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json @@ -0,0 +1,125 @@ +{ + "name": "@azure-rest/ai-translation-text", + "sdk-type": "client", + "author": "Microsoft Corporation", + "version": "1.0.0-beta.2", + "description": "An isomorphic client library for the Azure Cognitive Translator Service", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md", + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic", + "translate", + "translation" + ], + "license": "MIT", + "main": "dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/ai-translation-text.d.ts", + "repository": "github:Azure/azure-sdk-for-js", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "files": [ + "dist/", + "dist-esm/src/", + "types/ai-translation-text.d.ts", + "README.md", + "CHANGELOG.md", + "LICENSE" + ], + "engines": { + "node": ">=18.0.0" + }, + "//sampleConfiguration": { + "productName": "Azure Text Translation Service", + "productSlugs": [ + "azure", + "azure-cognitive-services", + "azure-translator" + ], + "requiredResources": { + "Translator resource instance": "https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource" + } + }, + "scripts": { + "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", + "build:browser": "tsc -p . && dev-tool run bundle", + "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build:samples": "echo Obsolete.", + "build:test": "tsc -p . && dev-tool run bundle", + "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "execute:samples": "dev-tool samples run samples-dev", + "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "generate:client": "echo skipped", + "integration-test:browser": "dev-tool run test:browser", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", + "lint": "eslint package.json api-extractor.json src test --ext .ts", + "pack": "npm pack 2>&1", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", + "test:node": "npm run clean && npm run build:test && npm run unit-test:node", + "test": "npm run clean && npm run build:test && npm run unit-test", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", + "unit-test:browser": "dev-tool run test:browser", + "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && dev-tool run extract-api" + }, + "sideEffects": false, + "autoPublish": false, + "dependencies": { + "@azure/core-auth": "^1.3.0", + "@azure-rest/core-client": "^1.1.0", + "@azure/core-rest-pipeline": "^1.8.0", + "@azure/logger": "^1.0.0", + "tslib": "^2.2.0" + }, + "devDependencies": { + "@microsoft/api-extractor": "^7.31.1", + "autorest": "latest", + "@types/node": "^18.0.0", + "dotenv": "^16.0.0", + "eslint": "^8.0.0", + "mkdirp": "^3.0.1", + "rimraf": "^5.0.5", + "source-map-support": "^0.5.9", + "typescript": "~5.4.5", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0", + "@azure-tools/test-credential": "^1.0.0", + "@azure/identity": "^4.0.1", + "@azure-tools/test-recorder": "^3.0.0", + "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "cross-env": "^7.0.2", + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "karma-chrome-launcher": "^3.0.0", + "karma-coverage": "^2.0.0", + "karma-env-preprocessor": "^0.1.1", + "karma-firefox-launcher": "^1.1.0", + "karma-junit-reporter": "^2.0.1", + "karma-mocha-reporter": "^2.2.5", + "karma-mocha": "^2.0.1", + "karma-source-map-support": "~1.4.0", + "karma-sourcemap-loader": "^0.3.8", + "karma": "^6.2.0", + "nyc": "^15.1.0", + "ts-node": "^10.0.0" + }, + "//metadata": { + "constantPaths": [ + { + "path": "src/customClient.ts", + "prefix": "userAgentInfo" + } + ] + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts new file mode 100644 index 00000000000..a42b7cfc5ff --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts @@ -0,0 +1,382 @@ +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { KeyCredential } from '@azure/core-auth'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; +export interface BackTranslationOutput { + displayText: string; + frequencyCount: number; + normalizedText: string; + numExamples: number; +} +export interface BreakSentenceItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sentLen: number[]; +} +export declare function buildMultiCollection(items: string[], parameterName: string): string; +export interface CommonScriptModelOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} +declare function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; +export default createClient; +export interface DetectedLanguageOutput { + language: string; + score: number; +} +export interface DictionaryExampleItemOutput { + examples: Array; + normalizedSource: string; + normalizedTarget: string; +} +export interface DictionaryExampleOutput { + sourcePrefix: string; + sourceSuffix: string; + sourceTerm: string; + targetPrefix: string; + targetSuffix: string; + targetTerm: string; +} +export interface DictionaryExampleTextItem extends InputTextItem { + translation: string; +} +export interface DictionaryLookupItemOutput { + displaySource: string; + normalizedSource: string; + translations: Array; +} +export interface DictionaryTranslationOutput { + backTranslations: Array; + confidence: number; + displayTarget: string; + normalizedTarget: string; + posTag: string; + prefixWord: string; +} +export interface ErrorDetailsOutput { + code: number; + message: string; +} +export interface ErrorResponseOutput { + error: ErrorDetailsOutput; +} +export interface FindSentenceBoundaries { + post(options: FindSentenceBoundariesParameters): StreamableMethod; +} +export interface FindSentenceBoundaries200Headers { + 'x-requestid': string; +} +export interface FindSentenceBoundaries200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; + status: '200'; +} +export interface FindSentenceBoundariesBodyParam { + body: Array; +} +export interface FindSentenceBoundariesDefaultHeaders { + 'x-requestid': string; +} +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; + status: string; +} +export interface FindSentenceBoundariesHeaderParam { + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} +export interface FindSentenceBoundariesHeaders { + 'X-ClientTraceId'?: string; +} +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; +export interface FindSentenceBoundariesQueryParam { + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} +export interface FindSentenceBoundariesQueryParamProperties { + language?: string; + script?: string; +} +export interface GetLanguagesLatest { + getxxx(options?: GetLanguagesParameters): StreamableMethod; +} +export interface GetLanguages200Headers { + 'x-requestid': string; + etag: string; +} +export interface GetLanguages200Response extends HttpResponse { + body: GetLanguagesResultOutput; + headers: RawHttpHeaders & GetLanguages200Headers; + status: '200'; +} +export interface GetLanguagesDefaultHeaders { + 'x-requestid': string; +} +export interface GetLanguagesDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; + status: string; +} +export interface GetLanguagesHeaderParam { + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} +export interface GetLanguagesHeaders { + 'Accept-Language'?: string; + 'If-None-Match'?: string; + 'X-ClientTraceId'?: string; +} +export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; +export interface GetLanguagesQueryParam { + queryParameters?: GetLanguagesQueryParamProperties; +} +export interface GetLanguagesQueryParamProperties { + scope?: string; +} +export interface GetLanguagesResultOutput { + dictionary?: Record; + translation?: Record; + transliteration?: Record; +} +export interface InputTextItem { + text: string; +} +export declare function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; +export declare function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; +export declare function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; +export declare function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; +export declare function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; +export declare function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; +export interface LookupDictionaryEntries { + post(options: LookupDictionaryEntriesParameters): StreamableMethod; +} +export interface LookupDictionaryEntries200Headers { + 'x-requestid': string; +} +export interface LookupDictionaryEntries200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; + status: '200'; +} +export interface LookupDictionaryEntriesBodyParam { + body: Array; +} +export interface LookupDictionaryEntriesDefaultHeaders { + 'x-requestid': string; +} +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; + status: string; +} +export interface LookupDictionaryEntriesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} +export interface LookupDictionaryEntriesHeaders { + 'X-ClientTraceId'?: string; +} +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; +export interface LookupDictionaryEntriesQueryParam { + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} +export interface LookupDictionaryEntriesQueryParamProperties { + from: string; + to: string; +} +export interface LookupDictionaryExamples { + post(options: LookupDictionaryExamplesParameters): StreamableMethod; +} +export interface LookupDictionaryExamples200Headers { + 'x-requestid': string; +} +export interface LookupDictionaryExamples200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; + status: '200'; +} +export interface LookupDictionaryExamplesBodyParam { + body: Array; +} +export interface LookupDictionaryExamplesDefaultHeaders { + 'x-requestid': string; +} +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; + status: string; +} +export interface LookupDictionaryExamplesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} +export interface LookupDictionaryExamplesHeaders { + 'X-ClientTraceId'?: string; +} +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; +export interface LookupDictionaryExamplesQueryParam { + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} +export interface LookupDictionaryExamplesQueryParamProperties { + from: string; + to: string; +} +export interface Routes { + (path: '/languages'): GetLanguagesLatest; + (path: '/translate'): Translate; + (path: '/transliterate'): Transliterate; + (path: '/breaksentence'): FindSentenceBoundaries; + (path: '/dictionary/lookup'): LookupDictionaryEntries; + (path: '/dictionary/examples'): LookupDictionaryExamples; +} +export interface SentenceLengthOutput { + srcSentLen: number[]; + transSentLen: number[]; +} +export interface SourceDictionaryLanguageOutput { + dir: string; + name: string; + nativeName: string; + translations: Array; +} +export interface SourceTextOutput { + text: string; +} +export interface TargetDictionaryLanguageOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} +export type TextTranslationClient = Client & { + path: Routes; +}; +export interface Translate { + post(options: TranslateParameters): StreamableMethod; +} +export interface Translate200Headers { + 'x-metered-usage': number; + 'x-mt-system': string; + 'x-requestid': string; +} +export interface Translate200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & Translate200Headers; + status: '200'; +} +export interface TranslateBodyParam { + body: Array; +} +export interface TranslateDefaultHeaders { + 'x-requestid': string; +} +export interface TranslateDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & TranslateDefaultHeaders; + status: string; +} +export interface TranslatedTextAlignmentOutput { + proj: string; +} +export interface TranslatedTextItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sourceText?: SourceTextOutput; + translations: Array; +} +export interface TranslateHeaderParam { + headers?: RawHttpHeadersInput & TranslateHeaders; +} +export interface TranslateHeaders { + 'X-ClientTraceId'?: string; +} +export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; +export interface TranslateQueryParam { + queryParameters: TranslateQueryParamProperties; +} +export interface TranslateQueryParamProperties { + allowFallback?: boolean; + category?: string; + from?: string; + fromScript?: string; + includeAlignment?: boolean; + includeSentenceLength?: boolean; + profanityAction?: string; + profanityMarker?: string; + suggestedFrom?: string; + textType?: string; + to: string; + toScript?: string; +} +export interface TranslationLanguageOutput { + dir: string; + name: string; + nativeName: string; +} +export interface TranslationOutput { + alignment?: TranslatedTextAlignmentOutput; + sentLen?: SentenceLengthOutput; + text: string; + to: string; + transliteration?: TransliteratedTextOutput; +} +export interface TranslatorCredential { + key: string; + region: string; +} +export interface TranslatorTokenCredential { + azureResourceId: string; + region: string; + tokenCredential: TokenCredential; +} +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + toScripts: Array; +} +export interface Transliterate { + post(options: TransliterateParameters): StreamableMethod; +} +export interface Transliterate200Headers { + 'x-requestid': string; +} +export interface Transliterate200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & Transliterate200Headers; + status: '200'; +} +export interface TransliterateBodyParam { + body: Array; +} +export interface TransliterateDefaultHeaders { + 'x-requestid': string; +} +export interface TransliterateDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & TransliterateDefaultHeaders; + status: string; +} +export interface TransliteratedTextOutput { + script: string; + text: string; +} +export interface TransliterateHeaderParam { + headers?: RawHttpHeadersInput & TransliterateHeaders; +} +export interface TransliterateHeaders { + 'X-ClientTraceId'?: string; +} +export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; +export interface TransliterateQueryParam { + queryParameters: TransliterateQueryParamProperties; +} +export interface TransliterateQueryParamProperties { + fromScript: string; + language: string; + toScript: string; +} +export interface TransliterationLanguageOutput { + name: string; + nativeName: string; + scripts: Array; +} +//# sourceMappingURL=ai-translation-text.api.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts.map new file mode 100644 index 00000000000..682d6a5537e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ai-translation-text.api.d.ts","sourceRoot":"","sources":["ai-translation-text.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,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AAuB;IAEtC,eAAe,EAAE,iCAAiC,CAAC;CACpD;AAGD,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC5C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js new file mode 100644 index 00000000000..2ac1b52518b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = createClient; +// (No @packageDocumentation comment for this package) +//# sourceMappingURL=ai-translation-text.api.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js.map new file mode 100644 index 00000000000..84b305cbe85 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ai-translation-text.api.js","sourceRoot":"","sources":["ai-translation-text.api.ts"],"names":[],"mappings":";;AAyCA,kBAAe,YAAY,CAAC;AAsnB5B,sDAAsD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md new file mode 100644 index 00000000000..73254703a10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md @@ -0,0 +1,649 @@ +## API Report File for "@azure-rest/ai-translation-text" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { KeyCredential } from '@azure/core-auth'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; + +// @public +export interface BackTranslationOutput { + displayText: string; + frequencyCount: number; + normalizedText: string; + numExamples: number; +} + +// @public +export interface BreakSentenceItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sentLen: number[]; +} + +// @public (undocumented) +export function buildMultiCollection(items: string[], parameterName: string): string; + +// @public +export interface CommonScriptModelOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} + +// @public +function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; +export default createClient; + +// @public +export interface DetectedLanguageOutput { + language: string; + score: number; +} + +// @public +export interface DictionaryExampleItemOutput { + examples: Array; + normalizedSource: string; + normalizedTarget: string; +} + +// @public +export interface DictionaryExampleOutput { + sourcePrefix: string; + sourceSuffix: string; + sourceTerm: string; + targetPrefix: string; + targetSuffix: string; + targetTerm: string; +} + +// @public +export interface DictionaryExampleTextItem extends InputTextItem { + translation: string; +} + +// @public +export interface DictionaryLookupItemOutput { + displaySource: string; + normalizedSource: string; + translations: Array; +} + +// @public +export interface DictionaryTranslationOutput { + backTranslations: Array; + confidence: number; + displayTarget: string; + normalizedTarget: string; + posTag: string; + prefixWord: string; +} + +// @public +export interface ErrorDetailsOutput { + code: number; + message: string; +} + +// @public +export interface ErrorResponseOutput { + error: ErrorDetailsOutput; +} + +// @public (undocumented) +export interface FindSentenceBoundaries { + post(options: FindSentenceBoundariesParameters): StreamableMethod; +} + +// @public (undocumented) +export interface FindSentenceBoundaries200Headers { + "x-requestid": string; +} + +// @public +export interface FindSentenceBoundaries200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface FindSentenceBoundariesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface FindSentenceBoundariesDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface FindSentenceBoundariesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} + +// @public (undocumented) +export interface FindSentenceBoundariesHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; + +// @public (undocumented) +export interface FindSentenceBoundariesQueryParam { + // (undocumented) + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} + +// @public (undocumented) +export interface FindSentenceBoundariesQueryParamProperties { + language?: string; + script?: string; +} + +// @public (undocumented) +export interface GetLanguages { + get(optionsAxxx?: GetLanguagesParameters): StreamableMethod; + +} + +// @public (undocumented) +export interface GetLanguages200Headers { + "x-requestid": string; + etag: string; +} + +// @public +export interface GetLanguages200Response extends HttpResponse { + // (undocumented) + body: GetLanguagesResultOutput; + // (undocumented) + headers: RawHttpHeaders & GetLanguages200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface GetLanguagesDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface GetLanguagesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface GetLanguagesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} + +// @public (undocumented) +export interface GetLanguagesHeaders { + "Accept-Language"?: string; + "If-None-Match"?: string; + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; + +// @public (undocumented) +export interface GetLanguagesQueryParam { + // (undocumented) + queryParameters?: GetLanguagesQueryParamProperties; + testFunc(s:string): number + hehe: (c:number)=> string +} + +// @public (undocumented) +export interface GetLanguagesQueryParamProperties { + scope?: string; +} + +// @public +export interface GetLanguagesResultOutput { + dictionary?: Record; + translation?: Record; + transliteration?: Record; +} + +// @public +export interface InputTextItem { + text: string; +} + +// @public (undocumented) +export function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; + +// @public (undocumented) +export interface LookupDictionaryEntries { + post(options: LookupDictionaryEntriesParameters): StreamableMethod; +} + +// @public (undocumented) +export interface LookupDictionaryEntries200Headers { + "x-requestid": string; +} + +// @public +export interface LookupDictionaryEntries200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; + +// @public (undocumented) +export interface LookupDictionaryEntriesQueryParam { + // (undocumented) + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesQueryParamProperties { + from: string; + to: string; +} + +// @public (undocumented) +export interface LookupDictionaryExamples { + post(options: LookupDictionaryExamplesParameters): StreamableMethod; +} + +// @public (undocumented) +export interface LookupDictionaryExamples200Headers { + "x-requestid": string; +} + +// @public +export interface LookupDictionaryExamples200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; + +// @public (undocumented) +export interface LookupDictionaryExamplesQueryParam { + // (undocumented) + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesQueryParamProperties { + from: string; + to: string; +} + +// @public (undocumented) +export interface Routes { + (path: "/languages"): GetLanguages; + (path: "/translate"): Translate; + (path: "/transliterate"): Transliterate; + (path: "/breaksentence"): FindSentenceBoundaries; + (path: "/dictionary/lookup"): LookupDictionaryEntries; + (path: "/dictionary/examples"): LookupDictionaryExamples; +} + +// @public +export interface SentenceLengthOutput { + srcSentLen: number[]; + transSentLen: number[]; +} + +// @public +export interface SourceDictionaryLanguageOutput { + dir: string; + name: string; + nativeName: string; + translations: Array; +} + +// @public +export interface SourceTextOutput { + text: string; +} + +// @public +export interface TargetDictionaryLanguageOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} + +// @public (undocumented) +export type TextTranslationClient = Client & { + path: Routes; +}; + +// @public (undocumented) +export interface Translate { + post(options: TranslateParameters): StreamableMethod; +} + +// @public (undocumented) +export interface Translate200Headers { + "x-metered-usage": number; + "x-mt-system": string; + "x-requestid": string; +} + +// @public +export interface Translate200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & Translate200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface TranslateBodyParam { + body: Array; +} + +// @public (undocumented) +export interface TranslateDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface TranslateDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & TranslateDefaultHeaders; + // (undocumented) + status: string; +} + +// @public +export interface TranslatedTextAlignmentOutput { + proj: string; +} + +// @public +export interface TranslatedTextItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sourceText?: SourceTextOutput; + translations: Array; +} + +// @public (undocumented) +export interface TranslateHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & TranslateHeaders; +} + +// @public (undocumented) +export interface TranslateHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; + +// @public (undocumented) +export interface TranslateQueryParam { + // (undocumented) + queryParameters: TranslateQueryParamProperties; +} + +// @public (undocumented) +export interface TranslateQueryParamProperties { + allowFallback?: boolean; + category?: string; + from?: string; + fromScript?: string; + includeAlignment?: boolean; + includeSentenceLength?: boolean; + profanityAction?: string; + profanityMarker?: string; + suggestedFrom?: string; + textType?: string; + to: string; + toScript?: string; +} + +// @public +export interface TranslationLanguageOutput { + dir: string; + name: string; + nativeName: string; +} + +// @public +export interface TranslationOutput { + alignment?: TranslatedTextAlignmentOutput; + sentLen?: SentenceLengthOutput; + text: string; + to: string; + transliteration?: TransliteratedTextOutput; +} + +// @public (undocumented) +export interface TranslatorCredential { + // (undocumented) + key: string; + // (undocumented) + region: string; +} + +// @public (undocumented) +export interface TranslatorTokenCredential { + // (undocumented) + azureResourceId: string; + // (undocumented) + region: string; + // (undocumented) + tokenCredential: TokenCredential; +} + +// @public +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + toScripts: Array; +} + +// @public (undocumented) +export interface Transliterate { + post(options: TransliterateParameters): StreamableMethod; +} + +// @public (undocumented) +export interface Transliterate200Headers { + "x-requestid": string; +} + +// @public +export interface Transliterate200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & Transliterate200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface TransliterateBodyParam { + body: Array; +} + +// @public (undocumented) +export interface TransliterateDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface TransliterateDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & TransliterateDefaultHeaders; + // (undocumented) + status: string; +} + +// @public +export interface TransliteratedTextOutput { + script: string; + text: string; +} + +// @public (undocumented) +export interface TransliterateHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & TransliterateHeaders; +} + +// @public (undocumented) +export interface TransliterateHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; + +// @public (undocumented) +export interface TransliterateQueryParam { + // (undocumented) + queryParameters: TransliterateQueryParamProperties; +} + +// @public (undocumented) +export interface TransliterateQueryParamProperties { + fromScript: string; + language: string; + toScript: string; +} + +// @public +export interface TransliterationLanguageOutput { + name: string; + nativeName: string; + scripts: Array; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.ts new file mode 100644 index 00000000000..263a44763de --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.ts @@ -0,0 +1,672 @@ +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { KeyCredential } from '@azure/core-auth'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; + +// @public +export interface BackTranslationOutput { + displayText: string; + frequencyCount: number; + normalizedText: string; + numExamples: number; +} + +// @public +export interface BreakSentenceItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sentLen: number[]; +} + +// @public (undocumented) +export function buildMultiCollection(items: string[], parameterName: string): string; + +// @public +export interface CommonScriptModelOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} + +// @public +function createClient( + endpoint: undefined | string, + credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, + options?: ClientOptions +): TextTranslationClient; +export default createClient; + +// @public +export interface DetectedLanguageOutput { + language: string; + score: number; +} + +// @public +export interface DictionaryExampleItemOutput { + examples: Array; + normalizedSource: string; + normalizedTarget: string; +} + +// @public +export interface DictionaryExampleOutput { + sourcePrefix: string; + sourceSuffix: string; + sourceTerm: string; + targetPrefix: string; + targetSuffix: string; + targetTerm: string; +} + +// @public +export interface DictionaryExampleTextItem extends InputTextItem { + translation: string; +} + +// @public +export interface DictionaryLookupItemOutput { + displaySource: string; + normalizedSource: string; + translations: Array; +} + +// @public +export interface DictionaryTranslationOutput { + backTranslations: Array; + confidence: number; + displayTarget: string; + normalizedTarget: string; + posTag: string; + prefixWord: string; +} + +// @public +export interface ErrorDetailsOutput { + code: number; + message: string; +} + +// @public +export interface ErrorResponseOutput { + error: ErrorDetailsOutput; +} + +// @public (undocumented) +export interface FindSentenceBoundaries { + post( + options: FindSentenceBoundariesParameters + ): StreamableMethod; +} + +// @public (undocumented) +export interface FindSentenceBoundaries200Headers { + 'x-requestid': string; +} + +// @public +export interface FindSentenceBoundaries200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface FindSentenceBoundariesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface FindSentenceBoundariesDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface FindSentenceBoundariesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} + +// @public (undocumented) +export interface FindSentenceBoundariesHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & + FindSentenceBoundariesHeaderParam & + FindSentenceBoundariesBodyParam & + RequestParameters; + +// @public (undocumented) +export interface FindSentenceBoundariesQueryParam { + // (undocumented) + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} + +// @public (undocumented) +export interface FindSentenceBoundariesQueryParamProperties { + language?: string; + script?: string; +} + +// @public (undocumented) +export interface GetLanguagesLatest { + getxxx(options?: GetLanguagesParameters): StreamableMethod; +} + +// @public (undocumented) +export interface GetLanguages200Headers { + 'x-requestid': string; + etag: string; +} + +// @public +export interface GetLanguages200Response extends HttpResponse { + // (undocumented) + body: GetLanguagesResultOutput; + // (undocumented) + headers: RawHttpHeaders & GetLanguages200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface GetLanguagesDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface GetLanguagesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface GetLanguagesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} + +// @public (undocumented) +export interface GetLanguagesHeaders { + 'Accept-Language'?: string; + 'If-None-Match'?: string; + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; + +// @public (undocumented) +export interface GetLanguagesQueryParam { + // (undocumented) + queryParameters?: GetLanguagesQueryParamProperties; +} + +// @public (undocumented) +export interface GetLanguagesQueryParamProperties { + scope?: string; +} + +// @public +export interface GetLanguagesResultOutput { + dictionary?: Record; + translation?: Record; + transliteration?: Record; +} + +// @public +export interface InputTextItem { + text: string; +} + +// @public (undocumented) +export function isUnexpected( + response: GetLanguages200Response | GetLanguagesDefaultResponse +): response is GetLanguagesDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: Translate200Response | TranslateDefaultResponse +): response is TranslateDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: Transliterate200Response | TransliterateDefaultResponse +): response is TransliterateDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse +): response is FindSentenceBoundariesDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse +): response is LookupDictionaryEntriesDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse +): response is LookupDictionaryExamplesDefaultResponse; + +// @public (undocumented) +export interface LookupDictionaryEntries { + post( + options: LookupDictionaryEntriesParameters + ): StreamableMethod; +} + +// @public (undocumented) +export interface LookupDictionaryEntries200Headers { + 'x-requestid': string; +} + +// @public +export interface LookupDictionaryEntries200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & + LookupDictionaryEntriesHeaderParam & + LookupDictionaryEntriesBodyParam & + RequestParameters; + +// @public (undocumented) +export interface LookupDictionaryEntriesQueryParam { + // (undocumented) + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesQueryParamProperties { + from: string; + to: string; +} + +// @public (undocumented) +export interface LookupDictionaryExamples { + post( + options: LookupDictionaryExamplesParameters + ): StreamableMethod; +} + +// @public (undocumented) +export interface LookupDictionaryExamples200Headers { + 'x-requestid': string; +} + +// @public +export interface LookupDictionaryExamples200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & + LookupDictionaryExamplesHeaderParam & + LookupDictionaryExamplesBodyParam & + RequestParameters; + +// @public (undocumented) +export interface LookupDictionaryExamplesQueryParam { + // (undocumented) + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesQueryParamProperties { + from: string; + to: string; +} + +// @public (undocumented) +export interface Routes { + (path: '/languages'): GetLanguagesLatest; + (path: '/translate'): Translate; + (path: '/transliterate'): Transliterate; + (path: '/breaksentence'): FindSentenceBoundaries; + (path: '/dictionary/lookup'): LookupDictionaryEntries; + (path: '/dictionary/examples'): LookupDictionaryExamples; +} + +// @public +export interface SentenceLengthOutput { + srcSentLen: number[]; + transSentLen: number[]; +} + +// @public +export interface SourceDictionaryLanguageOutput { + dir: string; + name: string; + nativeName: string; + translations: Array; +} + +// @public +export interface SourceTextOutput { + text: string; +} + +// @public +export interface TargetDictionaryLanguageOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} + +// @public (undocumented) +export type TextTranslationClient = Client & { + path: Routes; +}; + +// @public (undocumented) +export interface Translate { + post(options: TranslateParameters): StreamableMethod; +} + +// @public (undocumented) +export interface Translate200Headers { + 'x-metered-usage': number; + 'x-mt-system': string; + 'x-requestid': string; +} + +// @public +export interface Translate200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & Translate200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface TranslateBodyParam { + body: Array; +} + +// @public (undocumented) +export interface TranslateDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface TranslateDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & TranslateDefaultHeaders; + // (undocumented) + status: string; +} + +// @public +export interface TranslatedTextAlignmentOutput { + proj: string; +} + +// @public +export interface TranslatedTextItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sourceText?: SourceTextOutput; + translations: Array; +} + +// @public (undocumented) +export interface TranslateHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & TranslateHeaders; +} + +// @public (undocumented) +export interface TranslateHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; + +// @public (undocumented) +export interface TranslateQueryParam { + // (undocumented) + queryParameters: TranslateQueryParamProperties; +} + +// @public (undocumented) +export interface TranslateQueryParamProperties { + allowFallback?: boolean; + category?: string; + from?: string; + fromScript?: string; + includeAlignment?: boolean; + includeSentenceLength?: boolean; + profanityAction?: string; + profanityMarker?: string; + suggestedFrom?: string; + textType?: string; + to: string; + toScript?: string; +} + +// @public +export interface TranslationLanguageOutput { + dir: string; + name: string; + nativeName: string; +} + +// @public +export interface TranslationOutput { + alignment?: TranslatedTextAlignmentOutput; + sentLen?: SentenceLengthOutput; + text: string; + to: string; + transliteration?: TransliteratedTextOutput; +} + +// @public (undocumented) +export interface TranslatorCredential { + // (undocumented) + key: string; + // (undocumented) + region: string; +} + +// @public (undocumented) +export interface TranslatorTokenCredential { + // (undocumented) + azureResourceId: string; + // (undocumented) + region: string; + // (undocumented) + tokenCredential: TokenCredential; +} + +// @public +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + toScripts: Array; +} + +// @public (undocumented) +export interface Transliterate { + post(options: TransliterateParameters): StreamableMethod; +} + +// @public (undocumented) +export interface Transliterate200Headers { + 'x-requestid': string; +} + +// @public +export interface Transliterate200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & Transliterate200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface TransliterateBodyParam { + body: Array; +} + +// @public (undocumented) +export interface TransliterateDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface TransliterateDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & TransliterateDefaultHeaders; + // (undocumented) + status: string; +} + +// @public +export interface TransliteratedTextOutput { + script: string; + text: string; +} + +// @public (undocumented) +export interface TransliterateHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & TransliterateHeaders; +} + +// @public (undocumented) +export interface TransliterateHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type TransliterateParameters = TransliterateQueryParam & + TransliterateHeaderParam & + TransliterateBodyParam & + RequestParameters; + +// @public (undocumented) +export interface TransliterateQueryParam { + // (undocumented) + queryParameters: TransliterateQueryParamProperties; +} + +// @public (undocumented) +export interface TransliterateQueryParamProperties { + fromScript: string; + language: string; + toScript: string; +} + +// @public +export interface TransliterationLanguageOutput { + name: string; + nativeName: string; + scripts: Array; +} + +// (No @packageDocumentation comment for this package) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/sample.env new file mode 100644 index 00000000000..bbdd64c0b36 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/sample.env @@ -0,0 +1,6 @@ +# Used in most samples. +# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource + +ENDPOINT="https://api.cognitive.microsofttranslator.com" +TEXT_TRANSLATOR_API_KEY="" +TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts new file mode 100644 index 00000000000..8ac71201fdf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=breakSentence.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts.map new file mode 100644 index 00000000000..df31e896ce6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentence.d.ts","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA0BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js new file mode 100644 index 00000000000..b49b3b00b30 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js @@ -0,0 +1,42 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Get Sentence Boundaries sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=breakSentence.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js.map new file mode 100644 index 00000000000..b0cdc51b795 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentence.js","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC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C,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.ts new file mode 100644 index 00000000000..25bf03b92b0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.ts @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Get Sentence Boundaries sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + }, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts new file mode 100644 index 00000000000..46395b61b7b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=breakSentenceWithAutoDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map new file mode 100644 index 00000000000..ac9b0b74586 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceWithAutoDetection.d.ts","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js new file mode 100644 index 00000000000..92853eb2f10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js @@ -0,0 +1,39 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log(`Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=breakSentenceWithAutoDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js.map new file mode 100644 index 00000000000..4de54a56b3c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceWithAutoDetection.js","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,gDAAgD,EAAE,CAAC,CAAC;IAChG,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CACT,yCAAyC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,aAAa,EAAE,gBAAgB,EAAE,KAAK,GAAG,CAC5I,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.ts new file mode 100644 index 00000000000..9489d2b0cca --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.ts @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log( + `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts new file mode 100644 index 00000000000..59d56de8ab2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=dictionaryExamples.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts.map new file mode 100644 index 00000000000..9cefa824488 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamples.d.ts","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js new file mode 100644 index 00000000000..edc47cdbf20 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js @@ -0,0 +1,44 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Dictionary Examples sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log(`For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`); + const firstExample = dictionaryExample?.examples[0]; + console.log(`Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=dictionaryExamples.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js.map new file mode 100644 index 00000000000..d3583ee7dda --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamples.js","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAkCC;;AAlDD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;IACvF,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;QACnF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IACnD,KAAK,MAAM,iBAAiB,IAAI,kBAAkB,EAAE,CAAC;QACnD,OAAO,CAAC,GAAG,CACT,uBAAuB,iBAAiB,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CACpG,CAAC;QACF,MAAM,YAAY,GAAG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CACT,aACE,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,GAAG,YAAY,CAAC,YACrE,IAAI,CACL,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.ts new file mode 100644 index 00000000000..6915fa3eadf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.ts @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +import TextTranslationClient, { + TranslatorCredential, + DictionaryExampleTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Dictionary Examples sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log( + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`, + ); + const firstExample = dictionaryExample?.examples[0]; + console.log( + `Example: '${ + firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix + }'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts new file mode 100644 index 00000000000..38085ada4f0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=dictionaryLookup.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts.map new file mode 100644 index 00000000000..e8b3ef4c552 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookup.d.ts","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js new file mode 100644 index 00000000000..2adb58859fa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Dictionary Lookup sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log(`For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`); + console.log(`First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=dictionaryLookup.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js.map new file mode 100644 index 00000000000..52dad93060a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookup.js","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA+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AAkB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,CAClI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.ts new file mode 100644 index 00000000000..744810e487f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Dictionary Lookup sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log( + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`, + ); + console.log( + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts new file mode 100644 index 00000000000..1b28d1fcf9d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguages.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts.map new file mode 100644 index 00000000000..c230d0b8b01 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguages.d.ts","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":"AAaA,wBAAsB,IAAI,kBAyCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js new file mode 100644 index 00000000000..a56da0cc003 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js @@ -0,0 +1,47 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== List supported languages sample =="); + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguages.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js.map new file mode 100644 index 00000000000..bff46b9b848 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguages.js","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAYlC,oBAyCC;;AAnDD;;GAEG;AACH,+FAAsF;AAEtF,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IAErD,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC;IAEtE,IAAI,IAAA,kCAAY,EAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;IAEpC,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QAC1B,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;YACxC,MAAM,mBAAmB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,mBAAmB,CAAC,IAAI,KAAK,mBAAmB,CAAC,UAAU,GAAG,CAClF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC1C,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;YAC5C,MAAM,uBAAuB,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YAC/D,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.ts new file mode 100644 index 00000000000..967dca702bd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.ts @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +import TextTranslationClient, { isUnexpected } from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== List supported languages sample =="); + + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts new file mode 100644 index 00000000000..ed7bea4503f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguagesAcceptLanguage.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map new file mode 100644 index 00000000000..af9fb2c2660 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesAcceptLanguage.d.ts","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js new file mode 100644 index 00000000000..8882b61cc14 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js @@ -0,0 +1,60 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== List supported localized languages sample =="); + const parameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguagesAcceptLanguage.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js.map new file mode 100644 index 00000000000..9023ebd2fa3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesAcceptLanguage.js","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA8CC;;AAnED;;;;;;;;;;GAUG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IAE/D,MAAM,UAAU,GAA2B;QACzC,OAAO,EAAE;YACP,iBAAiB,EAAE,IAAI;SACxB;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAEhF,IAAI,IAAA,kCAAY,EAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;IAEpC,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QAC1B,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;YACxC,MAAM,mBAAmB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,mBAAmB,CAAC,IAAI,KAAK,mBAAmB,CAAC,UAAU,GAAG,CAClF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC1C,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;YAC5C,MAAM,uBAAuB,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YAC/D,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.ts new file mode 100644 index 00000000000..c4308cba4fa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.ts @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +import TextTranslationClient, { + GetLanguagesParameters, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== List supported localized languages sample =="); + + const parameters: GetLanguagesParameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts new file mode 100644 index 00000000000..98558a23465 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguagesScope.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts.map new file mode 100644 index 00000000000..7f9105369a8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesScope.d.ts","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":"AAiBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js new file mode 100644 index 00000000000..5770ac410ee --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js @@ -0,0 +1,53 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== Scoped list supported languages sample =="); + const parameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguagesScope.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js.map new file mode 100644 index 00000000000..66dbd0e2619 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesScope.js","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,oBA8CC;;AA5DD;;;GAGG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;IAE5D,MAAM,UAAU,GAA2B;QACzC,eAAe,EAAE;YACf,KAAK,EAAE,aAAa;SACrB;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAEhF,IAAI,IAAA,kCAAY,EAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;IAEpC,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QAC1B,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;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cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.ts new file mode 100644 index 00000000000..48dfedbcbd5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +import TextTranslationClient, { + GetLanguagesParameters, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== Scoped list supported languages sample =="); + + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts new file mode 100644 index 00000000000..ca9270ec452 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts.map new file mode 100644 index 00000000000..229efa7bfc3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js new file mode 100644 index 00000000000..6c274972987 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Simple translate sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js.map new file mode 100644 index 00000000000..2c94ae1a104 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translate.js","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA4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,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.ts new file mode 100644 index 00000000000..2435f494285 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.ts @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Simple translate sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts new file mode 100644 index 00000000000..ea5d8818b27 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateAlignments.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts.map new file mode 100644 index 00000000000..a7eecca3e64 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateAlignments.d.ts","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js new file mode 100644 index 00000000000..f0c782f63ba --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with alignments sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + includeAlignment: true, + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateAlignments.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js.map new file mode 100644 index 00000000000..ef8aa72abe2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js.map @@ -0,0 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4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,eAAe,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.ts new file mode 100644 index 00000000000..9baf6597850 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.ts @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with alignments sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeAlignment: true, + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts new file mode 100644 index 00000000000..422ffa713bc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateCustom.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts.map new file mode 100644 index 00000000000..0ed2b1e3897 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateCustom.d.ts","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":"AAgCA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js new file mode 100644 index 00000000000..e65f78b5cb2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js @@ -0,0 +1,56 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Custom translator sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateCustom.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js.map new file mode 100644 index 00000000000..bd33a66bce7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateCustom.js","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA+BlC,oBA6BC;;AA1DD;;;;;;;;;;;;;;;GAeG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,wBAAwB;SACnC;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.ts new file mode 100644 index 00000000000..83159f47a36 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.ts @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Custom translator sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts new file mode 100644 index 00000000000..0ba089d6c6d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts.map new file mode 100644 index 00000000000..2d0633e31c3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDetection.d.ts","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js new file mode 100644 index 00000000000..aa0eaa87bfb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translate sample with auto-detection =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js.map new file mode 100644 index 00000000000..5b4853ce1d2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js.map @@ -0,0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,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.ts new file mode 100644 index 00000000000..cf5c1a18836 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translate sample with auto-detection =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts new file mode 100644 index 00000000000..46a59fbb822 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateDictionary.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts.map new file mode 100644 index 00000000000..fe1315d3161 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDictionary.d.ts","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBAgCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js new file mode 100644 index 00000000000..4b3b88ec19d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js @@ -0,0 +1,50 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with Dictionary sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateDictionary.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js.map new file mode 100644 index 00000000000..280daea0a5b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDictionary.js","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBAgCC;;AArDD;;;;;;GAMG;AACH,+FAKyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,8GAA8G;SACrH;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAkC,CAAC;IAC1E,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.ts new file mode 100644 index 00000000000..23eb715449d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.ts @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + TranslatedTextItemOutput, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with Dictionary sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body as TranslatedTextItemOutput[]; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts new file mode 100644 index 00000000000..8c46b39a007 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateMultipleSources.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts.map new file mode 100644 index 00000000000..7e58386a959 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleSources.d.ts","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js new file mode 100644 index 00000000000..f6305d2dac4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Multiple input texts =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateMultipleSources.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js.map new file mode 100644 index 00000000000..9ed0f68240a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleSources.js","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAkCC;;AApDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC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/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.ts new file mode 100644 index 00000000000..ffb5a49f6f7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Multiple input texts =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts new file mode 100644 index 00000000000..6ea17a78854 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateMultipleTargets.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts.map new file mode 100644 index 00000000000..a6396d325a8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleTargets.d.ts","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js new file mode 100644 index 00000000000..10c96dfa31c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Multiple target languages translation =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log(`Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateMultipleTargets.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js.map new file mode 100644 index 00000000000..76af26b4c51 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultiple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AAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CACxI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.ts new file mode 100644 index 00000000000..20c00ed4e0e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Multiple target languages translation =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log( + `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`, + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts new file mode 100644 index 00000000000..2f2ee0dd031 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateNoTranslate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts.map new file mode 100644 index 00000000000..2404b76f4cf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateNoTranslate.d.ts","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":"AAsBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js new file mode 100644 index 00000000000..8b32d6d99f9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js @@ -0,0 +1,50 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Marking text input with notranslate div sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateNoTranslate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js.map new file mode 100644 index 00000000000..db319151a15 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateNoTranslate.js","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,oBAiCC;;AApDD;;;;;GAKG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,gGAAgG;SACvG;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.ts new file mode 100644 index 00000000000..d505a78ba34 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Marking text input with notranslate div sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts new file mode 100644 index 00000000000..e14e29acf78 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateProfanity.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts.map new file mode 100644 index 00000000000..f3e2a1e7759 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateProfanity.d.ts","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js new file mode 100644 index 00000000000..38b2df5500d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js @@ -0,0 +1,55 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Profanity handling sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateProfanity.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js.map new file mode 100644 index 00000000000..44bc88452d5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateProfanity.js","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,oBA8BC;;AAzDD;;;;;;;;;;;;;GAaG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAE/C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;IAC9D,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,eAAe,EAAE,QAAQ;YACzB,eAAe,EAAE,UAAU;SAC5B;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.ts new file mode 100644 index 00000000000..aa126e6baf7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.ts @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Profanity handling sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts new file mode 100644 index 00000000000..101a5c995c7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateSenteceLength.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts.map new file mode 100644 index 00000000000..01bac3ad5f9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateSenteceLength.d.ts","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBAwCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js new file mode 100644 index 00000000000..513ee83a89a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with sentence boundaries sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { text: "The answer lies in machine translation. This is a test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + includeSentenceLength: true, + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`); + console.log(`Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateSenteceLength.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js.map new file mode 100644 index 00000000000..41f4b02e087 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateSenteceLength.js","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBAwCC;;AAzDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAEjE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC,EAAE,IAAI,EAAE,yDAAyD,EAAE;KACpE,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,qBAAqB,EAAE,IAAI;SAC5B;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,0BAA0B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzF,CAAC;QACF,OAAO,CAAC,GAAG,CACT,8BAA8B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,CACpF,IAAI,CACL,EAAE,CACJ,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.ts new file mode 100644 index 00000000000..972f4358725 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.ts @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with sentence boundaries sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { text: "The answer lies in machine translation. This is a test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeSentenceLength: true, + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + console.log( + `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`, + ); + console.log( + `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join( + ", ", + )}`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts new file mode 100644 index 00000000000..a49db19b58c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateTextType.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts.map new file mode 100644 index 00000000000..96e60f5f1ac --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTextType.d.ts","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js new file mode 100644 index 00000000000..cec1465ff75 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js @@ -0,0 +1,44 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== HTML translation sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateTextType.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js.map new file mode 100644 index 00000000000..8be705bbc2d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTextType.js","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC,CAAC;IAClG,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.ts new file mode 100644 index 00000000000..51609a95895 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== HTML translation sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts new file mode 100644 index 00000000000..8badf54b60c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateWithTransliteration.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts.map new file mode 100644 index 00000000000..9cdf4041fe0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateWithTransliteration.d.ts","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js new file mode 100644 index 00000000000..0a3687846eb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translate with transliteration sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateWithTransliteration.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js.map new file mode 100644 index 00000000000..e95b73d5244 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateWithTransliteration.js","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC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CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,wBAAwB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,MAAM,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CACzI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.ts new file mode 100644 index 00000000000..c3f0471edec --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translate with transliteration sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + console.log( + `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts new file mode 100644 index 00000000000..f30e7d0aa84 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=transliterate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts.map new file mode 100644 index 00000000000..0267960e3ab --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterate.d.ts","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js new file mode 100644 index 00000000000..1407a2020a9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Simple transliterate sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(transliterateResponse)) { + throw transliterateResponse.body.error; + } + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log(`Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=transliterate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js.map new file mode 100644 index 00000000000..270c70974e8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterate.js","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBA6BC;;AA/CD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IAEjD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxD,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAChD,KAAK,MAAM,eAAe,IAAI,YAAY,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CACT,qCAAqC,eAAe,EAAE,MAAM,mCAAmC,eAAe,EAAE,IAAI,IAAI,CACzH,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.ts new file mode 100644 index 00000000000..555211ce1ed --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Simple transliterate sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }, + }); + + if (isUnexpected(transliterateResponse)) { + throw transliterateResponse.body.error; + } + + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log( + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/README.md new file mode 100644 index 00000000000..f2d5d882288 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/README.md @@ -0,0 +1,102 @@ +--- +page_type: sample +languages: + - javascript +products: + - azure + - azure-cognitive-services + - azure-translator +urlFragment: ai-translation-text-javascript-beta +--- + +# Azure Text Translation Service client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for Azure Text Translation Service in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [breakSentence.js][breaksentence] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | +| [breakSentenceWithAutoDetection.js][breaksentencewithautodetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | +| [dictionaryExamples.js][dictionaryexamples] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. | +| [dictionaryLookup.js][dictionarylookup] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. | +| [getLanguages.js][getlanguages] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages | +| [getLanguagesAcceptLanguage.js][getlanguagesacceptlanguage] | This sample demonstrates how you can select the language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. | +| [getLanguagesScope.js][getlanguagesscope] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages for a selected scope | +| [translate.js][translate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a text which language is know to a target language. | +| [translateAlignments.js][translatealignments] | This sample demonstrates how you can ask translation service to include alignment projection from source text to translated text. | +| [translateCustom.js][translatecustom] | This sample demonstrates how You can get translations from a customized system built with Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) to this parameter to use your deployed customized system. It is possible to set `allowFalback` paramter. It specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: `true` (default) or `false`. `allowFallback=false` specifies that the translation should only use systems trained for the category specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `allowFallback=true` specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. | +| [translateDetection.js][translatedetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation without specifying the source language to a target language. | +| [translateDictionary.js][translatedictionary] | This sample demonstrates how to keep words if you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is safe only for compound nouns like proper names and product names. Note You must include the From parameter in your API translation request instead of using the autodetect feature. | +| [translateMultipleSources.js][translatemultiplesources] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a multiple text fields and each input text is in different language. | +| [translateMultipleTargets.js][translatemultipletargets] | This sample demonstrates how you can provide multiple target languages which results to each input element be translated to all target languages. | +| [translateNoTranslate.js][translatenotranslate] | This sample demonstrates how it's sometimes useful to exclude specific content from translation. You can use the attribute class=notranslate to specify content that should remain in its original language. In the following example, the content inside the first div element won't be translated, while the content in the second div element will be translated. | +| [translateProfanity.js][translateprofanity] | This sample demonstrates how to change the profanity handling during translate call. Normally the Translator service will retain profanity that is present in the source in the translation. The degree of profanity and the context that makes words profane differ between cultures, and as a result the degree of profanity in the target language may be amplified or reduced. If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, whether you want to mark profanities with appropriate tags (giving you the option to add your own post-processing), or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` and `NoAction` (default). | +| [translateSenteceLength.js][translatesentecelength] | This sample demonstrates how to you can ask translator service to include sentence boundaries for the input text and the translated text. | +| [translateTextType.js][translatetexttype] | This sample demonstrates how you can select whether the translated text is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. | +| [translateWithTransliteration.js][translatewithtransliteration] | You can combine both Translation and Transliteration in one Translate call. Your source Text can be in non-standard Script of a language as well as you can ask for non-standard Script of a target language. | +| [transliterate.js][transliterate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to convert characters or letters of a source language to the corresponding characters or letters of a target language. | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] and the following Azure resources to run these sample programs: + +- [Translator resource instance][createinstance_translatorresourceinstance] + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node breakSentence.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env ENDPOINT="" TEXT_TRANSLATOR_API_KEY="" TEXT_TRANSLATOR_REGION="" node breakSentence.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[breaksentence]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/breakSentence.js +[breaksentencewithautodetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js +[dictionaryexamples]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/dictionaryExamples.js +[dictionarylookup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/dictionaryLookup.js +[getlanguages]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguages.js +[getlanguagesacceptlanguage]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js +[getlanguagesscope]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguagesScope.js +[translate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translate.js +[translatealignments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateAlignments.js +[translatecustom]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateCustom.js +[translatedetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateDetection.js +[translatedictionary]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateDictionary.js +[translatemultiplesources]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateMultipleSources.js +[translatemultipletargets]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateMultipleTargets.js +[translatenotranslate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateNoTranslate.js +[translateprofanity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateProfanity.js +[translatesentecelength]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateSenteceLength.js +[translatetexttype]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateTextType.js +[translatewithtransliteration]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateWithTransliteration.js +[transliterate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/transliterate.js +[apiref]: https://learn.microsoft.com/azure/cognitive-services/translator/translator-text-apis +[freesub]: https://azure.microsoft.com/free/ +[createinstance_translatorresourceinstance]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentence.js new file mode 100644 index 00000000000..0fdf418a4e0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentence.js @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Get Sentence Boundaries sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + }, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js new file mode 100644 index 00000000000..ae2daf40df9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log( + `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryExamples.js new file mode 100644 index 00000000000..138cce1631b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryExamples.js @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Dictionary Examples sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log( + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` + ); + const firstExample = dictionaryExample?.examples[0]; + console.log( + `Example: '${ + firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix + }'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryLookup.js new file mode 100644 index 00000000000..310dd2f32cc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryLookup.js @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Dictionary Lookup sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log( + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` + ); + console.log( + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguages.js new file mode 100644 index 00000000000..109f6ce9d1b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguages.js @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +async function main() { + console.log("== List supported languages sample =="); + + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js new file mode 100644 index 00000000000..fdf0ef88070 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +async function main() { + console.log("== List supported localized languages sample =="); + + const parameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesScope.js new file mode 100644 index 00000000000..b57284b0641 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesScope.js @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +async function main() { + console.log("== Scoped list supported languages sample =="); + + const parameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/package.json new file mode 100644 index 00000000000..098fe4457ed --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/package.json @@ -0,0 +1,34 @@ +{ + "name": "@azure-samples/ai-translation-text-js-beta", + "private": true, + "version": "1.0.0", + "description": "Azure Text Translation Service client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/translation/ai-translation-text-rest" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic", + "translate", + "translation" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest", + "dependencies": { + "@azure-rest/ai-translation-text": "next", + "dotenv": "latest" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/sample.env new file mode 100644 index 00000000000..bbdd64c0b36 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/sample.env @@ -0,0 +1,6 @@ +# Used in most samples. +# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource + +ENDPOINT="https://api.cognitive.microsofttranslator.com" +TEXT_TRANSLATOR_API_KEY="" +TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translate.js new file mode 100644 index 00000000000..f4d795baa37 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translate.js @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Simple translate sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateAlignments.js new file mode 100644 index 00000000000..ee42daa6ac0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateAlignments.js @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translation with alignments sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeAlignment: true, + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateCustom.js new file mode 100644 index 00000000000..082d3a513ec --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateCustom.js @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Custom translator sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDetection.js new file mode 100644 index 00000000000..b541067de92 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDetection.js @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translate sample with auto-detection =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDictionary.js new file mode 100644 index 00000000000..c131b01bf0d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDictionary.js @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translation with Dictionary sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleSources.js new file mode 100644 index 00000000000..3eb730c9ebe --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleSources.js @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Multiple input texts =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleTargets.js new file mode 100644 index 00000000000..1fd4a111e66 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleTargets.js @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Multiple target languages translation =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log( + `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateNoTranslate.js new file mode 100644 index 00000000000..d12672c73ac --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateNoTranslate.js @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Marking text input with notranslate div sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateProfanity.js new file mode 100644 index 00000000000..99009555e46 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateProfanity.js @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Profanity handling sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateSenteceLength.js new file mode 100644 index 00000000000..440bbbbc6d7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateSenteceLength.js @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translation with sentence boundaries sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "The answer lies in machine translation. This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeSentenceLength: true, + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log( + `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` + ); + console.log( + `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateTextType.js new file mode 100644 index 00000000000..4ee3fd80d1f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateTextType.js @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== HTML translation sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateWithTransliteration.js new file mode 100644 index 00000000000..5f372d5f662 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateWithTransliteration.js @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translate with transliteration sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log( + `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/transliterate.js new file mode 100644 index 00000000000..3371cfb6e1f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/transliterate.js @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Simple transliterate sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }, + }); + + if (isUnexpected(transliterateResponse)) { + throw transliterateResponse.body.error; + } + + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log( + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/README.md new file mode 100644 index 00000000000..64830dd3793 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/README.md @@ -0,0 +1,115 @@ +--- +page_type: sample +languages: + - typescript +products: + - azure + - azure-cognitive-services + - azure-translator +urlFragment: ai-translation-text-typescript-beta +--- + +# Azure Text Translation Service client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for Azure Text Translation Service in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [breakSentence.ts][breaksentence] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | +| [breakSentenceWithAutoDetection.ts][breaksentencewithautodetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | +| [dictionaryExamples.ts][dictionaryexamples] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. | +| [dictionaryLookup.ts][dictionarylookup] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. | +| [getLanguages.ts][getlanguages] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages | +| [getLanguagesAcceptLanguage.ts][getlanguagesacceptlanguage] | This sample demonstrates how you can select the language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. | +| [getLanguagesScope.ts][getlanguagesscope] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages for a selected scope | +| [translate.ts][translate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a text which language is know to a target language. | +| [translateAlignments.ts][translatealignments] | This sample demonstrates how you can ask translation service to include alignment projection from source text to translated text. | +| [translateCustom.ts][translatecustom] | This sample demonstrates how You can get translations from a customized system built with Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) to this parameter to use your deployed customized system. It is possible to set `allowFalback` paramter. It specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: `true` (default) or `false`. `allowFallback=false` specifies that the translation should only use systems trained for the category specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `allowFallback=true` specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. | +| [translateDetection.ts][translatedetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation without specifying the source language to a target language. | +| [translateDictionary.ts][translatedictionary] | This sample demonstrates how to keep words if you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is safe only for compound nouns like proper names and product names. Note You must include the From parameter in your API translation request instead of using the autodetect feature. | +| [translateMultipleSources.ts][translatemultiplesources] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a multiple text fields and each input text is in different language. | +| [translateMultipleTargets.ts][translatemultipletargets] | This sample demonstrates how you can provide multiple target languages which results to each input element be translated to all target languages. | +| [translateNoTranslate.ts][translatenotranslate] | This sample demonstrates how it's sometimes useful to exclude specific content from translation. You can use the attribute class=notranslate to specify content that should remain in its original language. In the following example, the content inside the first div element won't be translated, while the content in the second div element will be translated. | +| [translateProfanity.ts][translateprofanity] | This sample demonstrates how to change the profanity handling during translate call. Normally the Translator service will retain profanity that is present in the source in the translation. The degree of profanity and the context that makes words profane differ between cultures, and as a result the degree of profanity in the target language may be amplified or reduced. If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, whether you want to mark profanities with appropriate tags (giving you the option to add your own post-processing), or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` and `NoAction` (default). | +| [translateSenteceLength.ts][translatesentecelength] | This sample demonstrates how to you can ask translator service to include sentence boundaries for the input text and the translated text. | +| [translateTextType.ts][translatetexttype] | This sample demonstrates how you can select whether the translated text is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. | +| [translateWithTransliteration.ts][translatewithtransliteration] | You can combine both Translation and Transliteration in one Translate call. Your source Text can be in non-standard Script of a language as well as you can ask for non-standard Script of a target language. | +| [transliterate.ts][transliterate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to convert characters or letters of a source language to the corresponding characters or letters of a target language. | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] and the following Azure resources to run these sample programs: + +- [Translator resource instance][createinstance_translatorresourceinstance] + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/breakSentence.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env ENDPOINT="" TEXT_TRANSLATOR_API_KEY="" TEXT_TRANSLATOR_REGION="" node dist/breakSentence.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[breaksentence]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/breakSentence.ts +[breaksentencewithautodetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts +[dictionaryexamples]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/dictionaryExamples.ts +[dictionarylookup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/dictionaryLookup.ts +[getlanguages]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguages.ts +[getlanguagesacceptlanguage]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts +[getlanguagesscope]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguagesScope.ts +[translate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translate.ts +[translatealignments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateAlignments.ts +[translatecustom]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateCustom.ts +[translatedetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateDetection.ts +[translatedictionary]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateDictionary.ts +[translatemultiplesources]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateMultipleSources.ts +[translatemultipletargets]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateMultipleTargets.ts +[translatenotranslate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateNoTranslate.ts +[translateprofanity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateProfanity.ts +[translatesentecelength]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateSenteceLength.ts +[translatetexttype]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateTextType.ts +[translatewithtransliteration]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateWithTransliteration.ts +[transliterate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/transliterate.ts +[apiref]: https://learn.microsoft.com/azure/cognitive-services/translator/translator-text-apis +[freesub]: https://azure.microsoft.com/free/ +[createinstance_translatorresourceinstance]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/package.json new file mode 100644 index 00000000000..746d3c8427a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/package.json @@ -0,0 +1,43 @@ +{ + "name": "@azure-samples/ai-translation-text-ts-beta", + "private": true, + "version": "1.0.0", + "description": "Azure Text Translation Service client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/translation/ai-translation-text-rest" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic", + "translate", + "translation" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest", + "dependencies": { + "@azure-rest/ai-translation-text": "next", + "dotenv": "latest" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.4.5", + "rimraf": "latest" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/sample.env new file mode 100644 index 00000000000..bbdd64c0b36 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/sample.env @@ -0,0 +1,6 @@ +# Used in most samples. +# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource + +ENDPOINT="https://api.cognitive.microsofttranslator.com" +TEXT_TRANSLATOR_API_KEY="" +TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts new file mode 100644 index 00000000000..8ac71201fdf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=breakSentence.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map new file mode 100644 index 00000000000..2410132a23c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentence.d.ts","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js new file mode 100644 index 00000000000..c953956aa0b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js @@ -0,0 +1,42 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Get Sentence Boundaries sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=breakSentence.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js.map new file mode 100644 index 00000000000..231cb9a7aee --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentence.js","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC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level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.ts new file mode 100644 index 00000000000..f319a1769a7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.ts @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Get Sentence Boundaries sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + }}); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts new file mode 100644 index 00000000000..46395b61b7b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=breakSentenceWithAutoDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map new file mode 100644 index 00000000000..ac9b0b74586 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceWithAutoDetection.d.ts","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js new file mode 100644 index 00000000000..77a3269e283 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js @@ -0,0 +1,39 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log(`Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=breakSentenceWithAutoDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map new file mode 100644 index 00000000000..4de54a56b3c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceWithAutoDetection.js","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,gDAAgD,EAAE,CAAC,CAAC;IAChG,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CACT,yCAAyC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,aAAa,EAAE,gBAAgB,EAAE,KAAK,GAAG,CAC5I,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts new file mode 100644 index 00000000000..dc7fe39e57c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log( + `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts new file mode 100644 index 00000000000..59d56de8ab2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=dictionaryExamples.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map new file mode 100644 index 00000000000..91e60b8c357 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamples.d.ts","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js new file mode 100644 index 00000000000..57e4c06f6a2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js @@ -0,0 +1,44 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Dictionary Examples sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log(`For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`); + const firstExample = dictionaryExample?.examples[0]; + console.log(`Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=dictionaryExamples.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map new file mode 100644 index 00000000000..4d32e536324 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamples.js","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAiCC;;AAjDD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;IACvF,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;QACnF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IACnD,KAAK,MAAM,iBAAiB,IAAI,kBAAkB,EAAE,CAAC;QACnD,OAAO,CAAC,GAAG,CACT,uBAAuB,iBAAiB,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CACpG,CAAC;QACF,MAAM,YAAY,GAAG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CACT,aACE,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,GAAG,YAAY,CAAC,YACrE,IAAI,CACL,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.ts new file mode 100644 index 00000000000..3a6b7921125 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.ts @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +import TextTranslationClient, { + TranslatorCredential, + DictionaryExampleTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Dictionary Examples sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }}); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log( + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` + ); + const firstExample = dictionaryExample?.examples[0]; + console.log( + `Example: '${ + firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix + }'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts new file mode 100644 index 00000000000..38085ada4f0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=dictionaryLookup.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map new file mode 100644 index 00000000000..a3340f5c99c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookup.d.ts","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js new file mode 100644 index 00000000000..7cedc4b2ca1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Dictionary Lookup sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log(`For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`); + console.log(`First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=dictionaryLookup.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map new file mode 100644 index 00000000000..6adf79d8741 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookup.js","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA8BC;;AA9CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;QACjF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,eAAe,IAAI,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,GAAG,CACT,uBAAuB,eAAe,EAAE,YAAY,EAAE,MAAM,wCAAwC,CACrG,CAAC;QACF,OAAO,CAAC,GAAG,CACT,iBAAiB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,aAAa,kBAAkB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,CAClI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.ts new file mode 100644 index 00000000000..b0dbe37569b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Dictionary Lookup sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }}); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log( + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` + ); + console.log( + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts new file mode 100644 index 00000000000..1b28d1fcf9d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguages.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map new file mode 100644 index 00000000000..c0c38683c9d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguages.d.ts","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":"AAeA,wBAAsB,IAAI,kBAyCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js new file mode 100644 index 00000000000..a56da0cc003 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js @@ -0,0 +1,47 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== List supported languages sample =="); + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguages.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js.map new file mode 100644 index 00000000000..f57b349325f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguages.js","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAclC,oBAyCC;;AArDD;;GAEG;AACH,+FAEyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IAErD,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAi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K,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.ts new file mode 100644 index 00000000000..ea9f6d442ce --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.ts @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +import TextTranslationClient, { + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== List supported languages sample =="); + + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts new file mode 100644 index 00000000000..ed7bea4503f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguagesAcceptLanguage.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map new file mode 100644 index 00000000000..af9fb2c2660 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesAcceptLanguage.d.ts","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js new file mode 100644 index 00000000000..8882b61cc14 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js @@ -0,0 +1,60 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== List supported localized languages sample =="); + const parameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguagesAcceptLanguage.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map new file mode 100644 index 00000000000..9023ebd2fa3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesAcceptLanguage.js","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA8CC;;AAnED;;;;;;;;;;GAUG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,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OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts new file mode 100644 index 00000000000..8715c108b11 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +import TextTranslationClient, { + GetLanguagesParameters, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== List supported localized languages sample =="); + + const parameters: GetLanguagesParameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts new file mode 100644 index 00000000000..98558a23465 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguagesScope.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map new file mode 100644 index 00000000000..7f9105369a8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesScope.d.ts","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":"AAiBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js new file mode 100644 index 00000000000..5770ac410ee --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js @@ -0,0 +1,53 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== Scoped list supported languages sample =="); + const parameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguagesScope.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map new file mode 100644 index 00000000000..66dbd0e2619 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesScope.js","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,oBA8CC;;AA5DD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,CAAC,GAAG,CAAC,CAAC;YAC/D,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.ts new file mode 100644 index 00000000000..e37118bcbbd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +import TextTranslationClient, { + GetLanguagesParameters, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== Scoped list supported languages sample =="); + + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts new file mode 100644 index 00000000000..ca9270ec452 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts.map new file mode 100644 index 00000000000..a476038ef81 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA2BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js new file mode 100644 index 00000000000..b1c4f83a546 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Simple translate sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js.map new file mode 100644 index 00000000000..2ce69d5e833 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translate.js","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA2BC;;AA5CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.ts new file mode 100644 index 00000000000..d8256ace170 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.ts @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Simple translate sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts new file mode 100644 index 00000000000..ea5d8818b27 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateAlignments.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map new file mode 100644 index 00000000000..afa02ca0eab --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateAlignments.d.ts","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js new file mode 100644 index 00000000000..6c6b88bf78b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with alignments sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + includeAlignment: true, + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateAlignments.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js.map new file mode 100644 index 00000000000..6ab4347d107 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateAlignments.js","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA8BC;;AA/CD;;;GAGG;AACH,+FAIyC;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G,CAAC,eAAe,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.ts new file mode 100644 index 00000000000..33a0af2420a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with alignments sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeAlignment: true, + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts new file mode 100644 index 00000000000..422ffa713bc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateCustom.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map new file mode 100644 index 00000000000..8b718cec683 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateCustom.d.ts","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":"AAgCA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js new file mode 100644 index 00000000000..1518b31b2e8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js @@ -0,0 +1,56 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Custom translator sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateCustom.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js.map new file mode 100644 index 00000000000..e0ac090d1d0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateCustom.js","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA+BlC,oBA4BC;;AAzDD;;;;;;;;;;;;;;;GAeG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,wBAAwB;SACrC;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.ts new file mode 100644 index 00000000000..0fac1a635da --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.ts @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Custom translator sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts new file mode 100644 index 00000000000..0ba089d6c6d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map new file mode 100644 index 00000000000..2b6c98a2652 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDetection.d.ts","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js new file mode 100644 index 00000000000..ec178b054ba --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translate sample with auto-detection =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js.map new file mode 100644 index 00000000000..75cae32b50d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDetection.js","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAE1D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;SACX;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,yCAAyC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,WAAW,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.ts new file mode 100644 index 00000000000..19a80c8e927 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translate sample with auto-detection =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts new file mode 100644 index 00000000000..46a59fbb822 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateDictionary.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map new file mode 100644 index 00000000000..fce384100b4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDictionary.d.ts","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js new file mode 100644 index 00000000000..741d436e2aa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js @@ -0,0 +1,50 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with Dictionary sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateDictionary.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js.map new file mode 100644 index 00000000000..4dbd1266ede --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDictionary.js","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA+BC;;AApDD;;;;;;GAMG;AACH,+FAKyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,8GAA8G;SACrH;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAkC,CAAC;IAC1E,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.ts new file mode 100644 index 00000000000..92484a4a7bb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + TranslatedTextItemOutput, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with Dictionary sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body as TranslatedTextItemOutput[]; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts new file mode 100644 index 00000000000..8c46b39a007 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateMultipleSources.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map new file mode 100644 index 00000000000..77232b3cbf0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleSources.d.ts","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js new file mode 100644 index 00000000000..c4d12a37e3f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Multiple input texts =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateMultipleSources.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map new file mode 100644 index 00000000000..5487d639380 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleSources.js","sourceRo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C,WAAW,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,WAAW,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.ts new file mode 100644 index 00000000000..d83cd59cca9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.ts @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Multiple input texts =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts new file mode 100644 index 00000000000..6ea17a78854 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateMultipleTargets.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map new file mode 100644 index 00000000000..2162e166baf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleTargets.d.ts","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js new file mode 100644 index 00000000000..99e82ca9287 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Multiple target languages translation =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log(`Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateMultipleTargets.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map new file mode 100644 index 00000000000..6b9bb76b106 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleTargets.js","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,KAAK,MAAM,OAAO,IAAI,WAAW,CAAC,YAAY,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CACxI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts new file mode 100644 index 00000000000..d78da651e7d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Multiple target languages translation =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log( + `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts new file mode 100644 index 00000000000..2f2ee0dd031 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateNoTranslate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map new file mode 100644 index 00000000000..d6a6d67f853 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateNoTranslate.d.ts","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":"AAsBA,wBAAsB,IAAI,kBAgCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js new file mode 100644 index 00000000000..4bce37a366b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js @@ -0,0 +1,50 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Marking text input with notranslate div sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateNoTranslate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map new file mode 100644 index 00000000000..4e5ae6fdcf3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateNoTranslate.js","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,oBAgCC;;AAnDD;;;;;GAKG;AACH,+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AAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.ts new file mode 100644 index 00000000000..c44e308f9ef --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.ts @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Marking text input with notranslate div sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts new file mode 100644 index 00000000000..e14e29acf78 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateProfanity.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map new file mode 100644 index 00000000000..05066b4a710 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateProfanity.d.ts","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js new file mode 100644 index 00000000000..2a5c815abdc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js @@ -0,0 +1,55 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Profanity handling sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateProfanity.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js.map new file mode 100644 index 00000000000..56ada6c6e10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateProfanity.js","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,oBA6BC;;AAxDD;;;;;;;;;;;;;GAaG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAE/C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;IAC9D,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,eAAe,EAAE,QAAQ;YACzB,eAAe,EAAE,UAAU;SAC9B;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.ts new file mode 100644 index 00000000000..1a9120831bf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.ts @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Profanity handling sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts new file mode 100644 index 00000000000..101a5c995c7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateSenteceLength.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map new file mode 100644 index 00000000000..6b75e480a45 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateSenteceLength.d.ts","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBAqCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js new file mode 100644 index 00000000000..43b2495a731 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with sentence boundaries sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { text: "The answer lies in machine translation. This is a test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + includeSentenceLength: true, + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`); + console.log(`Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateSenteceLength.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map new file mode 100644 index 00000000000..e4884cc665e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateSenteceLength.js","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBAqCC;;AAtDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAEjE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC,EAAE,IAAI,EAAE,yDAAyD,EAAE;KACpE,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,qBAAqB,EAAE,IAAI;SAC9B;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,0BAA0B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzF,CAAC;QACF,OAAO,CAAC,GAAG,CACT,8BAA8B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC/F,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.ts new file mode 100644 index 00000000000..8b03c9d4a75 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.ts @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with sentence boundaries sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { text: "The answer lies in machine translation. This is a test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeSentenceLength: true, + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log( + `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` + ); + console.log( + `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts new file mode 100644 index 00000000000..a49db19b58c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateTextType.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map new file mode 100644 index 00000000000..9d0f89b64f7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTextType.d.ts","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js new file mode 100644 index 00000000000..ae0cfcc8993 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js @@ -0,0 +1,44 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== HTML translation sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateTextType.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js.map new file mode 100644 index 00000000000..8c8972cd391 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTextType.js","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA4BC;;AA7CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC,CAAC;IAClG,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACnB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.ts new file mode 100644 index 00000000000..2eabf2bd627 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.ts @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== HTML translation sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts new file mode 100644 index 00000000000..8badf54b60c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateWithTransliteration.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map new file mode 100644 index 00000000000..450bca60b0a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateWithTransliteration.d.ts","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js new file mode 100644 index 00000000000..c2b6b5f7351 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translate with transliteration sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateWithTransliteration.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map new file mode 100644 index 00000000000..1786a6c32d5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateWithTransliteration.js","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAiCC;;AAnDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,SAAS;YACb,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,MAAM;SACrB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,gBAAgB,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,wBAAwB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,MAAM,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CACzI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts new file mode 100644 index 00000000000..7f7b06b218f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translate with transliteration sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log( + `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts new file mode 100644 index 00000000000..f30e7d0aa84 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=transliterate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts.map new file mode 100644 index 00000000000..ea796ef8b38 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterate.d.ts","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js new file mode 100644 index 00000000000..4b2dbc2fc08 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Simple transliterate sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(transliterateResponse)) { + throw transliterateResponse.body.error; + } + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log(`Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=transliterate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js.map new file mode 100644 index 00000000000..61587039015 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterate.js","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBA4BC;;AA9CD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IAEjD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxD,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACnB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAChD,KAAK,MAAM,eAAe,IAAI,YAAY,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CACT,qCAAqC,eAAe,EAAE,MAAM,mCAAmC,eAAe,EAAE,IAAI,IAAI,CACzH,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.ts new file mode 100644 index 00000000000..3e96c896734 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Simple transliterate sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }}); + + if (isUnexpected(transliterateResponse)) { + throw transliterateResponse.body.error; + } + + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log( + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/tsconfig.json new file mode 100644 index 00000000000..e26ce2a6d8f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts new file mode 100644 index 00000000000..0b3aca7c00c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts @@ -0,0 +1,45 @@ +import { GetLanguagesParameters, TranslateParameters, TransliterateParameters, FindSentenceBoundariesParameters, LookupDictionaryEntriesParameters, LookupDictionaryExamplesParameters } from "./parameters"; +import { GetLanguages200Response, GetLanguagesDefaultResponse, Translate200Response, TranslateDefaultResponse, Transliterate200Response, TransliterateDefaultResponse, FindSentenceBoundaries200Response, FindSentenceBoundariesDefaultResponse, LookupDictionaryEntries200Response, LookupDictionaryEntriesDefaultResponse, LookupDictionaryExamples200Response, LookupDictionaryExamplesDefaultResponse } from "./responses"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; +export interface GetLanguages { + /** Gets the set of languages currently supported by other operations of the Translator. */ + get(options?: GetLanguagesParameters): StreamableMethod; +} +export interface Translate { + /** Translate Text */ + post(options: TranslateParameters): StreamableMethod; +} +export interface Transliterate { + /** Transliterate Text */ + post(options: TransliterateParameters): StreamableMethod; +} +export interface FindSentenceBoundaries { + /** Find Sentence Boundaries */ + post(options: FindSentenceBoundariesParameters): StreamableMethod; +} +export interface LookupDictionaryEntries { + /** Lookup Dictionary Entries */ + post(options: LookupDictionaryEntriesParameters): StreamableMethod; +} +export interface LookupDictionaryExamples { + /** Lookup Dictionary Examples */ + post(options: LookupDictionaryExamplesParameters): StreamableMethod; +} +export interface Routes { + /** Resource for '/languages' has methods for the following verbs: get */ + (path: "/languages"): GetLanguages; + /** Resource for '/translate' has methods for the following verbs: post */ + (path: "/translate"): Translate; + /** Resource for '/transliterate' has methods for the following verbs: post */ + (path: "/transliterate"): Transliterate; + /** Resource for '/breaksentence' has methods for the following verbs: post */ + (path: "/breaksentence"): FindSentenceBoundaries; + /** Resource for '/dictionary/lookup' has methods for the following verbs: post */ + (path: "/dictionary/lookup"): LookupDictionaryEntries; + /** Resource for '/dictionary/examples' has methods for the following verbs: post */ + (path: "/dictionary/examples"): LookupDictionaryExamples; +} +export type TextTranslationClient = Client & { + path: Routes; +}; +//# sourceMappingURL=clientDefinitions.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts.map new file mode 100644 index 00000000000..666ed83b98d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,kCAAkC,EACnC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB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SAAS,CAAC;IAChC,8EAA8E;IAC9E,CAAC,IAAI,EAAE,gBAAgB,GAAG,aAAa,CAAC;IACxC,8EAA8E;IAC9E,CAAC,IAAI,EAAE,gBAAgB,GAAG,sBAAsB,CAAC;IACjD,kFAAkF;IAClF,CAAC,IAAI,EAAE,oBAAoB,GAAG,uBAAuB,CAAC;IACtD,oFAAoF;IACpF,CAAC,IAAI,EAAE,sBAAsB,GAAG,wBAAwB,CAAC;CAC1D;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js new file mode 100644 index 00000000000..4241682f193 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=clientDefinitions.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js.map new file mode 100644 index 00000000000..1a49e5540ea --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.ts new file mode 100644 index 00000000000..f95ee452adb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.ts @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + GetLanguagesParameters, + TranslateParameters, + TransliterateParameters, + FindSentenceBoundariesParameters, + LookupDictionaryEntriesParameters, + LookupDictionaryExamplesParameters, +} from "./parameters"; +import { + GetLanguages200Response, + GetLanguagesDefaultResponse, + Translate200Response, + TranslateDefaultResponse, + Transliterate200Response, + TransliterateDefaultResponse, + FindSentenceBoundaries200Response, + FindSentenceBoundariesDefaultResponse, + LookupDictionaryEntries200Response, + LookupDictionaryEntriesDefaultResponse, + LookupDictionaryExamples200Response, + LookupDictionaryExamplesDefaultResponse, +} from "./responses"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; + +export interface GetLanguages { + /** Gets the set of languages currently supported by other operations of the Translator. */ + get( + options?: GetLanguagesParameters, + ): StreamableMethod; +} + +export interface Translate { + /** Translate Text */ + post( + options: TranslateParameters, + ): StreamableMethod; +} + +export interface Transliterate { + /** Transliterate Text */ + post( + options: TransliterateParameters, + ): StreamableMethod; +} + +export interface FindSentenceBoundaries { + /** Find Sentence Boundaries */ + post( + options: FindSentenceBoundariesParameters, + ): StreamableMethod; +} + +export interface LookupDictionaryEntries { + /** Lookup Dictionary Entries */ + post( + options: LookupDictionaryEntriesParameters, + ): StreamableMethod; +} + +export interface LookupDictionaryExamples { + /** Lookup Dictionary Examples */ + post( + options: LookupDictionaryExamplesParameters, + ): StreamableMethod< + LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse + >; +} + +export interface Routes { + /** Resource for '/languages' has methods for the following verbs: get */ + (path: "/languages"): GetLanguages; + /** Resource for '/translate' has methods for the following verbs: post */ + (path: "/translate"): Translate; + /** Resource for '/transliterate' has methods for the following verbs: post */ + (path: "/transliterate"): Transliterate; + /** Resource for '/breaksentence' has methods for the following verbs: post */ + (path: "/breaksentence"): FindSentenceBoundaries; + /** Resource for '/dictionary/lookup' has methods for the following verbs: post */ + (path: "/dictionary/lookup"): LookupDictionaryEntries; + /** Resource for '/dictionary/examples' has methods for the following verbs: post */ + (path: "/dictionary/examples"): LookupDictionaryExamples; +} + +export type TextTranslationClient = Client & { + path: Routes; +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts new file mode 100644 index 00000000000..202357bbcd6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts @@ -0,0 +1,31 @@ +import { AzureKeyCredential, TokenCredential } from "@azure/core-auth"; +import { PipelinePolicy, PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; +export declare const DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; +export interface TranslatorCredential { + key: string; + region: string; +} +export interface TranslatorTokenCredential { + tokenCredential: TokenCredential; + region: string; + azureResourceId: string; +} +export declare class TranslatorAuthenticationPolicy implements PipelinePolicy { + name: string; + credential: TranslatorCredential; + constructor(credential: TranslatorCredential); + sendRequest(request: PipelineRequest, next: SendRequest): Promise; +} +export declare class TranslatorAzureKeyAuthenticationPolicy implements PipelinePolicy { + name: string; + credential: AzureKeyCredential; + constructor(credential: AzureKeyCredential); + sendRequest(request: PipelineRequest, next: SendRequest): Promise; +} +export declare class TranslatorTokenCredentialAuthenticationPolicy implements PipelinePolicy { + name: string; + credential: TranslatorTokenCredential; + constructor(credential: TranslatorTokenCredential); + sendRequest(request: PipelineRequest, next: SendRequest): Promise; +} +//# sourceMappingURL=authentication.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts.map new file mode 100644 index 00000000000..8911d4108fc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["authentication.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAKnC,eAAO,MAAM,aAAa,iDAAiD,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,8BAA+B,YAAW,cAAc;IACnE,IAAI,EAAE,MAAM,CAAoC;IAChD,UAAU,EAAE,oBAAoB,CAAC;gBAErB,UAAU,EAAE,oBAAoB;IAI5C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMpF;AAED,qBAAa,sCAAuC,YAAW,cAAc;IAC3E,IAAI,EAAE,MAAM,CAA4C;IACxD,UAAU,EAAE,kBAAkB,CAAC;gBAEnB,UAAU,EAAE,kBAAkB;IAI1C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAKpF;AAED,qBAAa,6CAA8C,YAAW,cAAc;IAClF,IAAI,EAAE,MAAM,CAAmD;IAC/D,UAAU,EAAE,yBAAyB,CAAC;gBAE1B,UAAU,EAAE,yBAAyB;IAIjD,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMpF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js new file mode 100644 index 00000000000..04c2475ecf8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TranslatorTokenCredentialAuthenticationPolicy = exports.TranslatorAzureKeyAuthenticationPolicy = exports.TranslatorAuthenticationPolicy = exports.DEFAULT_SCOPE = void 0; +const APIM_KEY_HEADER_NAME = "Ocp-Apim-Subscription-Key"; +const APIM_REGION_HEADER_NAME = "Ocp-Apim-Subscription-Region"; +const APIM_RESOURCE_ID = "Ocp-Apim-ResourceId"; +exports.DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; +class TranslatorAuthenticationPolicy { + name = "TranslatorAuthenticationPolicy"; + credential; + constructor(credential) { + this.credential = credential; + } + sendRequest(request, next) { + request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); + request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); + return next(request); + } +} +exports.TranslatorAuthenticationPolicy = TranslatorAuthenticationPolicy; +class TranslatorAzureKeyAuthenticationPolicy { + name = "TranslatorAzureKeyAuthenticationPolicy"; + credential; + constructor(credential) { + this.credential = credential; + } + sendRequest(request, next) { + request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); + return next(request); + } +} +exports.TranslatorAzureKeyAuthenticationPolicy = TranslatorAzureKeyAuthenticationPolicy; +class TranslatorTokenCredentialAuthenticationPolicy { + name = "TranslatorTokenCredentialAuthenticationPolicy"; + credential; + constructor(credential) { + this.credential = credential; + } + sendRequest(request, next) { + request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); + request.headers.set(APIM_RESOURCE_ID, this.credential.azureResourceId); + return next(request); + } +} +exports.TranslatorTokenCredentialAuthenticationPolicy = TranslatorTokenCredentialAuthenticationPolicy; +//# sourceMappingURL=authentication.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js.map new file mode 100644 index 00000000000..219dc3bba58 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js.map @@ -0,0 +1 @@ +{"version":3,"file":"authentication.js","sourceRoot":"","sources":["authentication.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,MAAM,oBAA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,CAAC,CAAC;QACrE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;CACF;AAdD,sGAcC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.ts new file mode 100644 index 00000000000..1eae16403e0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.ts @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AzureKeyCredential, TokenCredential } from "@azure/core-auth"; +import { + PipelinePolicy, + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; + +const APIM_KEY_HEADER_NAME = "Ocp-Apim-Subscription-Key"; +const APIM_REGION_HEADER_NAME = "Ocp-Apim-Subscription-Region"; +const APIM_RESOURCE_ID = "Ocp-Apim-ResourceId"; +export const DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; + +export interface TranslatorCredential { + key: string; + region: string; +} + +export interface TranslatorTokenCredential { + tokenCredential: TokenCredential; + region: string; + azureResourceId: string; +} + +export class TranslatorAuthenticationPolicy implements PipelinePolicy { + name: string = "TranslatorAuthenticationPolicy"; + credential: TranslatorCredential; + + constructor(credential: TranslatorCredential) { + this.credential = credential; + } + + sendRequest(request: PipelineRequest, next: SendRequest): Promise { + request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); + request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); + + return next(request); + } +} + +export class TranslatorAzureKeyAuthenticationPolicy implements PipelinePolicy { + name: string = "TranslatorAzureKeyAuthenticationPolicy"; + credential: AzureKeyCredential; + + constructor(credential: AzureKeyCredential) { + this.credential = credential; + } + + sendRequest(request: PipelineRequest, next: SendRequest): Promise { + request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); + + return next(request); + } +} + +export class TranslatorTokenCredentialAuthenticationPolicy implements PipelinePolicy { + name: string = "TranslatorTokenCredentialAuthenticationPolicy"; + credential: TranslatorTokenCredential; + + constructor(credential: TranslatorTokenCredential) { + this.credential = credential; + } + + sendRequest(request: PipelineRequest, next: SendRequest): Promise { + request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); + request.headers.set(APIM_RESOURCE_ID, this.credential.azureResourceId); + + return next(request); + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts new file mode 100644 index 00000000000..11e312111b5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts @@ -0,0 +1,12 @@ +import { ClientOptions } from "@azure-rest/core-client"; +import { TextTranslationClient } from "../clientDefinitions"; +import { TranslatorCredential, TranslatorTokenCredential } from "./authentication"; +import { KeyCredential, TokenCredential } from "@azure/core-auth"; +/** + * Initialize a new instance of `TextTranslationClient` + * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: + * https://api.cognitive.microsofttranslator.com). + * @param options type: ClientOptions, the parameter for all optional parameters + */ +export default function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; +//# sourceMappingURL=customClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts.map new file mode 100644 index 00000000000..b69536828e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"customClient.d.ts","sourceRoot":"","sources":["customClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAEL,oBAAoB,EACpB,yBAAyB,EAI1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAsB,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAyBtF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,SAAS,GAAG,MAAM,EAC5B,UAAU,GACN,SAAS,GACT,oBAAoB,GACpB,yBAAyB,GACzB,aAAa,GACb,eAA2B,EAC/B,OAAO,GAAE,aAAkB,GAC1B,qBAAqB,CA8DvB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js new file mode 100644 index 00000000000..e456035ba44 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js @@ -0,0 +1,83 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = createClient; +const tslib_1 = require("tslib"); +const core_client_1 = require("@azure-rest/core-client"); +const logger_1 = require("../logger"); +const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline")); +const authentication_1 = require("./authentication"); +const DEFAULT_ENPOINT = "https://api.cognitive.microsofttranslator.com"; +const PLATFORM_HOST = "cognitiveservices"; +const PLATFORM_PATH = "/translator/text/v3.0"; +function isKeyCredential(credential) { + return credential?.key !== undefined; +} +function isTranslatorKeyCredential(credential) { + return credential?.key !== undefined; +} +function isTokenCredential(credential) { + return credential?.getToken !== undefined; +} +function isTranslatorTokenCredential(credential) { + return (credential?.tokenCredential !== undefined && + credential?.azureResourceId !== undefined); +} +/** + * Initialize a new instance of `TextTranslationClient` + * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: + * https://api.cognitive.microsofttranslator.com). + * @param options type: ClientOptions, the parameter for all optional parameters + */ +function createClient(endpoint, credential = undefined, options = {}) { + let serviceEndpoint; + options.apiVersion = options.apiVersion ?? "3.0"; + if (!endpoint) { + serviceEndpoint = DEFAULT_ENPOINT; + } + else if (endpoint.toLowerCase().indexOf(PLATFORM_HOST) !== -1) { + serviceEndpoint = `${endpoint}${PLATFORM_PATH}`; + } + else { + serviceEndpoint = endpoint; + } + const baseUrl = options.baseUrl ?? `${serviceEndpoint}`; + const userAgentInfo = `azsdk-js-ai-translation-text-rest/1.0.0-beta.2`; + const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger_1.logger.info, + }, + }; + const client = (0, core_client_1.getClient)(baseUrl, options); + if (isTranslatorKeyCredential(credential)) { + const mtAuthneticationPolicy = new authentication_1.TranslatorAuthenticationPolicy(credential); + client.pipeline.addPolicy(mtAuthneticationPolicy); + } + else if (isKeyCredential(credential)) { + const mtKeyAuthenticationPolicy = new authentication_1.TranslatorAzureKeyAuthenticationPolicy(credential); + client.pipeline.addPolicy(mtKeyAuthenticationPolicy); + } + else if (isTokenCredential(credential)) { + client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credential, + scopes: authentication_1.DEFAULT_SCOPE, + })); + } + else if (isTranslatorTokenCredential(credential)) { + client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credential.tokenCredential, + scopes: authentication_1.DEFAULT_SCOPE, + })); + client.pipeline.addPolicy(new authentication_1.TranslatorTokenCredentialAuthenticationPolicy(credential)); + } + return client; +} +//# sourceMappingURL=customClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js.map new file mode 100644 index 00000000000..ad4c129c28e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js.map @@ -0,0 +1 @@ +{"version":3,"file":"customClient.js","sourceRoot":"","sources":["customClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6ClC,+BAuEC;;AAlHD,yDAAmE;AACnE,sCAAmC;AACnC,oFAA8D;AAE9D,qDAO0B;AAG1B,MAAM,eAAe,GAAG,+CAA+C,CAAC;AACxE,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAC1C,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,SAAS,eAAe,CAAC,UAAe;IACtC,OAAQ,UAA4B,EAAE,GAAG,KAAK,SAAS,CAAC;AAC1D,CAAC;AAED,SA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cAAc,EAAE,MAAM,IAAI,eAAM,CAAC,IAAI;SACtD;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,OAAO,EAAE,OAAO,CAA0B,CAAC;IAEpE,IAAI,yBAAyB,CAAC,UAAU,CAAC,EAAE,CAAC;QAC1C,MAAM,sBAAsB,GAAG,IAAI,+CAA8B,CAC/D,UAAkC,CACnC,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IACpD,CAAC;SAAM,IAAI,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QACvC,MAAM,yBAAyB,GAAG,IAAI,uDAAsC,CAC1E,UAAgC,CACjC,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IACvD,CAAC;SAAM,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;QACzC,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,gBAAgB,CAAC,+BAA+B,CAAC;YAC/C,UAAU,EAAE,UAA6B;YACzC,MAAM,EAAE,8BAAa;SACtB,CAAC,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,2BAA2B,CAAC,UAAU,CAAC,EAAE,CAAC;QACnD,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,gBAAgB,CAAC,+BAA+B,CAAC;YAC/C,UAAU,EAAG,UAAwC,CAAC,eAAe;YACrE,MAAM,EAAE,8BAAa;SACtB,CAAC,CACH,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,IAAI,8DAA6C,CAAC,UAAuC,CAAC,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.ts new file mode 100644 index 00000000000..f6115fe67f4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.ts @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "../logger"; +import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { TextTranslationClient } from "../clientDefinitions"; +import { + DEFAULT_SCOPE, + TranslatorCredential, + TranslatorTokenCredential, + TranslatorAuthenticationPolicy, + TranslatorAzureKeyAuthenticationPolicy, + TranslatorTokenCredentialAuthenticationPolicy, +} from "./authentication"; +import { AzureKeyCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; + +const DEFAULT_ENPOINT = "https://api.cognitive.microsofttranslator.com"; +const PLATFORM_HOST = "cognitiveservices"; +const PLATFORM_PATH = "/translator/text/v3.0"; + +function isKeyCredential(credential: any): credential is KeyCredential { + return (credential as KeyCredential)?.key !== undefined; +} + +function isTranslatorKeyCredential(credential: any): credential is TranslatorCredential { + return (credential as TranslatorCredential)?.key !== undefined; +} + +function isTokenCredential(credential: any): credential is TokenCredential { + return (credential as TokenCredential)?.getToken !== undefined; +} + +function isTranslatorTokenCredential(credential: any): credential is TranslatorTokenCredential { + return ( + (credential as TranslatorTokenCredential)?.tokenCredential !== undefined && + (credential as TranslatorTokenCredential)?.azureResourceId !== undefined + ); +} + +/** + * Initialize a new instance of `TextTranslationClient` + * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: + * https://api.cognitive.microsofttranslator.com). + * @param options type: ClientOptions, the parameter for all optional parameters + */ +export default function createClient( + endpoint: undefined | string, + credential: + | undefined + | TranslatorCredential + | TranslatorTokenCredential + | KeyCredential + | TokenCredential = undefined, + options: ClientOptions = {}, +): TextTranslationClient { + let serviceEndpoint: string; + + options.apiVersion = options.apiVersion ?? "3.0"; + + if (!endpoint) { + serviceEndpoint = DEFAULT_ENPOINT; + } else if (endpoint.toLowerCase().indexOf(PLATFORM_HOST) !== -1) { + serviceEndpoint = `${endpoint}${PLATFORM_PATH}`; + } else { + serviceEndpoint = endpoint; + } + + const baseUrl = options.baseUrl ?? `${serviceEndpoint}`; + + const userAgentInfo = `azsdk-js-ai-translation-text-rest/1.0.0-beta.2`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + }; + + const client = getClient(baseUrl, options) as TextTranslationClient; + + if (isTranslatorKeyCredential(credential)) { + const mtAuthneticationPolicy = new TranslatorAuthenticationPolicy( + credential as TranslatorCredential, + ); + client.pipeline.addPolicy(mtAuthneticationPolicy); + } else if (isKeyCredential(credential)) { + const mtKeyAuthenticationPolicy = new TranslatorAzureKeyAuthenticationPolicy( + credential as AzureKeyCredential, + ); + client.pipeline.addPolicy(mtKeyAuthenticationPolicy); + } else if (isTokenCredential(credential)) { + client.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credential as TokenCredential, + scopes: DEFAULT_SCOPE, + }), + ); + } else if (isTranslatorTokenCredential(credential)) { + client.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: (credential as TranslatorTokenCredential).tokenCredential, + scopes: DEFAULT_SCOPE, + }), + ); + client.pipeline.addPolicy( + new TranslatorTokenCredentialAuthenticationPolicy(credential as TranslatorTokenCredential), + ); + } + + return client; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts new file mode 100644 index 00000000000..c815d85cec7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts @@ -0,0 +1,12 @@ +import TextTranslationClient from "./custom/customClient"; +export * from "./custom/customClient"; +export * from "./parameters"; +export * from "./responses"; +export * from "./clientDefinitions"; +export * from "./isUnexpected"; +export * from "./models"; +export * from "./outputModels"; +export * from "./serializeHelper"; +export { TranslatorCredential, TranslatorTokenCredential } from "./custom/authentication"; +export default TextTranslationClient; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts.map new file mode 100644 index 00000000000..c43ad692f47 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,MAAM,uBAAuB,CAAC;AAE1D,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,eAAe,qBAAqB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js new file mode 100644 index 00000000000..d66595fa050 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js @@ -0,0 +1,16 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +const customClient_1 = tslib_1.__importDefault(require("./custom/customClient")); +tslib_1.__exportStar(require("./custom/customClient"), exports); +tslib_1.__exportStar(require("./parameters"), exports); +tslib_1.__exportStar(require("./responses"), exports); +tslib_1.__exportStar(require("./clientDefinitions"), exports); +tslib_1.__exportStar(require("./isUnexpected"), exports); +tslib_1.__exportStar(require("./models"), exports); +tslib_1.__exportStar(require("./outputModels"), exports); +tslib_1.__exportStar(require("./serializeHelper"), exports); +exports.default = customClient_1.default; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js.map new file mode 100644 index 00000000000..c484a7d0566 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iFAA0D;AAE1D,gEAAsC;AACtC,uDAA6B;AAC7B,sDAA4B;AAC5B,8DAAoC;AACpC,yDAA+B;AAC/B,mDAAyB;AACzB,yDAA+B;AAC/B,4DAAkC;AAGlC,kBAAe,sBAAqB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.ts new file mode 100644 index 00000000000..1f53069e787 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import TextTranslationClient from "./custom/customClient"; + +export * from "./custom/customClient"; +export * from "./parameters"; +export * from "./responses"; +export * from "./clientDefinitions"; +export * from "./isUnexpected"; +export * from "./models"; +export * from "./outputModels"; +export * from "./serializeHelper"; +export { TranslatorCredential, TranslatorTokenCredential } from "./custom/authentication"; + +export default TextTranslationClient; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts new file mode 100644 index 00000000000..260938b2f45 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts @@ -0,0 +1,8 @@ +import { GetLanguages200Response, GetLanguagesDefaultResponse, Translate200Response, TranslateDefaultResponse, Transliterate200Response, TransliterateDefaultResponse, FindSentenceBoundaries200Response, FindSentenceBoundariesDefaultResponse, LookupDictionaryEntries200Response, LookupDictionaryEntriesDefaultResponse, LookupDictionaryExamples200Response, LookupDictionaryExamplesDefaultResponse } from "./responses"; +export declare function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; +export declare function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; +export declare function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; +export declare function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; +export declare function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; +export declare function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; +//# sourceMappingURL=isUnexpected.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts.map new file mode 100644 index 00000000000..ca58e4fe810 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,aAAa,CAAC;AAWrB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oBAAoB,GAAG,wBAAwB,GACxD,QAAQ,IAAI,wBAAwB,CAAC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wBAAwB,GAAG,4BAA4B,GAChE,QAAQ,IAAI,4BAA4B,CAAC;AAC5C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,iCAAiC,GAAG,qCAAqC,GAClF,QAAQ,IAAI,qCAAqC,CAAC;AACrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,kCAAkC,GAAG,sCAAsC,GACpF,QAAQ,IAAI,sCAAsC,CAAC;AACtD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,mCAAmC,GAAG,uCAAuC,GACtF,QAAQ,IAAI,uCAAuC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js new file mode 100644 index 00000000000..c65b3b4f2c3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js @@ -0,0 +1,77 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isUnexpected = isUnexpected; +const responseMap = { + "GET /languages": ["200"], + "POST /translate": ["200"], + "POST /transliterate": ["200"], + "POST /breaksentence": ["200"], + "POST /dictionary/lookup": ["200"], + "POST /dictionary/examples": ["200"], +}; +function isUnexpected(response) { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} +function getParametrizedPathSuccess(method, path) { + const pathParts = path.split("/"); + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, matchedValue = []; + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); + if (!isMatched) { + found = false; + break; + } + continue; + } + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + return matchedValue; +} +function getPathFromMapKey(mapKey) { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} +//# sourceMappingURL=isUnexpected.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js.map new file mode 100644 index 00000000000..238bab8b0c9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-r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oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.ts new file mode 100644 index 00000000000..aa40d5d88b3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.ts @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + GetLanguages200Response, + GetLanguagesDefaultResponse, + Translate200Response, + TranslateDefaultResponse, + Transliterate200Response, + TransliterateDefaultResponse, + FindSentenceBoundaries200Response, + FindSentenceBoundariesDefaultResponse, + LookupDictionaryEntries200Response, + LookupDictionaryEntriesDefaultResponse, + LookupDictionaryExamples200Response, + LookupDictionaryExamplesDefaultResponse, +} from "./responses"; + +const responseMap: Record = { + "GET /languages": ["200"], + "POST /translate": ["200"], + "POST /transliterate": ["200"], + "POST /breaksentence": ["200"], + "POST /dictionary/lookup": ["200"], + "POST /dictionary/examples": ["200"], +}; + +export function isUnexpected( + response: GetLanguages200Response | GetLanguagesDefaultResponse, +): response is GetLanguagesDefaultResponse; +export function isUnexpected( + response: Translate200Response | TranslateDefaultResponse, +): response is TranslateDefaultResponse; +export function isUnexpected( + response: Transliterate200Response | TransliterateDefaultResponse, +): response is TransliterateDefaultResponse; +export function isUnexpected( + response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse, +): response is FindSentenceBoundariesDefaultResponse; +export function isUnexpected( + response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse, +): response is LookupDictionaryEntriesDefaultResponse; +export function isUnexpected( + response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse, +): response is LookupDictionaryExamplesDefaultResponse; +export function isUnexpected( + response: + | GetLanguages200Response + | GetLanguagesDefaultResponse + | Translate200Response + | TranslateDefaultResponse + | Transliterate200Response + | TransliterateDefaultResponse + | FindSentenceBoundaries200Response + | FindSentenceBoundariesDefaultResponse + | LookupDictionaryEntries200Response + | LookupDictionaryEntriesDefaultResponse + | LookupDictionaryExamples200Response + | LookupDictionaryExamplesDefaultResponse, +): response is + | GetLanguagesDefaultResponse + | TranslateDefaultResponse + | TransliterateDefaultResponse + | FindSentenceBoundariesDefaultResponse + | LookupDictionaryEntriesDefaultResponse + | LookupDictionaryExamplesDefaultResponse { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} + +function getParametrizedPathSuccess(method: string, path: string): string[] { + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: string[] = []; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( + pathParts[j] || "", + ); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts new file mode 100644 index 00000000000..66ece8e69dd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts @@ -0,0 +1,2 @@ +export declare const logger: any; +//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts.map new file mode 100644 index 00000000000..f8f65055158 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,KAA4C,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js new file mode 100644 index 00000000000..5c950d128da --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js @@ -0,0 +1,8 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.logger = void 0; +const logger_1 = require("@azure/logger"); +exports.logger = (0, logger_1.createClientLogger)("ai-translation-text"); +//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js.map new file mode 100644 index 00000000000..d8f613d3a81 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js.map @@ -0,0 +1 @@ +{"version":3,"file":"logger.js","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0CAAmD;AACtC,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.ts new file mode 100644 index 00000000000..d2cdd4fac44 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("ai-translation-text"); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts new file mode 100644 index 00000000000..0fd390d0877 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts @@ -0,0 +1,15 @@ +/** Element containing the text for translation. */ +export interface InputTextItem { + /** Text to translate. */ + text: string; +} +/** Element containing the text with translation. */ +export interface DictionaryExampleTextItem extends InputTextItem { + /** + * A string specifying the translated text previously returned by the Dictionary lookup operation. + * This should be the value from the normalizedTarget field in the translations list of the Dictionary + * lookup response. The service will return examples for the specific source-target word-pair. + */ + translation: string; +} +//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts.map new file mode 100644 index 00000000000..d2430a1004b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAGA,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oDAAoD;AACpD,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC9D;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js new file mode 100644 index 00000000000..783931f3080 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js.map new file mode 100644 index 00000000000..7d51b00eabf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js.map @@ -0,0 +1 @@ +{"version":3,"file":"models.js","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts new file mode 100644 index 00000000000..4b2bb73cebb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** Element containing the text for translation. */ +export interface InputTextItem { + /** Text to translate. */ + text: string; +} + +/** Element containing the text with translation. */ +export interface DictionaryExampleTextItem extends InputTextItem { + /** + * A string specifying the translated text previously returned by the Dictionary lookup operation. + * This should be the value from the normalizedTarget field in the translations list of the Dictionary + * lookup response. The service will return examples for the specific source-target word-pair. + */ + translation: string; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts new file mode 100644 index 00000000000..81564eb6b4c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts @@ -0,0 +1,297 @@ +/** Response for the languages API. */ +export interface GetLanguagesResultOutput { + /** Languages that support translate API. */ + translation?: Record; + /** Languages that support transliteration API. */ + transliteration?: Record; + /** Languages that support dictionary API. */ + dictionary?: Record; +} +/** + * The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. + * A key identifies a language for which text can be translated to or translated from. + */ +export interface TranslationLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; +} +/** + * The value of the transliteration property is a dictionary of (key, value) pairs. + * Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script + * to another script. + */ +export interface TransliterationLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** List of scripts to convert from. */ + scripts: Array; +} +/** Script definition with list of script into which given script can be translitered. */ +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + /** List of scripts available to convert text to. */ + toScripts: Array; +} +/** Common properties of language script */ +export interface CommonScriptModelOutput { + /** Code identifying the script. */ + code: string; + /** Display name of the script in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for the language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; +} +/** Properties ot the source dictionary language */ +export interface SourceDictionaryLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; + /** List of languages with alterative translations and examples for the query expressed in the source language. */ + translations: Array; +} +/** Properties of the target dictionary language */ +export interface TargetDictionaryLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; + /** Language code identifying the target language. */ + code: string; +} +/** Representation of the Error Response from Translator Service. */ +export interface ErrorResponseOutput { + /** Error details. */ + error: ErrorDetailsOutput; +} +/** Error details as returned by Translator Service. */ +export interface ErrorDetailsOutput { + /** Number identifier of the error. */ + code: number; + /** Human readable error description. */ + message: string; +} +/** Element containing the translated text */ +export interface TranslatedTextItemOutput { + /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ + detectedLanguage?: DetectedLanguageOutput; + /** + * An array of translation results. The size of the array matches the number of target + * languages specified through the to query parameter. + */ + translations: Array; + /** + * Input text in the default script of the source language. sourceText property is present only when + * the input is expressed in a script that's not the usual script for the language. For example, + * if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text + * converted into Arab script. + */ + sourceText?: SourceTextOutput; +} +/** An object describing the detected language. */ +export interface DetectedLanguageOutput { + /** A string representing the code of the detected language. */ + language: string; + /** + * A float value indicating the confidence in the result. + * The score is between zero and one and a low score indicates a low confidence. + */ + score: number; +} +/** Translation result */ +export interface TranslationOutput { + /** A string representing the language code of the target language. */ + to: string; + /** A string giving the translated text. */ + text: string; + /** An object giving the translated text in the script specified by the toScript parameter. */ + transliteration?: TransliteratedTextOutput; + /** Alignment information. */ + alignment?: TranslatedTextAlignmentOutput; + /** Sentence boundaries in the input and output texts. */ + sentLen?: SentenceLengthOutput; +} +/** Transliterated text element. */ +export interface TransliteratedTextOutput { + /** A string which is the result of converting the input string to the output script. */ + text: string; + /** A string specifying the script used in the output. */ + script: string; +} +/** Alignment information object. */ +export interface TranslatedTextAlignmentOutput { + /** + * Maps input text to translated text. The alignment information is only provided when the request + * parameter includeAlignment is true. Alignment is returned as a string value of the following + * format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. + * The colon separates start and end index, the dash separates the languages, and space separates the words. + * One word may align with zero, one, or multiple words in the other language, and the aligned words may + * be non-contiguous. When no alignment information is available, the alignment element will be empty. + */ + proj: string; +} +/** An object returning sentence boundaries in the input and output texts. */ +export interface SentenceLengthOutput { + /** + * An integer array representing the lengths of the sentences in the input text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + srcSentLen: number[]; + /** + * An integer array representing the lengths of the sentences in the translated text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + transSentLen: number[]; +} +/** Input text in the default script of the source language. */ +export interface SourceTextOutput { + /** Input text in the default script of the source language. */ + text: string; +} +/** Item containing break sentence result. */ +export interface BreakSentenceItemOutput { + /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ + detectedLanguage?: DetectedLanguageOutput; + /** + * An integer array representing the lengths of the sentences in the input text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + sentLen: number[]; +} +/** Dictionary Lookup Element */ +export interface DictionaryLookupItemOutput { + /** + * A string giving the normalized form of the source term. + * For example, if the request is "JOHN", the normalized form will be "john". + * The content of this field becomes the input to lookup examples. + */ + normalizedSource: string; + /** + * A string giving the source term in a form best suited for end-user display. + * For example, if the input is "JOHN", the display form will reflect the usual + * spelling of the name: "John". + */ + displaySource: string; + /** A list of translations for the source term. */ + translations: Array; +} +/** Translation source term. */ +export interface DictionaryTranslationOutput { + /** + * A string giving the normalized form of this term in the target language. + * This value should be used as input to lookup examples. + */ + normalizedTarget: string; + /** + * A string giving the term in the target language and in a form best suited + * for end-user display. Generally, this will only differ from the normalizedTarget + * in terms of capitalization. For example, a proper noun like "Juan" will have + * normalizedTarget = "juan" and displayTarget = "Juan". + */ + displayTarget: string; + /** A string associating this term with a part-of-speech tag. */ + posTag: string; + /** + * A value between 0.0 and 1.0 which represents the "confidence" + * (or perhaps more accurately, "probability in the training data") of that translation pair. + * The sum of confidence scores for one source word may or may not sum to 1.0. + */ + confidence: number; + /** + * A string giving the word to display as a prefix of the translation. Currently, + * this is the gendered determiner of nouns, in languages that have gendered determiners. + * For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. + * This is only dependent on the translation, and not on the source. + * If there is no prefix, it will be the empty string. + */ + prefixWord: string; + /** + * A list of "back translations" of the target. For example, source words that the target can translate to. + * The list is guaranteed to contain the source word that was requested (e.g., if the source word being + * looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). + * However, it is not guaranteed to be in the first position, and often will not be. + */ + backTranslations: Array; +} +/** Back Translation */ +export interface BackTranslationOutput { + /** + * A string giving the normalized form of the source term that is a back-translation of the target. + * This value should be used as input to lookup examples. + */ + normalizedText: string; + /** + * A string giving the source term that is a back-translation of the target in a form best + * suited for end-user display. + */ + displayText: string; + /** + * An integer representing the number of examples that are available for this translation pair. + * Actual examples must be retrieved with a separate call to lookup examples. The number is mostly + * intended to facilitate display in a UX. For example, a user interface may add a hyperlink + * to the back-translation if the number of examples is greater than zero and show the back-translation + * as plain text if there are no examples. Note that the actual number of examples returned + * by a call to lookup examples may be less than numExamples, because additional filtering may be + * applied on the fly to remove "bad" examples. + */ + numExamples: number; + /** + * An integer representing the frequency of this translation pair in the data. The main purpose of this + * field is to provide a user interface with a means to sort back-translations so the most frequent terms are first. + */ + frequencyCount: number; +} +/** Dictionary Example element */ +export interface DictionaryExampleItemOutput { + /** + * A string giving the normalized form of the source term. Generally, this should be identical + * to the value of the Text field at the matching list index in the body of the request. + */ + normalizedSource: string; + /** + * A string giving the normalized form of the target term. Generally, this should be identical + * to the value of the Translation field at the matching list index in the body of the request. + */ + normalizedTarget: string; + /** A list of examples for the (source term, target term) pair. */ + examples: Array; +} +/** Dictionary Example */ +export interface DictionaryExampleOutput { + /** + * The string to concatenate before the value of sourceTerm to form a complete example. + * Do not add a space character, since it is already there when it should be. + * This value may be an empty string. + */ + sourcePrefix: string; + /** + * A string equal to the actual term looked up. The string is added with sourcePrefix + * and sourceSuffix to form the complete example. Its value is separated so it can be + * marked in a user interface, e.g., by bolding it. + */ + sourceTerm: string; + /** + * The string to concatenate after the value of sourceTerm to form a complete example. + * Do not add a space character, since it is already there when it should be. + * This value may be an empty string. + */ + sourceSuffix: string; + /** A string similar to sourcePrefix but for the target. */ + targetPrefix: string; + /** A string similar to sourceTerm but for the target. */ + targetTerm: string; + /** A string similar to sourceSuffix but for the target. */ + targetSuffix: string; +} +//# sourceMappingURL=outputModels.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts.map new file mode 100644 index 00000000000..ce0bc472989 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":"AAGA,sCAAsC;AACtC,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACxD,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;IAChE,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC;CAC7D;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,mGAAmG;IACnG,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,OAAO,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC5C;AAED,yFAAyF;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EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;CAClD;AAED,+BAA+B;AAC/B,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,gBAAgB,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CAChD;AAED,uBAAuB;AACvB,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;;OAQG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,iCAAiC;AACjC,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,QAAQ,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;CAC1C;AAED,yBAAyB;AACzB,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js new file mode 100644 index 00000000000..ff891030193 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=outputModels.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js.map new file mode 100644 index 00000000000..ca27ed678c2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js.map @@ -0,0 +1 @@ +{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.ts new file mode 100644 index 00000000000..66a1b2fd05e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.ts @@ -0,0 +1,320 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** Response for the languages API. */ +export interface GetLanguagesResultOutput { + /** Languages that support translate API. */ + translation?: Record; + /** Languages that support transliteration API. */ + transliteration?: Record; + /** Languages that support dictionary API. */ + dictionary?: Record; +} + +/** + * The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. + * A key identifies a language for which text can be translated to or translated from. + */ +export interface TranslationLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; +} + +/** + * The value of the transliteration property is a dictionary of (key, value) pairs. + * Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script + * to another script. + */ +export interface TransliterationLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** List of scripts to convert from. */ + scripts: Array; +} + +/** Script definition with list of script into which given script can be translitered. */ +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + /** List of scripts available to convert text to. */ + toScripts: Array; +} + +/** Common properties of language script */ +export interface CommonScriptModelOutput { + /** Code identifying the script. */ + code: string; + /** Display name of the script in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for the language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; +} + +/** Properties ot the source dictionary language */ +export interface SourceDictionaryLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; + /** List of languages with alterative translations and examples for the query expressed in the source language. */ + translations: Array; +} + +/** Properties of the target dictionary language */ +export interface TargetDictionaryLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; + /** Language code identifying the target language. */ + code: string; +} + +/** Representation of the Error Response from Translator Service. */ +export interface ErrorResponseOutput { + /** Error details. */ + error: ErrorDetailsOutput; +} + +/** Error details as returned by Translator Service. */ +export interface ErrorDetailsOutput { + /** Number identifier of the error. */ + code: number; + /** Human readable error description. */ + message: string; +} + +/** Element containing the translated text */ +export interface TranslatedTextItemOutput { + /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ + detectedLanguage?: DetectedLanguageOutput; + /** + * An array of translation results. The size of the array matches the number of target + * languages specified through the to query parameter. + */ + translations: Array; + /** + * Input text in the default script of the source language. sourceText property is present only when + * the input is expressed in a script that's not the usual script for the language. For example, + * if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text + * converted into Arab script. + */ + sourceText?: SourceTextOutput; +} + +/** An object describing the detected language. */ +export interface DetectedLanguageOutput { + /** A string representing the code of the detected language. */ + language: string; + /** + * A float value indicating the confidence in the result. + * The score is between zero and one and a low score indicates a low confidence. + */ + score: number; +} + +/** Translation result */ +export interface TranslationOutput { + /** A string representing the language code of the target language. */ + to: string; + /** A string giving the translated text. */ + text: string; + /** An object giving the translated text in the script specified by the toScript parameter. */ + transliteration?: TransliteratedTextOutput; + /** Alignment information. */ + alignment?: TranslatedTextAlignmentOutput; + /** Sentence boundaries in the input and output texts. */ + sentLen?: SentenceLengthOutput; +} + +/** Transliterated text element. */ +export interface TransliteratedTextOutput { + /** A string which is the result of converting the input string to the output script. */ + text: string; + /** A string specifying the script used in the output. */ + script: string; +} + +/** Alignment information object. */ +export interface TranslatedTextAlignmentOutput { + /** + * Maps input text to translated text. The alignment information is only provided when the request + * parameter includeAlignment is true. Alignment is returned as a string value of the following + * format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. + * The colon separates start and end index, the dash separates the languages, and space separates the words. + * One word may align with zero, one, or multiple words in the other language, and the aligned words may + * be non-contiguous. When no alignment information is available, the alignment element will be empty. + */ + proj: string; +} + +/** An object returning sentence boundaries in the input and output texts. */ +export interface SentenceLengthOutput { + /** + * An integer array representing the lengths of the sentences in the input text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + srcSentLen: number[]; + /** + * An integer array representing the lengths of the sentences in the translated text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + transSentLen: number[]; +} + +/** Input text in the default script of the source language. */ +export interface SourceTextOutput { + /** Input text in the default script of the source language. */ + text: string; +} + +/** Item containing break sentence result. */ +export interface BreakSentenceItemOutput { + /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ + detectedLanguage?: DetectedLanguageOutput; + /** + * An integer array representing the lengths of the sentences in the input text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + sentLen: number[]; +} + +/** Dictionary Lookup Element */ +export interface DictionaryLookupItemOutput { + /** + * A string giving the normalized form of the source term. + * For example, if the request is "JOHN", the normalized form will be "john". + * The content of this field becomes the input to lookup examples. + */ + normalizedSource: string; + /** + * A string giving the source term in a form best suited for end-user display. + * For example, if the input is "JOHN", the display form will reflect the usual + * spelling of the name: "John". + */ + displaySource: string; + /** A list of translations for the source term. */ + translations: Array; +} + +/** Translation source term. */ +export interface DictionaryTranslationOutput { + /** + * A string giving the normalized form of this term in the target language. + * This value should be used as input to lookup examples. + */ + normalizedTarget: string; + /** + * A string giving the term in the target language and in a form best suited + * for end-user display. Generally, this will only differ from the normalizedTarget + * in terms of capitalization. For example, a proper noun like "Juan" will have + * normalizedTarget = "juan" and displayTarget = "Juan". + */ + displayTarget: string; + /** A string associating this term with a part-of-speech tag. */ + posTag: string; + /** + * A value between 0.0 and 1.0 which represents the "confidence" + * (or perhaps more accurately, "probability in the training data") of that translation pair. + * The sum of confidence scores for one source word may or may not sum to 1.0. + */ + confidence: number; + /** + * A string giving the word to display as a prefix of the translation. Currently, + * this is the gendered determiner of nouns, in languages that have gendered determiners. + * For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. + * This is only dependent on the translation, and not on the source. + * If there is no prefix, it will be the empty string. + */ + prefixWord: string; + /** + * A list of "back translations" of the target. For example, source words that the target can translate to. + * The list is guaranteed to contain the source word that was requested (e.g., if the source word being + * looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). + * However, it is not guaranteed to be in the first position, and often will not be. + */ + backTranslations: Array; +} + +/** Back Translation */ +export interface BackTranslationOutput { + /** + * A string giving the normalized form of the source term that is a back-translation of the target. + * This value should be used as input to lookup examples. + */ + normalizedText: string; + /** + * A string giving the source term that is a back-translation of the target in a form best + * suited for end-user display. + */ + displayText: string; + /** + * An integer representing the number of examples that are available for this translation pair. + * Actual examples must be retrieved with a separate call to lookup examples. The number is mostly + * intended to facilitate display in a UX. For example, a user interface may add a hyperlink + * to the back-translation if the number of examples is greater than zero and show the back-translation + * as plain text if there are no examples. Note that the actual number of examples returned + * by a call to lookup examples may be less than numExamples, because additional filtering may be + * applied on the fly to remove "bad" examples. + */ + numExamples: number; + /** + * An integer representing the frequency of this translation pair in the data. The main purpose of this + * field is to provide a user interface with a means to sort back-translations so the most frequent terms are first. + */ + frequencyCount: number; +} + +/** Dictionary Example element */ +export interface DictionaryExampleItemOutput { + /** + * A string giving the normalized form of the source term. Generally, this should be identical + * to the value of the Text field at the matching list index in the body of the request. + */ + normalizedSource: string; + /** + * A string giving the normalized form of the target term. Generally, this should be identical + * to the value of the Translation field at the matching list index in the body of the request. + */ + normalizedTarget: string; + /** A list of examples for the (source term, target term) pair. */ + examples: Array; +} + +/** Dictionary Example */ +export interface DictionaryExampleOutput { + /** + * The string to concatenate before the value of sourceTerm to form a complete example. + * Do not add a space character, since it is already there when it should be. + * This value may be an empty string. + */ + sourcePrefix: string; + /** + * A string equal to the actual term looked up. The string is added with sourcePrefix + * and sourceSuffix to form the complete example. Its value is separated so it can be + * marked in a user interface, e.g., by bolding it. + */ + sourceTerm: string; + /** + * The string to concatenate after the value of sourceTerm to form a complete example. + * Do not add a space character, since it is already there when it should be. + * This value may be an empty string. + */ + sourceSuffix: string; + /** A string similar to sourcePrefix but for the target. */ + targetPrefix: string; + /** A string similar to sourceTerm but for the target. */ + targetTerm: string; + /** A string similar to sourceSuffix but for the target. */ + targetSuffix: string; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts new file mode 100644 index 00000000000..ed444dacea2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts @@ -0,0 +1,238 @@ +import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; +import { RequestParameters } from "@azure-rest/core-client"; +import { InputTextItem, DictionaryExampleTextItem } from "./models"; +export interface GetLanguagesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; + /** + * The language to use for user interface strings. Some of the fields in the response are names of languages or + * names of regions. Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` + * to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. + * Names are provided in the English language when a target language is not specified or when localization + * is not available. + */ + "Accept-Language"?: string; + /** + * Passing the value of the ETag response header in an If-None-Match field will allow the service to optimize the response. + * If the resource has not been modified, the service will return status code 304 and an empty response body. + */ + "If-None-Match"?: string; +} +export interface GetLanguagesQueryParamProperties { + /** + * A comma-separated list of names defining the group of languages to return. + * Allowed group names are: `translation`, `transliteration` and `dictionary`. + * If no scope is given, then all groups are returned, which is equivalent to passing + * `scope=translation,transliteration,dictionary`. To decide which set of supported languages + * is appropriate for your scenario, see the description of the [response object](#response-body). + */ + scope?: string; +} +export interface GetLanguagesQueryParam { + queryParameters?: GetLanguagesQueryParamProperties; +} +export interface GetLanguagesHeaderParam { + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} +export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; +export interface TranslateHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface TranslateBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface TranslateQueryParamProperties { + /** + * Specifies the language of the output text. The target language must be one of the supported languages included + * in the translation scope. For example, use to=de to translate to German. + * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. + * For example, use to=de&to=it to translate to German and Italian. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request + */ + to: string; + /** + * Specifies the language of the input text. Find which languages are available to translate from by + * looking up supported languages using the translation scope. If the from parameter isn't specified, + * automatic language detection is applied to determine the source language. + * + * You must use the from parameter rather than autodetection when using the dynamic dictionary feature. + * Note: the dynamic dictionary feature is case-sensitive. + */ + from?: string; + /** + * Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, + * complete element. Possible values are: plain (default) or html. + */ + textType?: string; + /** + * A string specifying the category (domain) of the translation. This parameter is used to get translations + * from a customized system built with Custom Translator. Add the Category ID from your Custom Translator + * project details to this parameter to use your deployed customized system. Default value is: general. + */ + category?: string; + /** + * Specifies how profanities should be treated in translations. + * Possible values are: NoAction (default), Marked or Deleted. + */ + profanityAction?: string; + /** + * Specifies how profanities should be marked in translations. + * Possible values are: Asterisk (default) or Tag. + */ + profanityMarker?: string; + /** + * Specifies whether to include alignment projection from source text to translated text. + * Possible values are: true or false (default). + */ + includeAlignment?: boolean; + /** + * Specifies whether to include sentence boundaries for the input text and the translated text. + * Possible values are: true or false (default). + */ + includeSentenceLength?: boolean; + /** + * Specifies a fallback language if the language of the input text can't be identified. + * Language autodetection is applied when the from parameter is omitted. If detection fails, + * the suggestedFrom language will be assumed. + */ + suggestedFrom?: string; + /** Specifies the script of the input text. */ + fromScript?: string; + /** Specifies the script of the translated text. */ + toScript?: string; + /** + * Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. + * Possible values are: true (default) or false. + * + * allowFallback=false specifies that the translation should only use systems trained for the category specified + * by the request. If a translation for language X to language Y requires chaining through a pivot language E, + * then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. + * If no system is found with the specific category, the request will return a 400 status code. allowFallback=true + * specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. + */ + allowFallback?: boolean; +} +export interface TranslateQueryParam { + queryParameters: TranslateQueryParamProperties; +} +export interface TranslateHeaderParam { + headers?: RawHttpHeadersInput & TranslateHeaders; +} +export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; +export interface TransliterateHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface TransliterateBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface TransliterateQueryParamProperties { + /** + * Specifies the language of the text to convert from one script to another. + * Possible languages are listed in the transliteration scope obtained by querying the service + * for its supported languages. + */ + language: string; + /** + * Specifies the script used by the input text. Look up supported languages using the transliteration scope, + * to find input scripts available for the selected language. + */ + fromScript: string; + /** + * Specifies the output script. Look up supported languages using the transliteration scope, to find output + * scripts available for the selected combination of input language and input script. + */ + toScript: string; +} +export interface TransliterateQueryParam { + queryParameters: TransliterateQueryParamProperties; +} +export interface TransliterateHeaderParam { + headers?: RawHttpHeadersInput & TransliterateHeaders; +} +export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; +export interface FindSentenceBoundariesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface FindSentenceBoundariesBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface FindSentenceBoundariesQueryParamProperties { + /** + * Language tag identifying the language of the input text. + * If a code isn't specified, automatic language detection will be applied. + */ + language?: string; + /** + * Script tag identifying the script used by the input text. + * If a script isn't specified, the default script of the language will be assumed. + */ + script?: string; +} +export interface FindSentenceBoundariesQueryParam { + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} +export interface FindSentenceBoundariesHeaderParam { + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; +export interface LookupDictionaryEntriesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface LookupDictionaryEntriesBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface LookupDictionaryEntriesQueryParamProperties { + /** + * Specifies the language of the input text. + * The source language must be one of the supported languages included in the dictionary scope. + */ + from: string; + /** + * Specifies the language of the output text. + * The target language must be one of the supported languages included in the dictionary scope. + */ + to: string; +} +export interface LookupDictionaryEntriesQueryParam { + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} +export interface LookupDictionaryEntriesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; +export interface LookupDictionaryExamplesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface LookupDictionaryExamplesBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface LookupDictionaryExamplesQueryParamProperties { + /** + * Specifies the language of the input text. + * The source language must be one of the supported languages included in the dictionary scope. + */ + from: string; + /** + * Specifies the language of the output text. + * The target language must be one of the supported languages included in the dictionary scope. + */ + to: string; +} +export interface LookupDictionaryExamplesQueryParam { + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} +export interface LookupDictionaryExamplesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; +//# sourceMappingURL=parameters.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts.map new file mode 100644 index 00000000000..6e5d5579cfb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,CAAC,EAAE,gCAAgC,CAAC;CACpD;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;CACrD;AAED,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GACzD,uBAAuB,GACvB,iBAAiB,CAAC;AAEpB,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,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mBAAmB,GAAG,8BAA8B,CAAC;CAChE;AAED,MAAM,MAAM,iCAAiC,GAAG,iCAAiC,GAC/E,kCAAkC,GAClC,gCAAgC,GAChC,iBAAiB,CAAC;AAEpB,MAAM,WAAW,+BAA+B;IAC9C,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,4CAA4C;IAC3D;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kCAAkC;IACjD,eAAe,EAAE,4CAA4C,CAAC;CAC/D;AAED,MAAM,WAAW,mCAAmC;IAClD,OAAO,CAAC,EAAE,mBAAmB,GAAG,+BAA+B,CAAC;CACjE;AAED,MAAM,MAAM,kCAAkC,GAAG,kCAAkC,GACjF,mCAAmC,GACnC,iCAAiC,GACjC,iBAAiB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js new file mode 100644 index 00000000000..5f2ab1f652e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=parameters.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js.map new file mode 100644 index 00000000000..30d9e4dbe93 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parameters.js","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts new file mode 100644 index 00000000000..b5de51d4d11 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts @@ -0,0 +1,292 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; +import { RequestParameters } from "@azure-rest/core-client"; +import { InputTextItem, DictionaryExampleTextItem } from "./models"; + +export interface GetLanguagesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; + /** + * The language to use for user interface strings. Some of the fields in the response are names of languages or + * names of regions. Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` + * to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. + * Names are provided in the English language when a target language is not specified or when localization + * is not available. + */ + "Accept-Language"?: string; + /** + * Passing the value of the ETag response header in an If-None-Match field will allow the service to optimize the response. + * If the resource has not been modified, the service will return status code 304 and an empty response body. + */ + "If-None-Match"?: string; +} + +export interface GetLanguagesQueryParamProperties { + /** + * A comma-separated list of names defining the group of languages to return. + * Allowed group names are: `translation`, `transliteration` and `dictionary`. + * If no scope is given, then all groups are returned, which is equivalent to passing + * `scope=translation,transliteration,dictionary`. To decide which set of supported languages + * is appropriate for your scenario, see the description of the [response object](#response-body). + */ + scope?: string; +} + +export interface GetLanguagesQueryParam { + queryParameters?: GetLanguagesQueryParamProperties; +} + +export interface GetLanguagesHeaderParam { + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} + +export type GetLanguagesParameters = GetLanguagesQueryParam & + GetLanguagesHeaderParam & + RequestParameters; + +export interface TranslateHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface TranslateBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface TranslateQueryParamProperties { + /** + * Specifies the language of the output text. The target language must be one of the supported languages included + * in the translation scope. For example, use to=de to translate to German. + * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. + * For example, use to=de&to=it to translate to German and Italian. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request + */ + to: string; + /** + * Specifies the language of the input text. Find which languages are available to translate from by + * looking up supported languages using the translation scope. If the from parameter isn't specified, + * automatic language detection is applied to determine the source language. + * + * You must use the from parameter rather than autodetection when using the dynamic dictionary feature. + * Note: the dynamic dictionary feature is case-sensitive. + */ + from?: string; + /** + * Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, + * complete element. Possible values are: plain (default) or html. + */ + textType?: string; + /** + * A string specifying the category (domain) of the translation. This parameter is used to get translations + * from a customized system built with Custom Translator. Add the Category ID from your Custom Translator + * project details to this parameter to use your deployed customized system. Default value is: general. + */ + category?: string; + /** + * Specifies how profanities should be treated in translations. + * Possible values are: NoAction (default), Marked or Deleted. + */ + profanityAction?: string; + /** + * Specifies how profanities should be marked in translations. + * Possible values are: Asterisk (default) or Tag. + */ + profanityMarker?: string; + /** + * Specifies whether to include alignment projection from source text to translated text. + * Possible values are: true or false (default). + */ + includeAlignment?: boolean; + /** + * Specifies whether to include sentence boundaries for the input text and the translated text. + * Possible values are: true or false (default). + */ + includeSentenceLength?: boolean; + /** + * Specifies a fallback language if the language of the input text can't be identified. + * Language autodetection is applied when the from parameter is omitted. If detection fails, + * the suggestedFrom language will be assumed. + */ + suggestedFrom?: string; + /** Specifies the script of the input text. */ + fromScript?: string; + /** Specifies the script of the translated text. */ + toScript?: string; + /** + * Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. + * Possible values are: true (default) or false. + * + * allowFallback=false specifies that the translation should only use systems trained for the category specified + * by the request. If a translation for language X to language Y requires chaining through a pivot language E, + * then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. + * If no system is found with the specific category, the request will return a 400 status code. allowFallback=true + * specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. + */ + allowFallback?: boolean; +} + +export interface TranslateQueryParam { + queryParameters: TranslateQueryParamProperties; +} + +export interface TranslateHeaderParam { + headers?: RawHttpHeadersInput & TranslateHeaders; +} + +export type TranslateParameters = TranslateQueryParam & + TranslateHeaderParam & + TranslateBodyParam & + RequestParameters; + +export interface TransliterateHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface TransliterateBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface TransliterateQueryParamProperties { + /** + * Specifies the language of the text to convert from one script to another. + * Possible languages are listed in the transliteration scope obtained by querying the service + * for its supported languages. + */ + language: string; + /** + * Specifies the script used by the input text. Look up supported languages using the transliteration scope, + * to find input scripts available for the selected language. + */ + fromScript: string; + /** + * Specifies the output script. Look up supported languages using the transliteration scope, to find output + * scripts available for the selected combination of input language and input script. + */ + toScript: string; +} + +export interface TransliterateQueryParam { + queryParameters: TransliterateQueryParamProperties; +} + +export interface TransliterateHeaderParam { + headers?: RawHttpHeadersInput & TransliterateHeaders; +} + +export type TransliterateParameters = TransliterateQueryParam & + TransliterateHeaderParam & + TransliterateBodyParam & + RequestParameters; + +export interface FindSentenceBoundariesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface FindSentenceBoundariesBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface FindSentenceBoundariesQueryParamProperties { + /** + * Language tag identifying the language of the input text. + * If a code isn't specified, automatic language detection will be applied. + */ + language?: string; + /** + * Script tag identifying the script used by the input text. + * If a script isn't specified, the default script of the language will be assumed. + */ + script?: string; +} + +export interface FindSentenceBoundariesQueryParam { + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} + +export interface FindSentenceBoundariesHeaderParam { + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} + +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & + FindSentenceBoundariesHeaderParam & + FindSentenceBoundariesBodyParam & + RequestParameters; + +export interface LookupDictionaryEntriesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface LookupDictionaryEntriesBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface LookupDictionaryEntriesQueryParamProperties { + /** + * Specifies the language of the input text. + * The source language must be one of the supported languages included in the dictionary scope. + */ + from: string; + /** + * Specifies the language of the output text. + * The target language must be one of the supported languages included in the dictionary scope. + */ + to: string; +} + +export interface LookupDictionaryEntriesQueryParam { + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} + +export interface LookupDictionaryEntriesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} + +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & + LookupDictionaryEntriesHeaderParam & + LookupDictionaryEntriesBodyParam & + RequestParameters; + +export interface LookupDictionaryExamplesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface LookupDictionaryExamplesBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface LookupDictionaryExamplesQueryParamProperties { + /** + * Specifies the language of the input text. + * The source language must be one of the supported languages included in the dictionary scope. + */ + from: string; + /** + * Specifies the language of the output text. + * The target language must be one of the supported languages included in the dictionary scope. + */ + to: string; +} + +export interface LookupDictionaryExamplesQueryParam { + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} + +export interface LookupDictionaryExamplesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} + +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & + LookupDictionaryExamplesHeaderParam & + LookupDictionaryExamplesBodyParam & + RequestParameters; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts new file mode 100644 index 00000000000..7f9908d2f42 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts @@ -0,0 +1,138 @@ +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import { HttpResponse } from "@azure-rest/core-client"; +import { GetLanguagesResultOutput, ErrorResponseOutput, TranslatedTextItemOutput, TransliteratedTextOutput, BreakSentenceItemOutput, DictionaryLookupItemOutput, DictionaryExampleItemOutput } from "./outputModels"; +export interface GetLanguages200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; + /** + * Current value of the entity tag for the requested groups of supported languages. + * To make subsequent requests more efficient, the client may send the `ETag` value in an + * `If-None-Match` header field. + */ + etag: string; +} +/** The request has succeeded. */ +export interface GetLanguages200Response extends HttpResponse { + status: "200"; + body: GetLanguagesResultOutput; + headers: RawHttpHeaders & GetLanguages200Headers; +} +export interface GetLanguagesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface GetLanguagesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; +} +export interface Translate200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; + /** + * Specifies the system type that was used for translation for each 'to' language requested for translation. + * The value is a comma-separated list of strings. Each string indicates a type: + * + * * Custom - Request includes a custom system and at least one custom system was used during translation. + * * Team - All other requests + */ + "x-mt-system": string; + /** + * Specifies consumption (the number of characters for which the user will be charged) for the translation + * job request. For example, if the word "Hello" is translated from English (en) to French (fr), + * this field will return the value '5'. + */ + "x-metered-usage": number; +} +/** Response for the translation API. */ +export interface Translate200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & Translate200Headers; +} +export interface TranslateDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface TranslateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & TranslateDefaultHeaders; +} +export interface Transliterate200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +/** Response for the transliteration API. */ +export interface Transliterate200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & Transliterate200Headers; +} +export interface TransliterateDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface TransliterateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & TransliterateDefaultHeaders; +} +export interface FindSentenceBoundaries200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +/** Response for the Break SEntence API. */ +export interface FindSentenceBoundaries200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; +} +export interface FindSentenceBoundariesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; +} +export interface LookupDictionaryEntries200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +/** Response for the dictionary lookup API. */ +export interface LookupDictionaryEntries200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; +} +export interface LookupDictionaryEntriesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; +} +export interface LookupDictionaryExamples200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +/** Response for the dictionary examples API. */ +export interface LookupDictionaryExamples200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; +} +export interface LookupDictionaryExamplesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; +} +//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts.map new file mode 100644 index 00000000000..1b10601df71 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["responses.ts"],"names":[],"mapp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AM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,EAAE,cAAc,GAAG,iCAAiC,CAAC;CAC7D;AAED,MAAM,WAAW,qCAAqC;IACpD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,cAAc,GAAG,qCAAqC,CAAC;CACjE;AAED,MAAM,WAAW,kCAAkC;IACjD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,gDAAgD;AAChD,MAAM,WAAW,mCAAoC,SAAQ,YAAY;IACvE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACzC,OAAO,EAAE,cAAc,GAAG,kCAAkC,CAAC;CAC9D;AAED,MAAM,WAAW,sCAAsC;IACrD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uCAAwC,SAAQ,YAAY;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,cAAc,GAAG,sCAAsC,CAAC;CAClE"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js new file mode 100644 index 00000000000..c1f0652be92 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js.map new file mode 100644 index 00000000000..985ea679d9d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.js","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.ts new file mode 100644 index 00000000000..709d234da6a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.ts @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import { HttpResponse } from "@azure-rest/core-client"; +import { + GetLanguagesResultOutput, + ErrorResponseOutput, + TranslatedTextItemOutput, + TransliteratedTextOutput, + BreakSentenceItemOutput, + DictionaryLookupItemOutput, + DictionaryExampleItemOutput, +} from "./outputModels"; + +export interface GetLanguages200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; + /** + * Current value of the entity tag for the requested groups of supported languages. + * To make subsequent requests more efficient, the client may send the `ETag` value in an + * `If-None-Match` header field. + */ + etag: string; +} + +/** The request has succeeded. */ +export interface GetLanguages200Response extends HttpResponse { + status: "200"; + body: GetLanguagesResultOutput; + headers: RawHttpHeaders & GetLanguages200Headers; +} + +export interface GetLanguagesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface GetLanguagesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; +} + +export interface Translate200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; + /** + * Specifies the system type that was used for translation for each 'to' language requested for translation. + * The value is a comma-separated list of strings. Each string indicates a type: + * + * * Custom - Request includes a custom system and at least one custom system was used during translation. + * * Team - All other requests + */ + "x-mt-system": string; + /** + * Specifies consumption (the number of characters for which the user will be charged) for the translation + * job request. For example, if the word "Hello" is translated from English (en) to French (fr), + * this field will return the value '5'. + */ + "x-metered-usage": number; +} + +/** Response for the translation API. */ +export interface Translate200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & Translate200Headers; +} + +export interface TranslateDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface TranslateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & TranslateDefaultHeaders; +} + +export interface Transliterate200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +/** Response for the transliteration API. */ +export interface Transliterate200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & Transliterate200Headers; +} + +export interface TransliterateDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface TransliterateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & TransliterateDefaultHeaders; +} + +export interface FindSentenceBoundaries200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +/** Response for the Break SEntence API. */ +export interface FindSentenceBoundaries200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; +} + +export interface FindSentenceBoundariesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; +} + +export interface LookupDictionaryEntries200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +/** Response for the dictionary lookup API. */ +export interface LookupDictionaryEntries200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; +} + +export interface LookupDictionaryEntriesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; +} + +export interface LookupDictionaryExamples200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +/** Response for the dictionary examples API. */ +export interface LookupDictionaryExamples200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; +} + +export interface LookupDictionaryExamplesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts new file mode 100644 index 00000000000..322bc07c3d1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts @@ -0,0 +1,2 @@ +export declare function buildMultiCollection(items: string[], parameterName: string): string; +//# sourceMappingURL=serializeHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts.map new file mode 100644 index 00000000000..12a8c4395a2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"serializeHelper.d.ts","sourceRoot":"","sources":["serializeHelper.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CASnF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js new file mode 100644 index 00000000000..7cbc1277126 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js @@ -0,0 +1,16 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.buildMultiCollection = buildMultiCollection; +function buildMultiCollection(items, parameterName) { + return items + .map((item, index) => { + if (index === 0) { + return item; + } + return `${parameterName}=${item}`; + }) + .join("&"); +} +//# sourceMappingURL=serializeHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js.map new file mode 100644 index 00000000000..3770ca91fa6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"serializeHelper.js","sourceRoot":"","sources":["serializeHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,oDASC;AATD,SAAgB,oBAAoB,CAAC,KAAe,EAAE,aAAqB;IACzE,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACnB,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,GAAG,aAAa,IAAI,IAAI,EAAE,CAAC;IACpC,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.ts new file mode 100644 index 00000000000..4a0a83f7ce0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.ts @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export function buildMultiCollection(items: string[], parameterName: string): string { + return items + .map((item, index) => { + if (index === 0) { + return item; + } + return `${parameterName}=${item}`; + }) + .join("&"); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts new file mode 100644 index 00000000000..ee7d42963d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=breakSentenceTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts.map new file mode 100644 index 00000000000..5dc888b8a0a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceTest.spec.d.ts","sourceRoot":"","sources":["breakSentenceTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js new file mode 100644 index 00000000000..377d75b498f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js @@ -0,0 +1,91 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("BreakSentence tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("auto detect", async () => { + const inputText = [{ text: "hello world" }]; + const response = await client.path("/breaksentence").post({ + body: inputText, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const breakSentences = response.body; + chai_1.assert.isTrue(breakSentences[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(breakSentences[0].detectedLanguage?.score === 0.98); + chai_1.assert.isTrue(breakSentences[0].sentLen[0] === 11); + }); + it("with language", async () => { + const inputText = [ + { + text: "รวบรวมแผ่นคำตอบ ระยะเวลาของโครงการ วิธีเลือกชายในฝัน หมายเลขซีเรียลของระเบียน วันที่สิ้นสุดของโครงการเมื่อเสร็จสมบูรณ์ ปีที่มีการรวบรวม ทุกคนมีวัฒนธรรมและวิธีคิดเหมือนกัน ได้รับโทษจำคุกตลอดชีวิตใน ฉันลดได้ถึง 55 ปอนด์ได้อย่างไร ฉันคิดว่าใครๆ ก็ต้องการกำหนดเมนูอาหารส่วนบุคคล", + }, + ]; + const parameters = { + language: "th", + }; + const response = await client.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const breakSentences = response.body; + const expectedLengths = [78, 41, 110, 46]; + for (let i = 0; i < expectedLengths.length; i++) { + chai_1.assert.equal(expectedLengths[i], breakSentences[0].sentLen[i]); + } + }); + it("with language and script", async () => { + const inputText = [{ text: "zhè shì gè cè shì。" }]; + const parameters = { + language: "zh-Hans", + script: "Latn", + }; + const response = await client.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const breakSentences = response.body; + chai_1.assert.equal(breakSentences[0].sentLen[0], 18); + }); + it("with multiple languages", async () => { + const inputText = [ + { text: "hello world" }, + { text: "العالم هو مكان مثير جدا للاهتمام" }, + ]; + const response = await client.path("/breaksentence").post({ + body: inputText, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const breakSentences = response.body; + chai_1.assert.equal(breakSentences[0].detectedLanguage?.language, "en"); + chai_1.assert.equal(breakSentences[1].detectedLanguage?.language, "ar"); + chai_1.assert.equal(breakSentences[0].sentLen[0], 11); + chai_1.assert.equal(breakSentences[1].sentLen[0], 32); + }); +}); +//# sourceMappingURL=breakSentenceTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js.map new file mode 100644 index 00000000000..77cd02603f2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceTest.spec.js","sourceRoot":"","sources":["breakSentenceTest.spec.ts"],"names":[],"mappings":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,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,aAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.ts new file mode 100644 index 00000000000..636deab8e38 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.ts @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + BreakSentenceItemOutput, + FindSentenceBoundariesQueryParamProperties, + InputTextItem, + TextTranslationClient, + isUnexpected, +} from "../../src"; +import { createTranslationClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("BreakSentence tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("auto detect", async () => { + const inputText: InputTextItem[] = [{ text: "hello world" }]; + const response = await client.path("/breaksentence").post({ + body: inputText, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const breakSentences = response.body as BreakSentenceItemOutput[]; + assert.isTrue(breakSentences[0].detectedLanguage?.language === "en"); + assert.isTrue(breakSentences[0].detectedLanguage?.score === 0.98); + assert.isTrue(breakSentences[0].sentLen[0] === 11); + }); + + it("with language", async () => { + const inputText: InputTextItem[] = [ + { + text: "รวบรวมแผ่นคำตอบ ระยะเวลาของโครงการ วิธีเลือกชายในฝัน หมายเลขซีเรียลของระเบียน วันที่สิ้นสุดของโครงการเมื่อเสร็จสมบูรณ์ ปีที่มีการรวบรวม ทุกคนมีวัฒนธรรมและวิธีคิดเหมือนกัน ได้รับโทษจำคุกตลอดชีวิตใน ฉันลดได้ถึง 55 ปอนด์ได้อย่างไร ฉันคิดว่าใครๆ ก็ต้องการกำหนดเมนูอาหารส่วนบุคคล", + }, + ]; + const parameters: FindSentenceBoundariesQueryParamProperties & Record = { + language: "th", + }; + const response = await client.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const breakSentences = response.body as BreakSentenceItemOutput[]; + + const expectedLengths = [78, 41, 110, 46]; + for (let i = 0; i < expectedLengths.length; i++) { + assert.equal(expectedLengths[i], breakSentences[0].sentLen[i]); + } + }); + + it("with language and script", async () => { + const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; + const parameters: FindSentenceBoundariesQueryParamProperties & Record = { + language: "zh-Hans", + script: "Latn", + }; + const response = await client.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const breakSentences = response.body as BreakSentenceItemOutput[]; + assert.equal(breakSentences[0].sentLen[0], 18); + }); + + it("with multiple languages", async () => { + const inputText: InputTextItem[] = [ + { text: "hello world" }, + { text: "العالم هو مكان مثير جدا للاهتمام" }, + ]; + const response = await client.path("/breaksentence").post({ + body: inputText, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const breakSentences = response.body as BreakSentenceItemOutput[]; + assert.equal(breakSentences[0].detectedLanguage?.language, "en"); + assert.equal(breakSentences[1].detectedLanguage?.language, "ar"); + assert.equal(breakSentences[0].sentLen[0], 11); + assert.equal(breakSentences[1].sentLen[0], 32); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts new file mode 100644 index 00000000000..1f952832ab8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dictionaryExamplesTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts.map new file mode 100644 index 00000000000..b0915adff38 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamplesTest.spec.d.ts","sourceRoot":"","sources":["dictionaryExamplesTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js new file mode 100644 index 00000000000..6f208052af2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js @@ -0,0 +1,57 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("DictionaryExamples tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("single input element", async () => { + const inputText = [{ text: "fly", translation: "volar" }]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const dictionaryExamples = response.body; + chai_1.assert.equal(dictionaryExamples[0].normalizedSource, "fly"); + chai_1.assert.isTrue(dictionaryExamples[0].normalizedTarget === "volar"); + }); + it("multiple input elements", async () => { + const inputText = [ + { text: "fly", translation: "volar" }, + { text: "beef", translation: "came" }, + ]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const dictionaryExamples = response.body; + chai_1.assert.isTrue(dictionaryExamples.length === 2); + }); +}); +//# sourceMappingURL=dictionaryExamplesTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js.map new file mode 100644 index 00000000000..354d385c812 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamplesTest.spec.js","sourceRoot":"","sources":["dictionaryExamplesTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;QACvF,MAAM,UAAU,GAA2E;YACzF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;YAC9D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAqC,CAAC;QAC1E,aAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QAC5D,aAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,gBAAgB,KAAK,OAAO,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,SAAS,GAAgC;YAC7C,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE;YACrC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;SACtC,CAAC;QACF,MAAM,UAAU,GAA2E;YACzF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;YAC9D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAqC,CAAC;QAC1E,aAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.ts new file mode 100644 index 00000000000..d73c711478c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.ts @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + DictionaryExampleItemOutput, + DictionaryExampleTextItem, + LookupDictionaryExamplesQueryParamProperties, + TextTranslationClient, + isUnexpected, +} from "../../src"; +import { createTranslationClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("DictionaryExamples tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("single input element", async () => { + const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; + const parameters: LookupDictionaryExamplesQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const dictionaryExamples = response.body as DictionaryExampleItemOutput[]; + assert.equal(dictionaryExamples[0].normalizedSource, "fly"); + assert.isTrue(dictionaryExamples[0].normalizedTarget === "volar"); + }); + + it("multiple input elements", async () => { + const inputText: DictionaryExampleTextItem[] = [ + { text: "fly", translation: "volar" }, + { text: "beef", translation: "came" }, + ]; + const parameters: LookupDictionaryExamplesQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const dictionaryExamples = response.body as DictionaryExampleItemOutput[]; + assert.isTrue(dictionaryExamples.length === 2); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts new file mode 100644 index 00000000000..62409c827b6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dictionaryLookupTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts.map new file mode 100644 index 00000000000..ddcbedcc6e7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookupTest.spec.d.ts","sourceRoot":"","sources":["dictionaryLookupTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js new file mode 100644 index 00000000000..df90f77de21 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js @@ -0,0 +1,54 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("DictionaryLookup tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("single input element", async () => { + const inputText = [{ text: "fly" }]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const dictionaryEntries = response.body; + chai_1.assert.isTrue(dictionaryEntries[0].normalizedSource === "fly"); + chai_1.assert.isTrue(dictionaryEntries[0].displaySource === "fly"); + }); + it("multiple input elements", async () => { + const inputText = [{ text: "fly" }, { text: "fox" }]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const dictionaryEntries = response.body; + chai_1.assert.isTrue(dictionaryEntries.length === 2); + }); +}); +//# sourceMappingURL=dictionaryLookupTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js.map new file mode 100644 index 00000000000..14964fd87c1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookupTest.spec.js","sourceRoot":"","sources":["dictionaryLookupTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QACrD,MAAM,UAAU,GAA0E;YACxF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;YAC5D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QAEH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAoC,CAAC;QACxE,aAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,gBAAgB,KAAK,KAAK,CAAC,CAAC;QAC/D,aAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,aAAa,KAAK,KAAK,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QACtE,MAAM,UAAU,GAA0E;YACxF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;YAC5D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QAEH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAoC,CAAC;QACxE,aAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.ts new file mode 100644 index 00000000000..9ed204ccce1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.ts @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + InputTextItem, + TextTranslationClient, + LookupDictionaryEntriesQueryParamProperties, + DictionaryLookupItemOutput, + isUnexpected, +} from "../../src"; +import { createTranslationClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("DictionaryLookup tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("single input element", async () => { + const inputText: InputTextItem[] = [{ text: "fly" }]; + const parameters: LookupDictionaryEntriesQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, + }); + + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const dictionaryEntries = response.body as DictionaryLookupItemOutput[]; + assert.isTrue(dictionaryEntries[0].normalizedSource === "fly"); + assert.isTrue(dictionaryEntries[0].displaySource === "fly"); + }); + + it("multiple input elements", async () => { + const inputText: InputTextItem[] = [{ text: "fly" }, { text: "fox" }]; + const parameters: LookupDictionaryEntriesQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, + }); + + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const dictionaryEntries = response.body as DictionaryLookupItemOutput[]; + assert.isTrue(dictionaryEntries.length === 2); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts new file mode 100644 index 00000000000..bf328985c26 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=getLanguagesTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts.map new file mode 100644 index 00000000000..bee8f034354 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesTest.spec.d.ts","sourceRoot":"","sources":["getLanguagesTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js new file mode 100644 index 00000000000..7f59ec0d8c2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js @@ -0,0 +1,129 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("GetLanguages tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createLanguageClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("all scopes", async () => { + const response = await client.path("/languages").get(); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.translation !== null); + chai_1.assert.isTrue(languages.transliteration !== null); + chai_1.assert.isTrue(languages.dictionary !== null); + }); + it("translation scope", async () => { + const parameters = { + queryParameters: { + scope: "translation", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.translation !== null); + chai_1.assert.isTrue(languages?.translation?.["af"]?.dir !== null); + chai_1.assert.isTrue(languages?.translation?.["af"]?.name !== null); + chai_1.assert.isTrue(languages?.translation?.["af"]?.nativeName !== null); + }); + it("transliteration scope", async () => { + const parameters = { + queryParameters: { + scope: "transliteration", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.transliteration !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.name !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].code !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].dir !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].name !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].nativeName !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].code !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].dir !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].name !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].nativeName !== null); + }); + it("transliteration scope multiple scripts", async () => { + const parameters = { + queryParameters: { + scope: "transliteration", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.transliteration !== null); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.name !== null); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts !== null); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts?.length === 2); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[0].toScripts.length === 2); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[1].toScripts.length === 2); + }); + it("dictionary scope", async () => { + const parameters = { + queryParameters: { + scope: "dictionary", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.dictionary !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.name !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].code !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].dir !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].name !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].nativeName !== null); + }); + it("dictionary scope with multiple translations", async () => { + const parameters = { + queryParameters: { + scope: "dictionary", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.dictionary !== null); + chai_1.assert.isTrue(languages?.dictionary?.["en"]?.name !== null); + chai_1.assert.isTrue(languages?.dictionary?.["en"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.dictionary?.["en"]?.translations !== null); + chai_1.assert.isTrue(languages?.dictionary?.["en"]?.translations?.length !== 1); + }); + it("with culture", async () => { + const parameters = { + headers: { + "Accept-Language": "es", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.translation !== null); + chai_1.assert.isTrue(languages.transliteration !== null); + chai_1.assert.isTrue(languages.dictionary !== null); + chai_1.assert.isTrue(languages?.translation?.["en"]?.name !== null); + chai_1.assert.isTrue(languages?.translation?.["en"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.translation?.["en"]?.dir !== null); + }); +}); +//# sourceMappingURL=getLanguagesTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js.map new file mode 100644 index 00000000000..fc4a372a714 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesTest.spec.js","sourceRoot":"","sources":["getLanguagesTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAE9B,2DAA6E;AAG7E,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAA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AAG,CAAC,UAAU,CAAC,CAAC;QACjE,aAAM,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAgC,CAAC;QAC5D,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC;QAC9C,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC;QAClD,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC;QAE7C,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC;QAC7D,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC,CAAC;QACnE,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.ts new file mode 100644 index 00000000000..a3bba9c0a10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.ts @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { GetLanguagesParameters, GetLanguagesResultOutput, TextTranslationClient } from "../../src"; +import { createLanguageClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("GetLanguages tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createLanguageClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("all scopes", async () => { + const response = await client.path("/languages").get(); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.translation !== null); + assert.isTrue(languages.transliteration !== null); + assert.isTrue(languages.dictionary !== null); + }); + + it("translation scope", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "translation", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.translation !== null); + assert.isTrue(languages?.translation?.["af"]?.dir !== null); + assert.isTrue(languages?.translation?.["af"]?.name !== null); + assert.isTrue(languages?.translation?.["af"]?.nativeName !== null); + }); + + it("transliteration scope", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "transliteration", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.transliteration !== null); + assert.isTrue(languages?.transliteration?.["be"]?.name !== null); + assert.isTrue(languages?.transliteration?.["be"]?.nativeName !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts !== null); + + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].code !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].dir !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].name !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].nativeName !== null); + + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].code !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].dir !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].name !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].nativeName !== null); + }); + + it("transliteration scope multiple scripts", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "transliteration", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.transliteration !== null); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.name !== null); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.nativeName !== null); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts !== null); + + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts?.length === 2); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[0].toScripts.length === 2); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[1].toScripts.length === 2); + }); + + it("dictionary scope", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "dictionary", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.dictionary !== null); + assert.isTrue(languages?.dictionary?.["de"]?.name !== null); + assert.isTrue(languages?.dictionary?.["de"]?.nativeName !== null); + assert.isTrue(languages?.dictionary?.["de"]?.translations !== null); + + assert.isTrue(languages?.dictionary?.["de"]?.translations[0].code !== null); + assert.isTrue(languages?.dictionary?.["de"]?.translations[0].dir !== null); + assert.isTrue(languages?.dictionary?.["de"]?.translations[0].name !== null); + assert.isTrue(languages?.dictionary?.["de"]?.translations[0].nativeName !== null); + }); + + it("dictionary scope with multiple translations", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "dictionary", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.dictionary !== null); + assert.isTrue(languages?.dictionary?.["en"]?.name !== null); + assert.isTrue(languages?.dictionary?.["en"]?.nativeName !== null); + assert.isTrue(languages?.dictionary?.["en"]?.translations !== null); + assert.isTrue(languages?.dictionary?.["en"]?.translations?.length !== 1); + }); + + it("with culture", async () => { + const parameters: GetLanguagesParameters = { + headers: { + "Accept-Language": "es", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.translation !== null); + assert.isTrue(languages.transliteration !== null); + assert.isTrue(languages.dictionary !== null); + + assert.isTrue(languages?.translation?.["en"]?.name !== null); + assert.isTrue(languages?.translation?.["en"]?.nativeName !== null); + assert.isTrue(languages?.translation?.["en"]?.dir !== null); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts new file mode 100644 index 00000000000..b3810ea968f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=translateTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts.map new file mode 100644 index 00000000000..c22217a3022 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTest.spec.d.ts","sourceRoot":"","sources":["translateTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js new file mode 100644 index 00000000000..9399ea63910 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js @@ -0,0 +1,330 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("Translate tests", () => { + let recorder; + let client; + let customClient; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + customClient = await (0, recordedClient_1.createCustomTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("translate basic", async () => { + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + from: "en", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length > 0); + chai_1.assert.isTrue(translations[0].translations[0].to === "cs"); + chai_1.assert.isTrue(translations[0].translations[0].text !== null); + }); + it("with auto detect", async () => { + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length > 0); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].to === "cs"); + chai_1.assert.isTrue(translations[0].translations[0].text !== null); + }); + it("no translate tag", async () => { + const inputText = [ + { text: "今天是怎么回事是非常可怕的" }, + ]; + const parameters = { + to: "zh-chs", + from: "en", + textType: "html", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].translations[0].text.includes("今天是怎么回事是")); + }); + it("dictionary tag", async () => { + const inputText = [ + { + text: 'The word < mstrans:dictionary translation ="wordomatic">wordomatic is a dictionary entry.', + }, + ]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].translations[0].to === "es"); + chai_1.assert.isTrue(translations[0].translations[0].text.includes("wordomatic")); + }); + it("transliteration", async () => { + const inputText = [{ text: "hudha akhtabar." }]; + const parameters = { + to: "zh-Hans", + from: "ar", + fromScript: "Latn", + toScript: "Latn", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].translations[0].to === "zh-Hans"); + chai_1.assert.isTrue(translations[0].translations[0].text !== null); + }); + it("from latin to latin script", async () => { + const inputText = [{ text: "ap kaise ho" }]; + const parameters = { + to: "ta", + from: "hi", + fromScript: "Latn", + toScript: "Latn", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].translations[0].transliteration != null); + chai_1.assert.isTrue(translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?")); + }); + it("multiple input text", async () => { + const inputText = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const parameters = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 3); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[1].detectedLanguage?.language === "es"); + chai_1.assert.isTrue(translations[2].detectedLanguage?.language === "de"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[1].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[2].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].text != null); + chai_1.assert.isTrue(translations[1].translations[0].text != null); + chai_1.assert.isTrue(translations[2].translations[0].text != null); + }); + it("multiple target languages", async () => { + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs,es,de", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length === 3); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].text != null); + chai_1.assert.isTrue(translations[0].translations[1].text != null); + chai_1.assert.isTrue(translations[0].translations[2].text != null); + }); + it("different text types", async () => { + const inputText = [ + { text: "This is a test." }, + ]; + const parameters = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + }); + it("with profanity", async () => { + const inputText = [{ text: "shit this is fucking crazy" }]; + const parameters = { + to: "zh-cn", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].text.includes("***")); + }); + it("with alignment", async () => { + const inputText = [{ text: "It is a beautiful morning" }]; + const parameters = { + to: "cs", + includeAlignment: true, + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].alignment?.proj != null); + }); + it("with include sentence length", async () => { + const inputText = [ + { + text: "La réponse se trouve dans la traduction automatique. La meilleure technologie de traduction automatique ne peut pas toujours fournir des traductions adaptées à un site ou des utilisateurs comme un être humain. Il suffit de copier et coller un extrait de code n'importe où.", + }, + ]; + const parameters = { + to: "fr", + includeSentenceLength: true, + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "fr"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].sentLen?.srcSentLen.length === 3); + chai_1.assert.isTrue(translations[0].translations[0].sentLen?.transSentLen.length === 3); + }); + it("with custom endpoint", async () => { + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + includeSentenceLength: true, + }; + const response = await customClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].text != null); + }); + it("with token", async () => { + const tokenClient = await (0, recordedClient_1.createTokenTranslationClient)({ recorder }); + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + }; + const response = await tokenClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + }); + it("with AAD authentication", async () => { + const tokenClient = await (0, recordedClient_1.createAADAuthenticationTranslationClient)({ recorder }); + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + }; + const response = await tokenClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + }); +}); +//# sourceMappingURL=translateTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js.map new file mode 100644 index 00000000000..65099b8d476 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTest.spec.js","sourceRoot":"","sources":["translateTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAMgC;AAGhC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAClC,IAAI,YAAmC,CAAC;IAExC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACrD,YAAY,GAAG,MAAM,IAAA,8CAA6B,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iBAAiB,EAAE,KAAK,IAAI,EAAE;QAC/B,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA4D;YAC1E,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,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E,EAAE,EAAE,IAAI;SACT,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;YACzD,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,WAAW,GAAG,MAAM,IAAA,yDAAwC,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACjF,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA4D;YAC1E,EAAE,EAAE,IAAI;SACT,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;YACzD,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.ts new file mode 100644 index 00000000000..be442423a60 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.ts @@ -0,0 +1,390 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + InputTextItem, + TextTranslationClient, + TranslatedTextItemOutput, + TranslateQueryParamProperties, + isUnexpected, +} from "../../src"; +import { + createCustomTranslationClient, + createTranslationClient, + createTokenTranslationClient, + createAADAuthenticationTranslationClient, + startRecorder, +} from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("Translate tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + let customClient: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + customClient = await createCustomTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("translate basic", async () => { + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + from: "en", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length > 0); + assert.isTrue(translations[0].translations[0].to === "cs"); + assert.isTrue(translations[0].translations[0].text !== null); + }); + + it("with auto detect", async () => { + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length > 0); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].to === "cs"); + assert.isTrue(translations[0].translations[0].text !== null); + }); + + it("no translate tag", async () => { + const inputText: InputTextItem[] = [ + { text: "今天是怎么回事是非常可怕的" }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "zh-chs", + from: "en", + textType: "html", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].translations[0].text.includes("今天是怎么回事是")); + }); + + it("dictionary tag", async () => { + const inputText: InputTextItem[] = [ + { + text: 'The word < mstrans:dictionary translation ="wordomatic">wordomatic is a dictionary entry.', + }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].translations[0].to === "es"); + assert.isTrue(translations[0].translations[0].text.includes("wordomatic")); + }); + + it("transliteration", async () => { + const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "zh-Hans", + from: "ar", + fromScript: "Latn", + toScript: "Latn", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].translations[0].to === "zh-Hans"); + assert.isTrue(translations[0].translations[0].text !== null); + }); + + it("from latin to latin script", async () => { + const inputText: InputTextItem[] = [{ text: "ap kaise ho" }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "ta", + from: "hi", + fromScript: "Latn", + toScript: "Latn", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].translations[0].transliteration != null); + assert.isTrue( + translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?"), + ); + }); + + it("multiple input text", async () => { + const inputText: InputTextItem[] = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 3); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[1].detectedLanguage?.language === "es"); + assert.isTrue(translations[2].detectedLanguage?.language === "de"); + + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[1].detectedLanguage?.score === 1); + assert.isTrue(translations[2].detectedLanguage?.score === 1); + + assert.isTrue(translations[0].translations[0].text != null); + assert.isTrue(translations[1].translations[0].text != null); + assert.isTrue(translations[2].translations[0].text != null); + }); + + it("multiple target languages", async () => { + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs,es,de", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length === 3); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + + assert.isTrue(translations[0].translations[0].text != null); + assert.isTrue(translations[0].translations[1].text != null); + assert.isTrue(translations[0].translations[2].text != null); + }); + + it("different text types", async () => { + const inputText: InputTextItem[] = [ + { text: "This is a test." }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + }); + + it("with profanity", async () => { + const inputText: InputTextItem[] = [{ text: "shit this is fucking crazy" }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "zh-cn", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].text.includes("***")); + }); + + it("with alignment", async () => { + const inputText: InputTextItem[] = [{ text: "It is a beautiful morning" }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + includeAlignment: true, + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].alignment?.proj != null); + }); + + it("with include sentence length", async () => { + const inputText: InputTextItem[] = [ + { + text: "La réponse se trouve dans la traduction automatique. La meilleure technologie de traduction automatique ne peut pas toujours fournir des traductions adaptées à un site ou des utilisateurs comme un être humain. Il suffit de copier et coller un extrait de code n'importe où.", + }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "fr", + includeSentenceLength: true, + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "fr"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].sentLen?.srcSentLen.length === 3); + assert.isTrue(translations[0].translations[0].sentLen?.transSentLen.length === 3); + }); + + it("with custom endpoint", async () => { + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + includeSentenceLength: true, + }; + const response = await customClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].text != null); + }); + + it("with token", async () => { + const tokenClient = await createTokenTranslationClient({ recorder }); + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await tokenClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + }); + + it("with AAD authentication", async () => { + const tokenClient = await createAADAuthenticationTranslationClient({ recorder }); + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await tokenClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts new file mode 100644 index 00000000000..ee180532955 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=transliterateTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts.map new file mode 100644 index 00000000000..73e1df38583 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterateTest.spec.d.ts","sourceRoot":"","sources":["transliterateTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js new file mode 100644 index 00000000000..baca0fd5b4f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js @@ -0,0 +1,91 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +const testHelper_1 = require("./utils/testHelper"); +describe("Transliterate tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("transliterate basic", async () => { + const inputText = [{ text: "这里怎么一回事?" }]; + const parameters = { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].script !== null); + chai_1.assert.isTrue(translations[0].text !== null); + }); + it("multiple text array", async () => { + const inputText = [ + { text: "यहएककसौटीहैयहएककसौटीहै" }, + { text: "यहएककसौटीहै" }, + ]; + const parameters = { + language: "hi", + fromScript: "Deva", + toScript: "Latn", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].script !== null); + chai_1.assert.isTrue(translations[0].text !== null); + }); + it("with edit distance", async () => { + const inputText = [ + { text: "gujarat" }, + { text: "hadman" }, + { text: "hukkabar" }, + ]; + const parameters = { + language: "gu", + fromScript: "Latn", + toScript: "gujr", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].text !== null); + chai_1.assert.isTrue(translations[1].text !== null); + chai_1.assert.isTrue(translations[2].text !== null); + const expectedText = ["ગુજરાત", "હદમાં", "હુક્કાબાર"]; + let editDistanceValue = 0; + for (let i = 0; i < expectedText.length; i++) { + editDistanceValue = editDistanceValue + (0, testHelper_1.editDistance)(expectedText[i], translations[i].text); + } + chai_1.assert.isTrue(editDistanceValue < 6); + }); +}); +//# sourceMappingURL=transliterateTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js.map new file mode 100644 index 00000000000..046180ba679 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterateTest.spec.js","sourceRoot":"","sources":["transliterateTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAEhF,mDAAkD;AAElD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;QACnC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QAC1D,MAAM,UAAU,GAAgE;YAC9E,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACjB,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,C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CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,iBAAiB,GAAG,iBAAiB,GAAG,IAAA,yBAAY,EAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC9F,CAAC;QACD,aAAM,CAAC,MAAM,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.ts new file mode 100644 index 00000000000..64f63300e14 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.ts @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + InputTextItem, + TextTranslationClient, + TransliteratedTextOutput, + TransliterateQueryParamProperties, + isUnexpected, +} from "../../src"; +import { createTranslationClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; +import { editDistance } from "./utils/testHelper"; + +describe("Transliterate tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("transliterate basic", async () => { + const inputText: InputTextItem[] = [{ text: "这里怎么一回事?" }]; + const parameters: TransliterateQueryParamProperties & Record = { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TransliteratedTextOutput[]; + assert.isTrue(translations[0].script !== null); + assert.isTrue(translations[0].text !== null); + }); + + it("multiple text array", async () => { + const inputText: InputTextItem[] = [ + { text: "यहएककसौटीहैयहएककसौटीहै" }, + { text: "यहएककसौटीहै" }, + ]; + const parameters: TransliterateQueryParamProperties & Record = { + language: "hi", + fromScript: "Deva", + toScript: "Latn", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TransliteratedTextOutput[]; + assert.isTrue(translations[0].script !== null); + assert.isTrue(translations[0].text !== null); + }); + + it("with edit distance", async () => { + const inputText: InputTextItem[] = [ + { text: "gujarat" }, + { text: "hadman" }, + { text: "hukkabar" }, + ]; + const parameters: TransliterateQueryParamProperties & Record = { + language: "gu", + fromScript: "Latn", + toScript: "gujr", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TransliteratedTextOutput[]; + assert.isTrue(translations[0].text !== null); + assert.isTrue(translations[1].text !== null); + assert.isTrue(translations[2].text !== null); + + const expectedText = ["ગુજરાત", "હદમાં", "હુક્કાબાર"]; + + let editDistanceValue = 0; + for (let i = 0; i < expectedText.length; i++) { + editDistanceValue = editDistanceValue + editDistance(expectedText[i], translations[i].text); + } + assert.isTrue(editDistanceValue < 6); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts new file mode 100644 index 00000000000..dc5152fefc4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts @@ -0,0 +1,7 @@ +import { TokenCredential, AccessToken } from "@azure/core-auth"; +export declare class StaticAccessTokenCredential implements TokenCredential { + private accessToken; + constructor(accessToken: string); + getToken(): Promise; +} +//# sourceMappingURL=StaticAccessTokenCredential.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts.map new file mode 100644 index 00000000000..00e9112c0e3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StaticAccessTokenCredential.d.ts","sourceRoot":"","sources":["StaticAccessTokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEhE,qBAAa,2BAA4B,YAAW,eAAe;IAIrD,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,MAAM;IACjC,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC;CAMvC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js new file mode 100644 index 00000000000..e57da4bd7e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js @@ -0,0 +1,22 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StaticAccessTokenCredential = void 0; +class StaticAccessTokenCredential { + accessToken; + // AccessToken is an object with two properties: + // - A "token" property with a string value. + // - And an "expiresOnTimestamp" property with a numeric unix timestamp as its value. + constructor(accessToken) { + this.accessToken = accessToken; + } + async getToken() { + return { + expiresOnTimestamp: Date.now() + 10000, + token: this.accessToken, + }; + } +} +exports.StaticAccessTokenCredential = StaticAccessTokenCredential; +//# sourceMappingURL=StaticAccessTokenCredential.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js.map new file mode 100644 index 00000000000..60bcea974d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StaticAccessTokenCredential.js","sourceRoot":"","sources":["StaticAccessTokenCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC,MAAa,2BAA2B;IAIlB;IAHpB,gDAAgD;IAChD,4CAA4C;IAC5C,qFAAqF;IACrF,YAAoB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAAG,CAAC;IAC3C,KAAK,CAAC,QAAQ;QACZ,OAAO;YACL,kBAAkB,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;YACtC,KAAK,EAAE,IAAI,CAAC,WAAW;SACxB,CAAC;IACJ,CAAC;CACF;AAXD,kEAWC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.ts new file mode 100644 index 00000000000..2e89e1cbae2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.ts @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { TokenCredential, AccessToken } from "@azure/core-auth"; + +export class StaticAccessTokenCredential implements TokenCredential { + // AccessToken is an object with two properties: + // - A "token" property with a string value. + // - And an "expiresOnTimestamp" property with a numeric unix timestamp as its value. + constructor(private accessToken: string) {} + async getToken(): Promise { + return { + expiresOnTimestamp: Date.now() + 10000, + token: this.accessToken, + }; + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts new file mode 100644 index 00000000000..7289698f3e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts @@ -0,0 +1,32 @@ +import { Context } from "mocha"; +import { Recorder } from "@azure-tools/test-recorder"; +import { TextTranslationClient } from "../../../src"; +import { ClientOptions } from "@azure-rest/core-client"; +export declare function startRecorder(context: Context): Promise; +export declare function createTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createCustomTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createLanguageClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createTokenTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createAADAuthenticationTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createMockToken(): { + getToken: (_scopes: string) => Promise<{ + token: string; + expiresOnTimestamp: number; + }>; +}; +//# sourceMappingURL=recordedClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts.map new file mode 100644 index 00000000000..bf872632470 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"recordedClient.d.ts","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACL,QAAQ,EAIT,MAAM,4BAA4B,CAAC;AAEpC,OAAoC,EAGlC,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAkBxD,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAIvE;AAED,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IACrD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAajC;AAED,wBAAsB,6BAA6B,CAAC,OAAO,EAAE;IAC3D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAajC;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAClD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAKjC;AAED,wBAAsB,4BAA4B,CAAC,OAAO,EAAE;IAC1D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4BjC;AAED,wBAAsB,wCAAwC,CAAC,OAAO,EAAE;IACtE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAyBjC;AAED,wBAAgB,eAAe,IAAI;IACjC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvF,CAMA"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js new file mode 100644 index 00000000000..7791bec6816 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js @@ -0,0 +1,125 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.startRecorder = startRecorder; +exports.createTranslationClient = createTranslationClient; +exports.createCustomTranslationClient = createCustomTranslationClient; +exports.createLanguageClient = createLanguageClient; +exports.createTokenTranslationClient = createTokenTranslationClient; +exports.createAADAuthenticationTranslationClient = createAADAuthenticationTranslationClient; +exports.createMockToken = createMockToken; +const tslib_1 = require("tslib"); +const test_recorder_1 = require("@azure-tools/test-recorder"); +const StaticAccessTokenCredential_1 = require("./StaticAccessTokenCredential"); +const src_1 = tslib_1.__importDefault(require("../../../src")); +const core_rest_pipeline_1 = require("@azure/core-rest-pipeline"); +const identity_1 = require("@azure/identity"); +const envSetupForPlayback = { + TEXT_TRANSLATION_API_KEY: "fakeapikey", + TEXT_TRANSLATION_ENDPOINT: "https://fakeEndpoint.cognitive.microsofttranslator.com", + TEXT_TRANSLATION_CUSTOM_ENDPOINT: "https://fakeCustomEndpoint.cognitiveservices.azure.com", + TEXT_TRANSLATION_REGION: "fakeregion", + TEXT_TRANSLATION_AAD_REGION: "fakeregion", + TEXT_TRANSLATION_RESOURCE_ID: "fakeresourceid", +}; +const recorderEnvSetup = { + envSetupForPlayback, +}; +async function startRecorder(context) { + const recorder = new test_recorder_1.Recorder(context.currentTest); + await recorder.start(recorderEnvSetup); + return recorder; +} +async function createTranslationClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); + const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); + const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); + const translatorCredential = { + key: apikey, + region, + }; + const client = (0, src_1.default)(endpoint, translatorCredential, updatedOptions); + return client; +} +async function createCustomTranslationClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const customEndpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CUSTOM_ENDPOINT"); + const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); + const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); + const translatorCredential = { + key: apikey, + region, + }; + const client = (0, src_1.default)(customEndpoint, translatorCredential, updatedOptions); + return client; +} +async function createLanguageClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); + return (0, src_1.default)(endpoint, undefined, updatedOptions); +} +async function createTokenTranslationClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); + const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); + const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); + const issueTokenURL = "https://" + + region + + ".api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=" + + apikey; + let credential; + if ((0, test_recorder_1.isPlaybackMode)()) { + credential = createMockToken(); + } + else { + const tokenClient = (0, core_rest_pipeline_1.createDefaultHttpClient)(); + const request = (0, core_rest_pipeline_1.createPipelineRequest)({ + url: issueTokenURL, + method: "POST", + }); + request.allowInsecureConnection = true; + const response = await tokenClient.sendRequest(request); + const token = response.bodyAsText; + credential = new StaticAccessTokenCredential_1.StaticAccessTokenCredential(token); + } + const client = (0, src_1.default)(endpoint, credential, updatedOptions); + return client; +} +async function createAADAuthenticationTranslationClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); + const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_AAD_REGION"); + const azureResourceId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_RESOURCE_ID"); + let tokenCredential; + if ((0, test_recorder_1.isPlaybackMode)()) { + tokenCredential = createMockToken(); + } + else { + const clientId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CLIENT_ID"); + const tenantId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_TENANT_ID"); + const secret = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CLIENT_SECRET"); + tokenCredential = new identity_1.ClientSecretCredential(tenantId, clientId, secret); + } + const translatorTokenCredentials = { + tokenCredential, + azureResourceId, + region, + }; + const client = (0, src_1.default)(endpoint, translatorTokenCredentials, updatedOptions); + return client; +} +function createMockToken() { + return { + getToken: async (_scopes) => { + return { token: "testToken", expiresOnTimestamp: 11111 }; + }, + }; +} +//# sourceMappingURL=recordedClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js.map new file mode 100644 index 00000000000..098f455da30 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js.map @@ -0,0 +1 @@ +{"version":3,"file":"recordedClient.js","sourceRoot":"","sources":["recordedClient.ts"],"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IACjG,MAAM,QAAQ,GAAG,IAAA,yCAAyB,EAAC,2BAA2B,CAAC,CAAC;IACxE,MAAM,MAAM,GAAG,IAAA,yCAAyB,EAAC,6BAA6B,CAAC,CAAC;IACxE,MAAM,eAAe,GAAG,IAAA,yCAAyB,EAAC,8BAA8B,CAAC,CAAC;IAElF,IAAI,eAAgC,CAAC;IACrC,IAAI,IAAA,8BAAc,GAAE,EAAE,CAAC;QACrB,eAAe,GAAG,eAAe,EAAE,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,QAAQ,GAAG,IAAA,yCAAyB,EAAC,4BAA4B,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,IAAA,yCAAyB,EAAC,4BAA4B,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,IAAA,yCAAyB,EAAC,gCAAgC,CAAC,CAAC;QAE3E,eAAe,GAAG,IAAI,iCAAsB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,0BAA0B,GAA8B;QAC5D,eAAe;QACf,eAAe;QACf,MAAM;KACP,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,aAA2B,EAAC,QAAQ,EAAE,0BAA0B,EAAE,cAAc,CAAC,CAAC;IACjG,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe;IAG7B,OAAO;QACL,QAAQ,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE;YAClC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC;QAC3D,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.ts new file mode 100644 index 00000000000..6088570dc00 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.ts @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Context } from "mocha"; +import { + Recorder, + RecorderStartOptions, + isPlaybackMode, + assertEnvironmentVariable, +} from "@azure-tools/test-recorder"; +import { StaticAccessTokenCredential } from "./StaticAccessTokenCredential"; +import createTextTranslationClient, { + TranslatorCredential, + TranslatorTokenCredential, + TextTranslationClient, +} from "../../../src"; +import { ClientOptions } from "@azure-rest/core-client"; +import { createDefaultHttpClient, createPipelineRequest } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; +import { ClientSecretCredential } from "@azure/identity"; + +const envSetupForPlayback: Record = { + TEXT_TRANSLATION_API_KEY: "fakeapikey", + TEXT_TRANSLATION_ENDPOINT: "https://fakeEndpoint.cognitive.microsofttranslator.com", + TEXT_TRANSLATION_CUSTOM_ENDPOINT: "https://fakeCustomEndpoint.cognitiveservices.azure.com", + TEXT_TRANSLATION_REGION: "fakeregion", + TEXT_TRANSLATION_AAD_REGION: "fakeregion", + TEXT_TRANSLATION_RESOURCE_ID: "fakeresourceid", +}; + +const recorderEnvSetup: RecorderStartOptions = { + envSetupForPlayback, +}; + +export async function startRecorder(context: Context): Promise { + const recorder = new Recorder(context.currentTest); + await recorder.start(recorderEnvSetup); + return recorder; +} + +export async function createTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); + const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); + const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); + + const translatorCredential: TranslatorCredential = { + key: apikey, + region, + }; + const client = createTextTranslationClient(endpoint, translatorCredential, updatedOptions); + return client; +} + +export async function createCustomTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const customEndpoint = assertEnvironmentVariable("TEXT_TRANSLATION_CUSTOM_ENDPOINT"); + const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); + const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); + + const translatorCredential: TranslatorCredential = { + key: apikey, + region, + }; + const client = createTextTranslationClient(customEndpoint, translatorCredential, updatedOptions); + return client; +} + +export async function createLanguageClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); + return createTextTranslationClient(endpoint, undefined, updatedOptions); +} + +export async function createTokenTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); + const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); + const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); + + const issueTokenURL: string = + "https://" + + region + + ".api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=" + + apikey; + let credential: TokenCredential; + if (isPlaybackMode()) { + credential = createMockToken(); + } else { + const tokenClient = createDefaultHttpClient(); + const request = createPipelineRequest({ + url: issueTokenURL, + method: "POST", + }); + request.allowInsecureConnection = true; + const response = await tokenClient.sendRequest(request); + const token: string = response.bodyAsText!; + credential = new StaticAccessTokenCredential(token); + } + const client = createTextTranslationClient(endpoint, credential, updatedOptions); + return client; +} + +export async function createAADAuthenticationTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); + const region = assertEnvironmentVariable("TEXT_TRANSLATION_AAD_REGION"); + const azureResourceId = assertEnvironmentVariable("TEXT_TRANSLATION_RESOURCE_ID"); + + let tokenCredential: TokenCredential; + if (isPlaybackMode()) { + tokenCredential = createMockToken(); + } else { + const clientId = assertEnvironmentVariable("TEXT_TRANSLATION_CLIENT_ID"); + const tenantId = assertEnvironmentVariable("TEXT_TRANSLATION_TENANT_ID"); + const secret = assertEnvironmentVariable("TEXT_TRANSLATION_CLIENT_SECRET"); + + tokenCredential = new ClientSecretCredential(tenantId, clientId, secret); + } + + const translatorTokenCredentials: TranslatorTokenCredential = { + tokenCredential, + azureResourceId, + region, + }; + const client = createTextTranslationClient(endpoint, translatorTokenCredentials, updatedOptions); + return client; +} + +export function createMockToken(): { + getToken: (_scopes: string) => Promise<{ token: string; expiresOnTimestamp: number }>; +} { + return { + getToken: async (_scopes: string) => { + return { token: "testToken", expiresOnTimestamp: 11111 }; + }, + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts new file mode 100644 index 00000000000..025dea925a3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts @@ -0,0 +1,3 @@ +export declare function editDistance(s1: string, s2: string): number; +export declare function distance(s1: string, s2: string, n1: number, n2: number): number; +//# sourceMappingURL=testHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts.map new file mode 100644 index 00000000000..54e5d2aee05 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"testHelper.d.ts","sourceRoot":"","sources":["testHelper.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAI3D;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAmB/E"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js new file mode 100644 index 00000000000..6b9bf11d97d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js @@ -0,0 +1,30 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.editDistance = editDistance; +exports.distance = distance; +function editDistance(s1, s2) { + const n1 = s1.length; + const n2 = s2.length; + return distance(s1, s2, n1, n2); +} +function distance(s1, s2, n1, n2) { + if (n1 === 0) { + return n2; + } + if (n2 === 0) { + return n1; + } + if (s1[n1 - 1] === s2[n2 - 1]) { + const d = distance(s1, s2, n1 - 1, n2 - 1); + return d; + } + const nums = [ + distance(s1, s2, n1, n2 - 1), + distance(s1, s2, n1 - 1, n2), + distance(s1, s2, n1 - 1, n2 - 1), + ]; + return 1 + Math.min(...nums); +} +//# sourceMappingURL=testHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js.map new file mode 100644 index 00000000000..df7a321ca7b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"testHelper.js","sourceRoot":"","sources":["testHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,oCAIC;AAED,4BAmBC;AAzBD,SAAgB,YAAY,CAAC,EAAU,EAAE,EAAU;IACjD,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,OAAO,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,QAAQ,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IACrE,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;QAC9B,MAAM,CAAC,GAAW,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;QACnD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,IAAI,GAAa;QACrB,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;QAC5B,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;QAC5B,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;KACjC,CAAC;IACF,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.ts new file mode 100644 index 00000000000..0064e36f061 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export function editDistance(s1: string, s2: string): number { + const n1 = s1.length; + const n2 = s2.length; + return distance(s1, s2, n1, n2); +} + +export function distance(s1: string, s2: string, n1: number, n2: number): number { + if (n1 === 0) { + return n2; + } + + if (n2 === 0) { + return n1; + } + + if (s1[n1 - 1] === s2[n2 - 1]) { + const d: number = distance(s1, s2, n1 - 1, n2 - 1); + return d; + } + const nums: number[] = [ + distance(s1, s2, n1, n2 - 1), + distance(s1, s2, n1 - 1, n2), + distance(s1, s2, n1 - 1, n2 - 1), + ]; + return 1 + Math.min(...nums); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tests.yml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tests.yml new file mode 100644 index 00000000000..2e20837b159 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tests.yml @@ -0,0 +1,15 @@ +parameters: +- name: Location + displayName: Location + type: string + default: eastus + +trigger: none + +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml + parameters: + PackageName: "@azure-rest/ai-translation-text" + ServiceDirectory: translation + Location: "${{ parameters.Location }}" + SupportedClouds: 'Public' diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json new file mode 100644 index 00000000000..1d1f181774f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../tsconfig.base", + "compilerOptions": { + "outDir": "./dist-esm", + "declarationDir": "./types", + "paths": { + "@azure-rest/ai-translation-text": ["./src/index"] + } + }, + "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts", "review/**/*.ts"] +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsp-location.yaml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsp-location.yaml new file mode 100644 index 00000000000..0bf4ee5359e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsp-location.yaml @@ -0,0 +1,3 @@ +directory: specification/translation/Azure.AI.TextTranslation +commit: 01a71545e82bb98b8137d3038150c436d46a59ed +repo: Azure/azure-rest-api-specs diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md new file mode 100644 index 00000000000..ba5e63ee7e2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md @@ -0,0 +1,23 @@ +# Release History + +## 1.0.0-beta.2 (Unreleased) + +### Features Added +- Added support for AAD authentication. + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + +## 1.0.0-beta.1 (2023-04-18) +Initial release + +### Features Added +- Added support for Text Translation - [Translate API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate) +- Added support for Text Transliteration - [Transliterate API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-transliterate) +- Added support for Finding Sentence Boundaries - [FindSentenceBoundaries API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-break-sentence) +- Added support for Getting the Supported Languages - [GetLanguages API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages) +- Added support for Looking up the Dictionary Entries - [LookupDictionaryEntries API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-lookup) +- Added support for Looking up the Dictionary Examples - [LookupDictionaryExamples API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-examples) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/README.md new file mode 100644 index 00000000000..335e193f1db --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/README.md @@ -0,0 +1,313 @@ +# Azure TextTranslation REST client library for JavaScript + +Text translation is a cloud-based REST API feature of the Translator service that uses neural +machine translation technology to enable quick and accurate source-to-target text translation +in real time across all supported languages. + +The following methods are supported by the Text Translation feature: + +Languages. Returns a list of languages supported by Translate, Transliterate, and Dictionary Lookup operations. + +Translate. Renders single source-language text to multiple target-language texts with a single request. + +Transliterate. Converts characters or letters of a source language to the corresponding characters or letters of a target language. + +Detect. Returns the source code language code and a boolean variable denoting whether the detected language is supported for text translation and transliteration. + +Dictionary lookup. Returns equivalent words for the source term in the target language. + +Dictionary example Returns grammatical structure and context examples for the source term and target term pair. + +**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library** + +Key links: + +- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/ai-translation-text) +- [API reference documentation](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference) +- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/samples) + +## Getting started + +### Currently supported environments + +- LTS versions of Node.js +- Latest versions of Edge, Chrome, Safar and Firefox + +### Prerequisites + +- An existing Translator service or Cognitive Services resource. + +### Install the `@azure-rest/ai-translation-text` package + +Install the Azure Text Translation REST client library for JavaScript with `npm`: + +```bash +npm install @azure-rest/ai-translation-text +``` + +#### Create a Translator service resource + +You can create Translator resource following [Create a Translator resource][translator_resource_create]. + +### Browser support + +#### JavaScript Bundle + +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + +### Authenticate the client + +Interaction with the service using the client library begins with creating an instance of the [TextTranslationClient][translator_client_class] class. You will need an **API key** or `TokenCredential` to instantiate a client object. For more information regarding authenticating with cognitive services, see [Authenticate requests to Translator Service][translator_auth]. + +#### Get an API key + +You can get the `endpoint`, `API key` and `Region` from the Cognitive Services resource or Translator service resource information in the [Azure Portal][azure_portal]. + +Alternatively, use the [Azure CLI][azure_cli] snippet below to get the API key from the Translator service resource. + +```PowerShell +az cognitiveservices account keys list --resource-group --name +``` + +### Create a `TextTranslationClient` using an API key and Region credential + +Once you have the value for the API key and Region, create an `TranslatorCredential`. + +With the value of the `TranslatorCredential` you can create the [TextTranslationClient][translator_client_class]: + +```javascript +const translateCedential = new TranslatorCredential(apiKey, region); +const translationClient = TextTranslationClient(endpoint, translateCedential); +``` + +## Examples + +The following section provides several code snippets using the `client` [created above](#create-a-texttranslationclient-using-an-api-key-and-region-credential), and covers the main features present in this client library. + +### Get Supported Languages + +Gets the set of languages currently supported by other operations of the Translator. + +```javascript +const langResponse = await translationClient.path("/languages").get(); + +if (isUnexpected(langResponse)) { + throw langResponse.body; +} + +const languages = langResponse.body; + +if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } +} + +if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } +} + +if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } +} +``` + +Please refer to the service documentation for a conceptual discussion of [languages][languages_doc]. + +### Translate + +Renders single source-language text to multiple target-language texts with a single request. + +```javascript +const inputText = [{ text: "This is a test." }]; +const parameters = { + to: "cs", + from: "en", +}; +const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(translateResponse)) { + throw translateResponse.body; +} + +const translations = translateResponse.body; +for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); +} +``` + +Please refer to the service documentation for a conceptual discussion of [translate][translate_doc]. + +### Transliterate + +Converts characters or letters of a source language to the corresponding characters or letters of a target language. + +```javascript +const inputText = [{ text: "这是个测试。" }]; +const parameters = { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", +}; +const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(transliterateResponse)) { + throw transliterateResponse.body; +} + +const translations = transliterateResponse.body; +for (const transliteration of translations) { + console.log( + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` + ); +} +``` + +Please refer to the service documentation for a conceptual discussion of [transliterate][transliterate_doc]. + +### Break Sentence + +Identifies the positioning of sentence boundaries in a piece of text. + +```javascript +const inputText = [{ text: "zhè shì gè cè shì。" }]; +const parameters = { + language: "zh-Hans", + script: "Latn", +}; +const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body; +} + +const breakSentences = breakSentenceResponse.body; +for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); +} +``` + +Please refer to the service documentation for a conceptual discussion of [break sentence][breaksentence_doc]. + +### Dictionary Lookup + +Returns equivalent words for the source term in the target language. + +```javascript +const inputText = [{ text: "fly" }]; +const parameters = { + to: "es", + from: "en", +}; +const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body; +} + +const dictionaryEntries = dictionaryResponse.body; +for (const dictionaryEntry of dictionaryEntries) { + console.log( + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` + ); + console.log( + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` + ); +} +``` + +Please refer to the service documentation for a conceptual discussion of [dictionary lookup][dictionarylookup_doc]. + +### Dictionary Examples + +Returns grammatical structure and context examples for the source term and target term pair. + +```javascript +const inputText = [{ text: "fly", translation: "volar" }]; +const parameters = { + to: "es", + from: "en", +}; +const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, +}); + +if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body; +} + +const dictionaryExamples = dictionaryResponse.body; +for (const dictionaryExample of dictionaryExamples) { + console.log( + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` + ); + const firstExample = dictionaryExample?.examples[0]; + console.log( + `Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.` + ); +} +``` + +Please refer to the service documentation for a conceptual discussion of [dictionary examples][dictionaryexamples_doc]. + +## Troubleshooting + +When you interact with the Translator Service using the TextTranslator client library, errors returned by the Translator service correspond to the same HTTP status codes returned for REST API requests. + +For example, if you submit a translation request without a target translate language, a `400` error is returned, indicating "Bad Request". + +You can find the different error codes returned by the service in the [Service Documentation][service_errors]. + +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +const { setLogLevel } = require("@azure/logger"); + +setLogLevel("info"); +``` + +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). + +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_portal]: https://portal.azure.com +[translator_resource_create]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource +[translator_auth]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference#authentication +[service_errors]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference#errors +[translator_client_class]: https://learn.microsoft.com/javascript/api/@azure-rest/ai-translation-text/texttranslationclient +[languages_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages +[translate_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate +[transliterate_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-transliterate +[breaksentence_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-break-sentence +[dictionarylookup_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-lookup +[dictionaryexamples_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-examples diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/api-extractor.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/api-extractor.json new file mode 100644 index 00000000000..ebfd2ff4505 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/api-extractor.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./types/src/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/ai-translation-text.d.ts" + }, + "messages": { + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, + "extractorMessageReporting": { + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } + } + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/assets.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/assets.json new file mode 100644 index 00000000000..530334f4570 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "js", + "TagPrefix": "js/translation/ai-translation-text-rest", + "Tag": "js/translation/ai-translation-text-rest_6dacbcc4a1" +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts new file mode 100644 index 00000000000..5d9c54ae211 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=estree.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts.map new file mode 100644 index 00000000000..283bac495d7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"estree.d.ts","sourceRoot":"","sources":["estree.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js new file mode 100644 index 00000000000..1506c636613 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=estree.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js.map new file mode 100644 index 00000000000..bc5c943ba55 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js.map @@ -0,0 +1 @@ +{"version":3,"file":"estree.js","sourceRoot":"","sources":["estree.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.ts new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/karma.conf.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/karma.conf.js new file mode 100644 index 00000000000..756722cbcd1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/karma.conf.js @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +// https://github.com/karma-runner/karma-chrome-launcher +process.env.CHROME_BIN = require("puppeteer").executablePath(); +require("dotenv").config(); +const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); + +module.exports = function (config) { + config.set({ + // base path that will be used to resolve all patterns (eg. files, exclude) + basePath: "./", + + // frameworks to use + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter + frameworks: ["source-map-support", "mocha"], + + plugins: [ + "karma-mocha", + "karma-mocha-reporter", + "karma-chrome-launcher", + "karma-firefox-launcher", + "karma-env-preprocessor", + "karma-coverage", + "karma-sourcemap-loader", + "karma-junit-reporter", + "karma-source-map-support", + ], + + // list of files / patterns to load in the browser + files: [ + "dist-test/index.browser.js", + { + pattern: "dist-test/index.browser.js.map", + type: "html", + included: false, + served: true, + }, + ], + + // list of files / patterns to exclude + exclude: [], + + // preprocess matching files before serving them to the browser + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor + preprocessors: { + "**/*.js": ["sourcemap", "env"], + // IMPORTANT: COMMENT following line if you want to debug in your browsers!! + // Preprocess source file to calculate code coverage, however this will make source file unreadable + // "dist-test/index.js": ["coverage"] + }, + + envPreprocessor: [ + "TEST_MODE", + "TEXT_TRANSLATION_TENANT_ID", + "TEXT_TRANSLATION_CLIENT_ID", + "TEXT_TRANSLATION_CLIENT_SECRET", + "TEXT_TRANSLATION_ENDPOINT", + "TEXT_TRANSLATION_CUSTOM_ENDPOINT", + "TEXT_TRANSLATION_API_KEY", + "TEXT_TRANSLATION_REGION", + "RECORDINGS_RELATIVE_PATH", + "TEXT_TRANSLATION_AAD_REGION", + "TEXT_TRANSLATION_RESOURCE_ID", + ], + + // test results reporter to use + // possible values: 'dots', 'progress' + // available reporters: https://npmjs.org/browse/keyword/karma-reporter + reporters: ["mocha", "coverage", "junit"], + + coverageReporter: { + // specify a common output directory + dir: "coverage-browser/", + reporters: [ + { type: "json", subdir: ".", file: "coverage.json" }, + { type: "lcovonly", subdir: ".", file: "lcov.info" }, + { type: "html", subdir: "html" }, + { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, + ], + }, + + junitReporter: { + outputDir: "", // results will be saved as $outputDir/$browserName.xml + outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile + suite: "", // suite will become the package name attribute in xml testsuite element + useBrowserName: false, // add browser name to report and classes names + nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element + classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element + properties: {}, // key value pair of properties to add to the section of the report + }, + + // web server port + port: 9876, + + // enable / disable colors in the output (reporters and logs) + colors: true, + + // level of logging + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG + logLevel: config.LOG_INFO, + + // enable / disable watching file and executing tests whenever any file changes + autoWatch: false, + + // --no-sandbox allows our tests to run in Linux without having to change the system. + // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. + browsers: ["ChromeHeadlessNoSandbox"], + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: "ChromeHeadless", + flags: ["--no-sandbox", "--disable-web-security"], + }, + }, + + // Continuous Integration mode + // if true, Karma captures browsers, runs the tests and exits + singleRun: false, + + // Concurrency level + // how many browser should be started simultaneous + concurrency: 1, + + browserNoActivityTimeout: 60000000, + browserDisconnectTimeout: 10000, + browserDisconnectTolerance: 3, + + client: { + mocha: { + // change Karma's debug.html to the mocha web reporter + reporter: "html", + timeout: "600000", + }, + }, + }); +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json new file mode 100644 index 00000000000..0d2d53b154f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json @@ -0,0 +1,125 @@ +{ + "name": "@azure-rest/ai-translation-text", + "sdk-type": "client", + "author": "Microsoft Corporation", + "version": "1.0.0-beta.2", + "description": "An isomorphic client library for the Azure Cognitive Translator Service", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md", + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic", + "translate", + "translation" + ], + "license": "MIT", + "main": "dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/ai-translation-text.d.ts", + "repository": "github:Azure/azure-sdk-for-js", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "files": [ + "dist/", + "dist-esm/src/", + "types/ai-translation-text.d.ts", + "README.md", + "CHANGELOG.md", + "LICENSE" + ], + "engines": { + "node": ">=18.0.0" + }, + "//sampleConfiguration": { + "productName": "Azure Text Translation Service", + "productSlugs": [ + "azure", + "azure-cognitive-services", + "azure-translator" + ], + "requiredResources": { + "Translator resource instance": "https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource" + } + }, + "scripts": { + "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", + "build:browser": "tsc -p . && dev-tool run bundle", + "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build:samples": "echo Obsolete.", + "build:test": "tsc -p . && dev-tool run bundle", + "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "execute:samples": "dev-tool samples run samples-dev", + "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "generate:client": "echo skipped", + "integration-test:browser": "dev-tool run test:browser", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", + "lint": "eslint package.json api-extractor.json src test --ext .ts", + "pack": "npm pack 2>&1", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", + "test:node": "npm run clean && npm run build:test && npm run unit-test:node", + "test": "npm run clean && npm run build:test && npm run unit-test", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", + "unit-test:browser": "dev-tool run test:browser", + "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && dev-tool run extract-api" + }, + "sideEffects": false, + "autoPublish": false, + "dependencies": { + "@azure/core-auth": "^1.3.0", + "@azure-rest/core-client": "^1.1.0", + "@azure/core-rest-pipeline": "^1.8.0", + "@azure/logger": "^1.0.0", + "tslib": "^2.2.0" + }, + "devDependencies": { + "@microsoft/api-extractor": "^7.31.1", + "autorest": "latest", + "@types/node": "^18.0.0", + "dotenv": "^16.0.0", + "eslint": "^8.0.0", + "mkdirp": "^3.0.1", + "rimraf": "^5.0.5", + "source-map-support": "^0.5.9", + "typescript": "~5.4.5", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0", + "@azure-tools/test-credential": "^1.0.0", + "@azure/identity": "^4.0.1", + "@azure-tools/test-recorder": "^3.0.0", + "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "cross-env": "^7.0.2", + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "karma-chrome-launcher": "^3.0.0", + "karma-coverage": "^2.0.0", + "karma-env-preprocessor": "^0.1.1", + "karma-firefox-launcher": "^1.1.0", + "karma-junit-reporter": "^2.0.1", + "karma-mocha-reporter": "^2.2.5", + "karma-mocha": "^2.0.1", + "karma-source-map-support": "~1.4.0", + "karma-sourcemap-loader": "^0.3.8", + "karma": "^6.2.0", + "nyc": "^15.1.0", + "ts-node": "^10.0.0" + }, + "//metadata": { + "constantPaths": [ + { + "path": "src/customClient.ts", + "prefix": "userAgentInfo" + } + ] + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts new file mode 100644 index 00000000000..f4f636bf276 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts @@ -0,0 +1,382 @@ +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { KeyCredential } from '@azure/core-auth'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; +export interface BackTranslationOutput { + displayText: string; + frequencyCount: number; + normalizedText: string; + numExamples: number; +} +export interface BreakSentenceItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sentLen: number[]; +} +export declare function buildMultiCollection(items: string[], parameterName: string): string; +export interface CommonScriptModelOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} +declare function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; +export default createClient; +export interface DetectedLanguageOutput { + language: string; + score: number; +} +export interface DictionaryExampleItemOutput { + examples: Array; + normalizedSource: string; + normalizedTarget: string; +} +export interface DictionaryExampleOutput { + sourcePrefix: string; + sourceSuffix: string; + sourceTerm: string; + targetPrefix: string; + targetSuffix: string; + targetTerm: string; +} +export interface DictionaryExampleTextItem extends InputTextItem { + translation: string; +} +export interface DictionaryLookupItemOutput { + displaySource: string; + normalizedSource: string; + translations: Array; +} +export interface DictionaryTranslationOutput { + backTranslations: Array; + confidence: number; + displayTarget: string; + normalizedTarget: string; + posTag: string; + prefixWord: string; +} +export interface ErrorDetailsOutput { + code: number; + message: string; +} +export interface ErrorResponseOutput { + error: ErrorDetailsOutput; +} +export interface FindSentenceBoundaries { + post(options: FindSentenceBoundariesParameters): StreamableMethod; +} +export interface FindSentenceBoundaries200Headers { + 'x-requestid': string; +} +export interface FindSentenceBoundaries200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; + status: '200'; +} +export interface FindSentenceBoundariesBodyParam { + body: Array; +} +export interface FindSentenceBoundariesDefaultHeaders { + 'x-requestid': string; +} +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; + status: string; +} +export interface FindSentenceBoundariesHeaderParam { + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} +export interface FindSentenceBoundariesHeaders { + 'X-ClientTraceId'?: string; +} +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; +export interface FindSentenceBoundariesQueryParam { + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} +export interface FindSentenceBoundariesQueryParamProperties { + language?: string; + script?: string; +} +export interface GetLanguagesUpcomming { + get(options?: GetLanguagesParameters): StreamableMethod; +} +export interface GetLanguages200Headers { + 'x-requestid': string; + etag: string; +} +export interface GetLanguages200Response extends HttpResponse { + body: GetLanguagesResultOutput; + headers: RawHttpHeaders & GetLanguages200Headers; + status: '200'; +} +export interface GetLanguagesDefaultHeaders { + 'x-requestid': string; +} +export interface GetLanguagesDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; + status: string; +} +export interface GetLanguagesHeaderParam { + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} +export interface GetLanguagesHeaders { + 'Accept-Language'?: string; + 'If-None-Match'?: string; + 'X-ClientTraceId'?: string; +} +export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; +export interface GetLanguagesQueryParam { + queryParameters?: GetLanguagesQueryParamProperties; +} +export interface GetLanguagesQueryParamProperties { + scope?: string; +} +export interface GetLanguagesResultOutput { + dictionary?: Record; + translation?: Record; + transliteration?: Record; +} +export interface InputTextItem { + text: string; +} +export declare function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; +export declare function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; +export declare function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; +export declare function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; +export declare function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; +export declare function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; +export interface LookupDictionaryEntries { + post(options: LookupDictionaryEntriesParameters): StreamableMethod; +} +export interface LookupDictionaryEntries200Headers { + 'x-requestid': string; +} +export interface LookupDictionaryEntries200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; + status: '200'; +} +export interface LookupDictionaryEntriesBodyParam { + body: Array; +} +export interface LookupDictionaryEntriesDefaultHeaders { + 'x-requestid': string; +} +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; + status: string; +} +export interface LookupDictionaryEntriesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} +export interface LookupDictionaryEntriesHeaders { + 'X-ClientTraceId'?: string; +} +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; +export interface LookupDictionaryEntriesQueryParam { + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} +export interface LookupDictionaryEntriesQueryParamProperties { + from: string; + to: string; +} +export interface LookupDictionaryExamples { + post(options: LookupDictionaryExamplesParameters): StreamableMethod; +} +export interface LookupDictionaryExamples200Headers { + 'x-requestid': string; +} +export interface LookupDictionaryExamples200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; + status: '200'; +} +export interface LookupDictionaryExamplesBodyParam { + body: Array; +} +export interface LookupDictionaryExamplesDefaultHeaders { + 'x-requestid': string; +} +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; + status: string; +} +export interface LookupDictionaryExamplesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} +export interface LookupDictionaryExamplesHeaders { + 'X-ClientTraceId'?: string; +} +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; +export interface LookupDictionaryExamplesQueryParam { + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} +export interface LookupDictionaryExamplesQueryParamProperties { + from: string; + to: string; +} +export interface Routes { + (path: '/languages'): GetLanguagesUpcomming; + (path: '/translate'): Translate; + (path: '/transliterate'): Transliterate; + (path: '/breaksentence'): FindSentenceBoundaries; + (path: '/dictionary/lookup'): LookupDictionaryEntries; + (path: '/dictionary/examples'): LookupDictionaryExamples; +} +export interface SentenceLengthOutput { + srcSentLen: number[]; + transSentLen: number[]; +} +export interface SourceDictionaryLanguageOutput { + dir: string; + name: string; + nativeName: string; + translations: Array; +} +export interface SourceTextOutput { + text: string; +} +export interface TargetDictionaryLanguageOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} +export type TextTranslationClient = Client & { + path: Routes; +}; +export interface Translate { + post(options: TranslateParameters): StreamableMethod; +} +export interface Translate200Headers { + 'x-metered-usage': number; + 'x-mt-system': string; + 'x-requestid': string; +} +export interface Translate200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & Translate200Headers; + status: '200'; +} +export interface TranslateBodyParam { + body: Array; +} +export interface TranslateDefaultHeaders { + 'x-requestid': string; +} +export interface TranslateDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & TranslateDefaultHeaders; + status: string; +} +export interface TranslatedTextAlignmentOutput { + proj: string; +} +export interface TranslatedTextItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sourceText?: SourceTextOutput; + translations: Array; +} +export interface TranslateHeaderParam { + headers?: RawHttpHeadersInput & TranslateHeaders; +} +export interface TranslateHeaders { + 'X-ClientTraceId'?: string; +} +export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; +export interface TranslateQueryParam { + queryParameters: TranslateQueryParamProperties; +} +export interface TranslateQueryParamProperties { + allowFallback?: boolean; + category?: string; + from?: string; + fromScript?: string; + includeAlignment?: boolean; + includeSentenceLength?: boolean; + profanityAction?: string; + profanityMarker?: string; + suggestedFrom?: string; + textType?: string; + to: string; + toScript?: string; +} +export interface TranslationLanguageOutput { + dir: string; + name: string; + nativeName: string; +} +export interface TranslationOutput { + alignment?: TranslatedTextAlignmentOutput; + sentLen?: SentenceLengthOutput; + text: string; + to: string; + transliteration?: TransliteratedTextOutput; +} +export interface TranslatorCredential { + key: string; + region: string; +} +export interface TranslatorTokenCredential { + azureResourceId: string; + region: string; + tokenCredential: TokenCredential; +} +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + toScripts: Array; +} +export interface Transliterate { + post(options: TransliterateParameters): StreamableMethod; +} +export interface Transliterate200Headers { + 'x-requestid': string; +} +export interface Transliterate200Response extends HttpResponse { + body: Array; + headers: RawHttpHeaders & Transliterate200Headers; + status: '200'; +} +export interface TransliterateBodyParam { + body: Array; +} +export interface TransliterateDefaultHeaders { + 'x-requestid': string; +} +export interface TransliterateDefaultResponse extends HttpResponse { + body: ErrorResponseOutput; + headers: RawHttpHeaders & TransliterateDefaultHeaders; + status: string; +} +export interface TransliteratedTextOutput { + script: string; + text: string; +} +export interface TransliterateHeaderParam { + headers?: RawHttpHeadersInput & TransliterateHeaders; +} +export interface TransliterateHeaders { + 'X-ClientTraceId'?: string; +} +export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; +export interface TransliterateQueryParam { + queryParameters: TransliterateQueryParamProperties; +} +export interface TransliterateQueryParamProperties { + fromScript: string; + language: string; + toScript: string; +} +export interface TransliterationLanguageOutput { + name: string; + nativeName: string; + scripts: Array; +} +//# sourceMappingURL=ai-translation-text.api.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts.map new file mode 100644 index 00000000000..72ce6bda4cb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ai-translation-text.api.d.ts","sourceRoot":"","sources":["ai-translation-text.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAGD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;AAGrF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,M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AAO,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC5C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js new file mode 100644 index 00000000000..61b999be892 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = createClient; +//# sourceMappingURL=ai-translation-text.api.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js.map new file mode 100644 index 00000000000..6b43ab54383 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ai-translation-text.api.js","sourceRoot":"","sources":["ai-translation-text.api.ts"],"names":[],"mappings":";;AAyCA,kBAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md new file mode 100644 index 00000000000..27ef4574f03 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md @@ -0,0 +1,650 @@ +## API Report File for "@azure-rest/ai-translation-text" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + + +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { KeyCredential } from '@azure/core-auth'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; + +// @public +export interface BackTranslationOutput { + displayText: string; + frequencyCount: number; + normalizedText: string; + numExamples: number; +} + +// @public +export interface BreakSentenceItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sentLen: number[]; +} + +// @public (undocumented) +export function buildMultiCollection(items: string[], parameterName: string): string; + +// @public +export interface CommonScriptModelOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} + +// @public +function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; +export default createClient; + +// @public +export interface DetectedLanguageOutput { + language: string; + score: number; +} + +// @public +export interface DictionaryExampleItemOutput { + examples: Array; + normalizedSource: string; + normalizedTarget: string; +} + +// @public +export interface DictionaryExampleOutput { + sourcePrefix: string; + sourceSuffix: string; + sourceTerm: string; + targetPrefix: string; + targetSuffix: string; + targetTerm: string; +} + +// @public +export interface DictionaryExampleTextItem extends InputTextItem { + translation: string; +} + +// @public +export interface DictionaryLookupItemOutput { + displaySource: string; + normalizedSource: string; + translations: Array; +} + +// @public +export interface DictionaryTranslationOutput { + backTranslations: Array; + confidence: number; + displayTarget: string; + normalizedTarget: string; + posTag: string; + prefixWord: string; +} + +// @public +export interface ErrorDetailsOutput { + code: number; + message: string; +} + +// @public +export interface ErrorResponseOutput { + error: ErrorDetailsOutput; +} + +// @public (undocumented) +export interface FindSentenceBoundaries { + post(options: FindSentenceBoundariesParameters): StreamableMethod; +} + +// @public (undocumented) +export interface FindSentenceBoundaries200Headers { + "x-requestid": string; +} + +// @public +export interface FindSentenceBoundaries200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface FindSentenceBoundariesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface FindSentenceBoundariesDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface FindSentenceBoundariesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} + +// @public (undocumented) +export interface FindSentenceBoundariesHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; + +// @public (undocumented) +export interface FindSentenceBoundariesQueryParam { + // (undocumented) + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} + +// @public (undocumented) +export interface FindSentenceBoundariesQueryParamProperties { + language?: string; + script?: string; +} + +// @public (undocumented) +export interface GetLanguagesUpcoming { + get(options?: GetLanguagesParametersAAAAAAA): StreamableMethod; +} + +// @public (undocumented) +export interface GetLanguages200Headers { + "x-requestid": string; + etag: string; +} + +// @public +export interface GetLanguages200Response_Change extends HttpResponse { + // (undocumented) + body: GetLanguagesResultOutput; + // (undocumented) + headers: RawHttpHeaders & GetLanguages200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface GetLanguagesDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface GetLanguagesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface GetLanguagesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} + +// @public (undocumented) +export interface GetLanguagesHeaders { + "Accept-Language"?: string; + "If-None-Match"?: string; + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type GetLanguagesParametersAAAAAAA = GetLanguagesQueryParamAAA & GetLanguagesHeaderParam & RequestParameters; + +// @public (undocumented) +export interface GetLanguagesQueryParamAAA { + // (undocumented) + queryParameters?: GetLanguagesQueryParamProperties_Change; + testFunc(s:string): number + hehe: (c:number) => string +(v: object): boolean; +(vxxx: object): string; +} + +// @public (undocumented) +export interface GetLanguagesQueryParamProperties_Change { + scope?: string; +} + +// @public +export interface GetLanguagesResultOutput { + dictionary?: Record; + translation?: Record; + transliteration?: Record; +} + +// @public +export interface InputTextItem { + text: string; +} + +// @public (undocumented) +export function isUnexpected(response: GetLanguages200Response_Change | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; + +// @public (undocumented) +export interface LookupDictionaryEntries { + post(options: LookupDictionaryEntriesParameters): StreamableMethod; +} + +// @public (undocumented) +export interface LookupDictionaryEntries200Headers { + "x-requestid": string; +} + +// @public +export interface LookupDictionaryEntries200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; + +// @public (undocumented) +export interface LookupDictionaryEntriesQueryParam { + // (undocumented) + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesQueryParamProperties { + from: string; + to: string; +} + +// @public (undocumented) +export interface LookupDictionaryExamples { + post(options: LookupDictionaryExamplesParameters): StreamableMethod; +} + +// @public (undocumented) +export interface LookupDictionaryExamples200Headers { + "x-requestid": string; +} + +// @public +export interface LookupDictionaryExamples200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; + +// @public (undocumented) +export interface LookupDictionaryExamplesQueryParam { + // (undocumented) + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesQueryParamProperties { + from: string; + to: string; +} + +// @public (undocumented) +export interface Routes { + (path: "/languages"): GetLanguagesUpcoming; + (path: "/translate"): Translate; + (path: "/transliterate"): Transliterate; + (path: "/breaksentence"): FindSentenceBoundaries; + (path: "/dictionary/lookup"): LookupDictionaryEntries; + (path: "/dictionary/examples"): LookupDictionaryExamples; +} + +// @public +export interface SentenceLengthOutput { + srcSentLen: number[]; + transSentLen: number[]; +} + +// @public +export interface SourceDictionaryLanguageOutput { + dir: string; + name: string; + nativeName: string; + translations: Array; +} + +// @public +export interface SourceTextOutput { + text: string; +} + +// @public +export interface TargetDictionaryLanguageOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} + +// @public (undocumented) +export type TextTranslationClient = Client & { + path: Routes; +}; + +// @public (undocumented) +export interface Translate { + post(options: TranslateParameters): StreamableMethod; +} + +// @public (undocumented) +export interface Translate200Headers { + "x-metered-usage": number; + "x-mt-system": string; + "x-requestid": string; +} + +// @public +export interface Translate200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & Translate200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface TranslateBodyParam { + body: Array; +} + +// @public (undocumented) +export interface TranslateDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface TranslateDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & TranslateDefaultHeaders; + // (undocumented) + status: string; +} + +// @public +export interface TranslatedTextAlignmentOutput { + proj: string; +} + +// @public +export interface TranslatedTextItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sourceText?: SourceTextOutput; + translations: Array; +} + +// @public (undocumented) +export interface TranslateHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & TranslateHeaders; +} + +// @public (undocumented) +export interface TranslateHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; + +// @public (undocumented) +export interface TranslateQueryParam { + // (undocumented) + queryParameters: TranslateQueryParamProperties; +} + +// @public (undocumented) +export interface TranslateQueryParamProperties { + allowFallback?: boolean; + category?: string; + from?: string; + fromScript?: string; + includeAlignment?: boolean; + includeSentenceLength?: boolean; + profanityAction?: string; + profanityMarker?: string; + suggestedFrom?: string; + textType?: string; + to: string; + toScript?: string; +} + +// @public +export interface TranslationLanguageOutput { + dir: string; + name: string; + nativeName: string; +} + +// @public +export interface TranslationOutput { + alignment?: TranslatedTextAlignmentOutput; + sentLen?: SentenceLengthOutput; + text: string; + to: string; + transliteration?: TransliteratedTextOutput; +} + +// @public (undocumented) +export interface TranslatorCredential { + // (undocumented) + key: string; + // (undocumented) + region: string; +} + +// @public (undocumented) +export interface TranslatorTokenCredential { + // (undocumented) + azureResourceId: string; + // (undocumented) + region: string; + // (undocumented) + tokenCredential: TokenCredential; +} + +// @public +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + toScripts: Array; +} + +// @public (undocumented) +export interface Transliterate { + post(options: TransliterateParameters): StreamableMethod; +} + +// @public (undocumented) +export interface Transliterate200Headers { + "x-requestid": string; +} + +// @public +export interface Transliterate200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & Transliterate200Headers; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface TransliterateBodyParam { + body: Array; +} + +// @public (undocumented) +export interface TransliterateDefaultHeaders { + "x-requestid": string; +} + +// @public (undocumented) +export interface TransliterateDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & TransliterateDefaultHeaders; + // (undocumented) + status: string; +} + +// @public +export interface TransliteratedTextOutput { + script: string; + text: string; +} + +// @public (undocumented) +export interface TransliterateHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & TransliterateHeaders; +} + +// @public (undocumented) +export interface TransliterateHeaders { + "X-ClientTraceId"?: string; +} + +// @public (undocumented) +export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; + +// @public (undocumented) +export interface TransliterateQueryParam { + // (undocumented) + queryParameters: TransliterateQueryParamProperties; +} + +// @public (undocumented) +export interface TransliterateQueryParamProperties { + fromScript: string; + language: string; + toScript: string; +} + +// @public +export interface TransliterationLanguageOutput { + name: string; + nativeName: string; + scripts: Array; +} + +// (No @packageDocumentation comment for this package) +``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.ts new file mode 100644 index 00000000000..e2cd4fb432d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.ts @@ -0,0 +1,670 @@ +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { KeyCredential } from '@azure/core-auth'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; + +// @public +export interface BackTranslationOutput { + displayText: string; + frequencyCount: number; + normalizedText: string; + numExamples: number; +} + +// @public +export interface BreakSentenceItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sentLen: number[]; +} + +// @public (undocumented) +export function buildMultiCollection(items: string[], parameterName: string): string; + +// @public +export interface CommonScriptModelOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} + +// @public +function createClient( + endpoint: undefined | string, + credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, + options?: ClientOptions +): TextTranslationClient; +export default createClient; + +// @public +export interface DetectedLanguageOutput { + language: string; + score: number; +} + +// @public +export interface DictionaryExampleItemOutput { + examples: Array; + normalizedSource: string; + normalizedTarget: string; +} + +// @public +export interface DictionaryExampleOutput { + sourcePrefix: string; + sourceSuffix: string; + sourceTerm: string; + targetPrefix: string; + targetSuffix: string; + targetTerm: string; +} + +// @public +export interface DictionaryExampleTextItem extends InputTextItem { + translation: string; +} + +// @public +export interface DictionaryLookupItemOutput { + displaySource: string; + normalizedSource: string; + translations: Array; +} + +// @public +export interface DictionaryTranslationOutput { + backTranslations: Array; + confidence: number; + displayTarget: string; + normalizedTarget: string; + posTag: string; + prefixWord: string; +} + +// @public +export interface ErrorDetailsOutput { + code: number; + message: string; +} + +// @public +export interface ErrorResponseOutput { + error: ErrorDetailsOutput; +} + +// @public (undocumented) +export interface FindSentenceBoundaries { + post( + options: FindSentenceBoundariesParameters + ): StreamableMethod; +} + +// @public (undocumented) +export interface FindSentenceBoundaries200Headers { + 'x-requestid': string; +} + +// @public +export interface FindSentenceBoundaries200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface FindSentenceBoundariesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface FindSentenceBoundariesDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface FindSentenceBoundariesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} + +// @public (undocumented) +export interface FindSentenceBoundariesHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & + FindSentenceBoundariesHeaderParam & + FindSentenceBoundariesBodyParam & + RequestParameters; + +// @public (undocumented) +export interface FindSentenceBoundariesQueryParam { + // (undocumented) + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} + +// @public (undocumented) +export interface FindSentenceBoundariesQueryParamProperties { + language?: string; + script?: string; +} + +// @public (undocumented) +export interface GetLanguagesUpcomming { + get(options?: GetLanguagesParameters): StreamableMethod; +} + +// @public (undocumented) +export interface GetLanguages200Headers { + 'x-requestid': string; + etag: string; +} + +// @public +export interface GetLanguages200Response extends HttpResponse { + // (undocumented) + body: GetLanguagesResultOutput; + // (undocumented) + headers: RawHttpHeaders & GetLanguages200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface GetLanguagesDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface GetLanguagesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface GetLanguagesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} + +// @public (undocumented) +export interface GetLanguagesHeaders { + 'Accept-Language'?: string; + 'If-None-Match'?: string; + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; + +// @public (undocumented) +export interface GetLanguagesQueryParam { + // (undocumented) + queryParameters?: GetLanguagesQueryParamProperties; +} + +// @public (undocumented) +export interface GetLanguagesQueryParamProperties { + scope?: string; +} + +// @public +export interface GetLanguagesResultOutput { + dictionary?: Record; + translation?: Record; + transliteration?: Record; +} + +// @public +export interface InputTextItem { + text: string; +} + +// @public (undocumented) +export function isUnexpected( + response: GetLanguages200Response | GetLanguagesDefaultResponse +): response is GetLanguagesDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: Translate200Response | TranslateDefaultResponse +): response is TranslateDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: Transliterate200Response | TransliterateDefaultResponse +): response is TransliterateDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse +): response is FindSentenceBoundariesDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse +): response is LookupDictionaryEntriesDefaultResponse; + +// @public (undocumented) +export function isUnexpected( + response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse +): response is LookupDictionaryExamplesDefaultResponse; + +// @public (undocumented) +export interface LookupDictionaryEntries { + post( + options: LookupDictionaryEntriesParameters + ): StreamableMethod; +} + +// @public (undocumented) +export interface LookupDictionaryEntries200Headers { + 'x-requestid': string; +} + +// @public +export interface LookupDictionaryEntries200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & + LookupDictionaryEntriesHeaderParam & + LookupDictionaryEntriesBodyParam & + RequestParameters; + +// @public (undocumented) +export interface LookupDictionaryEntriesQueryParam { + // (undocumented) + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} + +// @public (undocumented) +export interface LookupDictionaryEntriesQueryParamProperties { + from: string; + to: string; +} + +// @public (undocumented) +export interface LookupDictionaryExamples { + post( + options: LookupDictionaryExamplesParameters + ): StreamableMethod; +} + +// @public (undocumented) +export interface LookupDictionaryExamples200Headers { + 'x-requestid': string; +} + +// @public +export interface LookupDictionaryExamples200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesBodyParam { + body: Array; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & + LookupDictionaryExamplesHeaderParam & + LookupDictionaryExamplesBodyParam & + RequestParameters; + +// @public (undocumented) +export interface LookupDictionaryExamplesQueryParam { + // (undocumented) + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} + +// @public (undocumented) +export interface LookupDictionaryExamplesQueryParamProperties { + from: string; + to: string; +} + +// @public (undocumented) +export interface Routes { + (path: '/languages'): GetLanguagesUpcomming; + (path: '/translate'): Translate; + (path: '/transliterate'): Transliterate; + (path: '/breaksentence'): FindSentenceBoundaries; + (path: '/dictionary/lookup'): LookupDictionaryEntries; + (path: '/dictionary/examples'): LookupDictionaryExamples; +} + +// @public +export interface SentenceLengthOutput { + srcSentLen: number[]; + transSentLen: number[]; +} + +// @public +export interface SourceDictionaryLanguageOutput { + dir: string; + name: string; + nativeName: string; + translations: Array; +} + +// @public +export interface SourceTextOutput { + text: string; +} + +// @public +export interface TargetDictionaryLanguageOutput { + code: string; + dir: string; + name: string; + nativeName: string; +} + +// @public (undocumented) +export type TextTranslationClient = Client & { + path: Routes; +}; + +// @public (undocumented) +export interface Translate { + post(options: TranslateParameters): StreamableMethod; +} + +// @public (undocumented) +export interface Translate200Headers { + 'x-metered-usage': number; + 'x-mt-system': string; + 'x-requestid': string; +} + +// @public +export interface Translate200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & Translate200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface TranslateBodyParam { + body: Array; +} + +// @public (undocumented) +export interface TranslateDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface TranslateDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & TranslateDefaultHeaders; + // (undocumented) + status: string; +} + +// @public +export interface TranslatedTextAlignmentOutput { + proj: string; +} + +// @public +export interface TranslatedTextItemOutput { + detectedLanguage?: DetectedLanguageOutput; + sourceText?: SourceTextOutput; + translations: Array; +} + +// @public (undocumented) +export interface TranslateHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & TranslateHeaders; +} + +// @public (undocumented) +export interface TranslateHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; + +// @public (undocumented) +export interface TranslateQueryParam { + // (undocumented) + queryParameters: TranslateQueryParamProperties; +} + +// @public (undocumented) +export interface TranslateQueryParamProperties { + allowFallback?: boolean; + category?: string; + from?: string; + fromScript?: string; + includeAlignment?: boolean; + includeSentenceLength?: boolean; + profanityAction?: string; + profanityMarker?: string; + suggestedFrom?: string; + textType?: string; + to: string; + toScript?: string; +} + +// @public +export interface TranslationLanguageOutput { + dir: string; + name: string; + nativeName: string; +} + +// @public +export interface TranslationOutput { + alignment?: TranslatedTextAlignmentOutput; + sentLen?: SentenceLengthOutput; + text: string; + to: string; + transliteration?: TransliteratedTextOutput; +} + +// @public (undocumented) +export interface TranslatorCredential { + // (undocumented) + key: string; + // (undocumented) + region: string; +} + +// @public (undocumented) +export interface TranslatorTokenCredential { + // (undocumented) + azureResourceId: string; + // (undocumented) + region: string; + // (undocumented) + tokenCredential: TokenCredential; +} + +// @public +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + toScripts: Array; +} + +// @public (undocumented) +export interface Transliterate { + post(options: TransliterateParameters): StreamableMethod; +} + +// @public (undocumented) +export interface Transliterate200Headers { + 'x-requestid': string; +} + +// @public +export interface Transliterate200Response extends HttpResponse { + // (undocumented) + body: Array; + // (undocumented) + headers: RawHttpHeaders & Transliterate200Headers; + // (undocumented) + status: '200'; +} + +// @public (undocumented) +export interface TransliterateBodyParam { + body: Array; +} + +// @public (undocumented) +export interface TransliterateDefaultHeaders { + 'x-requestid': string; +} + +// @public (undocumented) +export interface TransliterateDefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorResponseOutput; + // (undocumented) + headers: RawHttpHeaders & TransliterateDefaultHeaders; + // (undocumented) + status: string; +} + +// @public +export interface TransliteratedTextOutput { + script: string; + text: string; +} + +// @public (undocumented) +export interface TransliterateHeaderParam { + // (undocumented) + headers?: RawHttpHeadersInput & TransliterateHeaders; +} + +// @public (undocumented) +export interface TransliterateHeaders { + 'X-ClientTraceId'?: string; +} + +// @public (undocumented) +export type TransliterateParameters = TransliterateQueryParam & + TransliterateHeaderParam & + TransliterateBodyParam & + RequestParameters; + +// @public (undocumented) +export interface TransliterateQueryParam { + // (undocumented) + queryParameters: TransliterateQueryParamProperties; +} + +// @public (undocumented) +export interface TransliterateQueryParamProperties { + fromScript: string; + language: string; + toScript: string; +} + +// @public +export interface TransliterationLanguageOutput { + name: string; + nativeName: string; + scripts: Array; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/sample.env new file mode 100644 index 00000000000..bbdd64c0b36 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/sample.env @@ -0,0 +1,6 @@ +# Used in most samples. +# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource + +ENDPOINT="https://api.cognitive.microsofttranslator.com" +TEXT_TRANSLATOR_API_KEY="" +TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts new file mode 100644 index 00000000000..8ac71201fdf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=breakSentence.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts.map new file mode 100644 index 00000000000..df31e896ce6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentence.d.ts","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA0BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js new file mode 100644 index 00000000000..b49b3b00b30 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js @@ -0,0 +1,42 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Get Sentence Boundaries sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=breakSentence.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js.map new file mode 100644 index 00000000000..b0cdc51b795 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentence.js","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA0BC;;AA1CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;IAEpD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACpE,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,MAAM,EAAE,MAAM;SACf;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1F,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.ts new file mode 100644 index 00000000000..25bf03b92b0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.ts @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Get Sentence Boundaries sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + }, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts new file mode 100644 index 00000000000..46395b61b7b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=breakSentenceWithAutoDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map new file mode 100644 index 00000000000..ac9b0b74586 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceWithAutoDetection.d.ts","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js new file mode 100644 index 00000000000..92853eb2f10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js @@ -0,0 +1,39 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log(`Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=breakSentenceWithAutoDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js.map new file mode 100644 index 00000000000..4de54a56b3c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceWithAutoDetection.js","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;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ED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.ts new file mode 100644 index 00000000000..9489d2b0cca --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.ts @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log( + `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts new file mode 100644 index 00000000000..59d56de8ab2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=dictionaryExamples.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts.map new file mode 100644 index 00000000000..9cefa824488 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamples.d.ts","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js new file mode 100644 index 00000000000..edc47cdbf20 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js @@ -0,0 +1,44 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Dictionary Examples sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log(`For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`); + const firstExample = dictionaryExample?.examples[0]; + console.log(`Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=dictionaryExamples.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js.map new file mode 100644 index 00000000000..d3583ee7dda --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamples.js","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAkCC;;AAlDD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;IACvF,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;QACnF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IACnD,KAAK,MAAM,iBAAiB,IAAI,kBAAkB,EAAE,CAAC;QACnD,OAAO,CAAC,GAAG,CACT,uBAAuB,iBAAiB,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CACpG,CAAC;QACF,MAAM,YAAY,GAAG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CACT,aACE,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,GAAG,YAAY,CAAC,YACrE,IAAI,CACL,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.ts new file mode 100644 index 00000000000..6915fa3eadf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.ts @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +import TextTranslationClient, { + TranslatorCredential, + DictionaryExampleTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Dictionary Examples sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log( + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`, + ); + const firstExample = dictionaryExample?.examples[0]; + console.log( + `Example: '${ + firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix + }'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts new file mode 100644 index 00000000000..38085ada4f0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=dictionaryLookup.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts.map new file mode 100644 index 00000000000..e8b3ef4c552 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookup.d.ts","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js new file mode 100644 index 00000000000..2adb58859fa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Dictionary Lookup sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log(`For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`); + console.log(`First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=dictionaryLookup.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js.map new file mode 100644 index 00000000000..52dad93060a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookup.js","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA+BC;;AA/CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;QACjF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,eAAe,IAAI,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,GAAG,CACT,uBAAuB,eAAe,EAAE,YAAY,EAAE,MAAM,wCAAwC,CACrG,CAAC;QACF,OAAO,CAAC,GAAG,CACT,iBAAiB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,aAAa,kBAAkB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,CAClI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.ts new file mode 100644 index 00000000000..744810e487f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Dictionary Lookup sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log( + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`, + ); + console.log( + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts new file mode 100644 index 00000000000..1b28d1fcf9d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguages.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts.map new file mode 100644 index 00000000000..c230d0b8b01 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguages.d.ts","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":"AAaA,wBAAsB,IAAI,kBAyCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js new file mode 100644 index 00000000000..a56da0cc003 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js @@ -0,0 +1,47 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== List supported languages sample =="); + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguages.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js.map new file mode 100644 index 00000000000..bff46b9b848 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguages.js","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAYlC,oBAyCC;;AAnDD;;GAEG;AACH,+FAAsF;AAEtF,uDAA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1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.ts new file mode 100644 index 00000000000..967dca702bd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.ts @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +import TextTranslationClient, { isUnexpected } from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== List supported languages sample =="); + + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts new file mode 100644 index 00000000000..ed7bea4503f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguagesAcceptLanguage.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map new file mode 100644 index 00000000000..af9fb2c2660 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesAcceptLanguage.d.ts","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js new file mode 100644 index 00000000000..8882b61cc14 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js @@ -0,0 +1,60 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== List supported localized languages sample =="); + const parameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguagesAcceptLanguage.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js.map new file mode 100644 index 00000000000..9023ebd2fa3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesAcceptLanguage.js","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA8CC;;AAnED;;;;;;;;;;GAUG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QA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IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.ts new file mode 100644 index 00000000000..c4308cba4fa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.ts @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +import TextTranslationClient, { + GetLanguagesParameters, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== List supported localized languages sample =="); + + const parameters: GetLanguagesParameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts new file mode 100644 index 00000000000..98558a23465 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguagesScope.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts.map new file mode 100644 index 00000000000..7f9105369a8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesScope.d.ts","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":"AAiBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js new file mode 100644 index 00000000000..5770ac410ee --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js @@ -0,0 +1,53 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== Scoped list supported languages sample =="); + const parameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguagesScope.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js.map new file mode 100644 index 00000000000..66dbd0e2619 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesScope.js","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,oBA8CC;;AA5DD;;;GAGG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAA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,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.ts new file mode 100644 index 00000000000..48dfedbcbd5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +import TextTranslationClient, { + GetLanguagesParameters, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== Scoped list supported languages sample =="); + + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts new file mode 100644 index 00000000000..ca9270ec452 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts.map new file mode 100644 index 00000000000..229efa7bfc3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js new file mode 100644 index 00000000000..6c274972987 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Simple translate sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js.map new file mode 100644 index 00000000000..2c94ae1a104 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translate.js","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA4BC;;AA7CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.ts new file mode 100644 index 00000000000..2435f494285 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.ts @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Simple translate sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts new file mode 100644 index 00000000000..ea5d8818b27 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateAlignments.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts.map new file mode 100644 index 00000000000..a7eecca3e64 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateAlignments.d.ts","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js new file mode 100644 index 00000000000..f0c782f63ba --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with alignments sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + includeAlignment: true, + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateAlignments.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js.map new file mode 100644 index 00000000000..ef8aa72abe2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateAlignments.js","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA+BC;;AAhDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,yCAAyC,EAAE,CAAC,CAAC;IACzF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,gBAAgB,EAAE,IAAI;SACvB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,eAAe,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.ts new file mode 100644 index 00000000000..9baf6597850 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.ts @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with alignments sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeAlignment: true, + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts new file mode 100644 index 00000000000..422ffa713bc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateCustom.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts.map new file mode 100644 index 00000000000..0ed2b1e3897 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateCustom.d.ts","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":"AAgCA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js new file mode 100644 index 00000000000..e65f78b5cb2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js @@ -0,0 +1,56 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Custom translator sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateCustom.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js.map new file mode 100644 index 00000000000..bd33a66bce7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate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vC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.ts new file mode 100644 index 00000000000..83159f47a36 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.ts @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Custom translator sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts new file mode 100644 index 00000000000..0ba089d6c6d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts.map new file mode 100644 index 00000000000..2d0633e31c3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDetection.d.ts","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js new file mode 100644 index 00000000000..aa0eaa87bfb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translate sample with auto-detection =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js.map new file mode 100644 index 00000000000..5b4853ce1d2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDetection.js","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA8BC;;AA/CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAE1D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;SACT;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,yCAAyC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,WAAW,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.ts new file mode 100644 index 00000000000..cf5c1a18836 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translate sample with auto-detection =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts new file mode 100644 index 00000000000..46a59fbb822 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateDictionary.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts.map new file mode 100644 index 00000000000..fe1315d3161 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDictionary.d.ts","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBAgCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js new file mode 100644 index 00000000000..4b3b88ec19d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js @@ -0,0 +1,50 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with Dictionary sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateDictionary.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js.map new file mode 100644 index 00000000000..280daea0a5b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDictionary.js","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBAgCC;;AArDD;;;;;;GAMG;AACH,+FAKyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,8GAA8G;SACrH;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAkC,CAAC;IAC1E,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.ts new file mode 100644 index 00000000000..23eb715449d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.ts @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + TranslatedTextItemOutput, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with Dictionary sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body as TranslatedTextItemOutput[]; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts new file mode 100644 index 00000000000..8c46b39a007 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateMultipleSources.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts.map new file mode 100644 index 00000000000..7e58386a959 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleSources.d.ts","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js new file mode 100644 index 00000000000..f6305d2dac4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Multiple input texts =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateMultipleSources.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js.map new file mode 100644 index 00000000000..9ed0f68240a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMult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CACT,yCAAyC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,WAAW,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.ts new file mode 100644 index 00000000000..ffb5a49f6f7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Multiple input texts =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts new file mode 100644 index 00000000000..6ea17a78854 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateMultipleTargets.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts.map new file mode 100644 index 00000000000..a6396d325a8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleTargets.d.ts","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js new file mode 100644 index 00000000000..10c96dfa31c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Multiple target languages translation =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log(`Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateMultipleTargets.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js.map new file mode 100644 index 00000000000..76af26b4c51 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleTargets.js","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA8BC;;AA/CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,KAAK,MAAM,OAAO,IAAI,WAAW,CAAC,YAAY,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CACxI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.ts new file mode 100644 index 00000000000..20c00ed4e0e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Multiple target languages translation =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log( + `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`, + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts new file mode 100644 index 00000000000..2f2ee0dd031 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateNoTranslate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts.map new file mode 100644 index 00000000000..2404b76f4cf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateNoTranslate.d.ts","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":"AAsBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js new file mode 100644 index 00000000000..8b32d6d99f9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js @@ -0,0 +1,50 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Marking text input with notranslate div sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateNoTranslate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js.map new file mode 100644 index 00000000000..db319151a15 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateNoTranslate.js","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,oBAiCC;;AApDD;;;;;GAKG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,gGAAgG;SACvG;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.ts new file mode 100644 index 00000000000..d505a78ba34 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Marking text input with notranslate div sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts new file mode 100644 index 00000000000..e14e29acf78 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateProfanity.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts.map new file mode 100644 index 00000000000..f3e2a1e7759 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateProfanity.d.ts","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js new file mode 100644 index 00000000000..38b2df5500d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js @@ -0,0 +1,55 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Profanity handling sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateProfanity.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js.map new file mode 100644 index 00000000000..44bc88452d5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateProfanity.js","sourceRoot":"","sources":["translateProfan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AY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.ts new file mode 100644 index 00000000000..aa126e6baf7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.ts @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Profanity handling sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts new file mode 100644 index 00000000000..101a5c995c7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateSenteceLength.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts.map new file mode 100644 index 00000000000..01bac3ad5f9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateSenteceLength.d.ts","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBAwCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js new file mode 100644 index 00000000000..513ee83a89a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with sentence boundaries sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { text: "The answer lies in machine translation. This is a test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + includeSentenceLength: true, + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`); + console.log(`Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateSenteceLength.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js.map new file mode 100644 index 00000000000..41f4b02e087 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateSenteceLength.js","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBAwCC;;AAzDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAEjE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC,EAAE,IAAI,EAAE,yDAAyD,EAAE;KACpE,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,qBAAqB,EAAE,IAAI;SAC5B;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,0BAA0B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzF,CAAC;QACF,OAAO,CAAC,GAAG,CACT,8BAA8B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,CACpF,IAAI,CACL,EAAE,CACJ,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.ts new file mode 100644 index 00000000000..972f4358725 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.ts @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with sentence boundaries sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { text: "The answer lies in machine translation. This is a test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeSentenceLength: true, + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + console.log( + `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`, + ); + console.log( + `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join( + ", ", + )}`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts new file mode 100644 index 00000000000..a49db19b58c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateTextType.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts.map new file mode 100644 index 00000000000..96e60f5f1ac --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTextType.d.ts","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js new file mode 100644 index 00000000000..cec1465ff75 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js @@ -0,0 +1,44 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== HTML translation sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateTextType.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js.map new file mode 100644 index 00000000000..8be705bbc2d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTextType.js","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEz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AAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.ts new file mode 100644 index 00000000000..51609a95895 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== HTML translation sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts new file mode 100644 index 00000000000..8badf54b60c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateWithTransliteration.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts.map new file mode 100644 index 00000000000..9cdf4041fe0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateWithTransliteration.d.ts","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js new file mode 100644 index 00000000000..0a3687846eb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translate with transliteration sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateWithTransliteration.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js.map new file mode 100644 index 00000000000..e95b73d5244 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateWithTransliteration.js","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAkCC;;AApDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,SAAS;YACb,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,MAAM;SACnB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,gBAAgB,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,wBAAwB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,MAAM,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CACzI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.ts new file mode 100644 index 00000000000..c3f0471edec --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translate with transliteration sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, + ); + console.log( + `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts new file mode 100644 index 00000000000..f30e7d0aa84 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=transliterate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts.map new file mode 100644 index 00000000000..0267960e3ab --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterate.d.ts","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js new file mode 100644 index 00000000000..1407a2020a9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Simple transliterate sample =="); + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }, + }); + if ((0, ai_translation_text_1.isUnexpected)(transliterateResponse)) { + throw transliterateResponse.body.error; + } + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log(`Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=transliterate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js.map new file mode 100644 index 00000000000..270c70974e8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterate.js","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBA6BC;;AA/CD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IAEjD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxD,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAChD,KAAK,MAAM,eAAe,IAAI,YAAY,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CACT,qCAAqC,eAAe,EAAE,MAAM,mCAAmC,eAAe,EAAE,IAAI,IAAI,CACzH,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.ts new file mode 100644 index 00000000000..555211ce1ed --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Simple transliterate sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }, + }); + + if (isUnexpected(transliterateResponse)) { + throw transliterateResponse.body.error; + } + + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log( + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`, + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/README.md new file mode 100644 index 00000000000..f2d5d882288 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/README.md @@ -0,0 +1,102 @@ +--- +page_type: sample +languages: + - javascript +products: + - azure + - azure-cognitive-services + - azure-translator +urlFragment: ai-translation-text-javascript-beta +--- + +# Azure Text Translation Service client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for Azure Text Translation Service in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [breakSentence.js][breaksentence] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | +| [breakSentenceWithAutoDetection.js][breaksentencewithautodetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | +| [dictionaryExamples.js][dictionaryexamples] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. | +| [dictionaryLookup.js][dictionarylookup] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. | +| [getLanguages.js][getlanguages] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages | +| [getLanguagesAcceptLanguage.js][getlanguagesacceptlanguage] | This sample demonstrates how you can select the language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. | +| [getLanguagesScope.js][getlanguagesscope] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages for a selected scope | +| [translate.js][translate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a text which language is know to a target language. | +| [translateAlignments.js][translatealignments] | This sample demonstrates how you can ask translation service to include alignment projection from source text to translated text. | +| [translateCustom.js][translatecustom] | This sample demonstrates how You can get translations from a customized system built with Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) to this parameter to use your deployed customized system. It is possible to set `allowFalback` paramter. It specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: `true` (default) or `false`. `allowFallback=false` specifies that the translation should only use systems trained for the category specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `allowFallback=true` specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. | +| [translateDetection.js][translatedetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation without specifying the source language to a target language. | +| [translateDictionary.js][translatedictionary] | This sample demonstrates how to keep words if you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is safe only for compound nouns like proper names and product names. Note You must include the From parameter in your API translation request instead of using the autodetect feature. | +| [translateMultipleSources.js][translatemultiplesources] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a multiple text fields and each input text is in different language. | +| [translateMultipleTargets.js][translatemultipletargets] | This sample demonstrates how you can provide multiple target languages which results to each input element be translated to all target languages. | +| [translateNoTranslate.js][translatenotranslate] | This sample demonstrates how it's sometimes useful to exclude specific content from translation. You can use the attribute class=notranslate to specify content that should remain in its original language. In the following example, the content inside the first div element won't be translated, while the content in the second div element will be translated. | +| [translateProfanity.js][translateprofanity] | This sample demonstrates how to change the profanity handling during translate call. Normally the Translator service will retain profanity that is present in the source in the translation. The degree of profanity and the context that makes words profane differ between cultures, and as a result the degree of profanity in the target language may be amplified or reduced. If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, whether you want to mark profanities with appropriate tags (giving you the option to add your own post-processing), or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` and `NoAction` (default). | +| [translateSenteceLength.js][translatesentecelength] | This sample demonstrates how to you can ask translator service to include sentence boundaries for the input text and the translated text. | +| [translateTextType.js][translatetexttype] | This sample demonstrates how you can select whether the translated text is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. | +| [translateWithTransliteration.js][translatewithtransliteration] | You can combine both Translation and Transliteration in one Translate call. Your source Text can be in non-standard Script of a language as well as you can ask for non-standard Script of a target language. | +| [transliterate.js][transliterate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to convert characters or letters of a source language to the corresponding characters or letters of a target language. | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] and the following Azure resources to run these sample programs: + +- [Translator resource instance][createinstance_translatorresourceinstance] + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node breakSentence.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env ENDPOINT="" TEXT_TRANSLATOR_API_KEY="" TEXT_TRANSLATOR_REGION="" node breakSentence.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[breaksentence]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/breakSentence.js +[breaksentencewithautodetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js +[dictionaryexamples]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/dictionaryExamples.js +[dictionarylookup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/dictionaryLookup.js +[getlanguages]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguages.js +[getlanguagesacceptlanguage]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js +[getlanguagesscope]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguagesScope.js +[translate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translate.js +[translatealignments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateAlignments.js +[translatecustom]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateCustom.js +[translatedetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateDetection.js +[translatedictionary]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateDictionary.js +[translatemultiplesources]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateMultipleSources.js +[translatemultipletargets]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateMultipleTargets.js +[translatenotranslate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateNoTranslate.js +[translateprofanity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateProfanity.js +[translatesentecelength]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateSenteceLength.js +[translatetexttype]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateTextType.js +[translatewithtransliteration]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateWithTransliteration.js +[transliterate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/transliterate.js +[apiref]: https://learn.microsoft.com/azure/cognitive-services/translator/translator-text-apis +[freesub]: https://azure.microsoft.com/free/ +[createinstance_translatorresourceinstance]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentence.js new file mode 100644 index 00000000000..0fdf418a4e0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentence.js @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Get Sentence Boundaries sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + }, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js new file mode 100644 index 00000000000..ae2daf40df9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log( + `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryExamples.js new file mode 100644 index 00000000000..138cce1631b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryExamples.js @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Dictionary Examples sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log( + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` + ); + const firstExample = dictionaryExample?.examples[0]; + console.log( + `Example: '${ + firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix + }'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryLookup.js new file mode 100644 index 00000000000..310dd2f32cc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryLookup.js @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Dictionary Lookup sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }, + }); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log( + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` + ); + console.log( + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguages.js new file mode 100644 index 00000000000..109f6ce9d1b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguages.js @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +async function main() { + console.log("== List supported languages sample =="); + + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js new file mode 100644 index 00000000000..fdf0ef88070 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +async function main() { + console.log("== List supported localized languages sample =="); + + const parameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesScope.js new file mode 100644 index 00000000000..b57284b0641 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesScope.js @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +async function main() { + console.log("== Scoped list supported languages sample =="); + + const parameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/package.json new file mode 100644 index 00000000000..098fe4457ed --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/package.json @@ -0,0 +1,34 @@ +{ + "name": "@azure-samples/ai-translation-text-js-beta", + "private": true, + "version": "1.0.0", + "description": "Azure Text Translation Service client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/translation/ai-translation-text-rest" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic", + "translate", + "translation" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest", + "dependencies": { + "@azure-rest/ai-translation-text": "next", + "dotenv": "latest" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/sample.env new file mode 100644 index 00000000000..bbdd64c0b36 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/sample.env @@ -0,0 +1,6 @@ +# Used in most samples. +# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource + +ENDPOINT="https://api.cognitive.microsofttranslator.com" +TEXT_TRANSLATOR_API_KEY="" +TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translate.js new file mode 100644 index 00000000000..f4d795baa37 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translate.js @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Simple translate sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateAlignments.js new file mode 100644 index 00000000000..ee42daa6ac0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateAlignments.js @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translation with alignments sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeAlignment: true, + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateCustom.js new file mode 100644 index 00000000000..082d3a513ec --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateCustom.js @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Custom translator sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDetection.js new file mode 100644 index 00000000000..b541067de92 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDetection.js @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translate sample with auto-detection =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDictionary.js new file mode 100644 index 00000000000..c131b01bf0d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDictionary.js @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translation with Dictionary sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleSources.js new file mode 100644 index 00000000000..3eb730c9ebe --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleSources.js @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Multiple input texts =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleTargets.js new file mode 100644 index 00000000000..1fd4a111e66 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleTargets.js @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Multiple target languages translation =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log( + `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateNoTranslate.js new file mode 100644 index 00000000000..d12672c73ac --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateNoTranslate.js @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Marking text input with notranslate div sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateProfanity.js new file mode 100644 index 00000000000..99009555e46 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateProfanity.js @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Profanity handling sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateSenteceLength.js new file mode 100644 index 00000000000..440bbbbc6d7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateSenteceLength.js @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translation with sentence boundaries sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "The answer lies in machine translation. This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeSentenceLength: true, + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log( + `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` + ); + console.log( + `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateTextType.js new file mode 100644 index 00000000000..4ee3fd80d1f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateTextType.js @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== HTML translation sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateWithTransliteration.js new file mode 100644 index 00000000000..5f372d5f662 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateWithTransliteration.js @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Translate with transliteration sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + }, + }); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log( + `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/transliterate.js new file mode 100644 index 00000000000..3371cfb6e1f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/transliterate.js @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +const TextTranslationClient = require("@azure-rest/ai-translation-text").default, + { isUnexpected } = require("@azure-rest/ai-translation-text"); + +require("dotenv").config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +async function main() { + console.log("== Simple transliterate sample =="); + + const translateCedential = { + key: apiKey, + region, + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }, + }); + + if (isUnexpected(transliterateResponse)) { + throw transliterateResponse.body.error; + } + + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log( + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); + +module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/README.md new file mode 100644 index 00000000000..64830dd3793 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/README.md @@ -0,0 +1,115 @@ +--- +page_type: sample +languages: + - typescript +products: + - azure + - azure-cognitive-services + - azure-translator +urlFragment: ai-translation-text-typescript-beta +--- + +# Azure Text Translation Service client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for Azure Text Translation Service in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [breakSentence.ts][breaksentence] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | +| [breakSentenceWithAutoDetection.ts][breaksentencewithautodetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | +| [dictionaryExamples.ts][dictionaryexamples] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. | +| [dictionaryLookup.ts][dictionarylookup] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. | +| [getLanguages.ts][getlanguages] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages | +| [getLanguagesAcceptLanguage.ts][getlanguagesacceptlanguage] | This sample demonstrates how you can select the language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. | +| [getLanguagesScope.ts][getlanguagesscope] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages for a selected scope | +| [translate.ts][translate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a text which language is know to a target language. | +| [translateAlignments.ts][translatealignments] | This sample demonstrates how you can ask translation service to include alignment projection from source text to translated text. | +| [translateCustom.ts][translatecustom] | This sample demonstrates how You can get translations from a customized system built with Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) to this parameter to use your deployed customized system. It is possible to set `allowFalback` paramter. It specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: `true` (default) or `false`. `allowFallback=false` specifies that the translation should only use systems trained for the category specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `allowFallback=true` specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. | +| [translateDetection.ts][translatedetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation without specifying the source language to a target language. | +| [translateDictionary.ts][translatedictionary] | This sample demonstrates how to keep words if you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is safe only for compound nouns like proper names and product names. Note You must include the From parameter in your API translation request instead of using the autodetect feature. | +| [translateMultipleSources.ts][translatemultiplesources] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a multiple text fields and each input text is in different language. | +| [translateMultipleTargets.ts][translatemultipletargets] | This sample demonstrates how you can provide multiple target languages which results to each input element be translated to all target languages. | +| [translateNoTranslate.ts][translatenotranslate] | This sample demonstrates how it's sometimes useful to exclude specific content from translation. You can use the attribute class=notranslate to specify content that should remain in its original language. In the following example, the content inside the first div element won't be translated, while the content in the second div element will be translated. | +| [translateProfanity.ts][translateprofanity] | This sample demonstrates how to change the profanity handling during translate call. Normally the Translator service will retain profanity that is present in the source in the translation. The degree of profanity and the context that makes words profane differ between cultures, and as a result the degree of profanity in the target language may be amplified or reduced. If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, whether you want to mark profanities with appropriate tags (giving you the option to add your own post-processing), or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` and `NoAction` (default). | +| [translateSenteceLength.ts][translatesentecelength] | This sample demonstrates how to you can ask translator service to include sentence boundaries for the input text and the translated text. | +| [translateTextType.ts][translatetexttype] | This sample demonstrates how you can select whether the translated text is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. | +| [translateWithTransliteration.ts][translatewithtransliteration] | You can combine both Translation and Transliteration in one Translate call. Your source Text can be in non-standard Script of a language as well as you can ask for non-standard Script of a target language. | +| [transliterate.ts][transliterate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to convert characters or letters of a source language to the corresponding characters or letters of a target language. | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] and the following Azure resources to run these sample programs: + +- [Translator resource instance][createinstance_translatorresourceinstance] + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/breakSentence.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env ENDPOINT="" TEXT_TRANSLATOR_API_KEY="" TEXT_TRANSLATOR_REGION="" node dist/breakSentence.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[breaksentence]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/breakSentence.ts +[breaksentencewithautodetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts +[dictionaryexamples]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/dictionaryExamples.ts +[dictionarylookup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/dictionaryLookup.ts +[getlanguages]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguages.ts +[getlanguagesacceptlanguage]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts +[getlanguagesscope]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguagesScope.ts +[translate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translate.ts +[translatealignments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateAlignments.ts +[translatecustom]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateCustom.ts +[translatedetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateDetection.ts +[translatedictionary]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateDictionary.ts +[translatemultiplesources]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateMultipleSources.ts +[translatemultipletargets]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateMultipleTargets.ts +[translatenotranslate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateNoTranslate.ts +[translateprofanity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateProfanity.ts +[translatesentecelength]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateSenteceLength.ts +[translatetexttype]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateTextType.ts +[translatewithtransliteration]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateWithTransliteration.ts +[transliterate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/transliterate.ts +[apiref]: https://learn.microsoft.com/azure/cognitive-services/translator/translator-text-apis +[freesub]: https://azure.microsoft.com/free/ +[createinstance_translatorresourceinstance]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/package.json new file mode 100644 index 00000000000..746d3c8427a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/package.json @@ -0,0 +1,43 @@ +{ + "name": "@azure-samples/ai-translation-text-ts-beta", + "private": true, + "version": "1.0.0", + "description": "Azure Text Translation Service client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/translation/ai-translation-text-rest" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic", + "translate", + "translation" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest", + "dependencies": { + "@azure-rest/ai-translation-text": "next", + "dotenv": "latest" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.4.5", + "rimraf": "latest" + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/sample.env new file mode 100644 index 00000000000..bbdd64c0b36 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/sample.env @@ -0,0 +1,6 @@ +# Used in most samples. +# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource + +ENDPOINT="https://api.cognitive.microsofttranslator.com" +TEXT_TRANSLATOR_API_KEY="" +TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts new file mode 100644 index 00000000000..8ac71201fdf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=breakSentence.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map new file mode 100644 index 00000000000..2410132a23c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentence.d.ts","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js new file mode 100644 index 00000000000..c953956aa0b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js @@ -0,0 +1,42 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Get Sentence Boundaries sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=breakSentence.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js.map new file mode 100644 index 00000000000..231cb9a7aee --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentence.js","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,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/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.ts new file mode 100644 index 00000000000..f319a1769a7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.ts @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Get Sentence Boundaries sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + script: "Latn", + }}); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts new file mode 100644 index 00000000000..46395b61b7b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=breakSentenceWithAutoDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map new file mode 100644 index 00000000000..ac9b0b74586 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceWithAutoDetection.d.ts","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js new file mode 100644 index 00000000000..77a3269e283 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js @@ -0,0 +1,39 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log(`Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=breakSentenceWithAutoDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map new file mode 100644 index 00000000000..4de54a56b3c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceWithAutoDetection.js","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,gDAAgD,EAAE,CAAC,CAAC;IAChG,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CACT,yCAAyC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,aAAa,EAAE,gBAAgB,EAAE,KAAK,GAAG,CAC5I,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts new file mode 100644 index 00000000000..dc7fe39e57c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Sentence Boundaries with auto-detection sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "How are you? I am fine. What did you do today?" }]; + const breakSentenceResponse = await translationClient.path("/breaksentence").post({ + body: inputText, + }); + + if (isUnexpected(breakSentenceResponse)) { + throw breakSentenceResponse.body.error; + } + + const breakSentences = breakSentenceResponse.body; + for (const breakSentence of breakSentences) { + console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); + console.log( + `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts new file mode 100644 index 00000000000..59d56de8ab2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=dictionaryExamples.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map new file mode 100644 index 00000000000..91e60b8c357 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamples.d.ts","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js new file mode 100644 index 00000000000..57e4c06f6a2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js @@ -0,0 +1,44 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Dictionary Examples sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log(`For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`); + const firstExample = dictionaryExample?.examples[0]; + console.log(`Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=dictionaryExamples.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map new file mode 100644 index 00000000000..4d32e536324 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamples.js","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAiCC;;AAjDD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;IACvF,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;QACnF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IACnD,KAAK,MAAM,iBAAiB,IAAI,kBAAkB,EAAE,CAAC;QACnD,OAAO,CAAC,GAAG,CACT,uBAAuB,iBAAiB,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CACpG,CAAC;QACF,MAAM,YAAY,GAAG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CACT,aACE,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,GAAG,YAAY,CAAC,YACrE,IAAI,CACL,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.ts new file mode 100644 index 00000000000..3a6b7921125 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.ts @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. + */ +import TextTranslationClient, { + TranslatorCredential, + DictionaryExampleTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Dictionary Examples sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; + const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }}); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryExamples = dictionaryResponse.body; + for (const dictionaryExample of dictionaryExamples) { + console.log( + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` + ); + const firstExample = dictionaryExample?.examples[0]; + console.log( + `Example: '${ + firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix + }'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts new file mode 100644 index 00000000000..38085ada4f0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=dictionaryLookup.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map new file mode 100644 index 00000000000..a3340f5c99c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookup.d.ts","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js new file mode 100644 index 00000000000..7cedc4b2ca1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Dictionary Lookup sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log(`For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`); + console.log(`First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=dictionaryLookup.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map new file mode 100644 index 00000000000..6adf79d8741 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookup.js","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA8BC;;AA9CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;QACjF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,eAAe,IAAI,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,GAAG,CACT,uBAAuB,eAAe,EAAE,YAAY,EAAE,MAAM,wCAAwC,CACrG,CAAC;QACF,OAAO,CAAC,GAAG,CACT,iBAAiB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,aAAa,kBAAkB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,CAClI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.ts new file mode 100644 index 00000000000..b0dbe37569b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Dictionary Lookup sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "fly" }]; + const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: { + to: "es", + from: "en", + }}); + + if (isUnexpected(dictionaryResponse)) { + throw dictionaryResponse.body.error; + } + + const dictionaryEntries = dictionaryResponse.body; + for (const dictionaryEntry of dictionaryEntries) { + console.log( + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` + ); + console.log( + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts new file mode 100644 index 00000000000..1b28d1fcf9d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguages.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map new file mode 100644 index 00000000000..c0c38683c9d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguages.d.ts","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":"AAeA,wBAAsB,IAAI,kBAyCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js new file mode 100644 index 00000000000..a56da0cc003 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js @@ -0,0 +1,47 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== List supported languages sample =="); + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguages.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js.map new file mode 100644 index 00000000000..f57b349325f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguages.js","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAclC,oBAyCC;;AArDD;;GAEG;AACH,+FAEyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IAErD,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC;IAEtE,IAAI,IAAA,kCAAY,EAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,YAAY,CAAC,I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KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.ts new file mode 100644 index 00000000000..ea9f6d442ce --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.ts @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages + */ +import TextTranslationClient, { + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== List supported languages sample =="); + + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts new file mode 100644 index 00000000000..ed7bea4503f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguagesAcceptLanguage.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map new file mode 100644 index 00000000000..af9fb2c2660 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesAcceptLanguage.d.ts","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js new file mode 100644 index 00000000000..8882b61cc14 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js @@ -0,0 +1,60 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== List supported localized languages sample =="); + const parameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguagesAcceptLanguage.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map new file mode 100644 index 00000000000..9023ebd2fa3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesAcceptLanguage.js","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA8CC;;AAnED;;;;;;;;;;GAUG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IAE/D,MAAM,UAAU,GAA2B;QACzC,OAAO,EAAE;YACP,iBAAiB,EAAE,IAAI;SACxB;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAA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rD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts new file mode 100644 index 00000000000..8715c108b11 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select the language to use for user interface strings. + * Some of the fields in the response are names of languages or names of regions. + * Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. + * For instance, use the value `fr` to request names in French or use the value `zh-Hant` + * to request names in Chinese Traditional. + * + * Names are provided in the English language when a target language is not specified + * or when localization is not available. + */ +import TextTranslationClient, { + GetLanguagesParameters, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== List supported localized languages sample =="); + + const parameters: GetLanguagesParameters = { + headers: { + "Accept-Language": "cs", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts new file mode 100644 index 00000000000..98558a23465 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=getLanguagesScope.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map new file mode 100644 index 00000000000..7f9105369a8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesScope.d.ts","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":"AAiBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js new file mode 100644 index 00000000000..5770ac410ee --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js @@ -0,0 +1,53 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +async function main() { + console.log("== Scoped list supported languages sample =="); + const parameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { + throw langResponse.body.error; + } + const languages = langResponse.body; + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); + } + } + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); + } + } + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=getLanguagesScope.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map new file mode 100644 index 00000000000..66dbd0e2619 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesScope.js","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,oBA8CC;;AA5DD;;;GAGG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,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AO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.ts new file mode 100644 index 00000000000..e37118bcbbd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get a list of supported languages for a selected scope + */ +import TextTranslationClient, { + GetLanguagesParameters, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; + +export async function main() { + console.log("== Scoped list supported languages sample =="); + + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "translation", + }, + }; + const translationClient = TextTranslationClient(endpoint, undefined, undefined); + const langResponse = await translationClient.path("/languages").get(parameters); + + if (isUnexpected(langResponse)) { + throw langResponse.body.error; + } + + const languages = langResponse.body; + + if (languages.translation) { + console.log("Translated languages:"); + for (const key in languages.translation) { + const translationLanguage = languages.translation[key]; + console.log( + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + ); + } + } + + if (languages.transliteration) { + console.log("Transliteration languages:"); + for (const key in languages.transliteration) { + const transliterationLanguage = languages.transliteration[key]; + console.log( + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + ); + } + } + + if (languages.dictionary) { + console.log("Dictionary languages:"); + for (const key in languages.dictionary) { + const dictionaryLanguage = languages.dictionary[key]; + console.log( + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts new file mode 100644 index 00000000000..ca9270ec452 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts.map new file mode 100644 index 00000000000..a476038ef81 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA2BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js new file mode 100644 index 00000000000..b1c4f83a546 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Simple translate sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js.map new file mode 100644 index 00000000000..2ce69d5e833 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translate.js","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA2BC;;AA5CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.ts new file mode 100644 index 00000000000..d8256ace170 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.ts @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a text which language is know to a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Simple translate sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts new file mode 100644 index 00000000000..ea5d8818b27 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateAlignments.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map new file mode 100644 index 00000000000..afa02ca0eab --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateAlignments.d.ts","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js new file mode 100644 index 00000000000..6c6b88bf78b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with alignments sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + includeAlignment: true, + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateAlignments.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js.map new file mode 100644 index 00000000000..6ab4347d107 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateAlignments.js","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA8BC;;AA/CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI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workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.ts new file mode 100644 index 00000000000..33a0af2420a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can ask translation service to include alignment + * projection from source text to translated text. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with alignments sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "The answer lies in machine translation." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeAlignment: true, + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts new file mode 100644 index 00000000000..422ffa713bc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateCustom.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map new file mode 100644 index 00000000000..8b718cec683 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateCustom.d.ts","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":"AAgCA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js new file mode 100644 index 00000000000..1518b31b2e8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js @@ -0,0 +1,56 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Custom translator sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateCustom.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js.map new file mode 100644 index 00000000000..e0ac090d1d0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateCustom.js","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA+BlC,oBA4BC;;AAzDD;;;;;;;;;;;;;;;GAeG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,wBAAwB;SACrC;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.ts new file mode 100644 index 00000000000..0fac1a635da --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.ts @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how You can get translations from a customized system built with + * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) + * to this parameter to use your deployed customized system. + * + * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to + * fall back to a general system when a custom system doesn't exist. Possible values are: + * `true` (default) or `false`. + * + * `allowFallback=false` specifies that the translation should only use systems trained for + * the category specified by the request. If a translation for language X to language Y requires + * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) + * will need to be custom and have the same category. If no system is found with the specific + * category, the request will return a 400 status code. `allowFallback=true` specifies that + * the service is allowed to fall back to a general system when a custom system doesn't exist. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Custom translator sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + category: "<>", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts new file mode 100644 index 00000000000..0ba089d6c6d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map new file mode 100644 index 00000000000..2b6c98a2652 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDetection.d.ts","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js new file mode 100644 index 00000000000..ec178b054ba --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js @@ -0,0 +1,43 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translate sample with auto-detection =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js.map new file mode 100644 index 00000000000..75cae32b50d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDetection.js","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;A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CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.ts new file mode 100644 index 00000000000..19a80c8e927 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation without specifying the source language to a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translate sample with auto-detection =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts new file mode 100644 index 00000000000..46a59fbb822 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateDictionary.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map new file mode 100644 index 00000000000..fce384100b4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDictionary.d.ts","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js new file mode 100644 index 00000000000..741d436e2aa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js @@ -0,0 +1,50 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with Dictionary sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateDictionary.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js.map new file mode 100644 index 00000000000..4dbd1266ede --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateDictionary.js","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA+BC;;AApDD;;;;;;GAMG;AACH,+FAKyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,8GAA8G;SACrH;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAkC,CAAC;IAC1E,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.ts new file mode 100644 index 00000000000..92484a4a7bb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to keep words if you already know the translation you want + * to apply to a word or a phrase, you can supply it as markup within the request. + * The dynamic dictionary is safe only for compound nouns like proper names and product names. + * + * Note You must include the From parameter in your API translation request instead of using the autodetect feature. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + TranslatedTextItemOutput, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with Dictionary sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { + text: 'The word wordomatic is a dictionary entry.', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body as TranslatedTextItemOutput[]; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts new file mode 100644 index 00000000000..8c46b39a007 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateMultipleSources.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map new file mode 100644 index 00000000000..77232b3cbf0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleSources.d.ts","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js new file mode 100644 index 00000000000..c4d12a37e3f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Multiple input texts =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateMultipleSources.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map new file mode 100644 index 00000000000..5487d639380 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleSources.js","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAiCC;;AAnDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,U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tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.ts new file mode 100644 index 00000000000..d83cd59cca9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.ts @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to get translation for a multiple text fields and each input text + * is in different language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Multiple input texts =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + ); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts new file mode 100644 index 00000000000..6ea17a78854 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateMultipleTargets.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map new file mode 100644 index 00000000000..2162e166baf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleTargets.d.ts","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js new file mode 100644 index 00000000000..99e82ca9287 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Multiple target languages translation =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log(`Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`); + } + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateMultipleTargets.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map new file mode 100644 index 00000000000..6b9bb76b106 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateMultipleTargets.js","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,KAAK,MAAM,OAAO,IAAI,WAAW,CAAC,YAAY,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CACxI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts new file mode 100644 index 00000000000..d78da651e7d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can provide multiple target languages which results + * to each input element be translated to all target languages. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Multiple target languages translation =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs,es,de", + from: "en", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + for (const textKey in translation.translations) { + console.log( + `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` + ); + } + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts new file mode 100644 index 00000000000..2f2ee0dd031 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateNoTranslate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map new file mode 100644 index 00000000000..d6a6d67f853 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateNoTranslate.d.ts","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":"AAsBA,wBAAsB,IAAI,kBAgCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js new file mode 100644 index 00000000000..4bce37a366b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js @@ -0,0 +1,50 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Marking text input with notranslate div sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateNoTranslate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map new file mode 100644 index 00000000000..4e5ae6fdcf3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateNoTranslate.js","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,oBAgCC;;AAnDD;;;;;GAKG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,gGAAgG;SACvG;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACnB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.ts new file mode 100644 index 00000000000..c44e308f9ef --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.ts @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. + * You can use the attribute class=notranslate to specify content that should remain + * in its original language. In the following example, the content inside the first div + * element won't be translated, while the content in the second div element will be translated. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Marking text input with notranslate div sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { + text: '
This will not be translated.
This will be translated.
', + }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts new file mode 100644 index 00000000000..e14e29acf78 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateProfanity.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map new file mode 100644 index 00000000000..05066b4a710 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateProfanity.d.ts","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js new file mode 100644 index 00000000000..2a5c815abdc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js @@ -0,0 +1,55 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Profanity handling sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateProfanity.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js.map new file mode 100644 index 00000000000..56ada6c6e10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translatePro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AG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.ts new file mode 100644 index 00000000000..1a9120831bf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.ts @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to change the profanity handling during translate call. + * Normally the Translator service will retain profanity that is present in the source + * in the translation. The degree of profanity and the context that makes words profane + * differ between cultures, and as a result the degree of profanity in the target language + * may be amplified or reduced. + * + * If you want to avoid getting profanity in the translation, regardless of the presence + * of profanity in the source text, you can use the profanity filtering option. The option + * allows you to choose whether you want to see profanity deleted, whether you want to mark + * profanities with appropriate tags (giving you the option to add your own post-processing), + * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` + * and `NoAction` (default). + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Profanity handling sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is ***." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts new file mode 100644 index 00000000000..101a5c995c7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateSenteceLength.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map new file mode 100644 index 00000000000..6b75e480a45 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateSenteceLength.d.ts","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBAqCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js new file mode 100644 index 00000000000..43b2495a731 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translation with sentence boundaries sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [ + { text: "The answer lies in machine translation. This is a test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + includeSentenceLength: true, + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`); + console.log(`Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateSenteceLength.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map new file mode 100644 index 00000000000..e4884cc665e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateSenteceLength.js","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBAqCC;;AAtDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mDAAmD,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AO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.ts new file mode 100644 index 00000000000..8b03c9d4a75 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.ts @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries + * for the input text and the translated text. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translation with sentence boundaries sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [ + { text: "The answer lies in machine translation. This is a test." }, + ]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + + includeSentenceLength: true, + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log( + `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` + ); + console.log( + `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts new file mode 100644 index 00000000000..a49db19b58c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateTextType.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map new file mode 100644 index 00000000000..9d0f89b64f7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTextType.d.ts","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js new file mode 100644 index 00000000000..ae0cfcc8993 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js @@ -0,0 +1,44 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== HTML translation sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateTextType.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js.map new file mode 100644 index 00000000000..8c8972cd391 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTextType.js","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA4BC;;AA7CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC,CAAC;IAClG,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACnB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,M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EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.ts new file mode 100644 index 00000000000..2eabf2bd627 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.ts @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. + * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== HTML translation sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "cs", + from: "en", + textType: "html", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts new file mode 100644 index 00000000000..8badf54b60c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=translateWithTransliteration.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map new file mode 100644 index 00000000000..450bca60b0a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateWithTransliteration.d.ts","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js new file mode 100644 index 00000000000..c2b6b5f7351 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Translate with transliteration sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { + throw translateResponse.body.error; + } + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); + console.log(`Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=translateWithTransliteration.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map new file mode 100644 index 00000000000..1786a6c32d5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translateWithTransliteration.js","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAiCC;;AAnDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,SAAS;YACb,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,MAAM;SACrB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,gBAAgB,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,wBAAwB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,MAAM,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CACzI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts new file mode 100644 index 00000000000..7f7b06b218f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary You can combine both Translation and Transliteration in one Translate call. + * Your source Text can be in non-standard Script of a language as well as you + * can ask for non-standard Script of a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Translate with transliteration sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; + const translateResponse = await translationClient.path("/translate").post({ + body: inputText, + queryParameters: { + to: "zh-Hans", + toScript: "Latn", + from: "ar", + fromScript: "Latn", + }}); + + if (isUnexpected(translateResponse)) { + throw translateResponse.body.error; + } + + const translations = translateResponse.body; + for (const translation of translations) { + console.log(`Source Text: ${translation.sourceText?.text}`); + console.log( + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + ); + console.log( + `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts new file mode 100644 index 00000000000..f30e7d0aa84 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts @@ -0,0 +1,2 @@ +export declare function main(): Promise; +//# sourceMappingURL=transliterate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts.map new file mode 100644 index 00000000000..ea796ef8b38 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterate.d.ts","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js new file mode 100644 index 00000000000..4b2dbc2fc08 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js @@ -0,0 +1,45 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.main = main; +const tslib_1 = require("tslib"); +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); +const dotenv = tslib_1.__importStar(require("dotenv")); +dotenv.config(); +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; +async function main() { + console.log("== Simple transliterate sample =="); + const translateCedential = { + key: apiKey, + region + }; + const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); + const inputText = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + } + }); + if ((0, ai_translation_text_1.isUnexpected)(transliterateResponse)) { + throw transliterateResponse.body.error; + } + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log(`Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`); + } +} +main().catch((err) => { + console.error(err); +}); +//# sourceMappingURL=transliterate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js.map new file mode 100644 index 00000000000..61587039015 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterate.js","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBA4BC;;AA9CD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;A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ACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.ts new file mode 100644 index 00000000000..3e96c896734 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary This sample demonstrates how to make a simple call to the Azure Text Translator + * service to convert characters or letters of a source language to the corresponding + * characters or letters of a target language. + */ +import TextTranslationClient, { + TranslatorCredential, + InputTextItem, + isUnexpected, +} from "@azure-rest/ai-translation-text"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; +const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; +const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; + +export async function main() { + console.log("== Simple transliterate sample =="); + + const translateCedential: TranslatorCredential = { + key: apiKey, + region + }; + const translationClient = TextTranslationClient(endpoint, translateCedential); + + const inputText: InputTextItem[] = [{ text: "这是个测试。" }]; + const transliterateResponse = await translationClient.path("/transliterate").post({ + body: inputText, + queryParameters: { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }}); + + if (isUnexpected(transliterateResponse)) { + throw transliterateResponse.body.error; + } + + const translations = transliterateResponse.body; + for (const transliteration of translations) { + console.log( + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` + ); + } +} + +main().catch((err) => { + console.error(err); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/tsconfig.json new file mode 100644 index 00000000000..e26ce2a6d8f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts new file mode 100644 index 00000000000..0b3aca7c00c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts @@ -0,0 +1,45 @@ +import { GetLanguagesParameters, TranslateParameters, TransliterateParameters, FindSentenceBoundariesParameters, LookupDictionaryEntriesParameters, LookupDictionaryExamplesParameters } from "./parameters"; +import { GetLanguages200Response, GetLanguagesDefaultResponse, Translate200Response, TranslateDefaultResponse, Transliterate200Response, TransliterateDefaultResponse, FindSentenceBoundaries200Response, FindSentenceBoundariesDefaultResponse, LookupDictionaryEntries200Response, LookupDictionaryEntriesDefaultResponse, LookupDictionaryExamples200Response, LookupDictionaryExamplesDefaultResponse } from "./responses"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; +export interface GetLanguages { + /** Gets the set of languages currently supported by other operations of the Translator. */ + get(options?: GetLanguagesParameters): StreamableMethod; +} +export interface Translate { + /** Translate Text */ + post(options: TranslateParameters): StreamableMethod; +} +export interface Transliterate { + /** Transliterate Text */ + post(options: TransliterateParameters): StreamableMethod; +} +export interface FindSentenceBoundaries { + /** Find Sentence Boundaries */ + post(options: FindSentenceBoundariesParameters): StreamableMethod; +} +export interface LookupDictionaryEntries { + /** Lookup Dictionary Entries */ + post(options: LookupDictionaryEntriesParameters): StreamableMethod; +} +export interface LookupDictionaryExamples { + /** Lookup Dictionary Examples */ + post(options: LookupDictionaryExamplesParameters): StreamableMethod; +} +export interface Routes { + /** Resource for '/languages' has methods for the following verbs: get */ + (path: "/languages"): GetLanguages; + /** Resource for '/translate' has methods for the following verbs: post */ + (path: "/translate"): Translate; + /** Resource for '/transliterate' has methods for the following verbs: post */ + (path: "/transliterate"): Transliterate; + /** Resource for '/breaksentence' has methods for the following verbs: post */ + (path: "/breaksentence"): FindSentenceBoundaries; + /** Resource for '/dictionary/lookup' has methods for the following verbs: post */ + (path: "/dictionary/lookup"): LookupDictionaryEntries; + /** Resource for '/dictionary/examples' has methods for the following verbs: post */ + (path: "/dictionary/examples"): LookupDictionaryExamples; +} +export type TextTranslationClient = Client & { + path: Routes; +}; +//# sourceMappingURL=clientDefinitions.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts.map new file mode 100644 index 00000000000..666ed83b98d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["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mC,GAAG,uCAAuC,CAC9E,CAAC;CACH;AAED,MAAM,WAAW,MAAM;IACrB,yEAAyE;IACzE,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY,CAAC;IACnC,0EAA0E;IAC1E,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC;IAChC,8EAA8E;IAC9E,CAAC,IAAI,EAAE,gBAAgB,GAAG,aAAa,CAAC;IACxC,8EAA8E;IAC9E,CAAC,IAAI,EAAE,gBAAgB,GAAG,sBAAsB,CAAC;IACjD,kFAAkF;IAClF,CAAC,IAAI,EAAE,oBAAoB,GAAG,uBAAuB,CAAC;IACtD,oFAAoF;IACpF,CAAC,IAAI,EAAE,sBAAsB,GAAG,wBAAwB,CAAC;CAC1D;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js new file mode 100644 index 00000000000..4241682f193 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=clientDefinitions.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js.map new file mode 100644 index 00000000000..1a49e5540ea --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.ts new file mode 100644 index 00000000000..f95ee452adb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.ts @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + GetLanguagesParameters, + TranslateParameters, + TransliterateParameters, + FindSentenceBoundariesParameters, + LookupDictionaryEntriesParameters, + LookupDictionaryExamplesParameters, +} from "./parameters"; +import { + GetLanguages200Response, + GetLanguagesDefaultResponse, + Translate200Response, + TranslateDefaultResponse, + Transliterate200Response, + TransliterateDefaultResponse, + FindSentenceBoundaries200Response, + FindSentenceBoundariesDefaultResponse, + LookupDictionaryEntries200Response, + LookupDictionaryEntriesDefaultResponse, + LookupDictionaryExamples200Response, + LookupDictionaryExamplesDefaultResponse, +} from "./responses"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; + +export interface GetLanguages { + /** Gets the set of languages currently supported by other operations of the Translator. */ + get( + options?: GetLanguagesParameters, + ): StreamableMethod; +} + +export interface Translate { + /** Translate Text */ + post( + options: TranslateParameters, + ): StreamableMethod; +} + +export interface Transliterate { + /** Transliterate Text */ + post( + options: TransliterateParameters, + ): StreamableMethod; +} + +export interface FindSentenceBoundaries { + /** Find Sentence Boundaries */ + post( + options: FindSentenceBoundariesParameters, + ): StreamableMethod; +} + +export interface LookupDictionaryEntries { + /** Lookup Dictionary Entries */ + post( + options: LookupDictionaryEntriesParameters, + ): StreamableMethod; +} + +export interface LookupDictionaryExamples { + /** Lookup Dictionary Examples */ + post( + options: LookupDictionaryExamplesParameters, + ): StreamableMethod< + LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse + >; +} + +export interface Routes { + /** Resource for '/languages' has methods for the following verbs: get */ + (path: "/languages"): GetLanguages; + /** Resource for '/translate' has methods for the following verbs: post */ + (path: "/translate"): Translate; + /** Resource for '/transliterate' has methods for the following verbs: post */ + (path: "/transliterate"): Transliterate; + /** Resource for '/breaksentence' has methods for the following verbs: post */ + (path: "/breaksentence"): FindSentenceBoundaries; + /** Resource for '/dictionary/lookup' has methods for the following verbs: post */ + (path: "/dictionary/lookup"): LookupDictionaryEntries; + /** Resource for '/dictionary/examples' has methods for the following verbs: post */ + (path: "/dictionary/examples"): LookupDictionaryExamples; +} + +export type TextTranslationClient = Client & { + path: Routes; +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts new file mode 100644 index 00000000000..202357bbcd6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts @@ -0,0 +1,31 @@ +import { AzureKeyCredential, TokenCredential } from "@azure/core-auth"; +import { PipelinePolicy, PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; +export declare const DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; +export interface TranslatorCredential { + key: string; + region: string; +} +export interface TranslatorTokenCredential { + tokenCredential: TokenCredential; + region: string; + azureResourceId: string; +} +export declare class TranslatorAuthenticationPolicy implements PipelinePolicy { + name: string; + credential: TranslatorCredential; + constructor(credential: TranslatorCredential); + sendRequest(request: PipelineRequest, next: SendRequest): Promise; +} +export declare class TranslatorAzureKeyAuthenticationPolicy implements PipelinePolicy { + name: string; + credential: AzureKeyCredential; + constructor(credential: AzureKeyCredential); + sendRequest(request: PipelineRequest, next: SendRequest): Promise; +} +export declare class TranslatorTokenCredentialAuthenticationPolicy implements PipelinePolicy { + name: string; + credential: TranslatorTokenCredential; + constructor(credential: TranslatorTokenCredential); + sendRequest(request: PipelineRequest, next: SendRequest): Promise; +} +//# sourceMappingURL=authentication.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts.map new file mode 100644 index 00000000000..8911d4108fc --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["authentication.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAKnC,eAAO,MAAM,aAAa,iDAAiD,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,8BAA+B,YAAW,cAAc;IACnE,IAAI,EAAE,MAAM,CAAoC;IAChD,UAAU,EAAE,oBAAoB,CAAC;gBAErB,UAAU,EAAE,oBAAoB;IAI5C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMpF;AAED,qBAAa,sCAAuC,YAAW,cAAc;IAC3E,IAAI,EAAE,MAAM,CAA4C;IACxD,UAAU,EAAE,kBAAkB,CAAC;gBAEnB,UAAU,EAAE,kBAAkB;IAI1C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAKpF;AAED,qBAAa,6CAA8C,YAAW,cAAc;IAClF,IAAI,EAAE,MAAM,CAAmD;IAC/D,UAAU,EAAE,yBAAyB,CAAC;gBAE1B,UAAU,EAAE,yBAAyB;IAIjD,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMpF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js new file mode 100644 index 00000000000..04c2475ecf8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js @@ -0,0 +1,48 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TranslatorTokenCredentialAuthenticationPolicy = exports.TranslatorAzureKeyAuthenticationPolicy = exports.TranslatorAuthenticationPolicy = exports.DEFAULT_SCOPE = void 0; +const APIM_KEY_HEADER_NAME = "Ocp-Apim-Subscription-Key"; +const APIM_REGION_HEADER_NAME = "Ocp-Apim-Subscription-Region"; +const APIM_RESOURCE_ID = "Ocp-Apim-ResourceId"; +exports.DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; +class TranslatorAuthenticationPolicy { + name = "TranslatorAuthenticationPolicy"; + credential; + constructor(credential) { + this.credential = credential; + } + sendRequest(request, next) { + request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); + request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); + return next(request); + } +} +exports.TranslatorAuthenticationPolicy = TranslatorAuthenticationPolicy; +class TranslatorAzureKeyAuthenticationPolicy { + name = "TranslatorAzureKeyAuthenticationPolicy"; + credential; + constructor(credential) { + this.credential = credential; + } + sendRequest(request, next) { + request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); + return next(request); + } +} +exports.TranslatorAzureKeyAuthenticationPolicy = TranslatorAzureKeyAuthenticationPolicy; +class TranslatorTokenCredentialAuthenticationPolicy { + name = "TranslatorTokenCredentialAuthenticationPolicy"; + credential; + constructor(credential) { + this.credential = credential; + } + sendRequest(request, next) { + request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); + request.headers.set(APIM_RESOURCE_ID, this.credential.azureResourceId); + return next(request); + } +} +exports.TranslatorTokenCredentialAuthenticationPolicy = TranslatorTokenCredentialAuthenticationPolicy; +//# sourceMappingURL=authentication.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js.map new file mode 100644 index 00000000000..219dc3bba58 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js.map @@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IAED,WAAW,CAAC,OAAwB,EAAE,IAAiB;QACrD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACrE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;CACF;AAdD,sGAcC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.ts new file mode 100644 index 00000000000..1eae16403e0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.ts @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AzureKeyCredential, TokenCredential } from "@azure/core-auth"; +import { + PipelinePolicy, + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; + +const APIM_KEY_HEADER_NAME = "Ocp-Apim-Subscription-Key"; +const APIM_REGION_HEADER_NAME = "Ocp-Apim-Subscription-Region"; +const APIM_RESOURCE_ID = "Ocp-Apim-ResourceId"; +export const DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; + +export interface TranslatorCredential { + key: string; + region: string; +} + +export interface TranslatorTokenCredential { + tokenCredential: TokenCredential; + region: string; + azureResourceId: string; +} + +export class TranslatorAuthenticationPolicy implements PipelinePolicy { + name: string = "TranslatorAuthenticationPolicy"; + credential: TranslatorCredential; + + constructor(credential: TranslatorCredential) { + this.credential = credential; + } + + sendRequest(request: PipelineRequest, next: SendRequest): Promise { + request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); + request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); + + return next(request); + } +} + +export class TranslatorAzureKeyAuthenticationPolicy implements PipelinePolicy { + name: string = "TranslatorAzureKeyAuthenticationPolicy"; + credential: AzureKeyCredential; + + constructor(credential: AzureKeyCredential) { + this.credential = credential; + } + + sendRequest(request: PipelineRequest, next: SendRequest): Promise { + request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); + + return next(request); + } +} + +export class TranslatorTokenCredentialAuthenticationPolicy implements PipelinePolicy { + name: string = "TranslatorTokenCredentialAuthenticationPolicy"; + credential: TranslatorTokenCredential; + + constructor(credential: TranslatorTokenCredential) { + this.credential = credential; + } + + sendRequest(request: PipelineRequest, next: SendRequest): Promise { + request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); + request.headers.set(APIM_RESOURCE_ID, this.credential.azureResourceId); + + return next(request); + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts new file mode 100644 index 00000000000..11e312111b5 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts @@ -0,0 +1,12 @@ +import { ClientOptions } from "@azure-rest/core-client"; +import { TextTranslationClient } from "../clientDefinitions"; +import { TranslatorCredential, TranslatorTokenCredential } from "./authentication"; +import { KeyCredential, TokenCredential } from "@azure/core-auth"; +/** + * Initialize a new instance of `TextTranslationClient` + * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: + * https://api.cognitive.microsofttranslator.com). + * @param options type: ClientOptions, the parameter for all optional parameters + */ +export default function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; +//# sourceMappingURL=customClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts.map new file mode 100644 index 00000000000..b69536828e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"customClient.d.ts","sourceRoot":"","sources":["customClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAEL,oBAAoB,EACpB,yBAAyB,EAI1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAsB,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAyBtF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,SAAS,GAAG,MAAM,EAC5B,UAAU,GACN,SAAS,GACT,oBAAoB,GACpB,yBAAyB,GACzB,aAAa,GACb,eAA2B,EAC/B,OAAO,GAAE,aAAkB,GAC1B,qBAAqB,CA8DvB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js new file mode 100644 index 00000000000..e456035ba44 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js @@ -0,0 +1,83 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = createClient; +const tslib_1 = require("tslib"); +const core_client_1 = require("@azure-rest/core-client"); +const logger_1 = require("../logger"); +const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline")); +const authentication_1 = require("./authentication"); +const DEFAULT_ENPOINT = "https://api.cognitive.microsofttranslator.com"; +const PLATFORM_HOST = "cognitiveservices"; +const PLATFORM_PATH = "/translator/text/v3.0"; +function isKeyCredential(credential) { + return credential?.key !== undefined; +} +function isTranslatorKeyCredential(credential) { + return credential?.key !== undefined; +} +function isTokenCredential(credential) { + return credential?.getToken !== undefined; +} +function isTranslatorTokenCredential(credential) { + return (credential?.tokenCredential !== undefined && + credential?.azureResourceId !== undefined); +} +/** + * Initialize a new instance of `TextTranslationClient` + * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: + * https://api.cognitive.microsofttranslator.com). + * @param options type: ClientOptions, the parameter for all optional parameters + */ +function createClient(endpoint, credential = undefined, options = {}) { + let serviceEndpoint; + options.apiVersion = options.apiVersion ?? "3.0"; + if (!endpoint) { + serviceEndpoint = DEFAULT_ENPOINT; + } + else if (endpoint.toLowerCase().indexOf(PLATFORM_HOST) !== -1) { + serviceEndpoint = `${endpoint}${PLATFORM_PATH}`; + } + else { + serviceEndpoint = endpoint; + } + const baseUrl = options.baseUrl ?? `${serviceEndpoint}`; + const userAgentInfo = `azsdk-js-ai-translation-text-rest/1.0.0-beta.2`; + const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger_1.logger.info, + }, + }; + const client = (0, core_client_1.getClient)(baseUrl, options); + if (isTranslatorKeyCredential(credential)) { + const mtAuthneticationPolicy = new authentication_1.TranslatorAuthenticationPolicy(credential); + client.pipeline.addPolicy(mtAuthneticationPolicy); + } + else if (isKeyCredential(credential)) { + const mtKeyAuthenticationPolicy = new authentication_1.TranslatorAzureKeyAuthenticationPolicy(credential); + client.pipeline.addPolicy(mtKeyAuthenticationPolicy); + } + else if (isTokenCredential(credential)) { + client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credential, + scopes: authentication_1.DEFAULT_SCOPE, + })); + } + else if (isTranslatorTokenCredential(credential)) { + client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credential.tokenCredential, + scopes: authentication_1.DEFAULT_SCOPE, + })); + client.pipeline.addPolicy(new authentication_1.TranslatorTokenCredentialAuthenticationPolicy(credential)); + } + return client; +} +//# sourceMappingURL=customClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js.map new file mode 100644 index 00000000000..ad4c129c28e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js.map @@ -0,0 +1 @@ +{"version":3,"file":"customClient.js","sourceRoot":"","sources":["customClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6ClC,+BAuEC;;AAlHD,yDAAmE;AACnE,sCAAmC;AACnC,oFAA8D;AAE9D,qDAO0B;AAG1B,MAAM,eAAe,GAAG,+CAA+C,CAAC;AACxE,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAC1C,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,SAAS,eA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AO;QACV,gBAAgB,EAAE;YAChB,eAAe;SAChB;QACD,cAAc,EAAE;YACd,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,eAAM,CAAC,IAAI;SACtD;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,OAAO,EAAE,OAAO,CAA0B,CAAC;IAEpE,IAAI,yBAAyB,CAAC,UAAU,CAAC,EAAE,CAAC;QAC1C,MAAM,sBAAsB,GAAG,IAAI,+CAA8B,CAC/D,UAAkC,CACnC,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IACpD,CAAC;SAAM,IAAI,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QACvC,MAAM,yBAAyB,GAAG,IAAI,uDAAsC,CAC1E,UAAgC,CACjC,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IACvD,CAAC;SAAM,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;QACzC,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,gBAAgB,CAAC,+BAA+B,CAAC;YAC/C,UAAU,EAAE,UAA6B;YACzC,MAAM,EAAE,8BAAa;SACtB,CAAC,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,2BAA2B,CAAC,UAAU,CAAC,EAAE,CAAC;QACnD,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,gBAAgB,CAAC,+BAA+B,CAAC;YAC/C,UAAU,EAAG,UAAwC,CAAC,eAAe;YACrE,MAAM,EAAE,8BAAa;SACtB,CAAC,CACH,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,IAAI,8DAA6C,CAAC,UAAuC,CAAC,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.ts new file mode 100644 index 00000000000..f6115fe67f4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.ts @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "../logger"; +import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { TextTranslationClient } from "../clientDefinitions"; +import { + DEFAULT_SCOPE, + TranslatorCredential, + TranslatorTokenCredential, + TranslatorAuthenticationPolicy, + TranslatorAzureKeyAuthenticationPolicy, + TranslatorTokenCredentialAuthenticationPolicy, +} from "./authentication"; +import { AzureKeyCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; + +const DEFAULT_ENPOINT = "https://api.cognitive.microsofttranslator.com"; +const PLATFORM_HOST = "cognitiveservices"; +const PLATFORM_PATH = "/translator/text/v3.0"; + +function isKeyCredential(credential: any): credential is KeyCredential { + return (credential as KeyCredential)?.key !== undefined; +} + +function isTranslatorKeyCredential(credential: any): credential is TranslatorCredential { + return (credential as TranslatorCredential)?.key !== undefined; +} + +function isTokenCredential(credential: any): credential is TokenCredential { + return (credential as TokenCredential)?.getToken !== undefined; +} + +function isTranslatorTokenCredential(credential: any): credential is TranslatorTokenCredential { + return ( + (credential as TranslatorTokenCredential)?.tokenCredential !== undefined && + (credential as TranslatorTokenCredential)?.azureResourceId !== undefined + ); +} + +/** + * Initialize a new instance of `TextTranslationClient` + * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: + * https://api.cognitive.microsofttranslator.com). + * @param options type: ClientOptions, the parameter for all optional parameters + */ +export default function createClient( + endpoint: undefined | string, + credential: + | undefined + | TranslatorCredential + | TranslatorTokenCredential + | KeyCredential + | TokenCredential = undefined, + options: ClientOptions = {}, +): TextTranslationClient { + let serviceEndpoint: string; + + options.apiVersion = options.apiVersion ?? "3.0"; + + if (!endpoint) { + serviceEndpoint = DEFAULT_ENPOINT; + } else if (endpoint.toLowerCase().indexOf(PLATFORM_HOST) !== -1) { + serviceEndpoint = `${endpoint}${PLATFORM_PATH}`; + } else { + serviceEndpoint = endpoint; + } + + const baseUrl = options.baseUrl ?? `${serviceEndpoint}`; + + const userAgentInfo = `azsdk-js-ai-translation-text-rest/1.0.0-beta.2`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + }; + + const client = getClient(baseUrl, options) as TextTranslationClient; + + if (isTranslatorKeyCredential(credential)) { + const mtAuthneticationPolicy = new TranslatorAuthenticationPolicy( + credential as TranslatorCredential, + ); + client.pipeline.addPolicy(mtAuthneticationPolicy); + } else if (isKeyCredential(credential)) { + const mtKeyAuthenticationPolicy = new TranslatorAzureKeyAuthenticationPolicy( + credential as AzureKeyCredential, + ); + client.pipeline.addPolicy(mtKeyAuthenticationPolicy); + } else if (isTokenCredential(credential)) { + client.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credential as TokenCredential, + scopes: DEFAULT_SCOPE, + }), + ); + } else if (isTranslatorTokenCredential(credential)) { + client.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: (credential as TranslatorTokenCredential).tokenCredential, + scopes: DEFAULT_SCOPE, + }), + ); + client.pipeline.addPolicy( + new TranslatorTokenCredentialAuthenticationPolicy(credential as TranslatorTokenCredential), + ); + } + + return client; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts new file mode 100644 index 00000000000..c815d85cec7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts @@ -0,0 +1,12 @@ +import TextTranslationClient from "./custom/customClient"; +export * from "./custom/customClient"; +export * from "./parameters"; +export * from "./responses"; +export * from "./clientDefinitions"; +export * from "./isUnexpected"; +export * from "./models"; +export * from "./outputModels"; +export * from "./serializeHelper"; +export { TranslatorCredential, TranslatorTokenCredential } from "./custom/authentication"; +export default TextTranslationClient; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts.map new file mode 100644 index 00000000000..c43ad692f47 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,MAAM,uBAAuB,CAAC;AAE1D,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,eAAe,qBAAqB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js new file mode 100644 index 00000000000..d66595fa050 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js @@ -0,0 +1,16 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +const customClient_1 = tslib_1.__importDefault(require("./custom/customClient")); +tslib_1.__exportStar(require("./custom/customClient"), exports); +tslib_1.__exportStar(require("./parameters"), exports); +tslib_1.__exportStar(require("./responses"), exports); +tslib_1.__exportStar(require("./clientDefinitions"), exports); +tslib_1.__exportStar(require("./isUnexpected"), exports); +tslib_1.__exportStar(require("./models"), exports); +tslib_1.__exportStar(require("./outputModels"), exports); +tslib_1.__exportStar(require("./serializeHelper"), exports); +exports.default = customClient_1.default; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js.map new file mode 100644 index 00000000000..c484a7d0566 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iFAA0D;AAE1D,gEAAsC;AACtC,uDAA6B;AAC7B,sDAA4B;AAC5B,8DAAoC;AACpC,yDAA+B;AAC/B,mDAAyB;AACzB,yDAA+B;AAC/B,4DAAkC;AAGlC,kBAAe,sBAAqB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.ts new file mode 100644 index 00000000000..1f53069e787 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import TextTranslationClient from "./custom/customClient"; + +export * from "./custom/customClient"; +export * from "./parameters"; +export * from "./responses"; +export * from "./clientDefinitions"; +export * from "./isUnexpected"; +export * from "./models"; +export * from "./outputModels"; +export * from "./serializeHelper"; +export { TranslatorCredential, TranslatorTokenCredential } from "./custom/authentication"; + +export default TextTranslationClient; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts new file mode 100644 index 00000000000..260938b2f45 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts @@ -0,0 +1,8 @@ +import { GetLanguages200Response, GetLanguagesDefaultResponse, Translate200Response, TranslateDefaultResponse, Transliterate200Response, TransliterateDefaultResponse, FindSentenceBoundaries200Response, FindSentenceBoundariesDefaultResponse, LookupDictionaryEntries200Response, LookupDictionaryEntriesDefaultResponse, LookupDictionaryExamples200Response, LookupDictionaryExamplesDefaultResponse } from "./responses"; +export declare function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; +export declare function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; +export declare function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; +export declare function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; +export declare function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; +export declare function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; +//# sourceMappingURL=isUnexpected.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts.map new file mode 100644 index 00000000000..ca58e4fe810 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,aAAa,CAAC;AAWrB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oBAAoB,GAAG,wBAAwB,GACxD,QAAQ,IAAI,wBAAwB,CAAC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wBAAwB,GAAG,4BAA4B,GAChE,QAAQ,IAAI,4BAA4B,CAAC;AAC5C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,iCAAiC,GAAG,qCAAqC,GAClF,QAAQ,IAAI,qCAAqC,CAAC;AACrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,kCAAkC,GAAG,sCAAsC,GACpF,QAAQ,IAAI,sCAAsC,CAAC;AACtD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,mCAAmC,GAAG,uCAAuC,GACtF,QAAQ,IAAI,uCAAuC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js new file mode 100644 index 00000000000..c65b3b4f2c3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js @@ -0,0 +1,77 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isUnexpected = isUnexpected; +const responseMap = { + "GET /languages": ["200"], + "POST /translate": ["200"], + "POST /transliterate": ["200"], + "POST /breaksentence": ["200"], + "POST /dictionary/lookup": ["200"], + "POST /dictionary/examples": ["200"], +}; +function isUnexpected(response) { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} +function getParametrizedPathSuccess(method, path) { + const pathParts = path.split("/"); + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, matchedValue = []; + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); + if (!isMatched) { + found = false; + break; + } + continue; + } + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + return matchedValue; +} +function getPathFromMapKey(mapKey) { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} +//# sourceMappingURL=isUnexpected.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js.map new file mode 100644 index 00000000000..238bab8b0c9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA4ClC,oCA6BC;AAxDD,MAAM,WAAW,GAA6B;IAC5C,gBAAgB,EAAE,CAAC,KAAK,CAAC;IACzB,iBAAiB,EAAE,CAAC,KAAK,CAAC;IAC1B,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,yBAAyB,EAAE,CAAC,KAAK,CAAC;IAClC,2BAA2B,EAAE,CAAC,KAAK,CAAC;CACrC,CAAC;AAoBF,SAAgB,YAAY,CAC1B,QAY2C;IAQ3C,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC;IACvC,IAAI,WAAW,GAAG,WAAW,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC3D,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,WAAW,GAAG,0BAA0B,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,0BAA0B,CAAC,MAAc,EAAE,IAAY;IAC9D,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAElC,+CAA+C;IAC/C,2CAA2C;IAC3C,8CAA8C;IAC9C,IAAI,UAAU,GAAG,CAAC,CAAC,EACjB,YAAY,GAAa,EAA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S,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.ts new file mode 100644 index 00000000000..aa40d5d88b3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.ts @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + GetLanguages200Response, + GetLanguagesDefaultResponse, + Translate200Response, + TranslateDefaultResponse, + Transliterate200Response, + TransliterateDefaultResponse, + FindSentenceBoundaries200Response, + FindSentenceBoundariesDefaultResponse, + LookupDictionaryEntries200Response, + LookupDictionaryEntriesDefaultResponse, + LookupDictionaryExamples200Response, + LookupDictionaryExamplesDefaultResponse, +} from "./responses"; + +const responseMap: Record = { + "GET /languages": ["200"], + "POST /translate": ["200"], + "POST /transliterate": ["200"], + "POST /breaksentence": ["200"], + "POST /dictionary/lookup": ["200"], + "POST /dictionary/examples": ["200"], +}; + +export function isUnexpected( + response: GetLanguages200Response | GetLanguagesDefaultResponse, +): response is GetLanguagesDefaultResponse; +export function isUnexpected( + response: Translate200Response | TranslateDefaultResponse, +): response is TranslateDefaultResponse; +export function isUnexpected( + response: Transliterate200Response | TransliterateDefaultResponse, +): response is TransliterateDefaultResponse; +export function isUnexpected( + response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse, +): response is FindSentenceBoundariesDefaultResponse; +export function isUnexpected( + response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse, +): response is LookupDictionaryEntriesDefaultResponse; +export function isUnexpected( + response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse, +): response is LookupDictionaryExamplesDefaultResponse; +export function isUnexpected( + response: + | GetLanguages200Response + | GetLanguagesDefaultResponse + | Translate200Response + | TranslateDefaultResponse + | Transliterate200Response + | TransliterateDefaultResponse + | FindSentenceBoundaries200Response + | FindSentenceBoundariesDefaultResponse + | LookupDictionaryEntries200Response + | LookupDictionaryEntriesDefaultResponse + | LookupDictionaryExamples200Response + | LookupDictionaryExamplesDefaultResponse, +): response is + | GetLanguagesDefaultResponse + | TranslateDefaultResponse + | TransliterateDefaultResponse + | FindSentenceBoundariesDefaultResponse + | LookupDictionaryEntriesDefaultResponse + | LookupDictionaryExamplesDefaultResponse { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} + +function getParametrizedPathSuccess(method: string, path: string): string[] { + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: string[] = []; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( + pathParts[j] || "", + ); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts new file mode 100644 index 00000000000..66ece8e69dd --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts @@ -0,0 +1,2 @@ +export declare const logger: any; +//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts.map new file mode 100644 index 00000000000..f8f65055158 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,KAA4C,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js new file mode 100644 index 00000000000..5c950d128da --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js @@ -0,0 +1,8 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.logger = void 0; +const logger_1 = require("@azure/logger"); +exports.logger = (0, logger_1.createClientLogger)("ai-translation-text"); +//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js.map new file mode 100644 index 00000000000..d8f613d3a81 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js.map @@ -0,0 +1 @@ +{"version":3,"file":"logger.js","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0CAAmD;AACtC,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.ts new file mode 100644 index 00000000000..d2cdd4fac44 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("ai-translation-text"); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts new file mode 100644 index 00000000000..0fd390d0877 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts @@ -0,0 +1,15 @@ +/** Element containing the text for translation. */ +export interface InputTextItem { + /** Text to translate. */ + text: string; +} +/** Element containing the text with translation. */ +export interface DictionaryExampleTextItem extends InputTextItem { + /** + * A string specifying the translated text previously returned by the Dictionary lookup operation. + * This should be the value from the normalizedTarget field in the translations list of the Dictionary + * lookup response. The service will return examples for the specific source-target word-pair. + */ + translation: string; +} +//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts.map new file mode 100644 index 00000000000..d2430a1004b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAGA,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oDAAoD;AACpD,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC9D;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js new file mode 100644 index 00000000000..783931f3080 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js.map new file mode 100644 index 00000000000..7d51b00eabf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js.map @@ -0,0 +1 @@ +{"version":3,"file":"models.js","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts new file mode 100644 index 00000000000..4b2bb73cebb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** Element containing the text for translation. */ +export interface InputTextItem { + /** Text to translate. */ + text: string; +} + +/** Element containing the text with translation. */ +export interface DictionaryExampleTextItem extends InputTextItem { + /** + * A string specifying the translated text previously returned by the Dictionary lookup operation. + * This should be the value from the normalizedTarget field in the translations list of the Dictionary + * lookup response. The service will return examples for the specific source-target word-pair. + */ + translation: string; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts new file mode 100644 index 00000000000..81564eb6b4c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts @@ -0,0 +1,297 @@ +/** Response for the languages API. */ +export interface GetLanguagesResultOutput { + /** Languages that support translate API. */ + translation?: Record; + /** Languages that support transliteration API. */ + transliteration?: Record; + /** Languages that support dictionary API. */ + dictionary?: Record; +} +/** + * The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. + * A key identifies a language for which text can be translated to or translated from. + */ +export interface TranslationLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; +} +/** + * The value of the transliteration property is a dictionary of (key, value) pairs. + * Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script + * to another script. + */ +export interface TransliterationLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** List of scripts to convert from. */ + scripts: Array; +} +/** Script definition with list of script into which given script can be translitered. */ +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + /** List of scripts available to convert text to. */ + toScripts: Array; +} +/** Common properties of language script */ +export interface CommonScriptModelOutput { + /** Code identifying the script. */ + code: string; + /** Display name of the script in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for the language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; +} +/** Properties ot the source dictionary language */ +export interface SourceDictionaryLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; + /** List of languages with alterative translations and examples for the query expressed in the source language. */ + translations: Array; +} +/** Properties of the target dictionary language */ +export interface TargetDictionaryLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; + /** Language code identifying the target language. */ + code: string; +} +/** Representation of the Error Response from Translator Service. */ +export interface ErrorResponseOutput { + /** Error details. */ + error: ErrorDetailsOutput; +} +/** Error details as returned by Translator Service. */ +export interface ErrorDetailsOutput { + /** Number identifier of the error. */ + code: number; + /** Human readable error description. */ + message: string; +} +/** Element containing the translated text */ +export interface TranslatedTextItemOutput { + /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ + detectedLanguage?: DetectedLanguageOutput; + /** + * An array of translation results. The size of the array matches the number of target + * languages specified through the to query parameter. + */ + translations: Array; + /** + * Input text in the default script of the source language. sourceText property is present only when + * the input is expressed in a script that's not the usual script for the language. For example, + * if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text + * converted into Arab script. + */ + sourceText?: SourceTextOutput; +} +/** An object describing the detected language. */ +export interface DetectedLanguageOutput { + /** A string representing the code of the detected language. */ + language: string; + /** + * A float value indicating the confidence in the result. + * The score is between zero and one and a low score indicates a low confidence. + */ + score: number; +} +/** Translation result */ +export interface TranslationOutput { + /** A string representing the language code of the target language. */ + to: string; + /** A string giving the translated text. */ + text: string; + /** An object giving the translated text in the script specified by the toScript parameter. */ + transliteration?: TransliteratedTextOutput; + /** Alignment information. */ + alignment?: TranslatedTextAlignmentOutput; + /** Sentence boundaries in the input and output texts. */ + sentLen?: SentenceLengthOutput; +} +/** Transliterated text element. */ +export interface TransliteratedTextOutput { + /** A string which is the result of converting the input string to the output script. */ + text: string; + /** A string specifying the script used in the output. */ + script: string; +} +/** Alignment information object. */ +export interface TranslatedTextAlignmentOutput { + /** + * Maps input text to translated text. The alignment information is only provided when the request + * parameter includeAlignment is true. Alignment is returned as a string value of the following + * format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. + * The colon separates start and end index, the dash separates the languages, and space separates the words. + * One word may align with zero, one, or multiple words in the other language, and the aligned words may + * be non-contiguous. When no alignment information is available, the alignment element will be empty. + */ + proj: string; +} +/** An object returning sentence boundaries in the input and output texts. */ +export interface SentenceLengthOutput { + /** + * An integer array representing the lengths of the sentences in the input text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + srcSentLen: number[]; + /** + * An integer array representing the lengths of the sentences in the translated text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + transSentLen: number[]; +} +/** Input text in the default script of the source language. */ +export interface SourceTextOutput { + /** Input text in the default script of the source language. */ + text: string; +} +/** Item containing break sentence result. */ +export interface BreakSentenceItemOutput { + /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ + detectedLanguage?: DetectedLanguageOutput; + /** + * An integer array representing the lengths of the sentences in the input text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + sentLen: number[]; +} +/** Dictionary Lookup Element */ +export interface DictionaryLookupItemOutput { + /** + * A string giving the normalized form of the source term. + * For example, if the request is "JOHN", the normalized form will be "john". + * The content of this field becomes the input to lookup examples. + */ + normalizedSource: string; + /** + * A string giving the source term in a form best suited for end-user display. + * For example, if the input is "JOHN", the display form will reflect the usual + * spelling of the name: "John". + */ + displaySource: string; + /** A list of translations for the source term. */ + translations: Array; +} +/** Translation source term. */ +export interface DictionaryTranslationOutput { + /** + * A string giving the normalized form of this term in the target language. + * This value should be used as input to lookup examples. + */ + normalizedTarget: string; + /** + * A string giving the term in the target language and in a form best suited + * for end-user display. Generally, this will only differ from the normalizedTarget + * in terms of capitalization. For example, a proper noun like "Juan" will have + * normalizedTarget = "juan" and displayTarget = "Juan". + */ + displayTarget: string; + /** A string associating this term with a part-of-speech tag. */ + posTag: string; + /** + * A value between 0.0 and 1.0 which represents the "confidence" + * (or perhaps more accurately, "probability in the training data") of that translation pair. + * The sum of confidence scores for one source word may or may not sum to 1.0. + */ + confidence: number; + /** + * A string giving the word to display as a prefix of the translation. Currently, + * this is the gendered determiner of nouns, in languages that have gendered determiners. + * For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. + * This is only dependent on the translation, and not on the source. + * If there is no prefix, it will be the empty string. + */ + prefixWord: string; + /** + * A list of "back translations" of the target. For example, source words that the target can translate to. + * The list is guaranteed to contain the source word that was requested (e.g., if the source word being + * looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). + * However, it is not guaranteed to be in the first position, and often will not be. + */ + backTranslations: Array; +} +/** Back Translation */ +export interface BackTranslationOutput { + /** + * A string giving the normalized form of the source term that is a back-translation of the target. + * This value should be used as input to lookup examples. + */ + normalizedText: string; + /** + * A string giving the source term that is a back-translation of the target in a form best + * suited for end-user display. + */ + displayText: string; + /** + * An integer representing the number of examples that are available for this translation pair. + * Actual examples must be retrieved with a separate call to lookup examples. The number is mostly + * intended to facilitate display in a UX. For example, a user interface may add a hyperlink + * to the back-translation if the number of examples is greater than zero and show the back-translation + * as plain text if there are no examples. Note that the actual number of examples returned + * by a call to lookup examples may be less than numExamples, because additional filtering may be + * applied on the fly to remove "bad" examples. + */ + numExamples: number; + /** + * An integer representing the frequency of this translation pair in the data. The main purpose of this + * field is to provide a user interface with a means to sort back-translations so the most frequent terms are first. + */ + frequencyCount: number; +} +/** Dictionary Example element */ +export interface DictionaryExampleItemOutput { + /** + * A string giving the normalized form of the source term. Generally, this should be identical + * to the value of the Text field at the matching list index in the body of the request. + */ + normalizedSource: string; + /** + * A string giving the normalized form of the target term. Generally, this should be identical + * to the value of the Translation field at the matching list index in the body of the request. + */ + normalizedTarget: string; + /** A list of examples for the (source term, target term) pair. */ + examples: Array; +} +/** Dictionary Example */ +export interface DictionaryExampleOutput { + /** + * The string to concatenate before the value of sourceTerm to form a complete example. + * Do not add a space character, since it is already there when it should be. + * This value may be an empty string. + */ + sourcePrefix: string; + /** + * A string equal to the actual term looked up. The string is added with sourcePrefix + * and sourceSuffix to form the complete example. Its value is separated so it can be + * marked in a user interface, e.g., by bolding it. + */ + sourceTerm: string; + /** + * The string to concatenate after the value of sourceTerm to form a complete example. + * Do not add a space character, since it is already there when it should be. + * This value may be an empty string. + */ + sourceSuffix: string; + /** A string similar to sourcePrefix but for the target. */ + targetPrefix: string; + /** A string similar to sourceTerm but for the target. */ + targetTerm: string; + /** A string similar to sourceSuffix but for the target. */ + targetSuffix: string; +} +//# sourceMappingURL=outputModels.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts.map new file mode 100644 index 00000000000..ce0bc472989 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":"AAGA,sCAAsC;AACtC,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACxD,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;IAChE,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC;CAC7D;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,mGAAmG;IACnG,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,OAAO,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC5C;AAED,yFAAyF;AACzF,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,oDAAoD;IACpD,SAAS,EAAE,KAAK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AA2B;IAC1C;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,gBAAgB,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CAChD;AAED,uBAAuB;AACvB,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;;OAQG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,iCAAiC;AACjC,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,QAAQ,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;CAC1C;AAED,yBAAyB;AACzB,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js new file mode 100644 index 00000000000..ff891030193 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=outputModels.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js.map new file mode 100644 index 00000000000..ca27ed678c2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js.map @@ -0,0 +1 @@ +{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.ts new file mode 100644 index 00000000000..66a1b2fd05e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.ts @@ -0,0 +1,320 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** Response for the languages API. */ +export interface GetLanguagesResultOutput { + /** Languages that support translate API. */ + translation?: Record; + /** Languages that support transliteration API. */ + transliteration?: Record; + /** Languages that support dictionary API. */ + dictionary?: Record; +} + +/** + * The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. + * A key identifies a language for which text can be translated to or translated from. + */ +export interface TranslationLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; +} + +/** + * The value of the transliteration property is a dictionary of (key, value) pairs. + * Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script + * to another script. + */ +export interface TransliterationLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** List of scripts to convert from. */ + scripts: Array; +} + +/** Script definition with list of script into which given script can be translitered. */ +export interface TransliterableScriptOutput extends CommonScriptModelOutput { + /** List of scripts available to convert text to. */ + toScripts: Array; +} + +/** Common properties of language script */ +export interface CommonScriptModelOutput { + /** Code identifying the script. */ + code: string; + /** Display name of the script in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for the language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; +} + +/** Properties ot the source dictionary language */ +export interface SourceDictionaryLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; + /** List of languages with alterative translations and examples for the query expressed in the source language. */ + translations: Array; +} + +/** Properties of the target dictionary language */ +export interface TargetDictionaryLanguageOutput { + /** Display name of the language in the locale requested via Accept-Language header. */ + name: string; + /** Display name of the language in the locale native for this language. */ + nativeName: string; + /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ + dir: string; + /** Language code identifying the target language. */ + code: string; +} + +/** Representation of the Error Response from Translator Service. */ +export interface ErrorResponseOutput { + /** Error details. */ + error: ErrorDetailsOutput; +} + +/** Error details as returned by Translator Service. */ +export interface ErrorDetailsOutput { + /** Number identifier of the error. */ + code: number; + /** Human readable error description. */ + message: string; +} + +/** Element containing the translated text */ +export interface TranslatedTextItemOutput { + /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ + detectedLanguage?: DetectedLanguageOutput; + /** + * An array of translation results. The size of the array matches the number of target + * languages specified through the to query parameter. + */ + translations: Array; + /** + * Input text in the default script of the source language. sourceText property is present only when + * the input is expressed in a script that's not the usual script for the language. For example, + * if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text + * converted into Arab script. + */ + sourceText?: SourceTextOutput; +} + +/** An object describing the detected language. */ +export interface DetectedLanguageOutput { + /** A string representing the code of the detected language. */ + language: string; + /** + * A float value indicating the confidence in the result. + * The score is between zero and one and a low score indicates a low confidence. + */ + score: number; +} + +/** Translation result */ +export interface TranslationOutput { + /** A string representing the language code of the target language. */ + to: string; + /** A string giving the translated text. */ + text: string; + /** An object giving the translated text in the script specified by the toScript parameter. */ + transliteration?: TransliteratedTextOutput; + /** Alignment information. */ + alignment?: TranslatedTextAlignmentOutput; + /** Sentence boundaries in the input and output texts. */ + sentLen?: SentenceLengthOutput; +} + +/** Transliterated text element. */ +export interface TransliteratedTextOutput { + /** A string which is the result of converting the input string to the output script. */ + text: string; + /** A string specifying the script used in the output. */ + script: string; +} + +/** Alignment information object. */ +export interface TranslatedTextAlignmentOutput { + /** + * Maps input text to translated text. The alignment information is only provided when the request + * parameter includeAlignment is true. Alignment is returned as a string value of the following + * format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. + * The colon separates start and end index, the dash separates the languages, and space separates the words. + * One word may align with zero, one, or multiple words in the other language, and the aligned words may + * be non-contiguous. When no alignment information is available, the alignment element will be empty. + */ + proj: string; +} + +/** An object returning sentence boundaries in the input and output texts. */ +export interface SentenceLengthOutput { + /** + * An integer array representing the lengths of the sentences in the input text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + srcSentLen: number[]; + /** + * An integer array representing the lengths of the sentences in the translated text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + transSentLen: number[]; +} + +/** Input text in the default script of the source language. */ +export interface SourceTextOutput { + /** Input text in the default script of the source language. */ + text: string; +} + +/** Item containing break sentence result. */ +export interface BreakSentenceItemOutput { + /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ + detectedLanguage?: DetectedLanguageOutput; + /** + * An integer array representing the lengths of the sentences in the input text. + * The length of the array is the number of sentences, and the values are the length of each sentence. + */ + sentLen: number[]; +} + +/** Dictionary Lookup Element */ +export interface DictionaryLookupItemOutput { + /** + * A string giving the normalized form of the source term. + * For example, if the request is "JOHN", the normalized form will be "john". + * The content of this field becomes the input to lookup examples. + */ + normalizedSource: string; + /** + * A string giving the source term in a form best suited for end-user display. + * For example, if the input is "JOHN", the display form will reflect the usual + * spelling of the name: "John". + */ + displaySource: string; + /** A list of translations for the source term. */ + translations: Array; +} + +/** Translation source term. */ +export interface DictionaryTranslationOutput { + /** + * A string giving the normalized form of this term in the target language. + * This value should be used as input to lookup examples. + */ + normalizedTarget: string; + /** + * A string giving the term in the target language and in a form best suited + * for end-user display. Generally, this will only differ from the normalizedTarget + * in terms of capitalization. For example, a proper noun like "Juan" will have + * normalizedTarget = "juan" and displayTarget = "Juan". + */ + displayTarget: string; + /** A string associating this term with a part-of-speech tag. */ + posTag: string; + /** + * A value between 0.0 and 1.0 which represents the "confidence" + * (or perhaps more accurately, "probability in the training data") of that translation pair. + * The sum of confidence scores for one source word may or may not sum to 1.0. + */ + confidence: number; + /** + * A string giving the word to display as a prefix of the translation. Currently, + * this is the gendered determiner of nouns, in languages that have gendered determiners. + * For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. + * This is only dependent on the translation, and not on the source. + * If there is no prefix, it will be the empty string. + */ + prefixWord: string; + /** + * A list of "back translations" of the target. For example, source words that the target can translate to. + * The list is guaranteed to contain the source word that was requested (e.g., if the source word being + * looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). + * However, it is not guaranteed to be in the first position, and often will not be. + */ + backTranslations: Array; +} + +/** Back Translation */ +export interface BackTranslationOutput { + /** + * A string giving the normalized form of the source term that is a back-translation of the target. + * This value should be used as input to lookup examples. + */ + normalizedText: string; + /** + * A string giving the source term that is a back-translation of the target in a form best + * suited for end-user display. + */ + displayText: string; + /** + * An integer representing the number of examples that are available for this translation pair. + * Actual examples must be retrieved with a separate call to lookup examples. The number is mostly + * intended to facilitate display in a UX. For example, a user interface may add a hyperlink + * to the back-translation if the number of examples is greater than zero and show the back-translation + * as plain text if there are no examples. Note that the actual number of examples returned + * by a call to lookup examples may be less than numExamples, because additional filtering may be + * applied on the fly to remove "bad" examples. + */ + numExamples: number; + /** + * An integer representing the frequency of this translation pair in the data. The main purpose of this + * field is to provide a user interface with a means to sort back-translations so the most frequent terms are first. + */ + frequencyCount: number; +} + +/** Dictionary Example element */ +export interface DictionaryExampleItemOutput { + /** + * A string giving the normalized form of the source term. Generally, this should be identical + * to the value of the Text field at the matching list index in the body of the request. + */ + normalizedSource: string; + /** + * A string giving the normalized form of the target term. Generally, this should be identical + * to the value of the Translation field at the matching list index in the body of the request. + */ + normalizedTarget: string; + /** A list of examples for the (source term, target term) pair. */ + examples: Array; +} + +/** Dictionary Example */ +export interface DictionaryExampleOutput { + /** + * The string to concatenate before the value of sourceTerm to form a complete example. + * Do not add a space character, since it is already there when it should be. + * This value may be an empty string. + */ + sourcePrefix: string; + /** + * A string equal to the actual term looked up. The string is added with sourcePrefix + * and sourceSuffix to form the complete example. Its value is separated so it can be + * marked in a user interface, e.g., by bolding it. + */ + sourceTerm: string; + /** + * The string to concatenate after the value of sourceTerm to form a complete example. + * Do not add a space character, since it is already there when it should be. + * This value may be an empty string. + */ + sourceSuffix: string; + /** A string similar to sourcePrefix but for the target. */ + targetPrefix: string; + /** A string similar to sourceTerm but for the target. */ + targetTerm: string; + /** A string similar to sourceSuffix but for the target. */ + targetSuffix: string; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts new file mode 100644 index 00000000000..ed444dacea2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts @@ -0,0 +1,238 @@ +import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; +import { RequestParameters } from "@azure-rest/core-client"; +import { InputTextItem, DictionaryExampleTextItem } from "./models"; +export interface GetLanguagesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; + /** + * The language to use for user interface strings. Some of the fields in the response are names of languages or + * names of regions. Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` + * to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. + * Names are provided in the English language when a target language is not specified or when localization + * is not available. + */ + "Accept-Language"?: string; + /** + * Passing the value of the ETag response header in an If-None-Match field will allow the service to optimize the response. + * If the resource has not been modified, the service will return status code 304 and an empty response body. + */ + "If-None-Match"?: string; +} +export interface GetLanguagesQueryParamProperties { + /** + * A comma-separated list of names defining the group of languages to return. + * Allowed group names are: `translation`, `transliteration` and `dictionary`. + * If no scope is given, then all groups are returned, which is equivalent to passing + * `scope=translation,transliteration,dictionary`. To decide which set of supported languages + * is appropriate for your scenario, see the description of the [response object](#response-body). + */ + scope?: string; +} +export interface GetLanguagesQueryParam { + queryParameters?: GetLanguagesQueryParamProperties; +} +export interface GetLanguagesHeaderParam { + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} +export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; +export interface TranslateHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface TranslateBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface TranslateQueryParamProperties { + /** + * Specifies the language of the output text. The target language must be one of the supported languages included + * in the translation scope. For example, use to=de to translate to German. + * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. + * For example, use to=de&to=it to translate to German and Italian. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request + */ + to: string; + /** + * Specifies the language of the input text. Find which languages are available to translate from by + * looking up supported languages using the translation scope. If the from parameter isn't specified, + * automatic language detection is applied to determine the source language. + * + * You must use the from parameter rather than autodetection when using the dynamic dictionary feature. + * Note: the dynamic dictionary feature is case-sensitive. + */ + from?: string; + /** + * Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, + * complete element. Possible values are: plain (default) or html. + */ + textType?: string; + /** + * A string specifying the category (domain) of the translation. This parameter is used to get translations + * from a customized system built with Custom Translator. Add the Category ID from your Custom Translator + * project details to this parameter to use your deployed customized system. Default value is: general. + */ + category?: string; + /** + * Specifies how profanities should be treated in translations. + * Possible values are: NoAction (default), Marked or Deleted. + */ + profanityAction?: string; + /** + * Specifies how profanities should be marked in translations. + * Possible values are: Asterisk (default) or Tag. + */ + profanityMarker?: string; + /** + * Specifies whether to include alignment projection from source text to translated text. + * Possible values are: true or false (default). + */ + includeAlignment?: boolean; + /** + * Specifies whether to include sentence boundaries for the input text and the translated text. + * Possible values are: true or false (default). + */ + includeSentenceLength?: boolean; + /** + * Specifies a fallback language if the language of the input text can't be identified. + * Language autodetection is applied when the from parameter is omitted. If detection fails, + * the suggestedFrom language will be assumed. + */ + suggestedFrom?: string; + /** Specifies the script of the input text. */ + fromScript?: string; + /** Specifies the script of the translated text. */ + toScript?: string; + /** + * Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. + * Possible values are: true (default) or false. + * + * allowFallback=false specifies that the translation should only use systems trained for the category specified + * by the request. If a translation for language X to language Y requires chaining through a pivot language E, + * then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. + * If no system is found with the specific category, the request will return a 400 status code. allowFallback=true + * specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. + */ + allowFallback?: boolean; +} +export interface TranslateQueryParam { + queryParameters: TranslateQueryParamProperties; +} +export interface TranslateHeaderParam { + headers?: RawHttpHeadersInput & TranslateHeaders; +} +export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; +export interface TransliterateHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface TransliterateBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface TransliterateQueryParamProperties { + /** + * Specifies the language of the text to convert from one script to another. + * Possible languages are listed in the transliteration scope obtained by querying the service + * for its supported languages. + */ + language: string; + /** + * Specifies the script used by the input text. Look up supported languages using the transliteration scope, + * to find input scripts available for the selected language. + */ + fromScript: string; + /** + * Specifies the output script. Look up supported languages using the transliteration scope, to find output + * scripts available for the selected combination of input language and input script. + */ + toScript: string; +} +export interface TransliterateQueryParam { + queryParameters: TransliterateQueryParamProperties; +} +export interface TransliterateHeaderParam { + headers?: RawHttpHeadersInput & TransliterateHeaders; +} +export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; +export interface FindSentenceBoundariesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface FindSentenceBoundariesBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface FindSentenceBoundariesQueryParamProperties { + /** + * Language tag identifying the language of the input text. + * If a code isn't specified, automatic language detection will be applied. + */ + language?: string; + /** + * Script tag identifying the script used by the input text. + * If a script isn't specified, the default script of the language will be assumed. + */ + script?: string; +} +export interface FindSentenceBoundariesQueryParam { + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} +export interface FindSentenceBoundariesHeaderParam { + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; +export interface LookupDictionaryEntriesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface LookupDictionaryEntriesBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface LookupDictionaryEntriesQueryParamProperties { + /** + * Specifies the language of the input text. + * The source language must be one of the supported languages included in the dictionary scope. + */ + from: string; + /** + * Specifies the language of the output text. + * The target language must be one of the supported languages included in the dictionary scope. + */ + to: string; +} +export interface LookupDictionaryEntriesQueryParam { + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} +export interface LookupDictionaryEntriesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; +export interface LookupDictionaryExamplesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} +export interface LookupDictionaryExamplesBodyParam { + /** Defines the content of the request */ + body: Array; +} +export interface LookupDictionaryExamplesQueryParamProperties { + /** + * Specifies the language of the input text. + * The source language must be one of the supported languages included in the dictionary scope. + */ + from: string; + /** + * Specifies the language of the output text. + * The target language must be one of the supported languages included in the dictionary scope. + */ + to: string; +} +export interface LookupDictionaryExamplesQueryParam { + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} +export interface LookupDictionaryExamplesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; +//# sourceMappingURL=parameters.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts.map new file mode 100644 index 00000000000..6e5d5579cfb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,CAAC,EAAE,gCAAgC,CAAC;CACpD;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;CACrD;AAED,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GACzD,uBAAuB,GACvB,iBAAiB,CAAC;AAEpB,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;;;;OAOG;IACH,IAAI,C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iB,CAAC;AAEpB,MAAM,WAAW,+BAA+B;IAC9C,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,4CAA4C;IAC3D;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kCAAkC;IACjD,eAAe,EAAE,4CAA4C,CAAC;CAC/D;AAED,MAAM,WAAW,mCAAmC;IAClD,OAAO,CAAC,EAAE,mBAAmB,GAAG,+BAA+B,CAAC;CACjE;AAED,MAAM,MAAM,kCAAkC,GAAG,kCAAkC,GACjF,mCAAmC,GACnC,iCAAiC,GACjC,iBAAiB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js new file mode 100644 index 00000000000..5f2ab1f652e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=parameters.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js.map new file mode 100644 index 00000000000..30d9e4dbe93 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parameters.js","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts new file mode 100644 index 00000000000..b5de51d4d11 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts @@ -0,0 +1,292 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; +import { RequestParameters } from "@azure-rest/core-client"; +import { InputTextItem, DictionaryExampleTextItem } from "./models"; + +export interface GetLanguagesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; + /** + * The language to use for user interface strings. Some of the fields in the response are names of languages or + * names of regions. Use this parameter to define the language in which these names are returned. + * The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` + * to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. + * Names are provided in the English language when a target language is not specified or when localization + * is not available. + */ + "Accept-Language"?: string; + /** + * Passing the value of the ETag response header in an If-None-Match field will allow the service to optimize the response. + * If the resource has not been modified, the service will return status code 304 and an empty response body. + */ + "If-None-Match"?: string; +} + +export interface GetLanguagesQueryParamProperties { + /** + * A comma-separated list of names defining the group of languages to return. + * Allowed group names are: `translation`, `transliteration` and `dictionary`. + * If no scope is given, then all groups are returned, which is equivalent to passing + * `scope=translation,transliteration,dictionary`. To decide which set of supported languages + * is appropriate for your scenario, see the description of the [response object](#response-body). + */ + scope?: string; +} + +export interface GetLanguagesQueryParam { + queryParameters?: GetLanguagesQueryParamProperties; +} + +export interface GetLanguagesHeaderParam { + headers?: RawHttpHeadersInput & GetLanguagesHeaders; +} + +export type GetLanguagesParameters = GetLanguagesQueryParam & + GetLanguagesHeaderParam & + RequestParameters; + +export interface TranslateHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface TranslateBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface TranslateQueryParamProperties { + /** + * Specifies the language of the output text. The target language must be one of the supported languages included + * in the translation scope. For example, use to=de to translate to German. + * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. + * For example, use to=de&to=it to translate to German and Italian. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request + */ + to: string; + /** + * Specifies the language of the input text. Find which languages are available to translate from by + * looking up supported languages using the translation scope. If the from parameter isn't specified, + * automatic language detection is applied to determine the source language. + * + * You must use the from parameter rather than autodetection when using the dynamic dictionary feature. + * Note: the dynamic dictionary feature is case-sensitive. + */ + from?: string; + /** + * Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, + * complete element. Possible values are: plain (default) or html. + */ + textType?: string; + /** + * A string specifying the category (domain) of the translation. This parameter is used to get translations + * from a customized system built with Custom Translator. Add the Category ID from your Custom Translator + * project details to this parameter to use your deployed customized system. Default value is: general. + */ + category?: string; + /** + * Specifies how profanities should be treated in translations. + * Possible values are: NoAction (default), Marked or Deleted. + */ + profanityAction?: string; + /** + * Specifies how profanities should be marked in translations. + * Possible values are: Asterisk (default) or Tag. + */ + profanityMarker?: string; + /** + * Specifies whether to include alignment projection from source text to translated text. + * Possible values are: true or false (default). + */ + includeAlignment?: boolean; + /** + * Specifies whether to include sentence boundaries for the input text and the translated text. + * Possible values are: true or false (default). + */ + includeSentenceLength?: boolean; + /** + * Specifies a fallback language if the language of the input text can't be identified. + * Language autodetection is applied when the from parameter is omitted. If detection fails, + * the suggestedFrom language will be assumed. + */ + suggestedFrom?: string; + /** Specifies the script of the input text. */ + fromScript?: string; + /** Specifies the script of the translated text. */ + toScript?: string; + /** + * Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. + * Possible values are: true (default) or false. + * + * allowFallback=false specifies that the translation should only use systems trained for the category specified + * by the request. If a translation for language X to language Y requires chaining through a pivot language E, + * then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. + * If no system is found with the specific category, the request will return a 400 status code. allowFallback=true + * specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. + */ + allowFallback?: boolean; +} + +export interface TranslateQueryParam { + queryParameters: TranslateQueryParamProperties; +} + +export interface TranslateHeaderParam { + headers?: RawHttpHeadersInput & TranslateHeaders; +} + +export type TranslateParameters = TranslateQueryParam & + TranslateHeaderParam & + TranslateBodyParam & + RequestParameters; + +export interface TransliterateHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface TransliterateBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface TransliterateQueryParamProperties { + /** + * Specifies the language of the text to convert from one script to another. + * Possible languages are listed in the transliteration scope obtained by querying the service + * for its supported languages. + */ + language: string; + /** + * Specifies the script used by the input text. Look up supported languages using the transliteration scope, + * to find input scripts available for the selected language. + */ + fromScript: string; + /** + * Specifies the output script. Look up supported languages using the transliteration scope, to find output + * scripts available for the selected combination of input language and input script. + */ + toScript: string; +} + +export interface TransliterateQueryParam { + queryParameters: TransliterateQueryParamProperties; +} + +export interface TransliterateHeaderParam { + headers?: RawHttpHeadersInput & TransliterateHeaders; +} + +export type TransliterateParameters = TransliterateQueryParam & + TransliterateHeaderParam & + TransliterateBodyParam & + RequestParameters; + +export interface FindSentenceBoundariesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface FindSentenceBoundariesBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface FindSentenceBoundariesQueryParamProperties { + /** + * Language tag identifying the language of the input text. + * If a code isn't specified, automatic language detection will be applied. + */ + language?: string; + /** + * Script tag identifying the script used by the input text. + * If a script isn't specified, the default script of the language will be assumed. + */ + script?: string; +} + +export interface FindSentenceBoundariesQueryParam { + queryParameters?: FindSentenceBoundariesQueryParamProperties; +} + +export interface FindSentenceBoundariesHeaderParam { + headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; +} + +export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & + FindSentenceBoundariesHeaderParam & + FindSentenceBoundariesBodyParam & + RequestParameters; + +export interface LookupDictionaryEntriesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface LookupDictionaryEntriesBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface LookupDictionaryEntriesQueryParamProperties { + /** + * Specifies the language of the input text. + * The source language must be one of the supported languages included in the dictionary scope. + */ + from: string; + /** + * Specifies the language of the output text. + * The target language must be one of the supported languages included in the dictionary scope. + */ + to: string; +} + +export interface LookupDictionaryEntriesQueryParam { + queryParameters: LookupDictionaryEntriesQueryParamProperties; +} + +export interface LookupDictionaryEntriesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; +} + +export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & + LookupDictionaryEntriesHeaderParam & + LookupDictionaryEntriesBodyParam & + RequestParameters; + +export interface LookupDictionaryExamplesHeaders { + /** A client-generated GUID to uniquely identify the request. */ + "X-ClientTraceId"?: string; +} + +export interface LookupDictionaryExamplesBodyParam { + /** Defines the content of the request */ + body: Array; +} + +export interface LookupDictionaryExamplesQueryParamProperties { + /** + * Specifies the language of the input text. + * The source language must be one of the supported languages included in the dictionary scope. + */ + from: string; + /** + * Specifies the language of the output text. + * The target language must be one of the supported languages included in the dictionary scope. + */ + to: string; +} + +export interface LookupDictionaryExamplesQueryParam { + queryParameters: LookupDictionaryExamplesQueryParamProperties; +} + +export interface LookupDictionaryExamplesHeaderParam { + headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; +} + +export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & + LookupDictionaryExamplesHeaderParam & + LookupDictionaryExamplesBodyParam & + RequestParameters; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts new file mode 100644 index 00000000000..7f9908d2f42 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts @@ -0,0 +1,138 @@ +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import { HttpResponse } from "@azure-rest/core-client"; +import { GetLanguagesResultOutput, ErrorResponseOutput, TranslatedTextItemOutput, TransliteratedTextOutput, BreakSentenceItemOutput, DictionaryLookupItemOutput, DictionaryExampleItemOutput } from "./outputModels"; +export interface GetLanguages200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; + /** + * Current value of the entity tag for the requested groups of supported languages. + * To make subsequent requests more efficient, the client may send the `ETag` value in an + * `If-None-Match` header field. + */ + etag: string; +} +/** The request has succeeded. */ +export interface GetLanguages200Response extends HttpResponse { + status: "200"; + body: GetLanguagesResultOutput; + headers: RawHttpHeaders & GetLanguages200Headers; +} +export interface GetLanguagesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface GetLanguagesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; +} +export interface Translate200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; + /** + * Specifies the system type that was used for translation for each 'to' language requested for translation. + * The value is a comma-separated list of strings. Each string indicates a type: + * + * * Custom - Request includes a custom system and at least one custom system was used during translation. + * * Team - All other requests + */ + "x-mt-system": string; + /** + * Specifies consumption (the number of characters for which the user will be charged) for the translation + * job request. For example, if the word "Hello" is translated from English (en) to French (fr), + * this field will return the value '5'. + */ + "x-metered-usage": number; +} +/** Response for the translation API. */ +export interface Translate200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & Translate200Headers; +} +export interface TranslateDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface TranslateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & TranslateDefaultHeaders; +} +export interface Transliterate200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +/** Response for the transliteration API. */ +export interface Transliterate200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & Transliterate200Headers; +} +export interface TransliterateDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface TransliterateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & TransliterateDefaultHeaders; +} +export interface FindSentenceBoundaries200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +/** Response for the Break SEntence API. */ +export interface FindSentenceBoundaries200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; +} +export interface FindSentenceBoundariesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; +} +export interface LookupDictionaryEntries200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +/** Response for the dictionary lookup API. */ +export interface LookupDictionaryEntries200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; +} +export interface LookupDictionaryEntriesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; +} +export interface LookupDictionaryExamples200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +/** Response for the dictionary examples API. */ +export interface LookupDictionaryExamples200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; +} +export interface LookupDictionaryExamplesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; +} +//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts.map new file mode 100644 index 00000000000..1b10601df71 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,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D,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,cAAc,GAAG,qCAAqC,CAAC;CACjE;AAED,MAAM,WAAW,kCAAkC;IACjD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,gDAAgD;AAChD,MAAM,WAAW,mCAAoC,SAAQ,YAAY;IACvE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACzC,OAAO,EAAE,cAAc,GAAG,kCAAkC,CAAC;CAC9D;AAED,MAAM,WAAW,sCAAsC;IACrD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uCAAwC,SAAQ,YAAY;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,cAAc,GAAG,sCAAsC,CAAC;CAClE"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js new file mode 100644 index 00000000000..c1f0652be92 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js @@ -0,0 +1,5 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js.map new file mode 100644 index 00000000000..985ea679d9d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.js","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.ts new file mode 100644 index 00000000000..709d234da6a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.ts @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import { HttpResponse } from "@azure-rest/core-client"; +import { + GetLanguagesResultOutput, + ErrorResponseOutput, + TranslatedTextItemOutput, + TransliteratedTextOutput, + BreakSentenceItemOutput, + DictionaryLookupItemOutput, + DictionaryExampleItemOutput, +} from "./outputModels"; + +export interface GetLanguages200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; + /** + * Current value of the entity tag for the requested groups of supported languages. + * To make subsequent requests more efficient, the client may send the `ETag` value in an + * `If-None-Match` header field. + */ + etag: string; +} + +/** The request has succeeded. */ +export interface GetLanguages200Response extends HttpResponse { + status: "200"; + body: GetLanguagesResultOutput; + headers: RawHttpHeaders & GetLanguages200Headers; +} + +export interface GetLanguagesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface GetLanguagesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & GetLanguagesDefaultHeaders; +} + +export interface Translate200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; + /** + * Specifies the system type that was used for translation for each 'to' language requested for translation. + * The value is a comma-separated list of strings. Each string indicates a type: + * + * * Custom - Request includes a custom system and at least one custom system was used during translation. + * * Team - All other requests + */ + "x-mt-system": string; + /** + * Specifies consumption (the number of characters for which the user will be charged) for the translation + * job request. For example, if the word "Hello" is translated from English (en) to French (fr), + * this field will return the value '5'. + */ + "x-metered-usage": number; +} + +/** Response for the translation API. */ +export interface Translate200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & Translate200Headers; +} + +export interface TranslateDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface TranslateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & TranslateDefaultHeaders; +} + +export interface Transliterate200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +/** Response for the transliteration API. */ +export interface Transliterate200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & Transliterate200Headers; +} + +export interface TransliterateDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface TransliterateDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & TransliterateDefaultHeaders; +} + +export interface FindSentenceBoundaries200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +/** Response for the Break SEntence API. */ +export interface FindSentenceBoundaries200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & FindSentenceBoundaries200Headers; +} + +export interface FindSentenceBoundariesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; +} + +export interface LookupDictionaryEntries200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +/** Response for the dictionary lookup API. */ +export interface LookupDictionaryEntries200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & LookupDictionaryEntries200Headers; +} + +export interface LookupDictionaryEntriesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; +} + +export interface LookupDictionaryExamples200Headers { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +/** Response for the dictionary examples API. */ +export interface LookupDictionaryExamples200Response extends HttpResponse { + status: "200"; + body: Array; + headers: RawHttpHeaders & LookupDictionaryExamples200Headers; +} + +export interface LookupDictionaryExamplesDefaultHeaders { + /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ + "x-requestid": string; +} + +export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; + headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts new file mode 100644 index 00000000000..322bc07c3d1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts @@ -0,0 +1,2 @@ +export declare function buildMultiCollection(items: string[], parameterName: string): string; +//# sourceMappingURL=serializeHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts.map new file mode 100644 index 00000000000..12a8c4395a2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"serializeHelper.d.ts","sourceRoot":"","sources":["serializeHelper.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CASnF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js new file mode 100644 index 00000000000..7cbc1277126 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js @@ -0,0 +1,16 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.buildMultiCollection = buildMultiCollection; +function buildMultiCollection(items, parameterName) { + return items + .map((item, index) => { + if (index === 0) { + return item; + } + return `${parameterName}=${item}`; + }) + .join("&"); +} +//# sourceMappingURL=serializeHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js.map new file mode 100644 index 00000000000..3770ca91fa6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"serializeHelper.js","sourceRoot":"","sources":["serializeHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,oDASC;AATD,SAAgB,oBAAoB,CAAC,KAAe,EAAE,aAAqB;IACzE,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACnB,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,GAAG,aAAa,IAAI,IAAI,EAAE,CAAC;IACpC,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.ts new file mode 100644 index 00000000000..4a0a83f7ce0 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.ts @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export function buildMultiCollection(items: string[], parameterName: string): string { + return items + .map((item, index) => { + if (index === 0) { + return item; + } + return `${parameterName}=${item}`; + }) + .join("&"); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts new file mode 100644 index 00000000000..ee7d42963d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=breakSentenceTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts.map new file mode 100644 index 00000000000..5dc888b8a0a --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceTest.spec.d.ts","sourceRoot":"","sources":["breakSentenceTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js new file mode 100644 index 00000000000..377d75b498f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js @@ -0,0 +1,91 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("BreakSentence tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("auto detect", async () => { + const inputText = [{ text: "hello world" }]; + const response = await client.path("/breaksentence").post({ + body: inputText, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const breakSentences = response.body; + chai_1.assert.isTrue(breakSentences[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(breakSentences[0].detectedLanguage?.score === 0.98); + chai_1.assert.isTrue(breakSentences[0].sentLen[0] === 11); + }); + it("with language", async () => { + const inputText = [ + { + text: "รวบรวมแผ่นคำตอบ ระยะเวลาของโครงการ วิธีเลือกชายในฝัน หมายเลขซีเรียลของระเบียน วันที่สิ้นสุดของโครงการเมื่อเสร็จสมบูรณ์ ปีที่มีการรวบรวม ทุกคนมีวัฒนธรรมและวิธีคิดเหมือนกัน ได้รับโทษจำคุกตลอดชีวิตใน ฉันลดได้ถึง 55 ปอนด์ได้อย่างไร ฉันคิดว่าใครๆ ก็ต้องการกำหนดเมนูอาหารส่วนบุคคล", + }, + ]; + const parameters = { + language: "th", + }; + const response = await client.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const breakSentences = response.body; + const expectedLengths = [78, 41, 110, 46]; + for (let i = 0; i < expectedLengths.length; i++) { + chai_1.assert.equal(expectedLengths[i], breakSentences[0].sentLen[i]); + } + }); + it("with language and script", async () => { + const inputText = [{ text: "zhè shì gè cè shì。" }]; + const parameters = { + language: "zh-Hans", + script: "Latn", + }; + const response = await client.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const breakSentences = response.body; + chai_1.assert.equal(breakSentences[0].sentLen[0], 18); + }); + it("with multiple languages", async () => { + const inputText = [ + { text: "hello world" }, + { text: "العالم هو مكان مثير جدا للاهتمام" }, + ]; + const response = await client.path("/breaksentence").post({ + body: inputText, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const breakSentences = response.body; + chai_1.assert.equal(breakSentences[0].detectedLanguage?.language, "en"); + chai_1.assert.equal(breakSentences[1].detectedLanguage?.language, "ar"); + chai_1.assert.equal(breakSentences[0].sentLen[0], 11); + chai_1.assert.equal(breakSentences[1].sentLen[0], 32); + }); +}); +//# sourceMappingURL=breakSentenceTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js.map new file mode 100644 index 00000000000..77cd02603f2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"breakSentenceTest.spec.js","sourceRoot":"","sources":["breakSentenceTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EA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ools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.ts new file mode 100644 index 00000000000..636deab8e38 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.ts @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + BreakSentenceItemOutput, + FindSentenceBoundariesQueryParamProperties, + InputTextItem, + TextTranslationClient, + isUnexpected, +} from "../../src"; +import { createTranslationClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("BreakSentence tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("auto detect", async () => { + const inputText: InputTextItem[] = [{ text: "hello world" }]; + const response = await client.path("/breaksentence").post({ + body: inputText, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const breakSentences = response.body as BreakSentenceItemOutput[]; + assert.isTrue(breakSentences[0].detectedLanguage?.language === "en"); + assert.isTrue(breakSentences[0].detectedLanguage?.score === 0.98); + assert.isTrue(breakSentences[0].sentLen[0] === 11); + }); + + it("with language", async () => { + const inputText: InputTextItem[] = [ + { + text: "รวบรวมแผ่นคำตอบ ระยะเวลาของโครงการ วิธีเลือกชายในฝัน หมายเลขซีเรียลของระเบียน วันที่สิ้นสุดของโครงการเมื่อเสร็จสมบูรณ์ ปีที่มีการรวบรวม ทุกคนมีวัฒนธรรมและวิธีคิดเหมือนกัน ได้รับโทษจำคุกตลอดชีวิตใน ฉันลดได้ถึง 55 ปอนด์ได้อย่างไร ฉันคิดว่าใครๆ ก็ต้องการกำหนดเมนูอาหารส่วนบุคคล", + }, + ]; + const parameters: FindSentenceBoundariesQueryParamProperties & Record = { + language: "th", + }; + const response = await client.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const breakSentences = response.body as BreakSentenceItemOutput[]; + + const expectedLengths = [78, 41, 110, 46]; + for (let i = 0; i < expectedLengths.length; i++) { + assert.equal(expectedLengths[i], breakSentences[0].sentLen[i]); + } + }); + + it("with language and script", async () => { + const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; + const parameters: FindSentenceBoundariesQueryParamProperties & Record = { + language: "zh-Hans", + script: "Latn", + }; + const response = await client.path("/breaksentence").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const breakSentences = response.body as BreakSentenceItemOutput[]; + assert.equal(breakSentences[0].sentLen[0], 18); + }); + + it("with multiple languages", async () => { + const inputText: InputTextItem[] = [ + { text: "hello world" }, + { text: "العالم هو مكان مثير جدا للاهتمام" }, + ]; + const response = await client.path("/breaksentence").post({ + body: inputText, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const breakSentences = response.body as BreakSentenceItemOutput[]; + assert.equal(breakSentences[0].detectedLanguage?.language, "en"); + assert.equal(breakSentences[1].detectedLanguage?.language, "ar"); + assert.equal(breakSentences[0].sentLen[0], 11); + assert.equal(breakSentences[1].sentLen[0], 32); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts new file mode 100644 index 00000000000..1f952832ab8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dictionaryExamplesTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts.map new file mode 100644 index 00000000000..b0915adff38 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamplesTest.spec.d.ts","sourceRoot":"","sources":["dictionaryExamplesTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js new file mode 100644 index 00000000000..6f208052af2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js @@ -0,0 +1,57 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("DictionaryExamples tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("single input element", async () => { + const inputText = [{ text: "fly", translation: "volar" }]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const dictionaryExamples = response.body; + chai_1.assert.equal(dictionaryExamples[0].normalizedSource, "fly"); + chai_1.assert.isTrue(dictionaryExamples[0].normalizedTarget === "volar"); + }); + it("multiple input elements", async () => { + const inputText = [ + { text: "fly", translation: "volar" }, + { text: "beef", translation: "came" }, + ]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const dictionaryExamples = response.body; + chai_1.assert.isTrue(dictionaryExamples.length === 2); + }); +}); +//# sourceMappingURL=dictionaryExamplesTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js.map new file mode 100644 index 00000000000..354d385c812 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryExamplesTest.spec.js","sourceRoot":"","sources":["dictionaryExamplesTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;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AAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,SAAS,GAAgC;YAC7C,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE;YACrC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;SACtC,CAAC;QACF,MAAM,UAAU,GAA2E;YACzF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;YAC9D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAqC,CAAC;QAC1E,aAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.ts new file mode 100644 index 00000000000..d73c711478c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.ts @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + DictionaryExampleItemOutput, + DictionaryExampleTextItem, + LookupDictionaryExamplesQueryParamProperties, + TextTranslationClient, + isUnexpected, +} from "../../src"; +import { createTranslationClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("DictionaryExamples tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("single input element", async () => { + const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; + const parameters: LookupDictionaryExamplesQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const dictionaryExamples = response.body as DictionaryExampleItemOutput[]; + assert.equal(dictionaryExamples[0].normalizedSource, "fly"); + assert.isTrue(dictionaryExamples[0].normalizedTarget === "volar"); + }); + + it("multiple input elements", async () => { + const inputText: DictionaryExampleTextItem[] = [ + { text: "fly", translation: "volar" }, + { text: "beef", translation: "came" }, + ]; + const parameters: LookupDictionaryExamplesQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/examples").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const dictionaryExamples = response.body as DictionaryExampleItemOutput[]; + assert.isTrue(dictionaryExamples.length === 2); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts new file mode 100644 index 00000000000..62409c827b6 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=dictionaryLookupTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts.map new file mode 100644 index 00000000000..ddcbedcc6e7 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookupTest.spec.d.ts","sourceRoot":"","sources":["dictionaryLookupTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js new file mode 100644 index 00000000000..df90f77de21 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js @@ -0,0 +1,54 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("DictionaryLookup tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("single input element", async () => { + const inputText = [{ text: "fly" }]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const dictionaryEntries = response.body; + chai_1.assert.isTrue(dictionaryEntries[0].normalizedSource === "fly"); + chai_1.assert.isTrue(dictionaryEntries[0].displaySource === "fly"); + }); + it("multiple input elements", async () => { + const inputText = [{ text: "fly" }, { text: "fox" }]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const dictionaryEntries = response.body; + chai_1.assert.isTrue(dictionaryEntries.length === 2); + }); +}); +//# sourceMappingURL=dictionaryLookupTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js.map new file mode 100644 index 00000000000..14964fd87c1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dictionaryLookupTest.spec.js","sourceRoot":"","sources":["dictionaryLookupTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2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EAAE;QACvC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QACtE,MAAM,UAAU,GAA0E;YACxF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;YAC5D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QAEH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAoC,CAAC;QACxE,aAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.ts new file mode 100644 index 00000000000..9ed204ccce1 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.ts @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + InputTextItem, + TextTranslationClient, + LookupDictionaryEntriesQueryParamProperties, + DictionaryLookupItemOutput, + isUnexpected, +} from "../../src"; +import { createTranslationClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("DictionaryLookup tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("single input element", async () => { + const inputText: InputTextItem[] = [{ text: "fly" }]; + const parameters: LookupDictionaryEntriesQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, + }); + + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const dictionaryEntries = response.body as DictionaryLookupItemOutput[]; + assert.isTrue(dictionaryEntries[0].normalizedSource === "fly"); + assert.isTrue(dictionaryEntries[0].displaySource === "fly"); + }); + + it("multiple input elements", async () => { + const inputText: InputTextItem[] = [{ text: "fly" }, { text: "fox" }]; + const parameters: LookupDictionaryEntriesQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/dictionary/lookup").post({ + body: inputText, + queryParameters: parameters, + }); + + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const dictionaryEntries = response.body as DictionaryLookupItemOutput[]; + assert.isTrue(dictionaryEntries.length === 2); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts new file mode 100644 index 00000000000..bf328985c26 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=getLanguagesTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts.map new file mode 100644 index 00000000000..bee8f034354 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesTest.spec.d.ts","sourceRoot":"","sources":["getLanguagesTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js new file mode 100644 index 00000000000..7f59ec0d8c2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js @@ -0,0 +1,129 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("GetLanguages tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createLanguageClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("all scopes", async () => { + const response = await client.path("/languages").get(); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.translation !== null); + chai_1.assert.isTrue(languages.transliteration !== null); + chai_1.assert.isTrue(languages.dictionary !== null); + }); + it("translation scope", async () => { + const parameters = { + queryParameters: { + scope: "translation", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.translation !== null); + chai_1.assert.isTrue(languages?.translation?.["af"]?.dir !== null); + chai_1.assert.isTrue(languages?.translation?.["af"]?.name !== null); + chai_1.assert.isTrue(languages?.translation?.["af"]?.nativeName !== null); + }); + it("transliteration scope", async () => { + const parameters = { + queryParameters: { + scope: "transliteration", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.transliteration !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.name !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].code !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].dir !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].name !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].nativeName !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].code !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].dir !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].name !== null); + chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].nativeName !== null); + }); + it("transliteration scope multiple scripts", async () => { + const parameters = { + queryParameters: { + scope: "transliteration", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.transliteration !== null); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.name !== null); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts !== null); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts?.length === 2); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[0].toScripts.length === 2); + chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[1].toScripts.length === 2); + }); + it("dictionary scope", async () => { + const parameters = { + queryParameters: { + scope: "dictionary", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.dictionary !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.name !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].code !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].dir !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].name !== null); + chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].nativeName !== null); + }); + it("dictionary scope with multiple translations", async () => { + const parameters = { + queryParameters: { + scope: "dictionary", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.dictionary !== null); + chai_1.assert.isTrue(languages?.dictionary?.["en"]?.name !== null); + chai_1.assert.isTrue(languages?.dictionary?.["en"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.dictionary?.["en"]?.translations !== null); + chai_1.assert.isTrue(languages?.dictionary?.["en"]?.translations?.length !== 1); + }); + it("with culture", async () => { + const parameters = { + headers: { + "Accept-Language": "es", + }, + }; + const response = await client.path("/languages").get(parameters); + chai_1.assert.equal("200", response.status); + const languages = response.body; + chai_1.assert.isTrue(languages.translation !== null); + chai_1.assert.isTrue(languages.transliteration !== null); + chai_1.assert.isTrue(languages.dictionary !== null); + chai_1.assert.isTrue(languages?.translation?.["en"]?.name !== null); + chai_1.assert.isTrue(languages?.translation?.["en"]?.nativeName !== null); + chai_1.assert.isTrue(languages?.translation?.["en"]?.dir !== null); + }); +}); +//# sourceMappingURL=getLanguagesTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js.map new file mode 100644 index 00000000000..fc4a372a714 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getLanguagesTest.spec.js","sourceRoot":"","sources":["getLanguagesTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAE9B,2DAA6E;AAG7E,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,qCAAoB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;QAC1B,MAAM,QAAQ,GAAG,MAAM,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,KAAK,IAAI,CAAC,CAAC;QAE7C,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC;QAC7D,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC,CAAC;QACnE,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.ts new file mode 100644 index 00000000000..a3bba9c0a10 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.ts @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { GetLanguagesParameters, GetLanguagesResultOutput, TextTranslationClient } from "../../src"; +import { createLanguageClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("GetLanguages tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createLanguageClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("all scopes", async () => { + const response = await client.path("/languages").get(); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.translation !== null); + assert.isTrue(languages.transliteration !== null); + assert.isTrue(languages.dictionary !== null); + }); + + it("translation scope", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "translation", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.translation !== null); + assert.isTrue(languages?.translation?.["af"]?.dir !== null); + assert.isTrue(languages?.translation?.["af"]?.name !== null); + assert.isTrue(languages?.translation?.["af"]?.nativeName !== null); + }); + + it("transliteration scope", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "transliteration", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.transliteration !== null); + assert.isTrue(languages?.transliteration?.["be"]?.name !== null); + assert.isTrue(languages?.transliteration?.["be"]?.nativeName !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts !== null); + + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].code !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].dir !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].name !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].nativeName !== null); + + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].code !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].dir !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].name !== null); + assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].nativeName !== null); + }); + + it("transliteration scope multiple scripts", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "transliteration", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.transliteration !== null); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.name !== null); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.nativeName !== null); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts !== null); + + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts?.length === 2); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[0].toScripts.length === 2); + assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[1].toScripts.length === 2); + }); + + it("dictionary scope", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "dictionary", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.dictionary !== null); + assert.isTrue(languages?.dictionary?.["de"]?.name !== null); + assert.isTrue(languages?.dictionary?.["de"]?.nativeName !== null); + assert.isTrue(languages?.dictionary?.["de"]?.translations !== null); + + assert.isTrue(languages?.dictionary?.["de"]?.translations[0].code !== null); + assert.isTrue(languages?.dictionary?.["de"]?.translations[0].dir !== null); + assert.isTrue(languages?.dictionary?.["de"]?.translations[0].name !== null); + assert.isTrue(languages?.dictionary?.["de"]?.translations[0].nativeName !== null); + }); + + it("dictionary scope with multiple translations", async () => { + const parameters: GetLanguagesParameters = { + queryParameters: { + scope: "dictionary", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.dictionary !== null); + assert.isTrue(languages?.dictionary?.["en"]?.name !== null); + assert.isTrue(languages?.dictionary?.["en"]?.nativeName !== null); + assert.isTrue(languages?.dictionary?.["en"]?.translations !== null); + assert.isTrue(languages?.dictionary?.["en"]?.translations?.length !== 1); + }); + + it("with culture", async () => { + const parameters: GetLanguagesParameters = { + headers: { + "Accept-Language": "es", + }, + }; + const response = await client.path("/languages").get(parameters); + assert.equal("200", response.status); + const languages = response.body as GetLanguagesResultOutput; + assert.isTrue(languages.translation !== null); + assert.isTrue(languages.transliteration !== null); + assert.isTrue(languages.dictionary !== null); + + assert.isTrue(languages?.translation?.["en"]?.name !== null); + assert.isTrue(languages?.translation?.["en"]?.nativeName !== null); + assert.isTrue(languages?.translation?.["en"]?.dir !== null); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts new file mode 100644 index 00000000000..b3810ea968f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=translateTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts.map new file mode 100644 index 00000000000..c22217a3022 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translateTest.spec.d.ts","sourceRoot":"","sources":["translateTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js new file mode 100644 index 00000000000..9399ea63910 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js @@ -0,0 +1,330 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +describe("Translate tests", () => { + let recorder; + let client; + let customClient; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + customClient = await (0, recordedClient_1.createCustomTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("translate basic", async () => { + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + from: "en", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length > 0); + chai_1.assert.isTrue(translations[0].translations[0].to === "cs"); + chai_1.assert.isTrue(translations[0].translations[0].text !== null); + }); + it("with auto detect", async () => { + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length > 0); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].to === "cs"); + chai_1.assert.isTrue(translations[0].translations[0].text !== null); + }); + it("no translate tag", async () => { + const inputText = [ + { text: "今天是怎么回事是非常可怕的" }, + ]; + const parameters = { + to: "zh-chs", + from: "en", + textType: "html", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].translations[0].text.includes("今天是怎么回事是")); + }); + it("dictionary tag", async () => { + const inputText = [ + { + text: 'The word < mstrans:dictionary translation ="wordomatic">wordomatic is a dictionary entry.', + }, + ]; + const parameters = { + to: "es", + from: "en", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].translations[0].to === "es"); + chai_1.assert.isTrue(translations[0].translations[0].text.includes("wordomatic")); + }); + it("transliteration", async () => { + const inputText = [{ text: "hudha akhtabar." }]; + const parameters = { + to: "zh-Hans", + from: "ar", + fromScript: "Latn", + toScript: "Latn", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].translations[0].to === "zh-Hans"); + chai_1.assert.isTrue(translations[0].translations[0].text !== null); + }); + it("from latin to latin script", async () => { + const inputText = [{ text: "ap kaise ho" }]; + const parameters = { + to: "ta", + from: "hi", + fromScript: "Latn", + toScript: "Latn", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].translations[0].transliteration != null); + chai_1.assert.isTrue(translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?")); + }); + it("multiple input text", async () => { + const inputText = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const parameters = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 3); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[1].detectedLanguage?.language === "es"); + chai_1.assert.isTrue(translations[2].detectedLanguage?.language === "de"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[1].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[2].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].text != null); + chai_1.assert.isTrue(translations[1].translations[0].text != null); + chai_1.assert.isTrue(translations[2].translations[0].text != null); + }); + it("multiple target languages", async () => { + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs,es,de", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].translations.length === 3); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].text != null); + chai_1.assert.isTrue(translations[0].translations[1].text != null); + chai_1.assert.isTrue(translations[0].translations[2].text != null); + }); + it("different text types", async () => { + const inputText = [ + { text: "This is a test." }, + ]; + const parameters = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + }); + it("with profanity", async () => { + const inputText = [{ text: "shit this is fucking crazy" }]; + const parameters = { + to: "zh-cn", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].text.includes("***")); + }); + it("with alignment", async () => { + const inputText = [{ text: "It is a beautiful morning" }]; + const parameters = { + to: "cs", + includeAlignment: true, + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].alignment?.proj != null); + }); + it("with include sentence length", async () => { + const inputText = [ + { + text: "La réponse se trouve dans la traduction automatique. La meilleure technologie de traduction automatique ne peut pas toujours fournir des traductions adaptées à un site ou des utilisateurs comme un être humain. Il suffit de copier et coller un extrait de code n'importe où.", + }, + ]; + const parameters = { + to: "fr", + includeSentenceLength: true, + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "fr"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].sentLen?.srcSentLen.length === 3); + chai_1.assert.isTrue(translations[0].translations[0].sentLen?.transSentLen.length === 3); + }); + it("with custom endpoint", async () => { + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + includeSentenceLength: true, + }; + const response = await customClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + const translations = response.body; + chai_1.assert.isTrue(translations.length === 1); + chai_1.assert.isTrue(translations[0].translations.length === 1); + chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); + chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); + chai_1.assert.isTrue(translations[0].translations[0].text != null); + }); + it("with token", async () => { + const tokenClient = await (0, recordedClient_1.createTokenTranslationClient)({ recorder }); + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + }; + const response = await tokenClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + }); + it("with AAD authentication", async () => { + const tokenClient = await (0, recordedClient_1.createAADAuthenticationTranslationClient)({ recorder }); + const inputText = [{ text: "This is a test." }]; + const parameters = { + to: "cs", + }; + const response = await tokenClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + }); +}); +//# sourceMappingURL=translateTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js.map new file mode 100644 index 00000000000..65099b8d476 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js.map @@ -0,0 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E,QAAQ,EAAE,CAAC,CAAC;QACjF,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA4D;YAC1E,EAAE,EAAE,IAAI;SACT,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;YACzD,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.ts new file mode 100644 index 00000000000..be442423a60 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.ts @@ -0,0 +1,390 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + InputTextItem, + TextTranslationClient, + TranslatedTextItemOutput, + TranslateQueryParamProperties, + isUnexpected, +} from "../../src"; +import { + createCustomTranslationClient, + createTranslationClient, + createTokenTranslationClient, + createAADAuthenticationTranslationClient, + startRecorder, +} from "./utils/recordedClient"; +import { Context } from "mocha"; + +describe("Translate tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + let customClient: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + customClient = await createCustomTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("translate basic", async () => { + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + from: "en", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length > 0); + assert.isTrue(translations[0].translations[0].to === "cs"); + assert.isTrue(translations[0].translations[0].text !== null); + }); + + it("with auto detect", async () => { + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length > 0); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].to === "cs"); + assert.isTrue(translations[0].translations[0].text !== null); + }); + + it("no translate tag", async () => { + const inputText: InputTextItem[] = [ + { text: "今天是怎么回事是非常可怕的" }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "zh-chs", + from: "en", + textType: "html", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].translations[0].text.includes("今天是怎么回事是")); + }); + + it("dictionary tag", async () => { + const inputText: InputTextItem[] = [ + { + text: 'The word < mstrans:dictionary translation ="wordomatic">wordomatic is a dictionary entry.', + }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "es", + from: "en", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].translations[0].to === "es"); + assert.isTrue(translations[0].translations[0].text.includes("wordomatic")); + }); + + it("transliteration", async () => { + const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "zh-Hans", + from: "ar", + fromScript: "Latn", + toScript: "Latn", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].translations[0].to === "zh-Hans"); + assert.isTrue(translations[0].translations[0].text !== null); + }); + + it("from latin to latin script", async () => { + const inputText: InputTextItem[] = [{ text: "ap kaise ho" }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "ta", + from: "hi", + fromScript: "Latn", + toScript: "Latn", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].translations[0].transliteration != null); + assert.isTrue( + translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?"), + ); + }); + + it("multiple input text", async () => { + const inputText: InputTextItem[] = [ + { text: "This is a test." }, + { text: "Esto es una prueba." }, + { text: "Dies ist ein Test." }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 3); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[1].detectedLanguage?.language === "es"); + assert.isTrue(translations[2].detectedLanguage?.language === "de"); + + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[1].detectedLanguage?.score === 1); + assert.isTrue(translations[2].detectedLanguage?.score === 1); + + assert.isTrue(translations[0].translations[0].text != null); + assert.isTrue(translations[1].translations[0].text != null); + assert.isTrue(translations[2].translations[0].text != null); + }); + + it("multiple target languages", async () => { + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs,es,de", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations[0].translations.length === 3); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + + assert.isTrue(translations[0].translations[0].text != null); + assert.isTrue(translations[0].translations[1].text != null); + assert.isTrue(translations[0].translations[2].text != null); + }); + + it("different text types", async () => { + const inputText: InputTextItem[] = [ + { text: "This is a test." }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + }); + + it("with profanity", async () => { + const inputText: InputTextItem[] = [{ text: "shit this is fucking crazy" }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "zh-cn", + profanityAction: "Marked", + profanityMarker: "Asterisk", + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].text.includes("***")); + }); + + it("with alignment", async () => { + const inputText: InputTextItem[] = [{ text: "It is a beautiful morning" }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + includeAlignment: true, + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].alignment?.proj != null); + }); + + it("with include sentence length", async () => { + const inputText: InputTextItem[] = [ + { + text: "La réponse se trouve dans la traduction automatique. La meilleure technologie de traduction automatique ne peut pas toujours fournir des traductions adaptées à un site ou des utilisateurs comme un être humain. Il suffit de copier et coller un extrait de code n'importe où.", + }, + ]; + const parameters: TranslateQueryParamProperties & Record = { + to: "fr", + includeSentenceLength: true, + }; + const response = await client.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "fr"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].sentLen?.srcSentLen.length === 3); + assert.isTrue(translations[0].translations[0].sentLen?.transSentLen.length === 3); + }); + + it("with custom endpoint", async () => { + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + includeSentenceLength: true, + }; + const response = await customClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + const translations = response.body as TranslatedTextItemOutput[]; + assert.isTrue(translations.length === 1); + assert.isTrue(translations[0].translations.length === 1); + assert.isTrue(translations[0].detectedLanguage?.language === "en"); + assert.isTrue(translations[0].detectedLanguage?.score === 1); + assert.isTrue(translations[0].translations[0].text != null); + }); + + it("with token", async () => { + const tokenClient = await createTokenTranslationClient({ recorder }); + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await tokenClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + }); + + it("with AAD authentication", async () => { + const tokenClient = await createAADAuthenticationTranslationClient({ recorder }); + const inputText: InputTextItem[] = [{ text: "This is a test." }]; + const parameters: TranslateQueryParamProperties & Record = { + to: "cs", + }; + const response = await tokenClient.path("/translate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts new file mode 100644 index 00000000000..ee180532955 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=transliterateTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts.map new file mode 100644 index 00000000000..73e1df38583 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterateTest.spec.d.ts","sourceRoot":"","sources":["transliterateTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js new file mode 100644 index 00000000000..baca0fd5b4f --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js @@ -0,0 +1,91 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const src_1 = require("../../src"); +const recordedClient_1 = require("./utils/recordedClient"); +const testHelper_1 = require("./utils/testHelper"); +describe("Transliterate tests", () => { + let recorder; + let client; + beforeEach(async function () { + recorder = await (0, recordedClient_1.startRecorder)(this); + client = await (0, recordedClient_1.createTranslationClient)({ recorder }); + }); + afterEach(async function () { + await recorder.stop(); + }); + it("transliterate basic", async () => { + const inputText = [{ text: "这里怎么一回事?" }]; + const parameters = { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].script !== null); + chai_1.assert.isTrue(translations[0].text !== null); + }); + it("multiple text array", async () => { + const inputText = [ + { text: "यहएककसौटीहैयहएककसौटीहै" }, + { text: "यहएककसौटीहै" }, + ]; + const parameters = { + language: "hi", + fromScript: "Deva", + toScript: "Latn", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].script !== null); + chai_1.assert.isTrue(translations[0].text !== null); + }); + it("with edit distance", async () => { + const inputText = [ + { text: "gujarat" }, + { text: "hadman" }, + { text: "hukkabar" }, + ]; + const parameters = { + language: "gu", + fromScript: "Latn", + toScript: "gujr", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + chai_1.assert.equal(response.status, "200"); + if ((0, src_1.isUnexpected)(response)) { + throw response.body; + } + const translations = response.body; + chai_1.assert.isTrue(translations[0].text !== null); + chai_1.assert.isTrue(translations[1].text !== null); + chai_1.assert.isTrue(translations[2].text !== null); + const expectedText = ["ગુજરાત", "હદમાં", "હુક્કાબાર"]; + let editDistanceValue = 0; + for (let i = 0; i < expectedText.length; i++) { + editDistanceValue = editDistanceValue + (0, testHelper_1.editDistance)(expectedText[i], translations[i].text); + } + chai_1.assert.isTrue(editDistanceValue < 6); + }); +}); +//# sourceMappingURL=transliterateTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js.map new file mode 100644 index 00000000000..046180ba679 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transliterateTest.spec.js","sourceRoot":"","sources":["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-to-rest-level-client/current-package/test/public/transliterateTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.ts new file mode 100644 index 00000000000..64f63300e14 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.ts @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { + InputTextItem, + TextTranslationClient, + TransliteratedTextOutput, + TransliterateQueryParamProperties, + isUnexpected, +} from "../../src"; +import { createTranslationClient, startRecorder } from "./utils/recordedClient"; +import { Context } from "mocha"; +import { editDistance } from "./utils/testHelper"; + +describe("Transliterate tests", () => { + let recorder: Recorder; + let client: TextTranslationClient; + + beforeEach(async function (this: Context) { + recorder = await startRecorder(this); + client = await createTranslationClient({ recorder }); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("transliterate basic", async () => { + const inputText: InputTextItem[] = [{ text: "这里怎么一回事?" }]; + const parameters: TransliterateQueryParamProperties & Record = { + language: "zh-Hans", + fromScript: "Hans", + toScript: "Latn", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TransliteratedTextOutput[]; + assert.isTrue(translations[0].script !== null); + assert.isTrue(translations[0].text !== null); + }); + + it("multiple text array", async () => { + const inputText: InputTextItem[] = [ + { text: "यहएककसौटीहैयहएककसौटीहै" }, + { text: "यहएककसौटीहै" }, + ]; + const parameters: TransliterateQueryParamProperties & Record = { + language: "hi", + fromScript: "Deva", + toScript: "Latn", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TransliteratedTextOutput[]; + assert.isTrue(translations[0].script !== null); + assert.isTrue(translations[0].text !== null); + }); + + it("with edit distance", async () => { + const inputText: InputTextItem[] = [ + { text: "gujarat" }, + { text: "hadman" }, + { text: "hukkabar" }, + ]; + const parameters: TransliterateQueryParamProperties & Record = { + language: "gu", + fromScript: "Latn", + toScript: "gujr", + }; + const response = await client.path("/transliterate").post({ + body: inputText, + queryParameters: parameters, + }); + assert.equal(response.status, "200"); + + if (isUnexpected(response)) { + throw response.body; + } + + const translations = response.body as TransliteratedTextOutput[]; + assert.isTrue(translations[0].text !== null); + assert.isTrue(translations[1].text !== null); + assert.isTrue(translations[2].text !== null); + + const expectedText = ["ગુજરાત", "હદમાં", "હુક્કાબાર"]; + + let editDistanceValue = 0; + for (let i = 0; i < expectedText.length; i++) { + editDistanceValue = editDistanceValue + editDistance(expectedText[i], translations[i].text); + } + assert.isTrue(editDistanceValue < 6); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts new file mode 100644 index 00000000000..dc5152fefc4 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts @@ -0,0 +1,7 @@ +import { TokenCredential, AccessToken } from "@azure/core-auth"; +export declare class StaticAccessTokenCredential implements TokenCredential { + private accessToken; + constructor(accessToken: string); + getToken(): Promise; +} +//# sourceMappingURL=StaticAccessTokenCredential.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts.map new file mode 100644 index 00000000000..00e9112c0e3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StaticAccessTokenCredential.d.ts","sourceRoot":"","sources":["StaticAccessTokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEhE,qBAAa,2BAA4B,YAAW,eAAe;IAIrD,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,MAAM;IACjC,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC;CAMvC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js new file mode 100644 index 00000000000..e57da4bd7e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js @@ -0,0 +1,22 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StaticAccessTokenCredential = void 0; +class StaticAccessTokenCredential { + accessToken; + // AccessToken is an object with two properties: + // - A "token" property with a string value. + // - And an "expiresOnTimestamp" property with a numeric unix timestamp as its value. + constructor(accessToken) { + this.accessToken = accessToken; + } + async getToken() { + return { + expiresOnTimestamp: Date.now() + 10000, + token: this.accessToken, + }; + } +} +exports.StaticAccessTokenCredential = StaticAccessTokenCredential; +//# sourceMappingURL=StaticAccessTokenCredential.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js.map new file mode 100644 index 00000000000..60bcea974d3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StaticAccessTokenCredential.js","sourceRoot":"","sources":["StaticAccessTokenCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC,MAAa,2BAA2B;IAIlB;IAHpB,gDAAgD;IAChD,4CAA4C;IAC5C,qFAAqF;IACrF,YAAoB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAAG,CAAC;IAC3C,KAAK,CAAC,QAAQ;QACZ,OAAO;YACL,kBAAkB,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;YACtC,KAAK,EAAE,IAAI,CAAC,WAAW;SACxB,CAAC;IACJ,CAAC;CACF;AAXD,kEAWC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.ts new file mode 100644 index 00000000000..2e89e1cbae2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.ts @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { TokenCredential, AccessToken } from "@azure/core-auth"; + +export class StaticAccessTokenCredential implements TokenCredential { + // AccessToken is an object with two properties: + // - A "token" property with a string value. + // - And an "expiresOnTimestamp" property with a numeric unix timestamp as its value. + constructor(private accessToken: string) {} + async getToken(): Promise { + return { + expiresOnTimestamp: Date.now() + 10000, + token: this.accessToken, + }; + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts new file mode 100644 index 00000000000..7289698f3e9 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts @@ -0,0 +1,32 @@ +import { Context } from "mocha"; +import { Recorder } from "@azure-tools/test-recorder"; +import { TextTranslationClient } from "../../../src"; +import { ClientOptions } from "@azure-rest/core-client"; +export declare function startRecorder(context: Context): Promise; +export declare function createTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createCustomTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createLanguageClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createTokenTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createAADAuthenticationTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise; +export declare function createMockToken(): { + getToken: (_scopes: string) => Promise<{ + token: string; + expiresOnTimestamp: number; + }>; +}; +//# sourceMappingURL=recordedClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts.map new file mode 100644 index 00000000000..bf872632470 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"recordedClient.d.ts","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACL,QAAQ,EAIT,MAAM,4BAA4B,CAAC;AAEpC,OAAoC,EAGlC,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAkBxD,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAIvE;AAED,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IACrD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAajC;AAED,wBAAsB,6BAA6B,CAAC,OAAO,EAAE;IAC3D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAajC;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAClD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAKjC;AAED,wBAAsB,4BAA4B,CAAC,OAAO,EAAE;IAC1D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4BjC;AAED,wBAAsB,wCAAwC,CAAC,OAAO,EAAE;IACtE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAyBjC;AAED,wBAAgB,eAAe,IAAI;IACjC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvF,CAMA"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js new file mode 100644 index 00000000000..7791bec6816 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js @@ -0,0 +1,125 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.startRecorder = startRecorder; +exports.createTranslationClient = createTranslationClient; +exports.createCustomTranslationClient = createCustomTranslationClient; +exports.createLanguageClient = createLanguageClient; +exports.createTokenTranslationClient = createTokenTranslationClient; +exports.createAADAuthenticationTranslationClient = createAADAuthenticationTranslationClient; +exports.createMockToken = createMockToken; +const tslib_1 = require("tslib"); +const test_recorder_1 = require("@azure-tools/test-recorder"); +const StaticAccessTokenCredential_1 = require("./StaticAccessTokenCredential"); +const src_1 = tslib_1.__importDefault(require("../../../src")); +const core_rest_pipeline_1 = require("@azure/core-rest-pipeline"); +const identity_1 = require("@azure/identity"); +const envSetupForPlayback = { + TEXT_TRANSLATION_API_KEY: "fakeapikey", + TEXT_TRANSLATION_ENDPOINT: "https://fakeEndpoint.cognitive.microsofttranslator.com", + TEXT_TRANSLATION_CUSTOM_ENDPOINT: "https://fakeCustomEndpoint.cognitiveservices.azure.com", + TEXT_TRANSLATION_REGION: "fakeregion", + TEXT_TRANSLATION_AAD_REGION: "fakeregion", + TEXT_TRANSLATION_RESOURCE_ID: "fakeresourceid", +}; +const recorderEnvSetup = { + envSetupForPlayback, +}; +async function startRecorder(context) { + const recorder = new test_recorder_1.Recorder(context.currentTest); + await recorder.start(recorderEnvSetup); + return recorder; +} +async function createTranslationClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); + const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); + const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); + const translatorCredential = { + key: apikey, + region, + }; + const client = (0, src_1.default)(endpoint, translatorCredential, updatedOptions); + return client; +} +async function createCustomTranslationClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const customEndpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CUSTOM_ENDPOINT"); + const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); + const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); + const translatorCredential = { + key: apikey, + region, + }; + const client = (0, src_1.default)(customEndpoint, translatorCredential, updatedOptions); + return client; +} +async function createLanguageClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); + return (0, src_1.default)(endpoint, undefined, updatedOptions); +} +async function createTokenTranslationClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); + const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); + const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); + const issueTokenURL = "https://" + + region + + ".api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=" + + apikey; + let credential; + if ((0, test_recorder_1.isPlaybackMode)()) { + credential = createMockToken(); + } + else { + const tokenClient = (0, core_rest_pipeline_1.createDefaultHttpClient)(); + const request = (0, core_rest_pipeline_1.createPipelineRequest)({ + url: issueTokenURL, + method: "POST", + }); + request.allowInsecureConnection = true; + const response = await tokenClient.sendRequest(request); + const token = response.bodyAsText; + credential = new StaticAccessTokenCredential_1.StaticAccessTokenCredential(token); + } + const client = (0, src_1.default)(endpoint, credential, updatedOptions); + return client; +} +async function createAADAuthenticationTranslationClient(options) { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); + const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_AAD_REGION"); + const azureResourceId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_RESOURCE_ID"); + let tokenCredential; + if ((0, test_recorder_1.isPlaybackMode)()) { + tokenCredential = createMockToken(); + } + else { + const clientId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CLIENT_ID"); + const tenantId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_TENANT_ID"); + const secret = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CLIENT_SECRET"); + tokenCredential = new identity_1.ClientSecretCredential(tenantId, clientId, secret); + } + const translatorTokenCredentials = { + tokenCredential, + azureResourceId, + region, + }; + const client = (0, src_1.default)(endpoint, translatorTokenCredentials, updatedOptions); + return client; +} +function createMockToken() { + return { + getToken: async (_scopes) => { + return { token: "testToken", expiresOnTimestamp: 11111 }; + }, + }; +} +//# sourceMappingURL=recordedClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js.map new file mode 100644 index 00000000000..098f455da30 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js.map @@ -0,0 +1 @@ +{"version":3,"file":"recordedClient.js","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,sCAIC;AAED,0DAgBC;AAED,sEAgBC;AAED,oDAQC;AAED,oEA+BC;AAED,4FA4BC;AAED,0CAQC;;AAzJD,8DAKoC;AACpC,+EAA4E;AAC5E,+DAIsB;AAEtB,kEAA2F;AAE3F,8CAAyD;AAEzD,MAAM,mBAAmB,GAA2B;IAClD,wBAAwB,EAAE,YAAY;IACtC,yBAAyB,EAAE,wDAAwD;IACnF,gCAAgC,EAAE,wDAAwD;IAC1F,uBAAuB,EAAE,YAAY;IACrC,2BAA2B,EAAE,YAAY;IACzC,4BAA4B,EAAE,gBAAgB;CAC/C,CAAC;AAEF,MAAM,gBAAgB,GAAyB;IAC7C,mBAAmB;CACpB,CAAC;AAEK,KAAK,UA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yB,EAAC,gCAAgC,CAAC,CAAC;QAE3E,eAAe,GAAG,IAAI,iCAAsB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,0BAA0B,GAA8B;QAC5D,eAAe;QACf,eAAe;QACf,MAAM;KACP,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,aAA2B,EAAC,QAAQ,EAAE,0BAA0B,EAAE,cAAc,CAAC,CAAC;IACjG,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe;IAG7B,OAAO;QACL,QAAQ,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE;YAClC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC;QAC3D,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.ts new file mode 100644 index 00000000000..6088570dc00 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.ts @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Context } from "mocha"; +import { + Recorder, + RecorderStartOptions, + isPlaybackMode, + assertEnvironmentVariable, +} from "@azure-tools/test-recorder"; +import { StaticAccessTokenCredential } from "./StaticAccessTokenCredential"; +import createTextTranslationClient, { + TranslatorCredential, + TranslatorTokenCredential, + TextTranslationClient, +} from "../../../src"; +import { ClientOptions } from "@azure-rest/core-client"; +import { createDefaultHttpClient, createPipelineRequest } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; +import { ClientSecretCredential } from "@azure/identity"; + +const envSetupForPlayback: Record = { + TEXT_TRANSLATION_API_KEY: "fakeapikey", + TEXT_TRANSLATION_ENDPOINT: "https://fakeEndpoint.cognitive.microsofttranslator.com", + TEXT_TRANSLATION_CUSTOM_ENDPOINT: "https://fakeCustomEndpoint.cognitiveservices.azure.com", + TEXT_TRANSLATION_REGION: "fakeregion", + TEXT_TRANSLATION_AAD_REGION: "fakeregion", + TEXT_TRANSLATION_RESOURCE_ID: "fakeresourceid", +}; + +const recorderEnvSetup: RecorderStartOptions = { + envSetupForPlayback, +}; + +export async function startRecorder(context: Context): Promise { + const recorder = new Recorder(context.currentTest); + await recorder.start(recorderEnvSetup); + return recorder; +} + +export async function createTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); + const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); + const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); + + const translatorCredential: TranslatorCredential = { + key: apikey, + region, + }; + const client = createTextTranslationClient(endpoint, translatorCredential, updatedOptions); + return client; +} + +export async function createCustomTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const customEndpoint = assertEnvironmentVariable("TEXT_TRANSLATION_CUSTOM_ENDPOINT"); + const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); + const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); + + const translatorCredential: TranslatorCredential = { + key: apikey, + region, + }; + const client = createTextTranslationClient(customEndpoint, translatorCredential, updatedOptions); + return client; +} + +export async function createLanguageClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); + return createTextTranslationClient(endpoint, undefined, updatedOptions); +} + +export async function createTokenTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); + const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); + const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); + + const issueTokenURL: string = + "https://" + + region + + ".api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=" + + apikey; + let credential: TokenCredential; + if (isPlaybackMode()) { + credential = createMockToken(); + } else { + const tokenClient = createDefaultHttpClient(); + const request = createPipelineRequest({ + url: issueTokenURL, + method: "POST", + }); + request.allowInsecureConnection = true; + const response = await tokenClient.sendRequest(request); + const token: string = response.bodyAsText!; + credential = new StaticAccessTokenCredential(token); + } + const client = createTextTranslationClient(endpoint, credential, updatedOptions); + return client; +} + +export async function createAADAuthenticationTranslationClient(options: { + recorder?: Recorder; + clientOptions?: ClientOptions; +}): Promise { + const { recorder, clientOptions = {} } = options; + const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; + const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); + const region = assertEnvironmentVariable("TEXT_TRANSLATION_AAD_REGION"); + const azureResourceId = assertEnvironmentVariable("TEXT_TRANSLATION_RESOURCE_ID"); + + let tokenCredential: TokenCredential; + if (isPlaybackMode()) { + tokenCredential = createMockToken(); + } else { + const clientId = assertEnvironmentVariable("TEXT_TRANSLATION_CLIENT_ID"); + const tenantId = assertEnvironmentVariable("TEXT_TRANSLATION_TENANT_ID"); + const secret = assertEnvironmentVariable("TEXT_TRANSLATION_CLIENT_SECRET"); + + tokenCredential = new ClientSecretCredential(tenantId, clientId, secret); + } + + const translatorTokenCredentials: TranslatorTokenCredential = { + tokenCredential, + azureResourceId, + region, + }; + const client = createTextTranslationClient(endpoint, translatorTokenCredentials, updatedOptions); + return client; +} + +export function createMockToken(): { + getToken: (_scopes: string) => Promise<{ token: string; expiresOnTimestamp: number }>; +} { + return { + getToken: async (_scopes: string) => { + return { token: "testToken", expiresOnTimestamp: 11111 }; + }, + }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts new file mode 100644 index 00000000000..025dea925a3 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts @@ -0,0 +1,3 @@ +export declare function editDistance(s1: string, s2: string): number; +export declare function distance(s1: string, s2: string, n1: number, n2: number): number; +//# sourceMappingURL=testHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts.map new file mode 100644 index 00000000000..54e5d2aee05 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"testHelper.d.ts","sourceRoot":"","sources":["testHelper.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAI3D;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAmB/E"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js new file mode 100644 index 00000000000..6b9bf11d97d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js @@ -0,0 +1,30 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.editDistance = editDistance; +exports.distance = distance; +function editDistance(s1, s2) { + const n1 = s1.length; + const n2 = s2.length; + return distance(s1, s2, n1, n2); +} +function distance(s1, s2, n1, n2) { + if (n1 === 0) { + return n2; + } + if (n2 === 0) { + return n1; + } + if (s1[n1 - 1] === s2[n2 - 1]) { + const d = distance(s1, s2, n1 - 1, n2 - 1); + return d; + } + const nums = [ + distance(s1, s2, n1, n2 - 1), + distance(s1, s2, n1 - 1, n2), + distance(s1, s2, n1 - 1, n2 - 1), + ]; + return 1 + Math.min(...nums); +} +//# sourceMappingURL=testHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js.map new file mode 100644 index 00000000000..df7a321ca7b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"testHelper.js","sourceRoot":"","sources":["testHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,oCAIC;AAED,4BAmBC;AAzBD,SAAgB,YAAY,CAAC,EAAU,EAAE,EAAU;IACjD,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,OAAO,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,QAAQ,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IACrE,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;QAC9B,MAAM,CAAC,GAAW,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;QACnD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,IAAI,GAAa;QACrB,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;QAC5B,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;QAC5B,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;KACjC,CAAC;IACF,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.ts new file mode 100644 index 00000000000..0064e36f061 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export function editDistance(s1: string, s2: string): number { + const n1 = s1.length; + const n2 = s2.length; + return distance(s1, s2, n1, n2); +} + +export function distance(s1: string, s2: string, n1: number, n2: number): number { + if (n1 === 0) { + return n2; + } + + if (n2 === 0) { + return n1; + } + + if (s1[n1 - 1] === s2[n2 - 1]) { + const d: number = distance(s1, s2, n1 - 1, n2 - 1); + return d; + } + const nums: number[] = [ + distance(s1, s2, n1, n2 - 1), + distance(s1, s2, n1 - 1, n2), + distance(s1, s2, n1 - 1, n2 - 1), + ]; + return 1 + Math.min(...nums); +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tests.yml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tests.yml new file mode 100644 index 00000000000..2e20837b159 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tests.yml @@ -0,0 +1,15 @@ +parameters: +- name: Location + displayName: Location + type: string + default: eastus + +trigger: none + +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml + parameters: + PackageName: "@azure-rest/ai-translation-text" + ServiceDirectory: translation + Location: "${{ parameters.Location }}" + SupportedClouds: 'Public' diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json new file mode 100644 index 00000000000..7ec1bb6badf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "jsx": "preserve", + "target": "es5", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "lib": ["es2015", "es2017", "esnext"], + "experimentalDecorators": true, + "rootDir": "." + }, + "include": [ + "**/ai-translation-text.api.ts", + ], + "exclude": ["**/node_modules/**/*.*"] +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsp-location.yaml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsp-location.yaml new file mode 100644 index 00000000000..0bf4ee5359e --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsp-location.yaml @@ -0,0 +1,3 @@ +directory: specification/translation/Azure.AI.TextTranslation +commit: 01a71545e82bb98b8137d3038150c436d46a59ed +repo: Azure/azure-rest-api-specs diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package.json new file mode 100644 index 00000000000..b8fd245b9e2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package.json @@ -0,0 +1,70 @@ +{ + "name": "typescript-codegen-breaking-change-detector", + "version": "0.4.6", + "description": "Detect breaking changes to your TypeScript client generated by open api, typespec and more...", + "main": "dist/src/index.js", + "types": "./dist/src/index.d.ts", + "files": [ + "dist" + ], + "scripts": { + "build": "rimraf ./dist && tsc", + "start:dev": "tsx watch src/cli.ts", + "start": "npm run build && node dist/index.js", + "test": "vitest --run", + "test:watch": "vitest", + "lint": "eslint . --ext .ts --max-warnings=0", + "prettier-format": "run-script-os", + "prettier-format:win32": "prettier --config .prettierrc \"./src/**/*.ts\" --write", + "prettier-format:darwin:linux": "prettier --config .prettierrc 'src/**/*.ts' --write", + "prettier-format:default": "prettier --config .prettierrc 'src/**/*.ts' --write", + "prettier-watch": "run-script-os", + "prettier-watch:win32": "onchange \"src/**/*.ts\" -- prettier --write {{changed}}", + "prettier-watch:darwin:linux": "onchange 'src/**/*.ts' -- prettier --write {{changed}}", + "prettier-watch:default": "onchange 'src/**/*.ts' -- prettier --write {{changed}}" + }, + "author": "albertxavier100", + "repository": { + "type": "git", + "url": "https://github.com/albertxavier100/typescript-codegen-breaking-change-detector.git" + }, + "homepage": "https://github.com/albertxavier100/typescript-codegen-breaking-change-detector", + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" + }, + "devDependencies": { + "@types/eslint": "^8.56.10", + "@types/eslint-scope": "^3.7.7", + "@types/fs-extra": "^11.0.4", + "@typescript-eslint/eslint-plugin": "^7.17.0", + "@typescript-eslint/parser": "^7.17.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "husky": "^9.0.11", + "onchange": "^7.1.0", + "prettier": "3.3.2", + "rimraf": "^5.0.7", + "tsx": "^4.16.2", + "vitest": "^2.0.4" + }, + "husky": { + "hooks": { + "pre-commit": "npm run prettier-format && npm run lint" + } + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/pnpm-lock.yaml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/pnpm-lock.yaml new file mode 100644 index 00000000000..9fc21622ca8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/pnpm-lock.yaml @@ -0,0 +1,3019 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@azure-tools/openapi-tools-common': + specifier: ^1.2.2 + version: 1.2.2 + '@typescript-eslint/scope-manager': + specifier: ^7.17.0 + version: 7.17.0 + '@typescript-eslint/types': + specifier: ^7.17.0 + version: 7.17.0 + '@typescript-eslint/typescript-estree': + specifier: ^7.17.0 + version: 7.17.0(typescript@5.5.3) + '@typescript-eslint/utils': + specifier: ^7.17.0 + version: 7.17.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/visitor-keys': + specifier: ^7.17.0 + version: 7.17.0 + commander: + specifier: ^12.1.0 + version: 12.1.0 + fs-extra: + specifier: ^11.2.0 + version: 11.2.0 + glob: + specifier: ^11.0.0 + version: 11.0.0 + marked: + specifier: ^13.0.2 + version: 13.0.2 + pino: + specifier: ^9.3.1 + version: 9.3.1 + pino-pretty: + specifier: ^11.2.1 + version: 11.2.1 + ts-morph: + specifier: ^23.0.0 + version: 23.0.0 + typescript: + specifier: 5.5.3 + version: 5.5.3 + typescript-eslint: + specifier: ^7.17.0 + version: 7.17.0(eslint@8.57.0)(typescript@5.5.3) + devDependencies: + '@rollup/plugin-commonjs': + specifier: ^26.0.1 + version: 26.0.1(rollup@4.19.0) + '@types/eslint': + specifier: ^8.56.10 + version: 8.56.11 + '@types/eslint-scope': + specifier: ^3.7.7 + version: 3.7.7 + '@types/fs-extra': + specifier: ^11.0.4 + version: 11.0.4 + '@typescript-eslint/eslint-plugin': + specifier: ^7.17.0 + version: 7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/parser': + specifier: ^7.17.0 + version: 7.17.0(eslint@8.57.0)(typescript@5.5.3) + eslint-config-prettier: + specifier: ^9.1.0 + version: 9.1.0(eslint@8.57.0) + eslint-plugin-prettier: + specifier: ^5.1.3 + version: 5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2) + husky: + specifier: ^9.0.11 + version: 9.1.1 + onchange: + specifier: ^7.1.0 + version: 7.1.0 + prettier: + specifier: 3.3.2 + version: 3.3.2 + rimraf: + specifier: ^5.0.7 + version: 5.0.9 + tsx: + specifier: ^4.16.2 + version: 4.16.2 + vitest: + specifier: ^2.0.4 + version: 2.0.4(@types/node@20.14.11) + +packages: + + '@ampproject/remapping@2.3.0': + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} + engines: {node: '>=6.0.0'} + + '@azure-tools/openapi-tools-common@1.2.2': + resolution: {integrity: sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==} + + '@blakeembrey/deque@1.0.5': + resolution: {integrity: sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==} + + '@blakeembrey/template@1.1.0': + resolution: {integrity: sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==} + + '@esbuild/aix-ppc64@0.21.5': + resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.21.5': + resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.21.5': + resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.21.5': + resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.21.5': + resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.21.5': + resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.21.5': + resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.21.5': + resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.21.5': + resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.21.5': + resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.21.5': + resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.21.5': + resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.21.5': + resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.21.5': + resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.21.5': + resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.21.5': + resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.21.5': + resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-x64@0.21.5': + resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-x64@0.21.5': + resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.21.5': + resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.21.5': + resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.21.5': + resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.21.5': + resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + + '@eslint-community/eslint-utils@4.4.0': + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.11.0': + resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/eslintrc@2.1.4': + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@eslint/js@8.57.0': + resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@humanwhocodes/config-array@0.11.14': + resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/object-schema@2.0.3': + resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} + deprecated: Use @eslint/object-schema instead + + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + + '@jridgewell/gen-mapping@0.3.5': + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} + engines: {node: '>=6.0.0'} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@pkgr/core@0.1.1': + resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + + '@rollup/plugin-commonjs@26.0.1': + resolution: {integrity: sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ==} + engines: {node: '>=16.0.0 || 14 >= 14.17'} + peerDependencies: + rollup: ^2.68.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/pluginutils@5.1.0': + resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/rollup-android-arm-eabi@4.19.0': + resolution: {integrity: sha512-JlPfZ/C7yn5S5p0yKk7uhHTTnFlvTgLetl2VxqE518QgyM7C9bSfFTYvB/Q/ftkq0RIPY4ySxTz+/wKJ/dXC0w==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.19.0': + resolution: {integrity: sha512-RDxUSY8D1tWYfn00DDi5myxKgOk6RvWPxhmWexcICt/MEC6yEMr4HNCu1sXXYLw8iAsg0D44NuU+qNq7zVWCrw==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.19.0': + resolution: {integrity: sha512-emvKHL4B15x6nlNTBMtIaC9tLPRpeA5jMvRLXVbl/W9Ie7HhkrE7KQjvgS9uxgatL1HmHWDXk5TTS4IaNJxbAA==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.19.0': + resolution: {integrity: sha512-fO28cWA1dC57qCd+D0rfLC4VPbh6EOJXrreBmFLWPGI9dpMlER2YwSPZzSGfq11XgcEpPukPTfEVFtw2q2nYJg==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-linux-arm-gnueabihf@4.19.0': + resolution: {integrity: sha512-2Rn36Ubxdv32NUcfm0wB1tgKqkQuft00PtM23VqLuCUR4N5jcNWDoV5iBC9jeGdgS38WK66ElncprqgMUOyomw==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.19.0': + resolution: {integrity: sha512-gJuzIVdq/X1ZA2bHeCGCISe0VWqCoNT8BvkQ+BfsixXwTOndhtLUpOg0A1Fcx/+eA6ei6rMBzlOz4JzmiDw7JQ==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.19.0': + resolution: {integrity: sha512-0EkX2HYPkSADo9cfeGFoQ7R0/wTKb7q6DdwI4Yn/ULFE1wuRRCHybxpl2goQrx4c/yzK3I8OlgtBu4xvted0ug==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.19.0': + resolution: {integrity: sha512-GlIQRj9px52ISomIOEUq/IojLZqzkvRpdP3cLgIE1wUWaiU5Takwlzpz002q0Nxxr1y2ZgxC2obWxjr13lvxNQ==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.19.0': + resolution: {integrity: sha512-N6cFJzssruDLUOKfEKeovCKiHcdwVYOT1Hs6dovDQ61+Y9n3Ek4zXvtghPPelt6U0AH4aDGnDLb83uiJMkWYzQ==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.19.0': + resolution: {integrity: sha512-2DnD3mkS2uuam/alF+I7M84koGwvn3ZVD7uG+LEWpyzo/bq8+kKnus2EVCkcvh6PlNB8QPNFOz6fWd5N8o1CYg==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.19.0': + resolution: {integrity: sha512-D6pkaF7OpE7lzlTOFCB2m3Ngzu2ykw40Nka9WmKGUOTS3xcIieHe82slQlNq69sVB04ch73thKYIWz/Ian8DUA==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.19.0': + resolution: {integrity: sha512-HBndjQLP8OsdJNSxpNIN0einbDmRFg9+UQeZV1eiYupIRuZsDEoeGU43NQsS34Pp166DtwQOnpcbV/zQxM+rWA==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.19.0': + resolution: {integrity: sha512-HxfbvfCKJe/RMYJJn0a12eiOI9OOtAUF4G6ozrFUK95BNyoJaSiBjIOHjZskTUffUrB84IPKkFG9H9nEvJGW6A==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.19.0': + resolution: {integrity: sha512-HxDMKIhmcguGTiP5TsLNolwBUK3nGGUEoV/BO9ldUBoMLBssvh4J0X8pf11i1fTV7WShWItB1bKAKjX4RQeYmg==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.19.0': + resolution: {integrity: sha512-xItlIAZZaiG/u0wooGzRsx11rokP4qyc/79LkAOdznGRAbOFc+SfEdfUOszG1odsHNgwippUJavag/+W/Etc6Q==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.19.0': + resolution: {integrity: sha512-xNo5fV5ycvCCKqiZcpB65VMR11NJB+StnxHz20jdqRAktfdfzhgjTiJ2doTDQE/7dqGaV5I7ZGqKpgph6lCIag==} + cpu: [x64] + os: [win32] + + '@ts-morph/common@0.24.0': + resolution: {integrity: sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==} + + '@types/async-retry@1.4.8': + resolution: {integrity: sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==} + + '@types/commonmark@0.27.9': + resolution: {integrity: sha512-d3+57WgyPCcIc6oshmcPkmP4+JqRRot9eeZLsBsutWtIxwWivpoyc2wEcolOp8MyO3ZWN846mMdoR02kdHSMCw==} + + '@types/eslint-scope@3.7.7': + resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} + + '@types/eslint@8.56.11': + resolution: {integrity: sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==} + + '@types/estree@1.0.5': + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + + '@types/fs-extra@11.0.4': + resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@types/jsonfile@6.1.4': + resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} + + '@types/node-fetch@2.6.11': + resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} + + '@types/node@20.14.11': + resolution: {integrity: sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==} + + '@types/retry@0.12.5': + resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==} + + '@typescript-eslint/eslint-plugin@7.17.0': + resolution: {integrity: sha512-pyiDhEuLM3PuANxH7uNYan1AaFs5XE0zw1hq69JBvGvE7gSuEoQl1ydtEe/XQeoC3GQxLXyOVa5kNOATgM638A==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + '@typescript-eslint/parser': ^7.0.0 + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/parser@7.17.0': + resolution: {integrity: sha512-puiYfGeg5Ydop8eusb/Hy1k7QmOU6X3nvsqCgzrB2K4qMavK//21+PzNE8qeECgNOIoertJPUC1SpegHDI515A==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/scope-manager@7.17.0': + resolution: {integrity: sha512-0P2jTTqyxWp9HiKLu/Vemr2Rg1Xb5B7uHItdVZ6iAenXmPo4SZ86yOPCJwMqpCyaMiEHTNqizHfsbmCFT1x9SA==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/type-utils@7.17.0': + resolution: {integrity: sha512-XD3aaBt+orgkM/7Cei0XNEm1vwUxQ958AOLALzPlbPqb8C1G8PZK85tND7Jpe69Wualri81PLU+Zc48GVKIMMA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/types@7.17.0': + resolution: {integrity: sha512-a29Ir0EbyKTKHnZWbNsrc/gqfIBqYPwj3F2M+jWE/9bqfEHg0AMtXzkbUkOG6QgEScxh2+Pz9OXe11jHDnHR7A==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/typescript-estree@7.17.0': + resolution: {integrity: sha512-72I3TGq93t2GoSBWI093wmKo0n6/b7O4j9o8U+f65TVD0FS6bI2180X5eGEr8MA8PhKMvYe9myZJquUT2JkCZw==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/utils@7.17.0': + resolution: {integrity: sha512-r+JFlm5NdB+JXc7aWWZ3fKSm1gn0pkswEwIYsrGPdsT2GjsRATAKXiNtp3vgAAO1xZhX8alIOEQnNMl3kbTgJw==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + + '@typescript-eslint/visitor-keys@7.17.0': + resolution: {integrity: sha512-RVGC9UhPOCsfCdI9pU++K4nD7to+jTcMIbXTSOcrLqUEW6gF2pU1UUbYJKc9cvcRSK1UDeMJ7pdMxf4bhMpV/A==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@ungap/structured-clone@1.2.0': + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + + '@vitest/expect@2.0.4': + resolution: {integrity: sha512-39jr5EguIoanChvBqe34I8m1hJFI4+jxvdOpD7gslZrVQBKhh8H9eD7J/LJX4zakrw23W+dITQTDqdt43xVcJw==} + + '@vitest/pretty-format@2.0.4': + resolution: {integrity: sha512-RYZl31STbNGqf4l2eQM1nvKPXE0NhC6Eq0suTTePc4mtMQ1Fn8qZmjV4emZdEdG2NOWGKSCrHZjmTqDCDoeFBw==} + + '@vitest/runner@2.0.4': + resolution: {integrity: sha512-Gk+9Su/2H2zNfNdeJR124gZckd5st4YoSuhF1Rebi37qTXKnqYyFCd9KP4vl2cQHbtuVKjfEKrNJxHHCW8thbQ==} + + '@vitest/snapshot@2.0.4': + resolution: {integrity: sha512-or6Mzoz/pD7xTvuJMFYEtso1vJo1S5u6zBTinfl+7smGUhqybn6VjzCDMhmTyVOFWwkCMuNjmNNxnyXPgKDoPw==} + + '@vitest/spy@2.0.4': + resolution: {integrity: sha512-uTXU56TNoYrTohb+6CseP8IqNwlNdtPwEO0AWl+5j7NelS6x0xZZtP0bDWaLvOfUbaYwhhWp1guzXUxkC7mW7Q==} + + '@vitest/utils@2.0.4': + resolution: {integrity: sha512-Zc75QuuoJhOBnlo99ZVUkJIuq4Oj0zAkrQ2VzCqNCx6wAwViHEh5Fnp4fiJTE9rA+sAoXRf00Z9xGgfEzV6fzQ==} + + abort-controller@3.0.0: + resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} + engines: {node: '>=6.5'} + + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.12.1: + resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + arg@4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + + argparse@1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + async-retry@1.3.3: + resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==} + + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + atomic-sleep@1.0.0: + resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} + engines: {node: '>=8.0.0'} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + + brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + buffer@6.0.3: + resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} + + cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + chai@5.1.1: + resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} + engines: {node: '>=12'} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + check-error@2.1.1: + resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} + engines: {node: '>= 16'} + + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + code-block-writer@13.0.2: + resolution: {integrity: sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + + commander@12.1.0: + resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} + engines: {node: '>=18'} + + commondir@1.0.1: + resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} + + commonmark@0.28.1: + resolution: {integrity: sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==} + hasBin: true + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + + dateformat@4.6.3: + resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} + + debug@4.3.5: + resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + + doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + + end-of-stream@1.4.4: + resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + + entities@1.1.2: + resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} + + esbuild@0.21.5: + resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} + engines: {node: '>=12'} + hasBin: true + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + eslint-config-prettier@9.1.0: + resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + + eslint-plugin-prettier@5.2.1: + resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + '@types/eslint': '>=8.0.0' + eslint: '>=8.0.0' + eslint-config-prettier: '*' + prettier: '>=3.0.0' + peerDependenciesMeta: + '@types/eslint': + optional: true + eslint-config-prettier: + optional: true + + eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint@8.57.0: + resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + hasBin: true + + espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + esquery@1.6.0: + resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + event-target-shim@5.0.1: + resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} + engines: {node: '>=6'} + + events@3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + + execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} + + fast-copy@3.0.2: + resolution: {integrity: sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-diff@1.3.0: + resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} + + fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} + engines: {node: '>=8.6.0'} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + + fast-redact@3.5.0: + resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==} + engines: {node: '>=6'} + + fast-safe-stringify@2.1.1: + resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + + fastq@1.17.1: + resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} + + file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} + + flatted@3.3.1: + resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + + foreground-child@3.2.1: + resolution: {integrity: sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==} + engines: {node: '>=14'} + + form-data@4.0.0: + resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + engines: {node: '>= 6'} + + front-matter@4.0.2: + resolution: {integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==} + + fs-extra@11.2.0: + resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} + engines: {node: '>=14.14'} + + fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + get-func-name@2.0.2: + resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} + + get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + + get-tsconfig@4.7.6: + resolution: {integrity: sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + + glob@10.4.5: + resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + hasBin: true + + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + + glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported + + globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + + globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + help-me@5.0.0: + resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} + + human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} + + husky@9.1.1: + resolution: {integrity: sha512-fCqlqLXcBnXa/TJXmT93/A36tJsjdJkibQ1MuIiFyCCYUlpYpIaj2mv1w+3KR6Rzu1IC3slFTje5f6DUp2A2rg==} + engines: {node: '>=18'} + hasBin: true + + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + + ignore@5.3.1: + resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} + engines: {node: '>= 4'} + + import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + + is-reference@1.2.1: + resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} + + is-stream@3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + + jackspeak@4.0.1: + resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==} + engines: {node: 20 || >=22} + + joycon@3.1.1: + resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} + engines: {node: '>=10'} + + js-yaml@3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + + js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + + json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + jsonfile@6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + + keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + + loupe@3.1.1: + resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@11.0.0: + resolution: {integrity: sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==} + engines: {node: 20 || >=22} + + magic-string@0.30.10: + resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==} + + marked@13.0.2: + resolution: {integrity: sha512-J6CPjP8pS5sgrRqxVRvkCIkZ6MFdRIjDkwUwgJ9nL2fbmM6qGQeB2C16hi8Cc9BOzj6xXzy0jyi0iPIfnMHYzA==} + engines: {node: '>= 18'} + hasBin: true + + mdurl@1.0.1: + resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} + + merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + micromatch@4.0.7: + resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} + engines: {node: '>=8.6'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + mimic-fn@4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + + mkdirp@3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} + engines: {node: '>=10'} + hasBin: true + + ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + + nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + npm-run-path@5.3.0: + resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + on-exit-leak-free@2.1.2: + resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} + engines: {node: '>=14.0.0'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + onchange@7.1.0: + resolution: {integrity: sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==} + hasBin: true + + onetime@6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + package-json-from-dist@1.0.0: + resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + + path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + + pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + + pathval@2.0.0: + resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} + engines: {node: '>= 14.16'} + + picocolors@1.0.1: + resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + pino-abstract-transport@1.2.0: + resolution: {integrity: sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==} + + pino-pretty@11.2.1: + resolution: {integrity: sha512-O05NuD9tkRasFRWVaF/uHLOvoRDFD7tb5VMertr78rbsYFjYp48Vg3477EshVAF5eZaEw+OpDl/tu+B0R5o+7g==} + hasBin: true + + pino-std-serializers@7.0.0: + resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==} + + pino@9.3.1: + resolution: {integrity: sha512-afSfrq/hUiW/MFmQcLEwV9Zh8Ry6MrMTOyBU53o/fc0gEl+1OZ/Fks/xQCM2nOC0C/OfDtQMnT2d8c3kpcfSzA==} + hasBin: true + + postcss@8.4.39: + resolution: {integrity: sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==} + engines: {node: ^10 || ^12 || >=14} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + prettier-linter-helpers@1.0.0: + resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} + engines: {node: '>=6.0.0'} + + prettier@3.3.2: + resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==} + engines: {node: '>=14'} + hasBin: true + + process-warning@3.0.0: + resolution: {integrity: sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==} + + process@0.11.10: + resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} + engines: {node: '>= 0.6.0'} + + pump@3.0.0: + resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + quick-format-unescaped@4.0.4: + resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} + + readable-stream@4.5.2: + resolution: {integrity: sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + real-require@0.2.0: + resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} + engines: {node: '>= 12.13.0'} + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + + retry@0.13.1: + resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} + engines: {node: '>= 4'} + + reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + + rimraf@5.0.9: + resolution: {integrity: sha512-3i7b8OcswU6CpU8Ej89quJD4O98id7TtVM5U4Mybh84zQXdrFmDLouWBEEaD/QfO3gDDfH+AGFCGsR7kngzQnA==} + engines: {node: 14 >=14.20 || 16 >=16.20 || >=18} + hasBin: true + + rollup@4.19.0: + resolution: {integrity: sha512-5r7EYSQIowHsK4eTZ0Y81qpZuJz+MUuYeqmmYmRMl1nwhdmbiYqt5jwzf6u7wyOzJgYqtCRMtVRKOtHANBz7rA==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + safe-stable-stringify@2.4.3: + resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} + engines: {node: '>=10'} + + secure-json-parse@2.7.0: + resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} + + semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} + engines: {node: '>=10'} + hasBin: true + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + + sonic-boom@4.0.1: + resolution: {integrity: sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==} + + source-map-js@1.2.0: + resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} + engines: {node: '>=0.10.0'} + + split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + + sprintf-js@1.0.3: + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@3.7.0: + resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + + string.prototype.repeat@0.2.0: + resolution: {integrity: sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + + strip-final-newline@3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + synckit@0.9.1: + resolution: {integrity: sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==} + engines: {node: ^14.18.0 || >=16.0.0} + + text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + + thread-stream@3.1.0: + resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} + + tinybench@2.8.0: + resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==} + + tinypool@1.0.0: + resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@1.2.0: + resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} + engines: {node: '>=14.0.0'} + + tinyspy@3.0.0: + resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==} + engines: {node: '>=14.0.0'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + + ts-api-utils@1.3.0: + resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} + engines: {node: '>=16'} + peerDependencies: + typescript: '>=4.2.0' + + ts-morph@23.0.0: + resolution: {integrity: sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==} + + tslib@2.6.3: + resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} + + tsx@4.16.2: + resolution: {integrity: sha512-C1uWweJDgdtX2x600HjaFaucXTilT7tgUZHbOE4+ypskZ1OP8CRCSDkCxG6Vya9EwaFIVagWwpaVAn5wzypaqQ==} + engines: {node: '>=18.0.0'} + hasBin: true + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + + typescript-eslint@7.17.0: + resolution: {integrity: sha512-spQxsQvPguduCUfyUvLItvKqK3l8KJ/kqs5Pb/URtzQ5AC53Z6us32St37rpmlt2uESG23lOFpV4UErrmy4dZQ==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + typescript@5.5.3: + resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + vite-node@2.0.4: + resolution: {integrity: sha512-ZpJVkxcakYtig5iakNeL7N3trufe3M6vGuzYAr4GsbCTwobDeyPJpE4cjDhhPluv8OvQCFzu2LWp6GkoKRITXA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + + vite@5.3.4: + resolution: {integrity: sha512-Cw+7zL3ZG9/NZBB8C+8QbQZmR54GwqIz+WMI4b3JgdYJvX+ny9AjJXqkGQlDXSXRP9rP0B4tbciRMOVEKulVOA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + + vitest@2.0.4: + resolution: {integrity: sha512-luNLDpfsnxw5QSW4bISPe6tkxVvv5wn2BBs/PuDRkhXZ319doZyLOBr1sjfB5yCEpTiU7xCAdViM8TNVGPwoog==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/node': ^18.0.0 || >=20.0.0 + '@vitest/browser': 2.0.4 + '@vitest/ui': 2.0.4 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + + whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + +snapshots: + + '@ampproject/remapping@2.3.0': + dependencies: + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 + + '@azure-tools/openapi-tools-common@1.2.2': + dependencies: + '@types/async-retry': 1.4.8 + '@types/commonmark': 0.27.9 + '@types/node-fetch': 2.6.11 + async-retry: 1.3.3 + commonmark: 0.28.1 + front-matter: 4.0.2 + node-fetch: 2.7.0 + tslib: 2.6.3 + transitivePeerDependencies: + - encoding + + '@blakeembrey/deque@1.0.5': {} + + '@blakeembrey/template@1.1.0': {} + + '@esbuild/aix-ppc64@0.21.5': + optional: true + + '@esbuild/android-arm64@0.21.5': + optional: true + + '@esbuild/android-arm@0.21.5': + optional: true + + '@esbuild/android-x64@0.21.5': + optional: true + + '@esbuild/darwin-arm64@0.21.5': + optional: true + + '@esbuild/darwin-x64@0.21.5': + optional: true + + '@esbuild/freebsd-arm64@0.21.5': + optional: true + + '@esbuild/freebsd-x64@0.21.5': + optional: true + + '@esbuild/linux-arm64@0.21.5': + optional: true + + '@esbuild/linux-arm@0.21.5': + optional: true + + '@esbuild/linux-ia32@0.21.5': + optional: true + + '@esbuild/linux-loong64@0.21.5': + optional: true + + '@esbuild/linux-mips64el@0.21.5': + optional: true + + '@esbuild/linux-ppc64@0.21.5': + optional: true + + '@esbuild/linux-riscv64@0.21.5': + optional: true + + '@esbuild/linux-s390x@0.21.5': + optional: true + + '@esbuild/linux-x64@0.21.5': + optional: true + + '@esbuild/netbsd-x64@0.21.5': + optional: true + + '@esbuild/openbsd-x64@0.21.5': + optional: true + + '@esbuild/sunos-x64@0.21.5': + optional: true + + '@esbuild/win32-arm64@0.21.5': + optional: true + + '@esbuild/win32-ia32@0.21.5': + optional: true + + '@esbuild/win32-x64@0.21.5': + optional: true + + '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': + dependencies: + eslint: 8.57.0 + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.11.0': {} + + '@eslint/eslintrc@2.1.4': + dependencies: + ajv: 6.12.6 + debug: 4.3.5 + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.1 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@8.57.0': {} + + '@humanwhocodes/config-array@0.11.14': + dependencies: + '@humanwhocodes/object-schema': 2.0.3 + debug: 4.3.5 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/object-schema@2.0.3': {} + + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + + '@jridgewell/gen-mapping@0.3.5': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.17.1 + + '@pkgjs/parseargs@0.11.0': + optional: true + + '@pkgr/core@0.1.1': {} + + '@rollup/plugin-commonjs@26.0.1(rollup@4.19.0)': + dependencies: + '@rollup/pluginutils': 5.1.0(rollup@4.19.0) + commondir: 1.0.1 + estree-walker: 2.0.2 + glob: 10.4.5 + is-reference: 1.2.1 + magic-string: 0.30.10 + optionalDependencies: + rollup: 4.19.0 + + '@rollup/pluginutils@5.1.0(rollup@4.19.0)': + dependencies: + '@types/estree': 1.0.5 + estree-walker: 2.0.2 + picomatch: 2.3.1 + optionalDependencies: + rollup: 4.19.0 + + '@rollup/rollup-android-arm-eabi@4.19.0': + optional: true + + '@rollup/rollup-android-arm64@4.19.0': + optional: true + + '@rollup/rollup-darwin-arm64@4.19.0': + optional: true + + '@rollup/rollup-darwin-x64@4.19.0': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.19.0': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.19.0': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.19.0': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.19.0': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.19.0': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.19.0': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.19.0': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.19.0': + optional: true + + '@rollup/rollup-linux-x64-musl@4.19.0': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.19.0': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.19.0': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.19.0': + optional: true + + '@ts-morph/common@0.24.0': + dependencies: + fast-glob: 3.3.2 + minimatch: 9.0.5 + mkdirp: 3.0.1 + path-browserify: 1.0.1 + + '@types/async-retry@1.4.8': + dependencies: + '@types/retry': 0.12.5 + + '@types/commonmark@0.27.9': {} + + '@types/eslint-scope@3.7.7': + dependencies: + '@types/eslint': 8.56.11 + '@types/estree': 1.0.5 + + '@types/eslint@8.56.11': + dependencies: + '@types/estree': 1.0.5 + '@types/json-schema': 7.0.15 + + '@types/estree@1.0.5': {} + + '@types/fs-extra@11.0.4': + dependencies: + '@types/jsonfile': 6.1.4 + '@types/node': 20.14.11 + + '@types/json-schema@7.0.15': {} + + '@types/jsonfile@6.1.4': + dependencies: + '@types/node': 20.14.11 + + '@types/node-fetch@2.6.11': + dependencies: + '@types/node': 20.14.11 + form-data: 4.0.0 + + '@types/node@20.14.11': + dependencies: + undici-types: 5.26.5 + + '@types/retry@0.12.5': {} + + '@typescript-eslint/eslint-plugin@7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@eslint-community/regexpp': 4.11.0 + '@typescript-eslint/parser': 7.17.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/scope-manager': 7.17.0 + '@typescript-eslint/type-utils': 7.17.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/visitor-keys': 7.17.0 + eslint: 8.57.0 + graphemer: 1.4.0 + ignore: 5.3.1 + natural-compare: 1.4.0 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@typescript-eslint/scope-manager': 7.17.0 + '@typescript-eslint/types': 7.17.0 + '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.3) + '@typescript-eslint/visitor-keys': 7.17.0 + debug: 4.3.5 + eslint: 8.57.0 + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/scope-manager@7.17.0': + dependencies: + '@typescript-eslint/types': 7.17.0 + '@typescript-eslint/visitor-keys': 7.17.0 + + '@typescript-eslint/type-utils@7.17.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.3) + '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.3) + debug: 4.3.5 + eslint: 8.57.0 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/types@7.17.0': {} + + '@typescript-eslint/typescript-estree@7.17.0(typescript@5.5.3)': + dependencies: + '@typescript-eslint/types': 7.17.0 + '@typescript-eslint/visitor-keys': 7.17.0 + debug: 4.3.5 + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/utils@7.17.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@typescript-eslint/scope-manager': 7.17.0 + '@typescript-eslint/types': 7.17.0 + '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.3) + eslint: 8.57.0 + transitivePeerDependencies: + - supports-color + - typescript + + '@typescript-eslint/visitor-keys@7.17.0': + dependencies: + '@typescript-eslint/types': 7.17.0 + eslint-visitor-keys: 3.4.3 + + '@ungap/structured-clone@1.2.0': {} + + '@vitest/expect@2.0.4': + dependencies: + '@vitest/spy': 2.0.4 + '@vitest/utils': 2.0.4 + chai: 5.1.1 + tinyrainbow: 1.2.0 + + '@vitest/pretty-format@2.0.4': + dependencies: + tinyrainbow: 1.2.0 + + '@vitest/runner@2.0.4': + dependencies: + '@vitest/utils': 2.0.4 + pathe: 1.1.2 + + '@vitest/snapshot@2.0.4': + dependencies: + '@vitest/pretty-format': 2.0.4 + magic-string: 0.30.10 + pathe: 1.1.2 + + '@vitest/spy@2.0.4': + dependencies: + tinyspy: 3.0.0 + + '@vitest/utils@2.0.4': + dependencies: + '@vitest/pretty-format': 2.0.4 + estree-walker: 3.0.3 + loupe: 3.1.1 + tinyrainbow: 1.2.0 + + abort-controller@3.0.0: + dependencies: + event-target-shim: 5.0.1 + + acorn-jsx@5.3.2(acorn@8.12.1): + dependencies: + acorn: 8.12.1 + + acorn@8.12.1: {} + + ajv@6.12.6: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + ansi-regex@5.0.1: {} + + ansi-regex@6.0.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@6.2.1: {} + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + + arg@4.1.3: {} + + argparse@1.0.10: + dependencies: + sprintf-js: 1.0.3 + + argparse@2.0.1: {} + + array-union@2.1.0: {} + + assertion-error@2.0.1: {} + + async-retry@1.3.3: + dependencies: + retry: 0.13.1 + + asynckit@0.4.0: {} + + atomic-sleep@1.0.0: {} + + balanced-match@1.0.2: {} + + base64-js@1.5.1: {} + + binary-extensions@2.3.0: {} + + brace-expansion@1.1.11: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.0.1: + dependencies: + balanced-match: 1.0.2 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + buffer@6.0.3: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + + cac@6.7.14: {} + + callsites@3.1.0: {} + + chai@5.1.1: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.1 + deep-eql: 5.0.2 + loupe: 3.1.1 + pathval: 2.0.0 + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + check-error@2.1.1: {} + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + code-block-writer@13.0.2: {} + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + colorette@2.0.20: {} + + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + + commander@12.1.0: {} + + commondir@1.0.1: {} + + commonmark@0.28.1: + dependencies: + entities: 1.1.2 + mdurl: 1.0.1 + minimist: 1.2.8 + string.prototype.repeat: 0.2.0 + + concat-map@0.0.1: {} + + cross-spawn@7.0.3: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + dateformat@4.6.3: {} + + debug@4.3.5: + dependencies: + ms: 2.1.2 + + deep-eql@5.0.2: {} + + deep-is@0.1.4: {} + + delayed-stream@1.0.0: {} + + dir-glob@3.0.1: + dependencies: + path-type: 4.0.0 + + doctrine@3.0.0: + dependencies: + esutils: 2.0.3 + + eastasianwidth@0.2.0: {} + + emoji-regex@8.0.0: {} + + emoji-regex@9.2.2: {} + + end-of-stream@1.4.4: + dependencies: + once: 1.4.0 + + entities@1.1.2: {} + + esbuild@0.21.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.21.5 + '@esbuild/android-arm': 0.21.5 + '@esbuild/android-arm64': 0.21.5 + '@esbuild/android-x64': 0.21.5 + '@esbuild/darwin-arm64': 0.21.5 + '@esbuild/darwin-x64': 0.21.5 + '@esbuild/freebsd-arm64': 0.21.5 + '@esbuild/freebsd-x64': 0.21.5 + '@esbuild/linux-arm': 0.21.5 + '@esbuild/linux-arm64': 0.21.5 + '@esbuild/linux-ia32': 0.21.5 + '@esbuild/linux-loong64': 0.21.5 + '@esbuild/linux-mips64el': 0.21.5 + '@esbuild/linux-ppc64': 0.21.5 + '@esbuild/linux-riscv64': 0.21.5 + '@esbuild/linux-s390x': 0.21.5 + '@esbuild/linux-x64': 0.21.5 + '@esbuild/netbsd-x64': 0.21.5 + '@esbuild/openbsd-x64': 0.21.5 + '@esbuild/sunos-x64': 0.21.5 + '@esbuild/win32-arm64': 0.21.5 + '@esbuild/win32-ia32': 0.21.5 + '@esbuild/win32-x64': 0.21.5 + + escape-string-regexp@4.0.0: {} + + eslint-config-prettier@9.1.0(eslint@8.57.0): + dependencies: + eslint: 8.57.0 + + eslint-plugin-prettier@5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2): + dependencies: + eslint: 8.57.0 + prettier: 3.3.2 + prettier-linter-helpers: 1.0.0 + synckit: 0.9.1 + optionalDependencies: + '@types/eslint': 8.56.11 + eslint-config-prettier: 9.1.0(eslint@8.57.0) + + eslint-scope@7.2.2: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint@8.57.0: + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/regexpp': 4.11.0 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.57.0 + '@humanwhocodes/config-array': 0.11.14 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.5 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.6.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.24.0 + graphemer: 1.4.0 + ignore: 5.3.1 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.4 + strip-ansi: 6.0.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + + espree@9.6.1: + dependencies: + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) + eslint-visitor-keys: 3.4.3 + + esprima@4.0.1: {} + + esquery@1.6.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + estree-walker@2.0.2: {} + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.5 + + esutils@2.0.3: {} + + event-target-shim@5.0.1: {} + + events@3.3.0: {} + + execa@8.0.1: + dependencies: + cross-spawn: 7.0.3 + get-stream: 8.0.1 + human-signals: 5.0.0 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.3.0 + onetime: 6.0.0 + signal-exit: 4.1.0 + strip-final-newline: 3.0.0 + + fast-copy@3.0.2: {} + + fast-deep-equal@3.1.3: {} + + fast-diff@1.3.0: {} + + fast-glob@3.3.2: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.7 + + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + + fast-redact@3.5.0: {} + + fast-safe-stringify@2.1.1: {} + + fastq@1.17.1: + dependencies: + reusify: 1.0.4 + + file-entry-cache@6.0.1: + dependencies: + flat-cache: 3.2.0 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@3.2.0: + dependencies: + flatted: 3.3.1 + keyv: 4.5.4 + rimraf: 3.0.2 + + flatted@3.3.1: {} + + foreground-child@3.2.1: + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + + form-data@4.0.0: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.35 + + front-matter@4.0.2: + dependencies: + js-yaml: 3.14.1 + + fs-extra@11.2.0: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.1 + + fs.realpath@1.0.0: {} + + fsevents@2.3.3: + optional: true + + get-func-name@2.0.2: {} + + get-stream@8.0.1: {} + + get-tsconfig@4.7.6: + dependencies: + resolve-pkg-maps: 1.0.0 + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + + glob@10.4.5: + dependencies: + foreground-child: 3.2.1 + jackspeak: 3.4.3 + minimatch: 9.0.5 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 1.11.1 + + glob@11.0.0: + dependencies: + foreground-child: 3.2.1 + jackspeak: 4.0.1 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 2.0.0 + + glob@7.2.3: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + + globals@13.24.0: + dependencies: + type-fest: 0.20.2 + + globby@11.1.0: + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.2 + ignore: 5.3.1 + merge2: 1.4.1 + slash: 3.0.0 + + graceful-fs@4.2.11: {} + + graphemer@1.4.0: {} + + has-flag@4.0.0: {} + + help-me@5.0.0: {} + + human-signals@5.0.0: {} + + husky@9.1.1: {} + + ieee754@1.2.1: {} + + ignore@5.3.1: {} + + import-fresh@3.3.0: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + imurmurhash@0.1.4: {} + + inflight@1.0.6: + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + inherits@2.0.4: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + + is-path-inside@3.0.3: {} + + is-reference@1.2.1: + dependencies: + '@types/estree': 1.0.5 + + is-stream@3.0.0: {} + + isexe@2.0.0: {} + + jackspeak@3.4.3: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + jackspeak@4.0.1: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + joycon@3.1.1: {} + + js-yaml@3.14.1: + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + + js-yaml@4.1.0: + dependencies: + argparse: 2.0.1 + + json-buffer@3.0.1: {} + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + jsonfile@6.1.0: + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + + keyv@4.5.4: + dependencies: + json-buffer: 3.0.1 + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + lodash.merge@4.6.2: {} + + loupe@3.1.1: + dependencies: + get-func-name: 2.0.2 + + lru-cache@10.4.3: {} + + lru-cache@11.0.0: {} + + magic-string@0.30.10: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + marked@13.0.2: {} + + mdurl@1.0.1: {} + + merge-stream@2.0.0: {} + + merge2@1.4.1: {} + + micromatch@4.0.7: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + mimic-fn@4.0.0: {} + + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.11 + + minimatch@9.0.5: + dependencies: + brace-expansion: 2.0.1 + + minimist@1.2.8: {} + + minipass@7.1.2: {} + + mkdirp@3.0.1: {} + + ms@2.1.2: {} + + nanoid@3.3.7: {} + + natural-compare@1.4.0: {} + + node-fetch@2.7.0: + dependencies: + whatwg-url: 5.0.0 + + normalize-path@3.0.0: {} + + npm-run-path@5.3.0: + dependencies: + path-key: 4.0.0 + + on-exit-leak-free@2.1.2: {} + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + onchange@7.1.0: + dependencies: + '@blakeembrey/deque': 1.0.5 + '@blakeembrey/template': 1.1.0 + arg: 4.1.3 + chokidar: 3.6.0 + cross-spawn: 7.0.3 + ignore: 5.3.1 + tree-kill: 1.2.2 + + onetime@6.0.0: + dependencies: + mimic-fn: 4.0.0 + + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + package-json-from-dist@1.0.0: {} + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + path-browserify@1.0.1: {} + + path-exists@4.0.0: {} + + path-is-absolute@1.0.1: {} + + path-key@3.1.1: {} + + path-key@4.0.0: {} + + path-scurry@1.11.1: + dependencies: + lru-cache: 10.4.3 + minipass: 7.1.2 + + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.0 + minipass: 7.1.2 + + path-type@4.0.0: {} + + pathe@1.1.2: {} + + pathval@2.0.0: {} + + picocolors@1.0.1: {} + + picomatch@2.3.1: {} + + pino-abstract-transport@1.2.0: + dependencies: + readable-stream: 4.5.2 + split2: 4.2.0 + + pino-pretty@11.2.1: + dependencies: + colorette: 2.0.20 + dateformat: 4.6.3 + fast-copy: 3.0.2 + fast-safe-stringify: 2.1.1 + help-me: 5.0.0 + joycon: 3.1.1 + minimist: 1.2.8 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 1.2.0 + pump: 3.0.0 + readable-stream: 4.5.2 + secure-json-parse: 2.7.0 + sonic-boom: 4.0.1 + strip-json-comments: 3.1.1 + + pino-std-serializers@7.0.0: {} + + pino@9.3.1: + dependencies: + atomic-sleep: 1.0.0 + fast-redact: 3.5.0 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 1.2.0 + pino-std-serializers: 7.0.0 + process-warning: 3.0.0 + quick-format-unescaped: 4.0.4 + real-require: 0.2.0 + safe-stable-stringify: 2.4.3 + sonic-boom: 4.0.1 + thread-stream: 3.1.0 + + postcss@8.4.39: + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.1 + source-map-js: 1.2.0 + + prelude-ls@1.2.1: {} + + prettier-linter-helpers@1.0.0: + dependencies: + fast-diff: 1.3.0 + + prettier@3.3.2: {} + + process-warning@3.0.0: {} + + process@0.11.10: {} + + pump@3.0.0: + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + + punycode@2.3.1: {} + + queue-microtask@1.2.3: {} + + quick-format-unescaped@4.0.4: {} + + readable-stream@4.5.2: + dependencies: + abort-controller: 3.0.0 + buffer: 6.0.3 + events: 3.3.0 + process: 0.11.10 + string_decoder: 1.3.0 + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + + real-require@0.2.0: {} + + resolve-from@4.0.0: {} + + resolve-pkg-maps@1.0.0: {} + + retry@0.13.1: {} + + reusify@1.0.4: {} + + rimraf@3.0.2: + dependencies: + glob: 7.2.3 + + rimraf@5.0.9: + dependencies: + glob: 10.4.5 + + rollup@4.19.0: + dependencies: + '@types/estree': 1.0.5 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.19.0 + '@rollup/rollup-android-arm64': 4.19.0 + '@rollup/rollup-darwin-arm64': 4.19.0 + '@rollup/rollup-darwin-x64': 4.19.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.19.0 + '@rollup/rollup-linux-arm-musleabihf': 4.19.0 + '@rollup/rollup-linux-arm64-gnu': 4.19.0 + '@rollup/rollup-linux-arm64-musl': 4.19.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.19.0 + '@rollup/rollup-linux-riscv64-gnu': 4.19.0 + '@rollup/rollup-linux-s390x-gnu': 4.19.0 + '@rollup/rollup-linux-x64-gnu': 4.19.0 + '@rollup/rollup-linux-x64-musl': 4.19.0 + '@rollup/rollup-win32-arm64-msvc': 4.19.0 + '@rollup/rollup-win32-ia32-msvc': 4.19.0 + '@rollup/rollup-win32-x64-msvc': 4.19.0 + fsevents: 2.3.3 + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + safe-buffer@5.2.1: {} + + safe-stable-stringify@2.4.3: {} + + secure-json-parse@2.7.0: {} + + semver@7.6.3: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + siginfo@2.0.0: {} + + signal-exit@4.1.0: {} + + slash@3.0.0: {} + + sonic-boom@4.0.1: + dependencies: + atomic-sleep: 1.0.0 + + source-map-js@1.2.0: {} + + split2@4.2.0: {} + + sprintf-js@1.0.3: {} + + stackback@0.0.2: {} + + std-env@3.7.0: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + + string.prototype.repeat@0.2.0: {} + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.1.0: + dependencies: + ansi-regex: 6.0.1 + + strip-final-newline@3.0.0: {} + + strip-json-comments@3.1.1: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + synckit@0.9.1: + dependencies: + '@pkgr/core': 0.1.1 + tslib: 2.6.3 + + text-table@0.2.0: {} + + thread-stream@3.1.0: + dependencies: + real-require: 0.2.0 + + tinybench@2.8.0: {} + + tinypool@1.0.0: {} + + tinyrainbow@1.2.0: {} + + tinyspy@3.0.0: {} + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tr46@0.0.3: {} + + tree-kill@1.2.2: {} + + ts-api-utils@1.3.0(typescript@5.5.3): + dependencies: + typescript: 5.5.3 + + ts-morph@23.0.0: + dependencies: + '@ts-morph/common': 0.24.0 + code-block-writer: 13.0.2 + + tslib@2.6.3: {} + + tsx@4.16.2: + dependencies: + esbuild: 0.21.5 + get-tsconfig: 4.7.6 + optionalDependencies: + fsevents: 2.3.3 + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + + type-fest@0.20.2: {} + + typescript-eslint@7.17.0(eslint@8.57.0)(typescript@5.5.3): + dependencies: + '@typescript-eslint/eslint-plugin': 7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/parser': 7.17.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.3) + eslint: 8.57.0 + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + typescript@5.5.3: {} + + undici-types@5.26.5: {} + + universalify@2.0.1: {} + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + + vite-node@2.0.4(@types/node@20.14.11): + dependencies: + cac: 6.7.14 + debug: 4.3.5 + pathe: 1.1.2 + tinyrainbow: 1.2.0 + vite: 5.3.4(@types/node@20.14.11) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + + vite@5.3.4(@types/node@20.14.11): + dependencies: + esbuild: 0.21.5 + postcss: 8.4.39 + rollup: 4.19.0 + optionalDependencies: + '@types/node': 20.14.11 + fsevents: 2.3.3 + + vitest@2.0.4(@types/node@20.14.11): + dependencies: + '@ampproject/remapping': 2.3.0 + '@vitest/expect': 2.0.4 + '@vitest/pretty-format': 2.0.4 + '@vitest/runner': 2.0.4 + '@vitest/snapshot': 2.0.4 + '@vitest/spy': 2.0.4 + '@vitest/utils': 2.0.4 + chai: 5.1.1 + debug: 4.3.5 + execa: 8.0.1 + magic-string: 0.30.10 + pathe: 1.1.2 + std-env: 3.7.0 + tinybench: 2.8.0 + tinypool: 1.0.0 + tinyrainbow: 1.2.0 + vite: 5.3.4(@types/node@20.14.11) + vite-node: 2.0.4(@types/node@20.14.11) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 20.14.11 + transitivePeerDependencies: + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + + webidl-conversions@3.0.1: {} + + whatwg-url@5.0.0: + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + word-wrap@1.2.5: {} + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + + wrappy@1.0.2: {} + + yocto-queue@0.1.0: {} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts new file mode 100644 index 00000000000..100f19a5561 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts @@ -0,0 +1,63 @@ +import { + CreateOperationRule, + InlineDeclarationNameSetMessage, + NodeContext, + ParseForESLintResult, + RuleMessageKind, +} from '../types.js'; +import { RuleListener, getParserServices } from '@typescript-eslint/utils/eslint-utils'; +import { + convertToMorphNode, + findAllRenameableDeclarationsUnder, + findDeclaration, + getGlobalScope, + isInterfaceDeclarationNode, + isParseServiceWithTypeInfo, +} from '../../../utils/ast-utils.js'; + +import { RuleContext } from '@typescript-eslint/utils/ts-eslint'; +import { createOperationRuleListener } from '../../utils/azure-rule-utils.js'; +import { ignoreInlineDeclarationsInOperationGroup } from '../../../common/models/rules/rule-ids.js'; +import { ParserServicesWithTypeInformation } from '@typescript-eslint/typescript-estree'; +import { Scope } from '@typescript-eslint/scope-manager'; +import { getSettings } from '../../../utils/common-utils.js'; + +function getInlineDeclarationNameSet(service: ParserServicesWithTypeInformation, scope: Scope) { + const inlineDeclarationMap = new Map(); + const routes = findDeclaration('Routes', scope, isInterfaceDeclarationNode); + const moNode = convertToMorphNode(routes, service); + const result = findAllRenameableDeclarationsUnder(moNode, scope, service); + result.interfaces.forEach((i) => inlineDeclarationMap.set(i.getName(), { node: i, used: false })); + result.typeAliases.forEach((t) => inlineDeclarationMap.set(t.getName(), { node: t, used: false })); + result.enums.forEach((e) => inlineDeclarationMap.set(e.getName(), { node: e, used: false })); + return inlineDeclarationMap; +} + +const rule: CreateOperationRule = (baselineParsedResult: ParseForESLintResult | undefined) => { + if (!baselineParsedResult) + throw new Error(`ParseForESLintResult is required in ${ignoreInlineDeclarationsInOperationGroup} rule`); + const baselineService = baselineParsedResult.services; + if (!isParseServiceWithTypeInfo(baselineService)) { + throw new Error(`Failed to get ParserServicesWithTypeInformation. It indicates the parser configuration is wrong.`); + } + const baselineGlobalScope = getGlobalScope(baselineParsedResult.scopeManager); + const baselineInlineDeclarationNameSet = getInlineDeclarationNameSet(baselineService, baselineGlobalScope); + + return createOperationRuleListener( + ignoreInlineDeclarationsInOperationGroup, + (context: RuleContext): RuleListener => { + const currentService = getParserServices(context); + const currentGlobalScope = getGlobalScope(context.sourceCode.scopeManager); + const currentInlineDeclarationMap = getInlineDeclarationNameSet(currentService, currentGlobalScope); + const message: InlineDeclarationNameSetMessage = { + id: ignoreInlineDeclarationsInOperationGroup, + baseline: baselineInlineDeclarationNameSet, + current: currentInlineDeclarationMap, + kind: RuleMessageKind.InlineDeclarationNameSetMessage, + }; + getSettings(context).reportInlineDeclarationNameSetMessage(message); + return {}; + } + ); +}; +export default rule; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts new file mode 100644 index 00000000000..2f51bb1a65d --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts @@ -0,0 +1,46 @@ +import { RuleListener, RuleModule } from '@typescript-eslint/utils/eslint-utils'; + +import { ParserServices } from '@typescript-eslint/parser'; +import type { ScopeManager } from '@typescript-eslint/scope-manager'; +import { TSESTree } from '@typescript-eslint/utils'; +import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +import { EnumDeclaration, InterfaceDeclaration, Node, TypeAliasDeclaration } from 'ts-morph'; + +export interface ParseForESLintResult { + ast: TSESTree.Program & { + range?: [number, number]; + tokens?: TSESTree.Token[]; + comments?: TSESTree.Comment[]; + }; + services: ParserServices; + visitorKeys: VisitorKeys; + scopeManager: ScopeManager; +} + +export interface CreateOperationRule { + (baselineParsedResult: ParseForESLintResult | undefined): RuleModule<'default', readonly unknown[], RuleListener>; +} + +export interface RuleMessage { + id: string; + kind: RuleMessageKind; +} + +export enum RuleMessageKind { + InlineDeclarationNameSetMessage = 'InlineDeclarationNameSetMessage', +} + +export interface InlineDeclarationNameSetMessage extends RuleMessage { + baseline: Map; + current: Map; + kind: RuleMessageKind.InlineDeclarationNameSetMessage; +} + +export interface LinterSettings { + reportInlineDeclarationNameSetMessage(message: InlineDeclarationNameSetMessage): void; +} + +export interface NodeContext { + node: InterfaceDeclaration | TypeAliasDeclaration | EnumDeclaration; + used: boolean; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts new file mode 100644 index 00000000000..6612843e26b --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts @@ -0,0 +1,196 @@ +import * as parser from '@typescript-eslint/parser'; +import * as ruleIds from '../common/models/rules/rule-ids.js'; + +import { + InlineDeclarationNameSetMessage, + LinterSettings, + ParseForESLintResult, + RuleMessage, +} from './common/types.js'; +import { Renderer, marked } from 'marked'; +import { basename, join, posix, relative } from 'node:path'; +import { devConsolelog, toPosixPath } from '../utils/common-utils.js'; +import { exists, outputFile, readFile, remove } from 'fs-extra'; + +import { TSESLint } from '@typescript-eslint/utils'; +import ignoreInlineDeclarationsInOperationGroup from './common/rules/ignore-inline-declarations-in-operation-group.js'; +import { glob } from 'glob'; +import { logger } from '../logging/logger.js'; + +const tsconfig = ` +{ + "compilerOptions": { + "jsx": "preserve", + "target": "es5", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "lib": ["es2015", "es2017", "esnext"], + "experimentalDecorators": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + ], + "exclude": ["**/node_modules/**/*.*"] +} +`; + +interface SubProjectContext { + code: string; + relativeFilePath: string; +} +interface ProjectContext { + root: string; + baseline: SubProjectContext; + current: SubProjectContext; +} + +async function loadCodeFromApiView(path: string) { + const content = await readFile(path, { encoding: 'utf-8' }); + const markdown = content.toString(); + const codeBlocks: string[] = []; + const renderer = new Renderer(); + renderer.code = ({ text }) => { + codeBlocks.push(text); + return ''; + }; + marked(markdown, { renderer }); + if (codeBlocks.length !== 1) throw new Error(`Expected 1 code block, got ${codeBlocks.length} in "${path}".`); + + return codeBlocks[0]; +} + +async function prepareProject( + currentPackageFolder: string, + baselinePackageFolder: string, + tempFolder: string +): Promise { + const [currentCode, baselineCode] = await Promise.all([ + loadCodeFromApiView(currentPackageFolder), + loadCodeFromApiView(baselinePackageFolder), + ]); + + const relativeCurrentPath = join('current', 'review', 'index.ts'); + const relativeBaselinePath = join('baseline', 'review', 'index.ts'); + const currentPath = join(tempFolder, relativeCurrentPath); + const baselinePath = join(tempFolder, relativeBaselinePath); + const tsConfigPath = join(tempFolder, 'tsconfig.json'); + await Promise.all([ + outputFile(tsConfigPath, tsconfig, 'utf-8'), + outputFile(currentPath, currentCode, 'utf-8'), + outputFile(baselinePath, baselineCode, 'utf-8'), + ]); + return { + root: tempFolder, + baseline: { + code: baselineCode, + relativeFilePath: relativeBaselinePath, + }, + current: { + code: currentCode, + relativeFilePath: relativeCurrentPath, + }, + }; +} + +async function parseBaselinePackage(projectContext: ProjectContext): Promise { + const result = parser.parseForESLint(projectContext.baseline.code, { + comment: true, + tokens: true, + range: true, + loc: true, + project: './tsconfig.json', + tsconfigRootDir: projectContext.root, + filePath: projectContext.baseline.relativeFilePath, + }); + return result; +} + +async function detectBreakingChangesCore(projectContext: ProjectContext): Promise { + try { + const breakingChangeResults: RuleMessage[] = []; + const baselineParsed = await parseBaselinePackage(projectContext); + const linter = new TSESLint.Linter({ cwd: projectContext.root }); + // linter.defineRule(ruleIds.ignoreOperationGroupNameChanges, ignoreOperationGroupNameChangesRule(baselineParsed)); + linter.defineRule( + ruleIds.ignoreInlineDeclarationsInOperationGroup, + ignoreInlineDeclarationsInOperationGroup(baselineParsed) + ); + linter.defineParser('@typescript-eslint/parser', parser); + linter.verify( + projectContext.current.code, + { + rules: { + // [ruleIds.ignoreOperationGroupNameChanges]: [2], + [ruleIds.ignoreInlineDeclarationsInOperationGroup]: [2], + }, + parser: '@typescript-eslint/parser', + parserOptions: { + filePath: projectContext.current.relativeFilePath, + comment: true, + tokens: true, + range: true, + loc: true, + project: './tsconfig.json', + tsconfigRootDir: projectContext.root, + }, + settings: ({ + reportInlineDeclarationNameSetMessage: (message: InlineDeclarationNameSetMessage) => { + breakingChangeResults.push(message); + }, + }) as any, + }, + projectContext.current.relativeFilePath + ); + return breakingChangeResults; + } catch (err) { + logger.error(`Failed to detect breaking changes due to ${(err as Error).stack ?? err}`); + return undefined; + } +} + +export async function detectBreakingChangesBetweenPackages( + baselinePackageFolder: string | undefined, + currentPackageFolder: string | undefined, + tempFolder: string | undefined, + cleanUpAtTheEnd: boolean +): Promise> { + if (!baselinePackageFolder) throw new Error(`Failed to use undefined or null baseline package folder`); + + if (!currentPackageFolder) throw new Error(`Failed to use undefined or null current package folder`); + + if (!tempFolder) throw new Error(`Failed to use undefined or null temp folder`); + + try { + baselinePackageFolder = toPosixPath(baselinePackageFolder); + currentPackageFolder = toPosixPath(currentPackageFolder); + tempFolder = toPosixPath(tempFolder); + + const apiViewPathPattern = posix.join(baselinePackageFolder, 'review/*.api.md'); + const baselineApiViewPaths = await glob(apiViewPathPattern); + const messsagesPromises = baselineApiViewPaths.map(async (baselineApiViewPath) => { + const relativeApiViewPath = relative(baselinePackageFolder!, baselineApiViewPath); + const apiViewBasename = basename(relativeApiViewPath); + const currentApiViewPath = join(currentPackageFolder!, relativeApiViewPath); + if (!(await exists(currentApiViewPath))) throw new Error(`Failed to find API view: ${currentApiViewPath}`); + + const projectContext = await prepareProject(currentApiViewPath, baselineApiViewPath, tempFolder!); + const messages = await detectBreakingChangesCore(projectContext); + return { name: apiViewBasename, messages }; + }); + const messagesMap = new Map(); + const promises = messsagesPromises.map(async (p) => { + const result = await p; + messagesMap.set(result.name, result.messages); + }); + await Promise.all(promises); + return messagesMap; + } finally { + if (cleanUpAtTheEnd) { + if (await exists(tempFolder)) { + await remove(tempFolder); + } + } + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts new file mode 100644 index 00000000000..70b786d12ed --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts @@ -0,0 +1 @@ +// TODO diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts new file mode 100644 index 00000000000..a353cb986eb --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts @@ -0,0 +1,33 @@ +import { ESLintUtils } from '@typescript-eslint/utils'; +import { RuleContext } from '@typescript-eslint/utils/ts-eslint'; +import { RuleListener } from '@typescript-eslint/utils/eslint-utils'; +import { ruleDescriptions } from '../../common/models/rules/rule-descriptions.js'; + +// TODO: provide correct endpint +const endpoint = 'https://a.b.c/rules'; +const createRule = ESLintUtils.RuleCreator((name) => `${endpoint}/${name}`); + +export function createOperationRuleListener( + id: string, + createListener: (context: RuleContext) => RuleListener +) { + const messages = { default: '' }; + const defaultOptions: ReadonlyArray = []; + const rule = createRule({ + name: id, + meta: { + docs: { + description: ruleDescriptions[id], + }, + messages, + schema: [], + type: 'problem', + }, + defaultOptions, + create(context) { + const listener = createListener(context); + return listener; + }, + }); + return rule; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/cli.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/cli.ts new file mode 100644 index 00000000000..3b3bb99f333 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/cli.ts @@ -0,0 +1,34 @@ +import { InlineDeclarationNameSetMessage } from './azure/common/types'; +import { detectBreakingChangesBetweenPackages } from './azure/detect-breaking-changes'; +import { devConsolelog } from './utils/common-utils'; +import { program } from 'commander'; + +program + .requiredOption('--baseline-package-folder ', 'baseline package folder') + .requiredOption('--current-package-folder ', 'current package folder') + .requiredOption('--temp-folder ', 'folder to store temp files') + .requiredOption('--cleanup-at-the-end', 'cleanup temp folder at the end') + .parse(); +const options = program.opts(); + +async function run() { + const messageMap = await detectBreakingChangesBetweenPackages( + options.baselinePackageFolder, + options.currentPackageFolder, + options.tempFolder, + options.cleanUpAtTheEnd ?? true + ); + + messageMap.forEach((messages, apiView) => { + devConsolelog( + 'current', + messages?.map((m) => (m as InlineDeclarationNameSetMessage).current.keys()) + ); + devConsolelog( + 'baseline', + messages?.map((m) => (m as InlineDeclarationNameSetMessage).baseline.keys()) + ); + }); +} + +run(); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts new file mode 100644 index 00000000000..0c53c834de2 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts @@ -0,0 +1,7 @@ +import { + ignoreInlineDeclarationsInOperationGroup +} from './rule-ids.js'; + +export const ruleDescriptions: { [ruleId: string]: string } = { + [ignoreInlineDeclarationsInOperationGroup]: 'Ignore inline types in routes', +}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts new file mode 100644 index 00000000000..879e78f9386 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts @@ -0,0 +1 @@ +export const ignoreInlineDeclarationsInOperationGroup = 'ignore-inline-declarations-in-operation-group' \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/index.ts new file mode 100644 index 00000000000..142f97ba5ed --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/index.ts @@ -0,0 +1,2 @@ +export * from './azure/detect-breaking-changes'; +export * from './azure/common/types'; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts new file mode 100644 index 00000000000..49f3e207437 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts @@ -0,0 +1,24 @@ +import { pino } from 'pino'; + +const pretty = require('pino-pretty'); + +const devStream = pretty({ + colorize: false, + levelFirst: true, + translateTime: 'yyyy-dd-mm, h:MM:ss TT', + // destination: 'logs/app.log', + append: false, +}); + +const stream = pretty({ + colorize: false, + levelFirst: true, + translateTime: 'yyyy-dd-mm, h:MM:ss TT', + // destination: 'logs/app.log', + append: true, +}); + +// TODO: make logger configurable +export const devFileLogger = pino({}, devStream); + +export const logger = pino({}, stream); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts new file mode 100644 index 00000000000..7f3ac892eaa --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts @@ -0,0 +1,46 @@ +import { describe, expect, test } from 'vitest'; +import { mkdirp, pathExists } from 'fs-extra'; + +import { detectBreakingChangesBetweenPackages } from '../azure/detect-breaking-changes.js'; +import { join } from 'node:path'; + +function getFormattedDate(): string { + const today = new Date(); + + const year = today.getFullYear(); + const month = String(today.getMonth() + 1).padStart(2, '0'); + const day = String(today.getDate()).padStart(2, '0'); + + return `${year}-${month}-${day}`; +} + +async function createTempFolder(tempFolderPrefix: string): Promise { + const maxRetry = 1000; + let tempFolder = ''; + for (let i = 0; i < maxRetry; i++) { + const tempFolder = `${tempFolderPrefix}-${Math.round(Math.random() * 1000)}`; + if (await pathExists(tempFolder)) continue; + + await mkdirp(tempFolder); + return tempFolder; + } + throw new Error(`Failed to create temp folder at "${tempFolder}" for ${maxRetry} times`); +} + +describe('detect rest level client breaking changes', async () => { + test('should ignore operation rename', async () => { + const testCaseDir = '../../misc/test-cases/rest-level-client-to-rest-level-client/'; + const currentPackageFolder = join(__dirname, testCaseDir, 'current-package'); + const baselinePackageFolder = join(__dirname, testCaseDir, 'baseline-package'); + const date = getFormattedDate(); + const tempFolder = await createTempFolder(`./tmp/temp-${date}`); + const messagesMap = await detectBreakingChangesBetweenPackages( + baselinePackageFolder, + currentPackageFolder, + tempFolder, + true + ); + expect(messagesMap.size).toBe(1); + // TODO: add more checks + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts new file mode 100644 index 00000000000..d1ebec2ad8c --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts @@ -0,0 +1,161 @@ +import { ParserServices, ParserServicesWithTypeInformation } from '@typescript-eslint/typescript-estree'; +import { Scope, ScopeManager } from '@typescript-eslint/scope-manager'; + +import { TSESTree } from '@typescript-eslint/types'; +import { findVariable } from '@typescript-eslint/utils/ast-utils'; +import { logger } from '../logging/logger.js'; +import { + InterfaceDeclaration, + TypeAliasDeclaration, + Node, + createWrappedNode, + TypeReferenceNode, + SyntaxKind, + EnumDeclaration, +} from 'ts-morph'; + +function tryFindDeclaration( + name: string, + scope: Scope, + typeGuard: (node: TSESTree.Node) => node is TNode, + shouldLog: boolean = true +): TNode | undefined { + const variable = findVariable(scope as Scope, name); + const node = variable?.defs?.[0]?.node; + if (!node) { + if (shouldLog) logger.warn(`Failed to find ${name}'s declaration`); + return undefined; + } + if (!typeGuard(node)) { + if (shouldLog) logger.warn(`Found ${name}'s declaration but with another node type "${node.type}"`); + return undefined; + } + return node; +} + +function isTypeAliasDeclarationNode(node: TSESTree.Node): node is TSESTree.TSTypeAliasDeclaration { + return node.type === TSESTree.AST_NODE_TYPES.TSTypeAliasDeclaration; +} + +function isEnumDeclarationNode(node: TSESTree.Node): node is TSESTree.TSEnumDeclaration { + return node.type === TSESTree.AST_NODE_TYPES.TSEnumDeclaration; +} + +function getTypeReferencesUnder(node: Node) { + const types: TypeReferenceNode[] = []; + if (!node) return types; + node.forEachChild((child) => { + if (Node.isTypeReference(child)) { + types.push(child); + } + const childTypeAliases = getTypeReferencesUnder(child); + types.push(...childTypeAliases); + }); + return types; +} + +function handleTypeReference< + TEsDeclaration extends TSESTree.TSInterfaceDeclaration | TSESTree.TSTypeAliasDeclaration | TSESTree.TSEnumDeclaration, + TDeclaration extends TypeAliasDeclaration | InterfaceDeclaration | EnumDeclaration, +>( + r: TypeReferenceNode, + scope: Scope, + service: ParserServicesWithTypeInformation, + list: TDeclaration[], + findNext: (node: Node) => void, + kind: SyntaxKind, + typeGuardForEs: (node: TSESTree.Node) => node is TEsDeclaration, + typeGuardForMo: (node: Node) => node is TDeclaration +) { + const esDeclaration = tryFindDeclaration(r.getText(), scope, typeGuardForEs, false); + if (!esDeclaration) return; + const declaration = convertToMorphNode(esDeclaration, service).asKindOrThrow(kind); + if (!typeGuardForMo(declaration)) { + throw new Error(`Failed to find expected type from reference ${r.getText()}`); + } + list.push(declaration); + findNext(declaration); +} + +export function getGlobalScope(scopeManager: ScopeManager | null): Scope { + const globalScope = scopeManager?.globalScope; + if (!globalScope) throw new Error(`Failed to find global scope`); + return globalScope; +} + +export function findDeclaration( + name: string, + scope: Scope, + typeGuard: (node: TSESTree.Node) => node is TNode +): TNode { + const node = tryFindDeclaration(name, scope, typeGuard); + if (!node) throw new Error(`Failed to find "${name}"`); + return node; +} + +export function isParseServiceWithTypeInfo(service: ParserServices): service is ParserServicesWithTypeInformation { + return service.program !== null; +} + +export function isInterfaceDeclarationNode(node: TSESTree.Node): node is TSESTree.TSInterfaceDeclaration { + return node.type === TSESTree.AST_NODE_TYPES.TSInterfaceDeclaration; +} + +export function convertToMorphNode(node: TSESTree.Node, service: ParserServicesWithTypeInformation) { + const tsNode = service.esTreeNodeToTSNodeMap.get(node); + const typeChecker = service.program.getTypeChecker(); + const moNode = createWrappedNode(tsNode, { typeChecker }); + return moNode; +} + +export function findAllRenameableDeclarationsUnder( + node: Node, + scope: Scope, + service: ParserServicesWithTypeInformation +): { interfaces: InterfaceDeclaration[]; typeAliases: TypeAliasDeclaration[]; enums: EnumDeclaration[] } { + const interfaces: InterfaceDeclaration[] = []; + const typeAliases: TypeAliasDeclaration[] = []; + const enums: EnumDeclaration[] = []; + if (!node) return { interfaces, typeAliases, enums }; + const findNext = (node: Node) => { + const result = findAllRenameableDeclarationsUnder(node, scope, service); + interfaces.push(...result.interfaces); + typeAliases.push(...result.typeAliases); + enums.push(...result.enums); + }; + + const references = getTypeReferencesUnder(node); + references.forEach((r) => { + handleTypeReference( + r, + scope, + service, + interfaces, + findNext, + SyntaxKind.InterfaceDeclaration, + isInterfaceDeclarationNode, + Node.isInterfaceDeclaration + ); + handleTypeReference( + r, + scope, + service, + typeAliases, + findNext, + SyntaxKind.TypeAliasDeclaration, + isTypeAliasDeclarationNode, + Node.isTypeAliasDeclaration + ); + handleTypeReference( + r, + scope, + service, + enums, + findNext, + SyntaxKind.EnumDeclaration, + isEnumDeclarationNode, + Node.isEnumDeclaration + ); + }); + return { interfaces, typeAliases, enums }; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts new file mode 100644 index 00000000000..d6f25ac56ea --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts @@ -0,0 +1,24 @@ +import { LinterSettings } from '../azure/common/types.js'; +import { RuleContext } from '@typescript-eslint/utils/ts-eslint'; +import path from 'path'; +import util from 'util'; + +// IMPORTANT: dev with chakrounanas.turbo-console-log vscode extension +export function devConsolelog(title?: any, ...optionalParams: any[]): void { + const start = '💎💎💎💎'; + const end = '📍📍📍📍'; + const body = util.inspect(optionalParams, { depth: null, colors: true }); + console.log(start, 'START:', title, start); + console.log(body); + console.log(end, 'END :', title, end); + console.log(); +} + +export function getSettings(context: RuleContext) { + return (context.settings as any as LinterSettings)!; +} + +export function toPosixPath(winPath: string) { + const posixPath = winPath.split(path.sep).join(path.posix.sep); + return posixPath; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json new file mode 100644 index 00000000000..ca215c5c9cf --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json @@ -0,0 +1,105 @@ +{ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig to read more about this file */ + /* Projects */ + // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ + // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ + /* Language and Environment */ + "target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + // "jsx": "preserve", /* Specify what JSX code is generated. */ + // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ + // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ + // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ + // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ + /* Modules */ + "module": "NodeNext", /* Specify what module code is generated. */ + "rootDir": ".", /* Specify the root folder within your source files. */ + "moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ + // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ + // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ + // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ + "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ + // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ + /* JavaScript Support */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ + /* Emit */ + "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + "declarationMap": true, /* Create sourcemaps for d.ts files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ + "outDir": "dist", /* Specify an output folder for all emitted files. */ + // "removeComments": true, /* Disable emitting comments. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ + // "newLine": "crlf", /* Set the newline character for emitting files. */ + // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ + // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ + // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ + /* Interop Constraints */ + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ + // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ + // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ + "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + /* Type Checking */ + "strict": true, /* Enable all strict type-checking options. */ + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ + /* Completeness */ + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ + "skipLibCheck": true, /* Skip type checking all .d.ts files. */ + "typeRoots": ["./node_modules/@types", "./dist/src"], + + }, + "exclude": ["**/tests/**/cases/**"], + "include": ["src/**/*.ts"] +} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/vitest.config.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/vitest.config.ts new file mode 100644 index 00000000000..8eccd5a5784 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/vitest.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + exclude: ['misc/**', 'dist/**', 'node_modules/**'], + }, +}); From ee3c307ea0f6ff5a9320f9d324ebe4af6743d15b Mon Sep 17 00:00:00 2001 From: wanl Date: Tue, 6 Aug 2024 23:53:46 +0800 Subject: [PATCH 13/35] Removed unused file --- .../src/cli.ts | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/cli.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/cli.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/cli.ts deleted file mode 100644 index 3b3bb99f333..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/cli.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { InlineDeclarationNameSetMessage } from './azure/common/types'; -import { detectBreakingChangesBetweenPackages } from './azure/detect-breaking-changes'; -import { devConsolelog } from './utils/common-utils'; -import { program } from 'commander'; - -program - .requiredOption('--baseline-package-folder ', 'baseline package folder') - .requiredOption('--current-package-folder ', 'current package folder') - .requiredOption('--temp-folder ', 'folder to store temp files') - .requiredOption('--cleanup-at-the-end', 'cleanup temp folder at the end') - .parse(); -const options = program.opts(); - -async function run() { - const messageMap = await detectBreakingChangesBetweenPackages( - options.baselinePackageFolder, - options.currentPackageFolder, - options.tempFolder, - options.cleanUpAtTheEnd ?? true - ); - - messageMap.forEach((messages, apiView) => { - devConsolelog( - 'current', - messages?.map((m) => (m as InlineDeclarationNameSetMessage).current.keys()) - ); - devConsolelog( - 'baseline', - messages?.map((m) => (m as InlineDeclarationNameSetMessage).baseline.keys()) - ); - }); -} - -run(); From d5b7d94943a16e899565e67eb1238c6828c6f5f4 Mon Sep 17 00:00:00 2001 From: wanl Date: Wed, 7 Aug 2024 08:46:46 +0800 Subject: [PATCH 14/35] Updated CI --- tools/js-sdk-release-tools/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/js-sdk-release-tools/ci.yml b/tools/js-sdk-release-tools/ci.yml index 3ef4028074a..c2158073ad9 100644 --- a/tools/js-sdk-release-tools/ci.yml +++ b/tools/js-sdk-release-tools/ci.yml @@ -52,8 +52,8 @@ extends: displayName: 'Install Node.js' - script: | - npm install:all - displayName: 'npm install:all' + npm run install:all + displayName: 'npm run install:all' workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: | From d91f362da5637c59cab7071aba55a1f4dd7f02b8 Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 8 Aug 2024 08:12:05 +0800 Subject: [PATCH 15/35] Cleanup test files --- .../latest-package/CHANGELOG.md | 15 - .../latest-package/LICENSE | 21 - .../latest-package/README.md | 109 -- .../latest-package/_meta.json | 8 - .../latest-package/api-extractor.json | 31 - .../latest-package/assets.json | 6 - .../latest-package/package.json | 118 -- .../review/arm-networkanalytics.api.md | 761 -------- .../latest-package/sample.env | 4 - .../dataProductsAddUserRoleSample.d.ts | 2 - .../dataProductsAddUserRoleSample.d.ts.map | 1 - .../dataProductsAddUserRoleSample.js | 70 - .../dataProductsAddUserRoleSample.js.map | 1 - .../dataProductsAddUserRoleSample.ts | 87 - .../dataProductsCatalogsGetSample.d.ts | 2 - .../dataProductsCatalogsGetSample.d.ts.map | 1 - .../dataProductsCatalogsGetSample.js | 52 - .../dataProductsCatalogsGetSample.js.map | 1 - .../dataProductsCatalogsGetSample.ts | 58 - ...uctsCatalogsListByResourceGroupSample.d.ts | 2 - ...CatalogsListByResourceGroupSample.d.ts.map | 1 - ...oductsCatalogsListByResourceGroupSample.js | 58 - ...tsCatalogsListByResourceGroupSample.js.map | 1 - ...oductsCatalogsListByResourceGroupSample.ts | 68 - ...ductsCatalogsListBySubscriptionSample.d.ts | 2 - ...sCatalogsListBySubscriptionSample.d.ts.map | 1 - ...roductsCatalogsListBySubscriptionSample.js | 56 - ...ctsCatalogsListBySubscriptionSample.js.map | 1 - ...roductsCatalogsListBySubscriptionSample.ts | 60 - .../samples-dev/dataProductsCreateSample.d.ts | 2 - .../dataProductsCreateSample.d.ts.map | 1 - .../samples-dev/dataProductsCreateSample.js | 109 -- .../dataProductsCreateSample.js.map | 1 - .../samples-dev/dataProductsCreateSample.ts | 127 -- .../samples-dev/dataProductsDeleteSample.d.ts | 2 - .../dataProductsDeleteSample.d.ts.map | 1 - .../samples-dev/dataProductsDeleteSample.js | 54 - .../dataProductsDeleteSample.js.map | 1 - .../samples-dev/dataProductsDeleteSample.ts | 66 - ...sGenerateStorageAccountSasTokenSample.d.ts | 2 - ...erateStorageAccountSasTokenSample.d.ts.map | 1 - ...ctsGenerateStorageAccountSasTokenSample.js | 64 - ...enerateStorageAccountSasTokenSample.js.map | 1 - ...ctsGenerateStorageAccountSasTokenSample.ts | 81 - .../samples-dev/dataProductsGetSample.d.ts | 2 - .../dataProductsGetSample.d.ts.map | 1 - .../samples-dev/dataProductsGetSample.js | 54 - .../samples-dev/dataProductsGetSample.js.map | 1 - .../samples-dev/dataProductsGetSample.ts | 66 - ...dataProductsListByResourceGroupSample.d.ts | 2 - ...ProductsListByResourceGroupSample.d.ts.map | 1 - .../dataProductsListByResourceGroupSample.js | 58 - ...taProductsListByResourceGroupSample.js.map | 1 - .../dataProductsListByResourceGroupSample.ts | 68 - .../dataProductsListBySubscriptionSample.d.ts | 2 - ...aProductsListBySubscriptionSample.d.ts.map | 1 - .../dataProductsListBySubscriptionSample.js | 56 - ...ataProductsListBySubscriptionSample.js.map | 1 - .../dataProductsListBySubscriptionSample.ts | 60 - ...ataProductsListRolesAssignmentsSample.d.ts | 2 - ...roductsListRolesAssignmentsSample.d.ts.map | 1 - .../dataProductsListRolesAssignmentsSample.js | 56 - ...aProductsListRolesAssignmentsSample.js.map | 1 - .../dataProductsListRolesAssignmentsSample.ts | 70 - .../dataProductsRemoveUserRoleSample.d.ts | 2 - .../dataProductsRemoveUserRoleSample.d.ts.map | 1 - .../dataProductsRemoveUserRoleSample.js | 72 - .../dataProductsRemoveUserRoleSample.js.map | 1 - .../dataProductsRemoveUserRoleSample.ts | 89 - .../dataProductsRotateKeySample.d.ts | 2 - .../dataProductsRotateKeySample.d.ts.map | 1 - .../dataProductsRotateKeySample.js | 60 - .../dataProductsRotateKeySample.js.map | 1 - .../dataProductsRotateKeySample.ts | 77 - .../samples-dev/dataProductsUpdateSample.d.ts | 2 - .../dataProductsUpdateSample.d.ts.map | 1 - .../samples-dev/dataProductsUpdateSample.js | 71 - .../dataProductsUpdateSample.js.map | 1 - .../samples-dev/dataProductsUpdateSample.ts | 88 - .../samples-dev/dataTypesCreateSample.d.ts | 2 - .../dataTypesCreateSample.d.ts.map | 1 - .../samples-dev/dataTypesCreateSample.js | 66 - .../samples-dev/dataTypesCreateSample.js.map | 1 - .../samples-dev/dataTypesCreateSample.ts | 85 - .../dataTypesDeleteDataSample.d.ts | 2 - .../dataTypesDeleteDataSample.d.ts.map | 1 - .../samples-dev/dataTypesDeleteDataSample.js | 58 - .../dataTypesDeleteDataSample.js.map | 1 - .../samples-dev/dataTypesDeleteDataSample.ts | 74 - .../samples-dev/dataTypesDeleteSample.d.ts | 2 - .../dataTypesDeleteSample.d.ts.map | 1 - .../samples-dev/dataTypesDeleteSample.js | 56 - .../samples-dev/dataTypesDeleteSample.js.map | 1 - .../samples-dev/dataTypesDeleteSample.ts | 70 - ...enerateStorageContainerSasTokenSample.d.ts | 2 - ...ateStorageContainerSasTokenSample.d.ts.map | 1 - ...sGenerateStorageContainerSasTokenSample.js | 66 - ...erateStorageContainerSasTokenSample.js.map | 1 - ...sGenerateStorageContainerSasTokenSample.ts | 85 - .../samples-dev/dataTypesGetSample.d.ts | 2 - .../samples-dev/dataTypesGetSample.d.ts.map | 1 - .../samples-dev/dataTypesGetSample.js | 56 - .../samples-dev/dataTypesGetSample.js.map | 1 - .../samples-dev/dataTypesGetSample.ts | 70 - .../dataTypesListByDataProductSample.d.ts | 2 - .../dataTypesListByDataProductSample.d.ts.map | 1 - .../dataTypesListByDataProductSample.js | 60 - .../dataTypesListByDataProductSample.js.map | 1 - .../dataTypesListByDataProductSample.ts | 72 - .../samples-dev/dataTypesUpdateSample.d.ts | 2 - .../dataTypesUpdateSample.d.ts.map | 1 - .../samples-dev/dataTypesUpdateSample.js | 65 - .../samples-dev/dataTypesUpdateSample.js.map | 1 - .../samples-dev/dataTypesUpdateSample.ts | 84 - .../samples-dev/operationsListSample.d.ts | 2 - .../samples-dev/operationsListSample.d.ts.map | 1 - .../samples-dev/operationsListSample.js | 56 - .../samples-dev/operationsListSample.js.map | 1 - .../samples-dev/operationsListSample.ts | 60 - .../samples/v1/javascript/README.md | 92 - .../dataProductsAddUserRoleSample.js | 72 - .../dataProductsCatalogsGetSample.js | 54 - ...oductsCatalogsListByResourceGroupSample.js | 60 - ...roductsCatalogsListBySubscriptionSample.js | 56 - .../v1/javascript/dataProductsCreateSample.js | 120 -- .../v1/javascript/dataProductsDeleteSample.js | 56 - ...ctsGenerateStorageAccountSasTokenSample.js | 74 - .../v1/javascript/dataProductsGetSample.js | 56 - .../dataProductsListByResourceGroupSample.js | 60 - .../dataProductsListBySubscriptionSample.js | 56 - .../dataProductsListRolesAssignmentsSample.js | 66 - .../dataProductsRemoveUserRoleSample.js | 74 - .../javascript/dataProductsRotateKeySample.js | 62 - .../v1/javascript/dataProductsUpdateSample.js | 82 - .../v1/javascript/dataTypesCreateSample.js | 78 - .../javascript/dataTypesDeleteDataSample.js | 70 - .../v1/javascript/dataTypesDeleteSample.js | 66 - ...sGenerateStorageContainerSasTokenSample.js | 78 - .../v1/javascript/dataTypesGetSample.js | 58 - .../dataTypesListByDataProductSample.js | 62 - .../v1/javascript/dataTypesUpdateSample.js | 77 - .../v1/javascript/operationsListSample.js | 56 - .../samples/v1/javascript/package.json | 32 - .../samples/v1/javascript/sample.env | 4 - .../samples/v1/typescript/README.md | 105 -- .../samples/v1/typescript/package.json | 41 - .../samples/v1/typescript/sample.env | 4 - .../src/dataProductsAddUserRoleSample.d.ts | 2 - .../dataProductsAddUserRoleSample.d.ts.map | 1 - .../src/dataProductsAddUserRoleSample.js | 70 - .../src/dataProductsAddUserRoleSample.js.map | 1 - .../src/dataProductsAddUserRoleSample.ts | 87 - .../src/dataProductsCatalogsGetSample.d.ts | 2 - .../dataProductsCatalogsGetSample.d.ts.map | 1 - .../src/dataProductsCatalogsGetSample.js | 52 - .../src/dataProductsCatalogsGetSample.js.map | 1 - .../src/dataProductsCatalogsGetSample.ts | 58 - ...uctsCatalogsListByResourceGroupSample.d.ts | 2 - ...CatalogsListByResourceGroupSample.d.ts.map | 1 - ...oductsCatalogsListByResourceGroupSample.js | 58 - ...tsCatalogsListByResourceGroupSample.js.map | 1 - ...oductsCatalogsListByResourceGroupSample.ts | 68 - ...ductsCatalogsListBySubscriptionSample.d.ts | 2 - ...sCatalogsListBySubscriptionSample.d.ts.map | 1 - ...roductsCatalogsListBySubscriptionSample.js | 56 - ...ctsCatalogsListBySubscriptionSample.js.map | 1 - ...roductsCatalogsListBySubscriptionSample.ts | 60 - .../src/dataProductsCreateSample.d.ts | 2 - .../src/dataProductsCreateSample.d.ts.map | 1 - .../src/dataProductsCreateSample.js | 109 -- .../src/dataProductsCreateSample.js.map | 1 - .../src/dataProductsCreateSample.ts | 127 -- .../src/dataProductsDeleteSample.d.ts | 2 - .../src/dataProductsDeleteSample.d.ts.map | 1 - .../src/dataProductsDeleteSample.js | 54 - .../src/dataProductsDeleteSample.js.map | 1 - .../src/dataProductsDeleteSample.ts | 66 - ...sGenerateStorageAccountSasTokenSample.d.ts | 2 - ...erateStorageAccountSasTokenSample.d.ts.map | 1 - ...ctsGenerateStorageAccountSasTokenSample.js | 64 - ...enerateStorageAccountSasTokenSample.js.map | 1 - ...ctsGenerateStorageAccountSasTokenSample.ts | 81 - .../typescript/src/dataProductsGetSample.d.ts | 2 - .../src/dataProductsGetSample.d.ts.map | 1 - .../typescript/src/dataProductsGetSample.js | 54 - .../src/dataProductsGetSample.js.map | 1 - .../typescript/src/dataProductsGetSample.ts | 66 - ...dataProductsListByResourceGroupSample.d.ts | 2 - ...ProductsListByResourceGroupSample.d.ts.map | 1 - .../dataProductsListByResourceGroupSample.js | 58 - ...taProductsListByResourceGroupSample.js.map | 1 - .../dataProductsListByResourceGroupSample.ts | 68 - .../dataProductsListBySubscriptionSample.d.ts | 2 - ...aProductsListBySubscriptionSample.d.ts.map | 1 - .../dataProductsListBySubscriptionSample.js | 56 - ...ataProductsListBySubscriptionSample.js.map | 1 - .../dataProductsListBySubscriptionSample.ts | 60 - ...ataProductsListRolesAssignmentsSample.d.ts | 2 - ...roductsListRolesAssignmentsSample.d.ts.map | 1 - .../dataProductsListRolesAssignmentsSample.js | 56 - ...aProductsListRolesAssignmentsSample.js.map | 1 - .../dataProductsListRolesAssignmentsSample.ts | 70 - .../src/dataProductsRemoveUserRoleSample.d.ts | 2 - .../dataProductsRemoveUserRoleSample.d.ts.map | 1 - .../src/dataProductsRemoveUserRoleSample.js | 72 - .../dataProductsRemoveUserRoleSample.js.map | 1 - .../src/dataProductsRemoveUserRoleSample.ts | 89 - .../src/dataProductsRotateKeySample.d.ts | 2 - .../src/dataProductsRotateKeySample.d.ts.map | 1 - .../src/dataProductsRotateKeySample.js | 60 - .../src/dataProductsRotateKeySample.js.map | 1 - .../src/dataProductsRotateKeySample.ts | 77 - .../src/dataProductsUpdateSample.d.ts | 2 - .../src/dataProductsUpdateSample.d.ts.map | 1 - .../src/dataProductsUpdateSample.js | 71 - .../src/dataProductsUpdateSample.js.map | 1 - .../src/dataProductsUpdateSample.ts | 88 - .../typescript/src/dataTypesCreateSample.d.ts | 2 - .../src/dataTypesCreateSample.d.ts.map | 1 - .../typescript/src/dataTypesCreateSample.js | 66 - .../src/dataTypesCreateSample.js.map | 1 - .../typescript/src/dataTypesCreateSample.ts | 85 - .../src/dataTypesDeleteDataSample.d.ts | 2 - .../src/dataTypesDeleteDataSample.d.ts.map | 1 - .../src/dataTypesDeleteDataSample.js | 58 - .../src/dataTypesDeleteDataSample.js.map | 1 - .../src/dataTypesDeleteDataSample.ts | 74 - .../typescript/src/dataTypesDeleteSample.d.ts | 2 - .../src/dataTypesDeleteSample.d.ts.map | 1 - .../typescript/src/dataTypesDeleteSample.js | 56 - .../src/dataTypesDeleteSample.js.map | 1 - .../typescript/src/dataTypesDeleteSample.ts | 70 - ...enerateStorageContainerSasTokenSample.d.ts | 2 - ...ateStorageContainerSasTokenSample.d.ts.map | 1 - ...sGenerateStorageContainerSasTokenSample.js | 66 - ...erateStorageContainerSasTokenSample.js.map | 1 - ...sGenerateStorageContainerSasTokenSample.ts | 85 - .../v1/typescript/src/dataTypesGetSample.d.ts | 2 - .../src/dataTypesGetSample.d.ts.map | 1 - .../v1/typescript/src/dataTypesGetSample.js | 56 - .../typescript/src/dataTypesGetSample.js.map | 1 - .../v1/typescript/src/dataTypesGetSample.ts | 70 - .../src/dataTypesListByDataProductSample.d.ts | 2 - .../dataTypesListByDataProductSample.d.ts.map | 1 - .../src/dataTypesListByDataProductSample.js | 60 - .../dataTypesListByDataProductSample.js.map | 1 - .../src/dataTypesListByDataProductSample.ts | 72 - .../typescript/src/dataTypesUpdateSample.d.ts | 2 - .../src/dataTypesUpdateSample.d.ts.map | 1 - .../typescript/src/dataTypesUpdateSample.js | 65 - .../src/dataTypesUpdateSample.js.map | 1 - .../typescript/src/dataTypesUpdateSample.ts | 84 - .../typescript/src/operationsListSample.d.ts | 2 - .../src/operationsListSample.d.ts.map | 1 - .../v1/typescript/src/operationsListSample.js | 56 - .../src/operationsListSample.js.map | 1 - .../v1/typescript/src/operationsListSample.ts | 60 - .../samples/v1/typescript/tsconfig.json | 17 - .../latest-package/src/index.d.ts | 5 - .../latest-package/src/index.d.ts.map | 1 - .../latest-package/src/index.js | 19 - .../latest-package/src/index.js.map | 1 - .../latest-package/src/index.ts | 13 - .../latest-package/src/lroImpl.d.ts | 11 - .../latest-package/src/lroImpl.d.ts.map | 1 - .../latest-package/src/lroImpl.js | 28 - .../latest-package/src/lroImpl.js.map | 1 - .../latest-package/src/lroImpl.ts | 42 - .../src/microsoftNetworkAnalytics.d.ts | 23 - .../src/microsoftNetworkAnalytics.d.ts.map | 1 - .../src/microsoftNetworkAnalytics.js | 117 -- .../src/microsoftNetworkAnalytics.js.map | 1 - .../src/microsoftNetworkAnalytics.ts | 156 -- .../latest-package/src/models/index.d.ts | 976 ---------- .../latest-package/src/models/index.d.ts.map | 1 - .../latest-package/src/models/index.js | 122 -- .../latest-package/src/models/index.js.map | 1 - .../latest-package/src/models/index.ts | 1111 ------------ .../latest-package/src/models/mappers.d.ts | 52 - .../src/models/mappers.d.ts.map | 1 - .../latest-package/src/models/mappers.js | 1547 ---------------- .../latest-package/src/models/mappers.js.map | 1 - .../latest-package/src/models/mappers.ts | 1595 ----------------- .../latest-package/src/models/parameters.d.ts | 21 - .../src/models/parameters.d.ts.map | 1 - .../latest-package/src/models/parameters.js | 171 -- .../src/models/parameters.js.map | 1 - .../latest-package/src/models/parameters.ts | 202 --- .../src/operations/dataProducts.d.ts | 147 -- .../src/operations/dataProducts.d.ts.map | 1 - .../src/operations/dataProducts.js | 689 ------- .../src/operations/dataProducts.js.map | 1 - .../src/operations/dataProducts.ts | 960 ---------- .../src/operations/dataProductsCatalogs.d.ts | 59 - .../operations/dataProductsCatalogs.d.ts.map | 1 - .../src/operations/dataProductsCatalogs.js | 255 --- .../operations/dataProductsCatalogs.js.map | 1 - .../src/operations/dataProductsCatalogs.ts | 341 ---- .../src/operations/dataTypes.d.ts | 126 -- .../src/operations/dataTypes.d.ts.map | 1 - .../src/operations/dataTypes.js | 591 ------ .../src/operations/dataTypes.js.map | 1 - .../src/operations/dataTypes.ts | 855 --------- .../latest-package/src/operations/index.d.ts | 5 - .../src/operations/index.d.ts.map | 1 - .../latest-package/src/operations/index.js | 15 - .../src/operations/index.js.map | 1 - .../latest-package/src/operations/index.ts | 12 - .../src/operations/operations.d.ts | 32 - .../src/operations/operations.d.ts.map | 1 - .../src/operations/operations.js | 121 -- .../src/operations/operations.js.map | 1 - .../src/operations/operations.ts | 149 -- .../operationsInterfaces/dataProducts.d.ts | 111 -- .../dataProducts.d.ts.map | 1 - .../src/operationsInterfaces/dataProducts.js | 10 - .../operationsInterfaces/dataProducts.js.map | 1 - .../src/operationsInterfaces/dataProducts.ts | 222 --- .../dataProductsCatalogs.d.ts | 23 - .../dataProductsCatalogs.d.ts.map | 1 - .../dataProductsCatalogs.js | 10 - .../dataProductsCatalogs.js.map | 1 - .../dataProductsCatalogs.ts | 46 - .../src/operationsInterfaces/dataTypes.d.ts | 101 -- .../operationsInterfaces/dataTypes.d.ts.map | 1 - .../src/operationsInterfaces/dataTypes.js | 10 - .../src/operationsInterfaces/dataTypes.js.map | 1 - .../src/operationsInterfaces/dataTypes.ts | 208 --- .../src/operationsInterfaces/index.d.ts | 5 - .../src/operationsInterfaces/index.d.ts.map | 1 - .../src/operationsInterfaces/index.js | 15 - .../src/operationsInterfaces/index.js.map | 1 - .../src/operationsInterfaces/index.ts | 12 - .../src/operationsInterfaces/operations.d.ts | 11 - .../operationsInterfaces/operations.d.ts.map | 1 - .../src/operationsInterfaces/operations.js | 10 - .../operationsInterfaces/operations.js.map | 1 - .../src/operationsInterfaces/operations.ts | 22 - .../latest-package/src/pagingHelper.d.ts | 13 - .../latest-package/src/pagingHelper.d.ts.map | 1 - .../latest-package/src/pagingHelper.js | 34 - .../latest-package/src/pagingHelper.js.map | 1 - .../latest-package/src/pagingHelper.ts | 39 - ...networkanalytics_operations_test.spec.d.ts | 4 - ...orkanalytics_operations_test.spec.d.ts.map | 1 - .../networkanalytics_operations_test.spec.js | 86 - ...tworkanalytics_operations_test.spec.js.map | 1 - .../networkanalytics_operations_test.spec.ts | 113 -- .../latest-package/tsconfig.json | 33 - .../upcoming-package/.eslintrc.json | 11 - .../upcoming-package/.tshy/browser.json | 12 - .../upcoming-package/.tshy/build.json | 8 - .../upcoming-package/.tshy/commonjs.json | 14 - .../upcoming-package/.tshy/esm.json | 12 - .../upcoming-package/.tshy/react-native.json | 12 - .../upcoming-package/README.md | 57 - .../upcoming-package/api-extractor.json | 18 - .../upcoming-package/karma.conf.js | 133 -- .../upcoming-package/package.json | 277 --- .../recording_dataproducts_create_test.json | 63 - .../recording_dataproducts_delete_test.json | 4 - .../recording_dataproducts_get_test.json | 72 - .../recording_dataproducts_list_test.json | 75 - .../recording_operation_list_test.json | 341 ---- .../recording_dataproducts_create_test.json | 52 - .../recording_dataproducts_delete_test.json | 4 - .../recording_dataproducts_get_test.json | 61 - .../recording_dataproducts_list_test.json | 64 - .../recording_operation_list_test.json | 330 ---- ...m-networkanalytics-api-dataProducts.api.md | 118 -- ...kanalytics-api-dataProductsCatalogs.api.md | 44 - .../arm-networkanalytics-api-dataTypes.api.md | 82 - ...arm-networkanalytics-api-operations.api.md | 26 - .../review/arm-networkanalytics-api.api.md | 31 - .../review/arm-networkanalytics-models.api.md | 479 ----- .../review/arm-networkanalytics.api.md | 579 ------ .../upcoming-package/rollup.config.js | 118 -- .../src/api/dataProducts/index.d.ts | 56 - .../src/api/dataProducts/index.d.ts.map | 1 - .../src/api/dataProducts/index.js | 775 -------- .../src/api/dataProducts/index.js.map | 1 - .../src/api/dataProducts/index.ts | 1410 --------------- .../src/api/dataProductsCatalogs/index.d.ts | 18 - .../api/dataProductsCatalogs/index.d.ts.map | 1 - .../src/api/dataProductsCatalogs/index.js | 165 -- .../src/api/dataProductsCatalogs/index.js.map | 1 - .../src/api/dataProductsCatalogs/index.ts | 286 --- .../src/api/dataTypes/index.d.ts | 40 - .../src/api/dataTypes/index.d.ts.map | 1 - .../src/api/dataTypes/index.js | 295 --- .../src/api/dataTypes/index.js.map | 1 - .../src/api/dataTypes/index.ts | 655 ------- .../upcoming-package/src/api/index.d.ts | 2 - .../upcoming-package/src/api/index.d.ts.map | 1 - .../upcoming-package/src/api/index.js | 4 - .../upcoming-package/src/api/index.js.map | 1 - .../upcoming-package/src/api/index.ts | 8 - .../src/api/networkAnalyticsContext.d.ts | 10 - .../src/api/networkAnalyticsContext.d.ts.map | 1 - .../src/api/networkAnalyticsContext.js | 8 - .../src/api/networkAnalyticsContext.js.map | 1 - .../src/api/networkAnalyticsContext.ts | 22 - .../src/api/operations/index.d.ts | 10 - .../src/api/operations/index.d.ts.map | 1 - .../src/api/operations/index.js | 37 - .../src/api/operations/index.js.map | 1 - .../src/api/operations/index.ts | 66 - .../src/api/pagingHelpers.d.ts | 7 - .../src/api/pagingHelpers.d.ts.map | 1 - .../upcoming-package/src/api/pagingHelpers.js | 121 -- .../src/api/pagingHelpers.js.map | 1 - .../upcoming-package/src/api/pagingHelpers.ts | 191 -- .../src/api/pollingHelpers.d.ts | 30 - .../src/api/pollingHelpers.d.ts.map | 1 - .../src/api/pollingHelpers.js | 84 - .../src/api/pollingHelpers.js.map | 1 - .../src/api/pollingHelpers.ts | 139 -- .../src/classic/dataProducts/index.d.ts | 33 - .../src/classic/dataProducts/index.d.ts.map | 1 - .../src/classic/dataProducts/index.js | 24 - .../src/classic/dataProducts/index.js.map | 1 - .../src/classic/dataProducts/index.ts | 263 --- .../classic/dataProductsCatalogs/index.d.ts | 16 - .../dataProductsCatalogs/index.d.ts.map | 1 - .../src/classic/dataProductsCatalogs/index.js | 16 - .../classic/dataProductsCatalogs/index.js.map | 1 - .../src/classic/dataProductsCatalogs/index.ts | 61 - .../src/classic/dataTypes/index.d.ts | 25 - .../src/classic/dataTypes/index.d.ts.map | 1 - .../src/classic/dataTypes/index.js | 20 - .../src/classic/dataTypes/index.js.map | 1 - .../src/classic/dataTypes/index.ts | 209 --- .../upcoming-package/src/classic/index.d.ts | 5 - .../src/classic/index.d.ts.map | 1 - .../upcoming-package/src/classic/index.js | 4 - .../upcoming-package/src/classic/index.js.map | 1 - .../upcoming-package/src/classic/index.ts | 7 - .../src/classic/operations/index.d.ts | 12 - .../src/classic/operations/index.d.ts.map | 1 - .../src/classic/operations/index.js | 14 - .../src/classic/operations/index.js.map | 1 - .../src/classic/operations/index.ts | 28 - .../upcoming-package/src/index.d.ts | 5 - .../upcoming-package/src/index.d.ts.map | 1 - .../upcoming-package/src/index.js | 5 - .../upcoming-package/src/index.js.map | 1 - .../upcoming-package/src/index.ts | 96 - .../upcoming-package/src/logger.d.ts | 2 - .../upcoming-package/src/logger.d.ts.map | 1 - .../upcoming-package/src/logger.js | 5 - .../upcoming-package/src/logger.js.map | 1 - .../upcoming-package/src/logger.ts | 5 - .../upcoming-package/src/models/index.d.ts | 4 - .../src/models/index.d.ts.map | 1 - .../upcoming-package/src/models/index.js | 4 - .../upcoming-package/src/models/index.js.map | 1 - .../upcoming-package/src/models/index.ts | 89 - .../upcoming-package/src/models/models.d.ts | 454 ----- .../src/models/models.d.ts.map | 1 - .../upcoming-package/src/models/models.js | 4 - .../upcoming-package/src/models/models.js.map | 1 - .../upcoming-package/src/models/models.ts | 506 ------ .../upcoming-package/src/models/options.d.ts | 60 - .../src/models/options.d.ts.map | 1 - .../upcoming-package/src/models/options.js | 4 - .../src/models/options.js.map | 1 - .../upcoming-package/src/models/options.ts | 80 - .../src/models/pagingTypes.d.ts | 67 - .../src/models/pagingTypes.d.ts.map | 1 - .../src/models/pagingTypes.js | 4 - .../src/models/pagingTypes.js.map | 1 - .../src/models/pagingTypes.ts | 89 - .../src/networkAnalyticsClient.d.ts | 23 - .../src/networkAnalyticsClient.d.ts.map | 1 - .../src/networkAnalyticsClient.js | 29 - .../src/networkAnalyticsClient.js.map | 1 - .../src/networkAnalyticsClient.ts | 55 - .../src/rest/clientDefinitions.d.ts | 117 -- .../src/rest/clientDefinitions.d.ts.map | 1 - .../src/rest/clientDefinitions.js | 4 - .../src/rest/clientDefinitions.js.map | 1 - .../src/rest/clientDefinitions.ts | 392 ---- .../upcoming-package/src/rest/index.d.ts | 12 - .../upcoming-package/src/rest/index.d.ts.map | 1 - .../upcoming-package/src/rest/index.js | 14 - .../upcoming-package/src/rest/index.js.map | 1 - .../upcoming-package/src/rest/index.ts | 16 - .../src/rest/isUnexpected.d.ts | 24 - .../src/rest/isUnexpected.d.ts.map | 1 - .../upcoming-package/src/rest/isUnexpected.js | 92 - .../src/rest/isUnexpected.js.map | 1 - .../upcoming-package/src/rest/isUnexpected.ts | 395 ---- .../upcoming-package/src/rest/models.d.ts | 319 ---- .../upcoming-package/src/rest/models.d.ts.map | 1 - .../upcoming-package/src/rest/models.js | 4 - .../upcoming-package/src/rest/models.js.map | 1 - .../upcoming-package/src/rest/models.ts | 383 ---- .../src/rest/networkAnalyticsClient.d.ts | 10 - .../src/rest/networkAnalyticsClient.d.ts.map | 1 - .../src/rest/networkAnalyticsClient.js | 32 - .../src/rest/networkAnalyticsClient.js.map | 1 - .../src/rest/networkAnalyticsClient.ts | 46 - .../src/rest/outputModels.d.ts | 388 ---- .../src/rest/outputModels.d.ts.map | 1 - .../upcoming-package/src/rest/outputModels.js | 4 - .../src/rest/outputModels.js.map | 1 - .../upcoming-package/src/rest/outputModels.ts | 458 ----- .../src/rest/paginateHelper.d.ts | 43 - .../src/rest/paginateHelper.d.ts.map | 1 - .../src/rest/paginateHelper.js | 83 - .../src/rest/paginateHelper.js.map | 1 - .../src/rest/paginateHelper.ts | 154 -- .../upcoming-package/src/rest/parameters.d.ts | 69 - .../src/rest/parameters.d.ts.map | 1 - .../upcoming-package/src/rest/parameters.js | 4 - .../src/rest/parameters.js.map | 1 - .../upcoming-package/src/rest/parameters.ts | 117 -- .../src/rest/pollingHelper.d.ts | 83 - .../src/rest/pollingHelper.d.ts.map | 1 - .../src/rest/pollingHelper.js | 101 -- .../src/rest/pollingHelper.js.map | 1 - .../src/rest/pollingHelper.ts | 319 ---- .../upcoming-package/src/rest/responses.d.ts | 304 ---- .../src/rest/responses.d.ts.map | 1 - .../upcoming-package/src/rest/responses.js | 4 - .../src/rest/responses.js.map | 1 - .../upcoming-package/src/rest/responses.ts | 400 ----- .../src/restorePollerHelpers.d.ts | 22 - .../src/restorePollerHelpers.d.ts.map | 1 - .../src/restorePollerHelpers.js | 96 - .../src/restorePollerHelpers.js.map | 1 - .../src/restorePollerHelpers.ts | 180 -- ...networkanalytics_operations_test.spec.d.ts | 4 - ...orkanalytics_operations_test.spec.d.ts.map | 1 - .../networkanalytics_operations_test.spec.js | 92 - ...tworkanalytics_operations_test.spec.js.map | 1 - .../networkanalytics_operations_test.spec.ts | 107 -- .../test/public/utils/recordedClient.d.ts | 8 - .../test/public/utils/recordedClient.d.ts.map | 1 - .../test/public/utils/recordedClient.js | 24 - .../test/public/utils/recordedClient.js.map | 1 - .../test/public/utils/recordedClient.ts | 32 - .../tsconfig.browser.config.json | 10 - .../upcoming-package/tsconfig.json | 15 - .../vitest.browser.config.d.ts | 3 - .../vitest.browser.config.d.ts.map | 1 - .../upcoming-package/vitest.browser.config.js | 35 - .../vitest.browser.config.js.map | 1 - .../upcoming-package/vitest.browser.config.ts | 37 - .../upcoming-package/vitest.config.d.ts | 3 - .../upcoming-package/vitest.config.d.ts.map | 1 - .../upcoming-package/vitest.config.js | 31 - .../upcoming-package/vitest.config.js.map | 1 - .../upcoming-package/vitest.config.ts | 33 - .../baseline-package/.eslintrc.json | 11 - .../baseline-package/README.md | 313 ---- .../baseline-package/api-extractor.json | 31 - .../baseline-package/assets.json | 6 - .../baseline-package/karma.conf.js | 137 -- .../review/ai-translation-text.api.d.ts | 382 ---- .../review/ai-translation-text.api.d.ts.map | 1 - .../review/ai-translation-text.api.js | 5 - .../review/ai-translation-text.api.js.map | 1 - .../review/ai-translation-text.api.ts | 672 ------- .../baseline-package/sample.env | 6 - .../samples-dev/breakSentence.d.ts | 2 - .../samples-dev/breakSentence.d.ts.map | 1 - .../samples-dev/breakSentence.js | 42 - .../samples-dev/breakSentence.js.map | 1 - .../samples-dev/breakSentence.ts | 50 - .../breakSentenceWithAutoDetection.d.ts | 2 - .../breakSentenceWithAutoDetection.d.ts.map | 1 - .../breakSentenceWithAutoDetection.js | 39 - .../breakSentenceWithAutoDetection.js.map | 1 - .../breakSentenceWithAutoDetection.ts | 49 - .../samples-dev/dictionaryExamples.d.ts | 2 - .../samples-dev/dictionaryExamples.d.ts.map | 1 - .../samples-dev/dictionaryExamples.js | 44 - .../samples-dev/dictionaryExamples.js.map | 1 - .../samples-dev/dictionaryExamples.ts | 58 - .../samples-dev/dictionaryLookup.d.ts | 2 - .../samples-dev/dictionaryLookup.d.ts.map | 1 - .../samples-dev/dictionaryLookup.js | 43 - .../samples-dev/dictionaryLookup.js.map | 1 - .../samples-dev/dictionaryLookup.ts | 55 - .../samples-dev/getLanguages.d.ts | 2 - .../samples-dev/getLanguages.d.ts.map | 1 - .../samples-dev/getLanguages.js | 47 - .../samples-dev/getLanguages.js.map | 1 - .../samples-dev/getLanguages.ts | 59 - .../getLanguagesAcceptLanguage.d.ts | 2 - .../getLanguagesAcceptLanguage.d.ts.map | 1 - .../samples-dev/getLanguagesAcceptLanguage.js | 60 - .../getLanguagesAcceptLanguage.js.map | 1 - .../samples-dev/getLanguagesAcceptLanguage.ts | 75 - .../samples-dev/getLanguagesScope.d.ts | 2 - .../samples-dev/getLanguagesScope.d.ts.map | 1 - .../samples-dev/getLanguagesScope.js | 53 - .../samples-dev/getLanguagesScope.js.map | 1 - .../samples-dev/getLanguagesScope.ts | 68 - .../samples-dev/translate.d.ts | 2 - .../samples-dev/translate.d.ts.map | 1 - .../baseline-package/samples-dev/translate.js | 43 - .../samples-dev/translate.js.map | 1 - .../baseline-package/samples-dev/translate.ts | 53 - .../samples-dev/translateAlignments.d.ts | 2 - .../samples-dev/translateAlignments.d.ts.map | 1 - .../samples-dev/translateAlignments.js | 45 - .../samples-dev/translateAlignments.js.map | 1 - .../samples-dev/translateAlignments.ts | 56 - .../samples-dev/translateCustom.d.ts | 2 - .../samples-dev/translateCustom.d.ts.map | 1 - .../samples-dev/translateCustom.js | 56 - .../samples-dev/translateCustom.js.map | 1 - .../samples-dev/translateCustom.ts | 66 - .../samples-dev/translateDetection.d.ts | 2 - .../samples-dev/translateDetection.d.ts.map | 1 - .../samples-dev/translateDetection.js | 43 - .../samples-dev/translateDetection.js.map | 1 - .../samples-dev/translateDetection.ts | 55 - .../samples-dev/translateDictionary.d.ts | 2 - .../samples-dev/translateDictionary.d.ts.map | 1 - .../samples-dev/translateDictionary.js | 50 - .../samples-dev/translateDictionary.js.map | 1 - .../samples-dev/translateDictionary.ts | 61 - .../samples-dev/translateMultipleSources.d.ts | 2 - .../translateMultipleSources.d.ts.map | 1 - .../samples-dev/translateMultipleSources.js | 48 - .../translateMultipleSources.js.map | 1 - .../samples-dev/translateMultipleSources.ts | 60 - .../samples-dev/translateMultipleTargets.d.ts | 2 - .../translateMultipleTargets.d.ts.map | 1 - .../samples-dev/translateMultipleTargets.js | 45 - .../translateMultipleTargets.js.map | 1 - .../samples-dev/translateMultipleTargets.ts | 55 - .../samples-dev/translateNoTranslate.d.ts | 2 - .../samples-dev/translateNoTranslate.d.ts.map | 1 - .../samples-dev/translateNoTranslate.js | 50 - .../samples-dev/translateNoTranslate.js.map | 1 - .../samples-dev/translateNoTranslate.ts | 60 - .../samples-dev/translateProfanity.d.ts | 2 - .../samples-dev/translateProfanity.d.ts.map | 1 - .../samples-dev/translateProfanity.js | 55 - .../samples-dev/translateProfanity.js.map | 1 - .../samples-dev/translateProfanity.ts | 65 - .../samples-dev/translateSenteceLength.d.ts | 2 - .../translateSenteceLength.d.ts.map | 1 - .../samples-dev/translateSenteceLength.js | 48 - .../samples-dev/translateSenteceLength.js.map | 1 - .../samples-dev/translateSenteceLength.ts | 65 - .../samples-dev/translateTextType.d.ts | 2 - .../samples-dev/translateTextType.d.ts.map | 1 - .../samples-dev/translateTextType.js | 44 - .../samples-dev/translateTextType.js.map | 1 - .../samples-dev/translateTextType.ts | 54 - .../translateWithTransliteration.d.ts | 2 - .../translateWithTransliteration.d.ts.map | 1 - .../translateWithTransliteration.js | 48 - .../translateWithTransliteration.js.map | 1 - .../translateWithTransliteration.ts | 60 - .../samples-dev/transliterate.d.ts | 2 - .../samples-dev/transliterate.d.ts.map | 1 - .../samples-dev/transliterate.js | 45 - .../samples-dev/transliterate.js.map | 1 - .../samples-dev/transliterate.ts | 55 - .../samples/v1-beta/javascript/README.md | 102 -- .../v1-beta/javascript/breakSentence.js | 48 - .../breakSentenceWithAutoDetection.js | 47 - .../v1-beta/javascript/dictionaryExamples.js | 56 - .../v1-beta/javascript/dictionaryLookup.js | 53 - .../v1-beta/javascript/getLanguages.js | 61 - .../javascript/getLanguagesAcceptLanguage.js | 74 - .../v1-beta/javascript/getLanguagesScope.js | 67 - .../samples/v1-beta/javascript/package.json | 34 - .../samples/v1-beta/javascript/sample.env | 6 - .../samples/v1-beta/javascript/translate.js | 51 - .../v1-beta/javascript/translateAlignments.js | 54 - .../v1-beta/javascript/translateCustom.js | 64 - .../v1-beta/javascript/translateDetection.js | 53 - .../v1-beta/javascript/translateDictionary.js | 58 - .../javascript/translateMultipleSources.js | 58 - .../javascript/translateMultipleTargets.js | 53 - .../javascript/translateNoTranslate.js | 58 - .../v1-beta/javascript/translateProfanity.js | 63 - .../javascript/translateSenteceLength.js | 59 - .../v1-beta/javascript/translateTextType.js | 52 - .../translateWithTransliteration.js | 58 - .../v1-beta/javascript/transliterate.js | 53 - .../samples/v1-beta/typescript/README.md | 115 -- .../samples/v1-beta/typescript/package.json | 43 - .../samples/v1-beta/typescript/sample.env | 6 - .../v1-beta/typescript/src/breakSentence.d.ts | 2 - .../typescript/src/breakSentence.d.ts.map | 1 - .../v1-beta/typescript/src/breakSentence.js | 42 - .../typescript/src/breakSentence.js.map | 1 - .../v1-beta/typescript/src/breakSentence.ts | 49 - .../src/breakSentenceWithAutoDetection.d.ts | 2 - .../breakSentenceWithAutoDetection.d.ts.map | 1 - .../src/breakSentenceWithAutoDetection.js | 39 - .../src/breakSentenceWithAutoDetection.js.map | 1 - .../src/breakSentenceWithAutoDetection.ts | 49 - .../typescript/src/dictionaryExamples.d.ts | 2 - .../src/dictionaryExamples.d.ts.map | 1 - .../typescript/src/dictionaryExamples.js | 44 - .../typescript/src/dictionaryExamples.js.map | 1 - .../typescript/src/dictionaryExamples.ts | 57 - .../typescript/src/dictionaryLookup.d.ts | 2 - .../typescript/src/dictionaryLookup.d.ts.map | 1 - .../typescript/src/dictionaryLookup.js | 43 - .../typescript/src/dictionaryLookup.js.map | 1 - .../typescript/src/dictionaryLookup.ts | 54 - .../v1-beta/typescript/src/getLanguages.d.ts | 2 - .../typescript/src/getLanguages.d.ts.map | 1 - .../v1-beta/typescript/src/getLanguages.js | 47 - .../typescript/src/getLanguages.js.map | 1 - .../v1-beta/typescript/src/getLanguages.ts | 61 - .../src/getLanguagesAcceptLanguage.d.ts | 2 - .../src/getLanguagesAcceptLanguage.d.ts.map | 1 - .../src/getLanguagesAcceptLanguage.js | 60 - .../src/getLanguagesAcceptLanguage.js.map | 1 - .../src/getLanguagesAcceptLanguage.ts | 75 - .../typescript/src/getLanguagesScope.d.ts | 2 - .../typescript/src/getLanguagesScope.d.ts.map | 1 - .../typescript/src/getLanguagesScope.js | 53 - .../typescript/src/getLanguagesScope.js.map | 1 - .../typescript/src/getLanguagesScope.ts | 68 - .../v1-beta/typescript/src/translate.d.ts | 2 - .../v1-beta/typescript/src/translate.d.ts.map | 1 - .../v1-beta/typescript/src/translate.js | 43 - .../v1-beta/typescript/src/translate.js.map | 1 - .../v1-beta/typescript/src/translate.ts | 52 - .../typescript/src/translateAlignments.d.ts | 2 - .../src/translateAlignments.d.ts.map | 1 - .../typescript/src/translateAlignments.js | 45 - .../typescript/src/translateAlignments.js.map | 1 - .../typescript/src/translateAlignments.ts | 55 - .../typescript/src/translateCustom.d.ts | 2 - .../typescript/src/translateCustom.d.ts.map | 1 - .../v1-beta/typescript/src/translateCustom.js | 56 - .../typescript/src/translateCustom.js.map | 1 - .../v1-beta/typescript/src/translateCustom.ts | 65 - .../typescript/src/translateDetection.d.ts | 2 - .../src/translateDetection.d.ts.map | 1 - .../typescript/src/translateDetection.js | 43 - .../typescript/src/translateDetection.js.map | 1 - .../typescript/src/translateDetection.ts | 54 - .../typescript/src/translateDictionary.d.ts | 2 - .../src/translateDictionary.d.ts.map | 1 - .../typescript/src/translateDictionary.js | 50 - .../typescript/src/translateDictionary.js.map | 1 - .../typescript/src/translateDictionary.ts | 60 - .../src/translateMultipleSources.d.ts | 2 - .../src/translateMultipleSources.d.ts.map | 1 - .../src/translateMultipleSources.js | 48 - .../src/translateMultipleSources.js.map | 1 - .../src/translateMultipleSources.ts | 59 - .../src/translateMultipleTargets.d.ts | 2 - .../src/translateMultipleTargets.d.ts.map | 1 - .../src/translateMultipleTargets.js | 45 - .../src/translateMultipleTargets.js.map | 1 - .../src/translateMultipleTargets.ts | 54 - .../typescript/src/translateNoTranslate.d.ts | 2 - .../src/translateNoTranslate.d.ts.map | 1 - .../typescript/src/translateNoTranslate.js | 50 - .../src/translateNoTranslate.js.map | 1 - .../typescript/src/translateNoTranslate.ts | 59 - .../typescript/src/translateProfanity.d.ts | 2 - .../src/translateProfanity.d.ts.map | 1 - .../typescript/src/translateProfanity.js | 55 - .../typescript/src/translateProfanity.js.map | 1 - .../typescript/src/translateProfanity.ts | 64 - .../src/translateSenteceLength.d.ts | 2 - .../src/translateSenteceLength.d.ts.map | 1 - .../typescript/src/translateSenteceLength.js | 48 - .../src/translateSenteceLength.js.map | 1 - .../typescript/src/translateSenteceLength.ts | 62 - .../typescript/src/translateTextType.d.ts | 2 - .../typescript/src/translateTextType.d.ts.map | 1 - .../typescript/src/translateTextType.js | 44 - .../typescript/src/translateTextType.js.map | 1 - .../typescript/src/translateTextType.ts | 53 - .../src/translateWithTransliteration.d.ts | 2 - .../src/translateWithTransliteration.d.ts.map | 1 - .../src/translateWithTransliteration.js | 48 - .../src/translateWithTransliteration.js.map | 1 - .../src/translateWithTransliteration.ts | 59 - .../v1-beta/typescript/src/transliterate.d.ts | 2 - .../typescript/src/transliterate.d.ts.map | 1 - .../v1-beta/typescript/src/transliterate.js | 45 - .../typescript/src/transliterate.js.map | 1 - .../v1-beta/typescript/src/transliterate.ts | 54 - .../samples/v1-beta/typescript/tsconfig.json | 17 - .../src/clientDefinitions.d.ts | 45 - .../src/clientDefinitions.d.ts.map | 1 - .../baseline-package/src/clientDefinitions.js | 5 - .../src/clientDefinitions.js.map | 1 - .../src/custom/authentication.d.ts | 31 - .../src/custom/authentication.d.ts.map | 1 - .../src/custom/authentication.js | 48 - .../src/custom/authentication.js.map | 1 - .../src/custom/customClient.d.ts | 12 - .../src/custom/customClient.d.ts.map | 1 - .../src/custom/customClient.js | 83 - .../src/custom/customClient.js.map | 1 - .../baseline-package/src/index.d.ts | 12 - .../baseline-package/src/index.d.ts.map | 1 - .../baseline-package/src/index.js | 16 - .../baseline-package/src/index.js.map | 1 - .../baseline-package/src/isUnexpected.d.ts | 8 - .../src/isUnexpected.d.ts.map | 1 - .../baseline-package/src/isUnexpected.js | 77 - .../baseline-package/src/isUnexpected.js.map | 1 - .../baseline-package/src/logger.d.ts | 2 - .../baseline-package/src/logger.d.ts.map | 1 - .../baseline-package/src/logger.js | 8 - .../baseline-package/src/logger.js.map | 1 - .../baseline-package/src/models.d.ts | 15 - .../baseline-package/src/models.d.ts.map | 1 - .../baseline-package/src/models.js | 5 - .../baseline-package/src/models.js.map | 1 - .../baseline-package/src/outputModels.d.ts | 297 --- .../src/outputModels.d.ts.map | 1 - .../baseline-package/src/outputModels.js | 5 - .../baseline-package/src/outputModels.js.map | 1 - .../baseline-package/src/parameters.d.ts | 238 --- .../baseline-package/src/parameters.d.ts.map | 1 - .../baseline-package/src/parameters.js | 5 - .../baseline-package/src/parameters.js.map | 1 - .../baseline-package/src/responses.d.ts | 138 -- .../baseline-package/src/responses.d.ts.map | 1 - .../baseline-package/src/responses.js | 5 - .../baseline-package/src/responses.js.map | 1 - .../baseline-package/src/serializeHelper.d.ts | 2 - .../src/serializeHelper.d.ts.map | 1 - .../baseline-package/src/serializeHelper.js | 16 - .../src/serializeHelper.js.map | 1 - .../test/public/breakSentenceTest.spec.d.ts | 2 - .../public/breakSentenceTest.spec.d.ts.map | 1 - .../test/public/breakSentenceTest.spec.js | 91 - .../test/public/breakSentenceTest.spec.js.map | 1 - .../test/public/breakSentenceTest.spec.ts | 113 -- .../public/dictionaryExamplesTest.spec.d.ts | 2 - .../dictionaryExamplesTest.spec.d.ts.map | 1 - .../public/dictionaryExamplesTest.spec.js | 57 - .../public/dictionaryExamplesTest.spec.js.map | 1 - .../public/dictionaryExamplesTest.spec.ts | 72 - .../public/dictionaryLookupTest.spec.d.ts | 2 - .../public/dictionaryLookupTest.spec.d.ts.map | 1 - .../test/public/dictionaryLookupTest.spec.js | 54 - .../public/dictionaryLookupTest.spec.js.map | 1 - .../test/public/dictionaryLookupTest.spec.ts | 71 - .../test/public/getLanguagesTest.spec.d.ts | 2 - .../public/getLanguagesTest.spec.d.ts.map | 1 - .../test/public/getLanguagesTest.spec.js | 129 -- .../test/public/getLanguagesTest.spec.js.map | 1 - .../test/public/getLanguagesTest.spec.ts | 145 -- .../test/public/translateTest.spec.d.ts | 2 - .../test/public/translateTest.spec.d.ts.map | 1 - .../test/public/translateTest.spec.js | 330 ---- .../test/public/translateTest.spec.js.map | 1 - .../test/public/translateTest.spec.ts | 390 ---- .../test/public/transliterateTest.spec.d.ts | 2 - .../public/transliterateTest.spec.d.ts.map | 1 - .../test/public/transliterateTest.spec.js | 91 - .../test/public/transliterateTest.spec.js.map | 1 - .../test/public/transliterateTest.spec.ts | 111 -- .../utils/StaticAccessTokenCredential.d.ts | 7 - .../StaticAccessTokenCredential.d.ts.map | 1 - .../utils/StaticAccessTokenCredential.js | 22 - .../utils/StaticAccessTokenCredential.js.map | 1 - .../utils/StaticAccessTokenCredential.ts | 17 - .../test/public/utils/recordedClient.d.ts | 32 - .../test/public/utils/recordedClient.d.ts.map | 1 - .../test/public/utils/recordedClient.js | 125 -- .../test/public/utils/recordedClient.js.map | 1 - .../test/public/utils/recordedClient.ts | 158 -- .../test/public/utils/testHelper.d.ts | 3 - .../test/public/utils/testHelper.d.ts.map | 1 - .../test/public/utils/testHelper.js | 30 - .../test/public/utils/testHelper.js.map | 1 - .../test/public/utils/testHelper.ts | 29 - .../baseline-package/tests.yml | 15 - .../baseline-package/tsp-location.yaml | 3 - .../current-package/README.md | 313 ---- .../current-package/api-extractor.json | 31 - .../current-package/assets.json | 6 - .../current-package/estree.d.ts | 2 - .../current-package/estree.d.ts.map | 1 - .../current-package/estree.js | 3 - .../current-package/estree.js.map | 1 - .../current-package/estree.ts | 0 .../current-package/karma.conf.js | 137 -- .../review/ai-translation-text.api.d.ts | 382 ---- .../review/ai-translation-text.api.d.ts.map | 1 - .../review/ai-translation-text.api.js | 4 - .../review/ai-translation-text.api.js.map | 1 - .../review/ai-translation-text.api.ts | 670 ------- .../current-package/sample.env | 6 - .../samples-dev/breakSentence.d.ts | 2 - .../samples-dev/breakSentence.d.ts.map | 1 - .../samples-dev/breakSentence.js | 42 - .../samples-dev/breakSentence.js.map | 1 - .../samples-dev/breakSentence.ts | 50 - .../breakSentenceWithAutoDetection.d.ts | 2 - .../breakSentenceWithAutoDetection.d.ts.map | 1 - .../breakSentenceWithAutoDetection.js | 39 - .../breakSentenceWithAutoDetection.js.map | 1 - .../breakSentenceWithAutoDetection.ts | 49 - .../samples-dev/dictionaryExamples.d.ts | 2 - .../samples-dev/dictionaryExamples.d.ts.map | 1 - .../samples-dev/dictionaryExamples.js | 44 - .../samples-dev/dictionaryExamples.js.map | 1 - .../samples-dev/dictionaryExamples.ts | 58 - .../samples-dev/dictionaryLookup.d.ts | 2 - .../samples-dev/dictionaryLookup.d.ts.map | 1 - .../samples-dev/dictionaryLookup.js | 43 - .../samples-dev/dictionaryLookup.js.map | 1 - .../samples-dev/dictionaryLookup.ts | 55 - .../samples-dev/getLanguages.d.ts | 2 - .../samples-dev/getLanguages.d.ts.map | 1 - .../samples-dev/getLanguages.js | 47 - .../samples-dev/getLanguages.js.map | 1 - .../samples-dev/getLanguages.ts | 59 - .../getLanguagesAcceptLanguage.d.ts | 2 - .../getLanguagesAcceptLanguage.d.ts.map | 1 - .../samples-dev/getLanguagesAcceptLanguage.js | 60 - .../getLanguagesAcceptLanguage.js.map | 1 - .../samples-dev/getLanguagesAcceptLanguage.ts | 75 - .../samples-dev/getLanguagesScope.d.ts | 2 - .../samples-dev/getLanguagesScope.d.ts.map | 1 - .../samples-dev/getLanguagesScope.js | 53 - .../samples-dev/getLanguagesScope.js.map | 1 - .../samples-dev/getLanguagesScope.ts | 68 - .../samples-dev/translate.d.ts | 2 - .../samples-dev/translate.d.ts.map | 1 - .../current-package/samples-dev/translate.js | 43 - .../samples-dev/translate.js.map | 1 - .../current-package/samples-dev/translate.ts | 53 - .../samples-dev/translateAlignments.d.ts | 2 - .../samples-dev/translateAlignments.d.ts.map | 1 - .../samples-dev/translateAlignments.js | 45 - .../samples-dev/translateAlignments.js.map | 1 - .../samples-dev/translateAlignments.ts | 56 - .../samples-dev/translateCustom.d.ts | 2 - .../samples-dev/translateCustom.d.ts.map | 1 - .../samples-dev/translateCustom.js | 56 - .../samples-dev/translateCustom.js.map | 1 - .../samples-dev/translateCustom.ts | 66 - .../samples-dev/translateDetection.d.ts | 2 - .../samples-dev/translateDetection.d.ts.map | 1 - .../samples-dev/translateDetection.js | 43 - .../samples-dev/translateDetection.js.map | 1 - .../samples-dev/translateDetection.ts | 55 - .../samples-dev/translateDictionary.d.ts | 2 - .../samples-dev/translateDictionary.d.ts.map | 1 - .../samples-dev/translateDictionary.js | 50 - .../samples-dev/translateDictionary.js.map | 1 - .../samples-dev/translateDictionary.ts | 61 - .../samples-dev/translateMultipleSources.d.ts | 2 - .../translateMultipleSources.d.ts.map | 1 - .../samples-dev/translateMultipleSources.js | 48 - .../translateMultipleSources.js.map | 1 - .../samples-dev/translateMultipleSources.ts | 60 - .../samples-dev/translateMultipleTargets.d.ts | 2 - .../translateMultipleTargets.d.ts.map | 1 - .../samples-dev/translateMultipleTargets.js | 45 - .../translateMultipleTargets.js.map | 1 - .../samples-dev/translateMultipleTargets.ts | 55 - .../samples-dev/translateNoTranslate.d.ts | 2 - .../samples-dev/translateNoTranslate.d.ts.map | 1 - .../samples-dev/translateNoTranslate.js | 50 - .../samples-dev/translateNoTranslate.js.map | 1 - .../samples-dev/translateNoTranslate.ts | 60 - .../samples-dev/translateProfanity.d.ts | 2 - .../samples-dev/translateProfanity.d.ts.map | 1 - .../samples-dev/translateProfanity.js | 55 - .../samples-dev/translateProfanity.js.map | 1 - .../samples-dev/translateProfanity.ts | 65 - .../samples-dev/translateSenteceLength.d.ts | 2 - .../translateSenteceLength.d.ts.map | 1 - .../samples-dev/translateSenteceLength.js | 48 - .../samples-dev/translateSenteceLength.js.map | 1 - .../samples-dev/translateSenteceLength.ts | 65 - .../samples-dev/translateTextType.d.ts | 2 - .../samples-dev/translateTextType.d.ts.map | 1 - .../samples-dev/translateTextType.js | 44 - .../samples-dev/translateTextType.js.map | 1 - .../samples-dev/translateTextType.ts | 54 - .../translateWithTransliteration.d.ts | 2 - .../translateWithTransliteration.d.ts.map | 1 - .../translateWithTransliteration.js | 48 - .../translateWithTransliteration.js.map | 1 - .../translateWithTransliteration.ts | 60 - .../samples-dev/transliterate.d.ts | 2 - .../samples-dev/transliterate.d.ts.map | 1 - .../samples-dev/transliterate.js | 45 - .../samples-dev/transliterate.js.map | 1 - .../samples-dev/transliterate.ts | 55 - .../samples/v1-beta/javascript/README.md | 102 -- .../v1-beta/javascript/breakSentence.js | 48 - .../breakSentenceWithAutoDetection.js | 47 - .../v1-beta/javascript/dictionaryExamples.js | 56 - .../v1-beta/javascript/dictionaryLookup.js | 53 - .../v1-beta/javascript/getLanguages.js | 61 - .../javascript/getLanguagesAcceptLanguage.js | 74 - .../v1-beta/javascript/getLanguagesScope.js | 67 - .../samples/v1-beta/javascript/package.json | 34 - .../samples/v1-beta/javascript/sample.env | 6 - .../samples/v1-beta/javascript/translate.js | 51 - .../v1-beta/javascript/translateAlignments.js | 54 - .../v1-beta/javascript/translateCustom.js | 64 - .../v1-beta/javascript/translateDetection.js | 53 - .../v1-beta/javascript/translateDictionary.js | 58 - .../javascript/translateMultipleSources.js | 58 - .../javascript/translateMultipleTargets.js | 53 - .../javascript/translateNoTranslate.js | 58 - .../v1-beta/javascript/translateProfanity.js | 63 - .../javascript/translateSenteceLength.js | 59 - .../v1-beta/javascript/translateTextType.js | 52 - .../translateWithTransliteration.js | 58 - .../v1-beta/javascript/transliterate.js | 53 - .../samples/v1-beta/typescript/README.md | 115 -- .../samples/v1-beta/typescript/package.json | 43 - .../samples/v1-beta/typescript/sample.env | 6 - .../v1-beta/typescript/src/breakSentence.d.ts | 2 - .../typescript/src/breakSentence.d.ts.map | 1 - .../v1-beta/typescript/src/breakSentence.js | 42 - .../typescript/src/breakSentence.js.map | 1 - .../v1-beta/typescript/src/breakSentence.ts | 49 - .../src/breakSentenceWithAutoDetection.d.ts | 2 - .../breakSentenceWithAutoDetection.d.ts.map | 1 - .../src/breakSentenceWithAutoDetection.js | 39 - .../src/breakSentenceWithAutoDetection.js.map | 1 - .../src/breakSentenceWithAutoDetection.ts | 49 - .../typescript/src/dictionaryExamples.d.ts | 2 - .../src/dictionaryExamples.d.ts.map | 1 - .../typescript/src/dictionaryExamples.js | 44 - .../typescript/src/dictionaryExamples.js.map | 1 - .../typescript/src/dictionaryExamples.ts | 57 - .../typescript/src/dictionaryLookup.d.ts | 2 - .../typescript/src/dictionaryLookup.d.ts.map | 1 - .../typescript/src/dictionaryLookup.js | 43 - .../typescript/src/dictionaryLookup.js.map | 1 - .../typescript/src/dictionaryLookup.ts | 54 - .../v1-beta/typescript/src/getLanguages.d.ts | 2 - .../typescript/src/getLanguages.d.ts.map | 1 - .../v1-beta/typescript/src/getLanguages.js | 47 - .../typescript/src/getLanguages.js.map | 1 - .../v1-beta/typescript/src/getLanguages.ts | 61 - .../src/getLanguagesAcceptLanguage.d.ts | 2 - .../src/getLanguagesAcceptLanguage.d.ts.map | 1 - .../src/getLanguagesAcceptLanguage.js | 60 - .../src/getLanguagesAcceptLanguage.js.map | 1 - .../src/getLanguagesAcceptLanguage.ts | 75 - .../typescript/src/getLanguagesScope.d.ts | 2 - .../typescript/src/getLanguagesScope.d.ts.map | 1 - .../typescript/src/getLanguagesScope.js | 53 - .../typescript/src/getLanguagesScope.js.map | 1 - .../typescript/src/getLanguagesScope.ts | 68 - .../v1-beta/typescript/src/translate.d.ts | 2 - .../v1-beta/typescript/src/translate.d.ts.map | 1 - .../v1-beta/typescript/src/translate.js | 43 - .../v1-beta/typescript/src/translate.js.map | 1 - .../v1-beta/typescript/src/translate.ts | 52 - .../typescript/src/translateAlignments.d.ts | 2 - .../src/translateAlignments.d.ts.map | 1 - .../typescript/src/translateAlignments.js | 45 - .../typescript/src/translateAlignments.js.map | 1 - .../typescript/src/translateAlignments.ts | 55 - .../typescript/src/translateCustom.d.ts | 2 - .../typescript/src/translateCustom.d.ts.map | 1 - .../v1-beta/typescript/src/translateCustom.js | 56 - .../typescript/src/translateCustom.js.map | 1 - .../v1-beta/typescript/src/translateCustom.ts | 65 - .../typescript/src/translateDetection.d.ts | 2 - .../src/translateDetection.d.ts.map | 1 - .../typescript/src/translateDetection.js | 43 - .../typescript/src/translateDetection.js.map | 1 - .../typescript/src/translateDetection.ts | 54 - .../typescript/src/translateDictionary.d.ts | 2 - .../src/translateDictionary.d.ts.map | 1 - .../typescript/src/translateDictionary.js | 50 - .../typescript/src/translateDictionary.js.map | 1 - .../typescript/src/translateDictionary.ts | 60 - .../src/translateMultipleSources.d.ts | 2 - .../src/translateMultipleSources.d.ts.map | 1 - .../src/translateMultipleSources.js | 48 - .../src/translateMultipleSources.js.map | 1 - .../src/translateMultipleSources.ts | 59 - .../src/translateMultipleTargets.d.ts | 2 - .../src/translateMultipleTargets.d.ts.map | 1 - .../src/translateMultipleTargets.js | 45 - .../src/translateMultipleTargets.js.map | 1 - .../src/translateMultipleTargets.ts | 54 - .../typescript/src/translateNoTranslate.d.ts | 2 - .../src/translateNoTranslate.d.ts.map | 1 - .../typescript/src/translateNoTranslate.js | 50 - .../src/translateNoTranslate.js.map | 1 - .../typescript/src/translateNoTranslate.ts | 59 - .../typescript/src/translateProfanity.d.ts | 2 - .../src/translateProfanity.d.ts.map | 1 - .../typescript/src/translateProfanity.js | 55 - .../typescript/src/translateProfanity.js.map | 1 - .../typescript/src/translateProfanity.ts | 64 - .../src/translateSenteceLength.d.ts | 2 - .../src/translateSenteceLength.d.ts.map | 1 - .../typescript/src/translateSenteceLength.js | 48 - .../src/translateSenteceLength.js.map | 1 - .../typescript/src/translateSenteceLength.ts | 62 - .../typescript/src/translateTextType.d.ts | 2 - .../typescript/src/translateTextType.d.ts.map | 1 - .../typescript/src/translateTextType.js | 44 - .../typescript/src/translateTextType.js.map | 1 - .../typescript/src/translateTextType.ts | 53 - .../src/translateWithTransliteration.d.ts | 2 - .../src/translateWithTransliteration.d.ts.map | 1 - .../src/translateWithTransliteration.js | 48 - .../src/translateWithTransliteration.js.map | 1 - .../src/translateWithTransliteration.ts | 59 - .../v1-beta/typescript/src/transliterate.d.ts | 2 - .../typescript/src/transliterate.d.ts.map | 1 - .../v1-beta/typescript/src/transliterate.js | 45 - .../typescript/src/transliterate.js.map | 1 - .../v1-beta/typescript/src/transliterate.ts | 54 - .../samples/v1-beta/typescript/tsconfig.json | 17 - .../src/clientDefinitions.d.ts | 45 - .../src/clientDefinitions.d.ts.map | 1 - .../current-package/src/clientDefinitions.js | 5 - .../src/clientDefinitions.js.map | 1 - .../src/custom/authentication.d.ts | 31 - .../src/custom/authentication.d.ts.map | 1 - .../src/custom/authentication.js | 48 - .../src/custom/authentication.js.map | 1 - .../src/custom/customClient.d.ts | 12 - .../src/custom/customClient.d.ts.map | 1 - .../src/custom/customClient.js | 83 - .../src/custom/customClient.js.map | 1 - .../current-package/src/index.d.ts | 12 - .../current-package/src/index.d.ts.map | 1 - .../current-package/src/index.js | 16 - .../current-package/src/index.js.map | 1 - .../current-package/src/isUnexpected.d.ts | 8 - .../current-package/src/isUnexpected.d.ts.map | 1 - .../current-package/src/isUnexpected.js | 77 - .../current-package/src/isUnexpected.js.map | 1 - .../current-package/src/logger.d.ts | 2 - .../current-package/src/logger.d.ts.map | 1 - .../current-package/src/logger.js | 8 - .../current-package/src/logger.js.map | 1 - .../current-package/src/models.d.ts | 15 - .../current-package/src/models.d.ts.map | 1 - .../current-package/src/models.js | 5 - .../current-package/src/models.js.map | 1 - .../current-package/src/outputModels.d.ts | 297 --- .../current-package/src/outputModels.d.ts.map | 1 - .../current-package/src/outputModels.js | 5 - .../current-package/src/outputModels.js.map | 1 - .../current-package/src/parameters.d.ts | 238 --- .../current-package/src/parameters.d.ts.map | 1 - .../current-package/src/parameters.js | 5 - .../current-package/src/parameters.js.map | 1 - .../current-package/src/responses.d.ts | 138 -- .../current-package/src/responses.d.ts.map | 1 - .../current-package/src/responses.js | 5 - .../current-package/src/responses.js.map | 1 - .../current-package/src/serializeHelper.d.ts | 2 - .../src/serializeHelper.d.ts.map | 1 - .../current-package/src/serializeHelper.js | 16 - .../src/serializeHelper.js.map | 1 - .../test/public/breakSentenceTest.spec.d.ts | 2 - .../public/breakSentenceTest.spec.d.ts.map | 1 - .../test/public/breakSentenceTest.spec.js | 91 - .../test/public/breakSentenceTest.spec.js.map | 1 - .../test/public/breakSentenceTest.spec.ts | 113 -- .../public/dictionaryExamplesTest.spec.d.ts | 2 - .../dictionaryExamplesTest.spec.d.ts.map | 1 - .../public/dictionaryExamplesTest.spec.js | 57 - .../public/dictionaryExamplesTest.spec.js.map | 1 - .../public/dictionaryExamplesTest.spec.ts | 72 - .../public/dictionaryLookupTest.spec.d.ts | 2 - .../public/dictionaryLookupTest.spec.d.ts.map | 1 - .../test/public/dictionaryLookupTest.spec.js | 54 - .../public/dictionaryLookupTest.spec.js.map | 1 - .../test/public/dictionaryLookupTest.spec.ts | 71 - .../test/public/getLanguagesTest.spec.d.ts | 2 - .../public/getLanguagesTest.spec.d.ts.map | 1 - .../test/public/getLanguagesTest.spec.js | 129 -- .../test/public/getLanguagesTest.spec.js.map | 1 - .../test/public/getLanguagesTest.spec.ts | 145 -- .../test/public/translateTest.spec.d.ts | 2 - .../test/public/translateTest.spec.d.ts.map | 1 - .../test/public/translateTest.spec.js | 330 ---- .../test/public/translateTest.spec.js.map | 1 - .../test/public/translateTest.spec.ts | 390 ---- .../test/public/transliterateTest.spec.d.ts | 2 - .../public/transliterateTest.spec.d.ts.map | 1 - .../test/public/transliterateTest.spec.js | 91 - .../test/public/transliterateTest.spec.js.map | 1 - .../test/public/transliterateTest.spec.ts | 111 -- .../utils/StaticAccessTokenCredential.d.ts | 7 - .../StaticAccessTokenCredential.d.ts.map | 1 - .../utils/StaticAccessTokenCredential.js | 22 - .../utils/StaticAccessTokenCredential.js.map | 1 - .../utils/StaticAccessTokenCredential.ts | 17 - .../test/public/utils/recordedClient.d.ts | 32 - .../test/public/utils/recordedClient.d.ts.map | 1 - .../test/public/utils/recordedClient.js | 125 -- .../test/public/utils/recordedClient.js.map | 1 - .../test/public/utils/recordedClient.ts | 158 -- .../test/public/utils/testHelper.d.ts | 3 - .../test/public/utils/testHelper.d.ts.map | 1 - .../test/public/utils/testHelper.js | 30 - .../test/public/utils/testHelper.js.map | 1 - .../test/public/utils/testHelper.ts | 29 - .../current-package/tests.yml | 15 - .../current-package/tsp-location.yaml | 3 - 1216 files changed, 57196 deletions(-) delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/CHANGELOG.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/LICENSE delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/_meta.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/api-extractor.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/assets.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/package.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/review/arm-networkanalytics.api.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsAddUserRoleSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCreateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsDeleteSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListByResourceGroupSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListBySubscriptionSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRemoveUserRoleSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRotateKeySample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsUpdateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesCreateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteDataSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesListByDataProductSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesUpdateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/operationsListSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/package.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/package.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/tsconfig.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/tsconfig.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.eslintrc.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/browser.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/build.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/commonjs.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/esm.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/react-native.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/api-extractor.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/karma.conf.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/package.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_create_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_delete_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_get_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_list_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_operation_list_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_create_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_delete_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_get_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_list_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_operation_list_test.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProducts.api.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProductsCatalogs.api.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataTypes.api.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-operations.api.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api.api.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-models.api.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics.api.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/rollup.config.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.browser.config.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/.eslintrc.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/api-extractor.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/assets.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/karma.conf.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentence.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryExamples.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryLookup.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguages.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesScope.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/package.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateAlignments.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateCustom.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDictionary.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleSources.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleTargets.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateNoTranslate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateProfanity.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateSenteceLength.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateTextType.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateWithTransliteration.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/transliterate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/package.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/tsconfig.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tests.yml delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsp-location.yaml delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/api-extractor.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/assets.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/karma.conf.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentence.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryExamples.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryLookup.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguages.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesScope.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/package.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateAlignments.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateCustom.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDictionary.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleSources.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleTargets.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateNoTranslate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateProfanity.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateSenteceLength.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateTextType.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateWithTransliteration.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/transliterate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/README.md delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/package.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/sample.env delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/tsconfig.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js.map delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tests.yml delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsp-location.yaml diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/CHANGELOG.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/CHANGELOG.md deleted file mode 100644 index 251a177cd7f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/CHANGELOG.md +++ /dev/null @@ -1,15 +0,0 @@ -# Release History - -## 1.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0 (2024-01-24) - -The package of @azure/arm-networkanalytics is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/LICENSE b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/LICENSE deleted file mode 100644 index 7d593474096..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2024 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/README.md deleted file mode 100644 index 167fd7f74c1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/README.md +++ /dev/null @@ -1,109 +0,0 @@ -# Azure MicrosoftNetworkAnalytics client library for JavaScript - -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure MicrosoftNetworkAnalytics client. - - - -[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics) | -[Package (NPM)](https://www.npmjs.com/package/@azure/arm-networkanalytics) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics) | -[Samples](https://github.com/Azure-Samples/azure-samples-js-management) - -## Getting started - -### Currently supported environments - -- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) -- Latest versions of Safari, Chrome, Edge and Firefox. - -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. - -### Prerequisites - -- An [Azure subscription][azure_sub]. - -### Install the `@azure/arm-networkanalytics` package - -Install the Azure MicrosoftNetworkAnalytics client library for JavaScript with `npm`: - -```bash -npm install @azure/arm-networkanalytics -``` - -### Create and authenticate a `MicrosoftNetworkAnalytics` - -To create a client object to access the Azure MicrosoftNetworkAnalytics API, you will need the `endpoint` of your Azure MicrosoftNetworkAnalytics resource and a `credential`. The Azure MicrosoftNetworkAnalytics client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your Azure MicrosoftNetworkAnalytics resource in the [Azure Portal][azure_portal]. - -You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). - -To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: - -```bash -npm install @azure/identity -``` - -You will also need to **register a new AAD application and grant access to Azure MicrosoftNetworkAnalytics** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. - -For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). - -```javascript -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. - -const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new MicrosoftNetworkAnalytics(new DefaultAzureCredential(), subscriptionId); - -// For client-side applications running in the browser, use this code instead: -// const credential = new InteractiveBrowserCredential({ -// tenantId: "", -// clientId: "" -// }); -// const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); -``` - - -### JavaScript Bundle -To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). - -## Key concepts - -### MicrosoftNetworkAnalytics - -`MicrosoftNetworkAnalytics` is the primary interface for developers using the Azure MicrosoftNetworkAnalytics client library. Explore the methods on this client object to understand the different features of the Azure MicrosoftNetworkAnalytics service that you can access. - -## Troubleshooting - -### Logging - -Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: - -```javascript -const { setLogLevel } = require("@azure/logger"); -setLogLevel("info"); -``` - -For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). - -## Next steps - -Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. - -## Contributing - -If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. - -## Related projects - -- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fnetworkanalytics%2Farm-networkanalytics%2FREADME.png) - -[azure_cli]: https://docs.microsoft.com/cli/azure -[azure_sub]: https://azure.microsoft.com/free/ -[azure_sub]: https://azure.microsoft.com/free/ -[azure_portal]: https://portal.azure.com -[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity -[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/_meta.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/_meta.json deleted file mode 100644 index eea27338d3d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/_meta.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "commit": "21a8d55d74e4425e96d76e5835f52cfc9eb95a22", - "readme": "specification/networkanalytics/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\networkanalytics\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true --modelerfour.flatten-models=false", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" -} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/api-extractor.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/api-extractor.json deleted file mode 100644 index 15f6114f905..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/api-extractor.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { - "enabled": true - }, - "apiReport": { - "enabled": true, - "reportFolder": "./review" - }, - "dtsRollup": { - "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/arm-networkanalytics.d.ts" - }, - "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, - "extractorMessageReporting": { - "ae-missing-release-tag": { - "logLevel": "none" - }, - "ae-unresolved-link": { - "logLevel": "none" - } - } - } -} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/assets.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/assets.json deleted file mode 100644 index 43db5b65016..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/networkanalytics/arm-networkanalytics", - "Tag": "js/networkanalytics/arm-networkanalytics_2e82fc2960" -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/package.json deleted file mode 100644 index 72c24c7e2bf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/package.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "name": "@azure/arm-networkanalytics", - "sdk-type": "mgmt", - "author": "Microsoft Corporation", - "description": "A generated SDK for MicrosoftNetworkAnalytics.", - "version": "1.0.1", - "engines": { - "node": ">=18.0.0" - }, - "dependencies": { - "@azure/core-lro": "^2.5.4", - "@azure/abort-controller": "^1.0.0", - "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", - "tslib": "^2.2.0" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-networkanalytics.d.ts", - "devDependencies": { - "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^3.0.1", - "typescript": "~5.4.5", - "uglify-js": "^3.4.9", - "rimraf": "^5.0.0", - "dotenv": "^16.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.0.0", - "mocha": "^10.0.0", - "@types/mocha": "^10.0.0", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", - "cross-env": "^7.0.2", - "@types/node": "^18.0.0", - "ts-node": "^10.0.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/Azure/azure-sdk-for-js.git" - }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", - "README.md", - "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" - ], - "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "prepack": "npm run build", - "pack": "npm pack 2>&1", - "extract-api": "dev-tool run extract-api", - "lint": "echo skipped", - "audit": "echo skipped", - "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "build:node": "echo skipped", - "build:browser": "echo skipped", - "build:test": "echo skipped", - "build:samples": "echo skipped.", - "check-format": "echo skipped", - "execute:samples": "echo skipped", - "format": "echo skipped", - "test": "npm run integration-test", - "test:node": "echo skipped", - "test:browser": "echo skipped", - "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", - "unit-test:browser": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" - }, - "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/microsoftNetworkAnalytics.ts", - "prefix": "packageDetails" - } - ] - }, - "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics?view=azure-node-preview" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/review/arm-networkanalytics.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/review/arm-networkanalytics.api.md deleted file mode 100644 index b9ee3e1bf0a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/review/arm-networkanalytics.api.md +++ /dev/null @@ -1,761 +0,0 @@ -## API Report File for "@azure/arm-networkanalytics" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import * as coreAuth from '@azure/core-auth'; -import * as coreClient from '@azure/core-client'; -import { OperationState } from '@azure/core-lro'; -import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { SimplePollerLike } from '@azure/core-lro'; - -// @public -export interface AccountSas { - expiryTimeStamp: Date; - ipAddress: string; - startTimeStamp: Date; -} - -// @public -export interface AccountSasToken { - storageAccountSasToken: string; -} - -// @public -export type ActionType = string; - -// @public -export type Bypass = string; - -// @public -export interface ConsumptionEndpointsProperties { - readonly fileAccessResourceId?: string; - readonly fileAccessUrl?: string; - readonly ingestionResourceId?: string; - readonly ingestionUrl?: string; - readonly queryResourceId?: string; - readonly queryUrl?: string; -} - -// @public -export interface ContainerSaS { - expiryTimeStamp: Date; - ipAddress: string; - startTimeStamp: Date; -} - -// @public -export interface ContainerSasToken { - storageContainerSasToken: string; -} - -// @public -export type ControlState = string; - -// @public -export type CreatedByType = string; - -// @public -export interface DataProduct extends TrackedResource { - identity?: ManagedServiceIdentity; - properties?: DataProductProperties; -} - -// @public -export interface DataProductInformation { - dataProductName: string; - dataProductVersions: DataProductVersion[]; - description: string; -} - -// @public -export interface DataProductListResult { - nextLink?: string; - value: DataProduct[]; -} - -// @public -export interface DataProductNetworkAcls { - allowedQueryIpRangeList: string[]; - defaultAction: DefaultAction; - ipRules: IPRules[]; - virtualNetworkRule: VirtualNetworkRule[]; -} - -// @public -export interface DataProductProperties { - readonly availableMinorVersions?: string[]; - readonly consumptionEndpoints?: ConsumptionEndpointsProperties; - currentMinorVersion?: string; - customerEncryptionKey?: EncryptionKeyDetails; - customerManagedKeyEncryptionEnabled?: ControlState; - readonly documentation?: string; - readonly keyVaultUrl?: string; - majorVersion: string; - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - networkacls?: DataProductNetworkAcls; - owners?: string[]; - privateLinksEnabled?: ControlState; - product: string; - readonly provisioningState?: ProvisioningState; - publicNetworkAccess?: ControlState; - publisher: string; - purviewAccount?: string; - purviewCollection?: string; - redundancy?: ControlState; - readonly resourceGuid?: string; -} - -// @public -export interface DataProducts { - addUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): Promise; - beginCreate(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise, DataProductsCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise, DataProductsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise, DataProductsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise; - generateStorageAccountSasToken(resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; - get(resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - listRolesAssignments(resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; - removeUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): Promise; - rotateKey(resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): Promise; -} - -// @public -export interface DataProductsAddUserRoleOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsAddUserRoleResponse = RoleAssignmentDetail; - -// @public -export interface DataProductsCatalog extends ProxyResource { - properties?: DataProductsCatalogProperties; -} - -// @public -export interface DataProductsCatalogListResult { - nextLink?: string; - value: DataProductsCatalog[]; -} - -// @public -export interface DataProductsCatalogProperties { - readonly provisioningState?: ProvisioningState; - publishers: PublisherInformation[]; -} - -// @public -export interface DataProductsCatalogs { - get(resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DataProductsCatalogsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsCatalogsGetResponse = DataProductsCatalog; - -// @public -export interface DataProductsCatalogsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsCatalogsListByResourceGroupNextResponse = DataProductsCatalogListResult; - -// @public -export interface DataProductsCatalogsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsCatalogsListByResourceGroupResponse = DataProductsCatalogListResult; - -// @public -export interface DataProductsCatalogsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsCatalogsListBySubscriptionNextResponse = DataProductsCatalogListResult; - -// @public -export interface DataProductsCatalogsListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsCatalogsListBySubscriptionResponse = DataProductsCatalogListResult; - -// @public -export interface DataProductsCreateHeaders { - retryAfter?: number; -} - -// @public -export interface DataProductsCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DataProductsCreateResponse = DataProduct; - -// @public -export interface DataProductsDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface DataProductsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DataProductsDeleteResponse = DataProductsDeleteHeaders; - -// @public -export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsGenerateStorageAccountSasTokenResponse = AccountSasToken; - -// @public -export interface DataProductsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsGetResponse = DataProduct; - -// @public -export interface DataProductsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsListByResourceGroupNextResponse = DataProductListResult; - -// @public -export interface DataProductsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsListByResourceGroupResponse = DataProductListResult; - -// @public -export interface DataProductsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsListBySubscriptionNextResponse = DataProductListResult; - -// @public -export interface DataProductsListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsListBySubscriptionResponse = DataProductListResult; - -// @public -export interface DataProductsListRolesAssignmentsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataProductsListRolesAssignmentsResponse = ListRoleAssignments; - -// @public -export interface DataProductsRemoveUserRoleOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface DataProductsRotateKeyOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface DataProductsUpdateHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface DataProductsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DataProductsUpdateResponse = DataProduct; - -// @public -export interface DataProductUpdate { - identity?: ManagedServiceIdentity; - properties?: DataProductUpdateProperties; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface DataProductUpdateProperties { - currentMinorVersion?: string; - owners?: string[]; - privateLinksEnabled?: ControlState; - purviewAccount?: string; - purviewCollection?: string; -} - -// @public -export type DataProductUserRole = string; - -// @public -export interface DataProductVersion { - version: string; -} - -// @public -export interface DataType extends ProxyResource { - properties?: DataTypeProperties; -} - -// @public -export interface DataTypeListResult { - nextLink?: string; - value: DataType[]; -} - -// @public -export interface DataTypeProperties { - databaseCacheRetention?: number; - databaseRetention?: number; - readonly provisioningState?: ProvisioningState; - state?: DataTypeState; - readonly stateReason?: string; - storageOutputRetention?: number; - readonly visualizationUrl?: string; -} - -// @public -export interface DataTypes { - beginCreate(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise, DataTypesCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise, DataTypesDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise; - beginDeleteData(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise, DataTypesDeleteDataResponse>>; - beginDeleteDataAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise; - beginUpdate(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise, DataTypesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise; - generateStorageContainerSasToken(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; - get(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; - listByDataProduct(resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DataTypesCreateHeaders { - retryAfter?: number; -} - -// @public -export interface DataTypesCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DataTypesCreateResponse = DataType; - -// @public -export interface DataTypesDeleteDataHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface DataTypesDeleteDataOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DataTypesDeleteDataResponse = DataTypesDeleteDataHeaders; - -// @public -export interface DataTypesDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface DataTypesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DataTypesDeleteResponse = DataTypesDeleteHeaders; - -// @public -export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTypesGenerateStorageContainerSasTokenResponse = ContainerSasToken; - -// @public -export interface DataTypesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTypesGetResponse = DataType; - -// @public -export interface DataTypesListByDataProductNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTypesListByDataProductNextResponse = DataTypeListResult; - -// @public -export interface DataTypesListByDataProductOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTypesListByDataProductResponse = DataTypeListResult; - -// @public -export type DataTypeState = string; - -// @public -export interface DataTypesUpdateHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface DataTypesUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DataTypesUpdateResponse = DataType; - -// @public -export interface DataTypeUpdate { - properties?: DataTypeUpdateProperties; -} - -// @public -export interface DataTypeUpdateProperties { - databaseCacheRetention?: number; - databaseRetention?: number; - state?: DataTypeState; - storageOutputRetention?: number; -} - -// @public -export type DefaultAction = string; - -// @public -export interface EncryptionKeyDetails { - keyName: string; - keyVaultUri: string; - keyVersion: string; -} - -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; -} - -// @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} - -// @public -export interface ErrorResponse { - error?: ErrorDetail; -} - -// @public -export function getContinuationToken(page: unknown): string | undefined; - -// @public -export interface IPRules { - action: string; - value?: string; -} - -// @public -export interface KeyVaultInfo { - keyVaultUrl: string; -} - -// @public -export enum KnownActionType { - Internal = "Internal" -} - -// @public -export enum KnownBypass { - AzureServices = "AzureServices", - Logging = "Logging", - Metrics = "Metrics", - None = "None" -} - -// @public -export enum KnownControlState { - Disabled = "Disabled", - Enabled = "Enabled" -} - -// @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" -} - -// @public -export enum KnownDataProductUserRole { - Reader = "Reader", - SensitiveReader = "SensitiveReader" -} - -// @public -export enum KnownDataTypeState { - Running = "Running", - Stopped = "Stopped" -} - -// @public -export enum KnownDefaultAction { - Allow = "Allow", - Deny = "Deny" -} - -// @public -export enum KnownManagedServiceIdentityType { - None = "None", - SystemAssigned = "SystemAssigned", - SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", - UserAssigned = "UserAssigned" -} - -// @public -export enum KnownOrigin { - System = "system", - User = "user", - UserSystem = "user,system" -} - -// @public -export enum KnownProvisioningState { - Accepted = "Accepted", - Canceled = "Canceled", - Deleting = "Deleting", - Failed = "Failed", - Provisioning = "Provisioning", - Succeeded = "Succeeded", - Updating = "Updating" -} - -// @public -export enum KnownVersions { - V20231115 = "2023-11-15" -} - -// @public -export interface ListRoleAssignments { - count: number; - roleAssignmentResponse: RoleAssignmentDetail[]; -} - -// @public -export interface ManagedResourceGroupConfiguration { - location: string; - name: string; -} - -// @public -export interface ManagedServiceIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type: ManagedServiceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentity; - }; -} - -// @public -export type ManagedServiceIdentityType = string; - -// @public (undocumented) -export class MicrosoftNetworkAnalytics extends coreClient.ServiceClient { - // (undocumented) - $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftNetworkAnalyticsOptionalParams); - // (undocumented) - apiVersion: string; - // (undocumented) - dataProducts: DataProducts; - // (undocumented) - dataProductsCatalogs: DataProductsCatalogs; - // (undocumented) - dataTypes: DataTypes; - // (undocumented) - operations: Operations; - // (undocumented) - subscriptionId: string; -} - -// @public -export interface MicrosoftNetworkAnalyticsOptionalParams extends coreClient.ServiceClientOptions { - $host?: string; - apiVersion?: string; - endpoint?: string; -} - -// @public -export interface Operation { - readonly actionType?: ActionType; - display?: OperationDisplay; - readonly isDataAction?: boolean; - readonly name?: string; - readonly origin?: Origin; -} - -// @public -export interface OperationDisplay { - readonly description?: string; - readonly operation?: string; - readonly provider?: string; - readonly resource?: string; -} - -// @public -export interface OperationListResult { - readonly nextLink?: string; - readonly value?: Operation[]; -} - -// @public -export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsListNextResponse = OperationListResult; - -// @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsListResponse = OperationListResult; - -// @public -export type Origin = string; - -// @public -export type ProvisioningState = string; - -// @public -export interface ProxyResource extends Resource { -} - -// @public -export interface PublisherInformation { - dataProducts: DataProductInformation[]; - publisherName: string; -} - -// @public -export interface Resource { - readonly id?: string; - readonly name?: string; - readonly systemData?: SystemData; - readonly type?: string; -} - -// @public -export interface ResourceAccessRules { - resourceId: string; - tenantId: string; -} - -// @public -export interface RoleAssignmentCommonProperties { - dataTypeScope: string[]; - principalId: string; - principalType: string; - role: DataProductUserRole; - roleId: string; - userName: string; -} - -// @public -export interface RoleAssignmentDetail { - dataTypeScope: string[]; - principalId: string; - principalType: string; - role: DataProductUserRole; - roleAssignmentId: string; - roleId: string; - userName: string; -} - -// @public -export interface SystemData { - createdAt?: Date; - createdBy?: string; - createdByType?: CreatedByType; - lastModifiedAt?: Date; - lastModifiedBy?: string; - lastModifiedByType?: CreatedByType; -} - -// @public -export interface TrackedResource extends Resource { - location: string; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface UserAssignedIdentity { - readonly clientId?: string; - readonly principalId?: string; -} - -// @public -export type Versions = string; - -// @public -export interface VirtualNetworkRule { - action?: string; - id: string; - state?: string; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/sample.env deleted file mode 100644 index 672847a3fea..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts deleted file mode 100644 index 08a9a5c9cae..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsAddUserRoleSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts.map deleted file mode 100644 index d518d99115b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsAddUserRoleSample.d.ts","sourceRoot":"","sources":["dataProductsAddUserRoleSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js deleted file mode 100644 index 67f539c7eb0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "userName" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsAddUserRoleMaximumSetGen(); - dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsAddUserRoleSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js.map deleted file mode 100644 index 741a0b07ba6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsAddUserRoleSample.js","sourceRoot":"","sources":["dataProductsAddUserRoleSample.ts"],"names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,EAAE,MAAM;QACrB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,WAAW,CAClD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oCAAoC,EAAE,CAAC;IACvC,0EAA0E,EAAE,CAAC;AAC/E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.ts deleted file mode 100644 index bfb77048d0b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsAddUserRoleSample.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RoleAssignmentCommonProperties, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: RoleAssignmentCommonProperties = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: RoleAssignmentCommonProperties = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "userName" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsAddUserRoleMaximumSetGen(); - dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts deleted file mode 100644 index 439be196c27..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsCatalogsGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts.map deleted file mode 100644 index d64156b4ec2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsGetSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js deleted file mode 100644 index bb08cd33beb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} -async function main() { - dataProductsCatalogsGetMaximumSetGen(); - dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsCatalogsGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js.map deleted file mode 100644 index f9a13670022..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsGetSample.js","sourceRoot":"","sources":["dataProductsCatalogsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oCAAoC;IACjD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,0EAA0E;IACvF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oCAAoC,EAAE,CAAC;IACvC,0EAA0E,EAAE,CAAC;AAC/E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.ts deleted file mode 100644 index 77024bf580e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsGetSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} - -async function main() { - dataProductsCatalogsGetMaximumSetGen(); - dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts deleted file mode 100644 index f549f2e8369..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsCatalogsListByResourceGroupSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts.map deleted file mode 100644 index 10d4d684bcf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsListByResourceGroupSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js deleted file mode 100644 index 514ab839f10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataProductsCatalogsListByResourceGroupMaximumSetGen(); - dataProductsCatalogsListByResourceGroupMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsCatalogsListByResourceGroupSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js.map deleted file mode 100644 index 1c67ce10215..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsListByResourceGroupSample.js","sourceRoot":"","sources":["dataProductsCatalogsListByResourceGroupSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oDAAoD;IACjE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UA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/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.ts deleted file mode 100644 index 3d2367e68c0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListByResourceGroupSample.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsCatalogsListByResourceGroupMaximumSetGen(); - dataProductsCatalogsListByResourceGroupMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts deleted file mode 100644 index 48c1050f815..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsCatalogsListBySubscriptionSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts.map deleted file mode 100644 index b81110d3880..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsListBySubscriptionSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js deleted file mode 100644 index 420a1b89bd2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataProductsCatalogsListBySubscriptionMaximumSetGen(); - dataProductsCatalogsListBySubscriptionMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsCatalogsListBySubscriptionSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js.map deleted file mode 100644 index 12366398fa5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsListBySubscriptionSample.js","sourceRoot":"","sources":["dataProductsCatalogsListBySubscriptionSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC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AK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.ts deleted file mode 100644 index 93ad8a8215f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCatalogsListBySubscriptionSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsCatalogsListBySubscriptionMaximumSetGen(); - dataProductsCatalogsListBySubscriptionMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts deleted file mode 100644 index 9b3aa33756a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsCreateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts.map deleted file mode 100644 index 1b249dd5fcb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCreateSample.d.ts","sourceRoot":"","sources":["dataProductsCreateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js deleted file mode 100644 index c5ec3708b58..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } - }, - location: "eastus", - properties: { - consumptionEndpoints: {}, - currentMinorVersion: "1.0.1", - customerEncryptionKey: { - keyName: "keyName", - keyVaultUri: "https://KeyVault.vault.azure.net", - keyVersion: "keyVersion" - }, - customerManagedKeyEncryptionEnabled: "Enabled", - majorVersion: "1.0.0", - managedResourceGroupConfiguration: { - name: "managedResourceGroupName", - location: "eastus" - }, - networkacls: { - allowedQueryIpRangeList: ["1.1.1.1"], - defaultAction: "Allow", - ipRules: [{ action: "Allow", value: "1.1.1.1" }], - virtualNetworkRule: [ - { - action: "Allow", - id: "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", - state: "" - } - ] - }, - owners: ["abc@micros.com"], - privateLinksEnabled: "Disabled", - product: "MCC", - provisioningState: "Succeeded", - publicNetworkAccess: "Enabled", - publisher: "Microsoft", - purviewAccount: "testpurview", - purviewCollection: "134567890", - redundancy: "Disabled" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait(resourceGroupName, dataProductName, resource); - console.log(result); -} -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource = { - location: "eastus", - properties: { - majorVersion: "1.0.0", - product: "MCC", - publisher: "Microsoft" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait(resourceGroupName, dataProductName, resource); - console.log(result); -} -async function main() { - dataProductsCreateMaximumSetGen(); - dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsCreateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js.map deleted file mode 100644 index 7bccad90499..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCreateSample.js","sourceRoot":"","sources":["dataProductsCreateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,QAAQ,GAAgB;QAC5B,QAAQ,EAAE;YACR,IAAI,EAAE,cAAc;YACpB,sBAAsB,EAAE;gBACtB,qHAAqH,EAAE,EAAE;aAC1H;SACF;QACD,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACV,oBAAoB,EAAE,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ClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,QAAQ,GAAgB;QAC5B,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACV,YAAY,EAAE,OAAO;YACrB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,WAAW;SACvB;QACD,IAAI,EAAE,EAAE,oBAAoB,EAAE,uBAAuB,EAAE;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.ts deleted file mode 100644 index 68837e98b83..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsCreateSample.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataProduct, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource: DataProduct = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } - }, - location: "eastus", - properties: { - consumptionEndpoints: {}, - currentMinorVersion: "1.0.1", - customerEncryptionKey: { - keyName: "keyName", - keyVaultUri: "https://KeyVault.vault.azure.net", - keyVersion: "keyVersion" - }, - customerManagedKeyEncryptionEnabled: "Enabled", - majorVersion: "1.0.0", - managedResourceGroupConfiguration: { - name: "managedResourceGroupName", - location: "eastus" - }, - networkacls: { - allowedQueryIpRangeList: ["1.1.1.1"], - defaultAction: "Allow", - ipRules: [{ action: "Allow", value: "1.1.1.1" }], - virtualNetworkRule: [ - { - action: "Allow", - id: - "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", - state: "" - } - ] - }, - owners: ["abc@micros.com"], - privateLinksEnabled: "Disabled", - product: "MCC", - provisioningState: "Succeeded", - publicNetworkAccess: "Enabled", - publisher: "Microsoft", - purviewAccount: "testpurview", - purviewCollection: "134567890", - redundancy: "Disabled" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait( - resourceGroupName, - dataProductName, - resource - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource: DataProduct = { - location: "eastus", - properties: { - majorVersion: "1.0.0", - product: "MCC", - publisher: "Microsoft" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait( - resourceGroupName, - dataProductName, - resource - ); - console.log(result); -} - -async function main() { - dataProductsCreateMaximumSetGen(); - dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts deleted file mode 100644 index 5b05bd03888..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsDeleteSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts.map deleted file mode 100644 index ec49e8459e0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsDeleteSample.d.ts","sourceRoot":"","sources":["dataProductsDeleteSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js deleted file mode 100644 index 2f3a7e1c206..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); - console.log(result); -} -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); - console.log(result); -} -async function main() { - dataProductsDeleteMaximumSetGen(); - dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsDeleteSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js.map deleted file mode 100644 index c6bceb0cc74..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsDeleteSample.js","sourceRoot":"","sources":["dataProductsDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.ts deleted file mode 100644 index ae058b82a9c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsDeleteSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait( - resourceGroupName, - dataProductName - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait( - resourceGroupName, - dataProductName - ); - console.log(result); -} - -async function main() { - dataProductsDeleteMaximumSetGen(); - dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts deleted file mode 100644 index 2eb1d1da828..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsGenerateStorageAccountSasTokenSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map deleted file mode 100644 index 37ff2588b31..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsGenerateStorageAccountSasTokenSample.d.ts","sourceRoot":"","sources":["dataProductsGenerateStorageAccountSasTokenSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js deleted file mode 100644 index a508027d425..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.151Z") - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:17.051Z") - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); - dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsGenerateStorageAccountSasTokenSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js.map deleted file mode 100644 index 44fda47931e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsGenerateStorageAccountSasTokenSample.js","sourceRoot":"","sources":["dataProductsGenerateStorageAccountSasTokenSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,uDAAuD;IACpE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CA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AAU,IAAI;IACjB,uDAAuD,EAAE,CAAC;IAC1D,6FAA6F,EAAE,CAAC;AAClG,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.ts deleted file mode 100644 index 105e2b635ab..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGenerateStorageAccountSasTokenSample.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AccountSas, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: AccountSas = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.151Z") - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: AccountSas = { - expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:17.051Z") - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); - dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts deleted file mode 100644 index 46c65e12bf9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts.map deleted file mode 100644 index 8eded8ab304..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsGetSample.d.ts","sourceRoot":"","sources":["dataProductsGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js deleted file mode 100644 index fdf94c061a1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json - */ -async function dataProductsGetMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get(resourceGroupName, dataProductName); - console.log(result); -} -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json - */ -async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get(resourceGroupName, dataProductName); - console.log(result); -} -async function main() { - dataProductsGetMaximumSetGen(); - dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js.map deleted file mode 100644 index 8bdd1b1c4a5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsGetSample.js","sourceRoot":"","sources":["dataProductsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kEAAkE;IAC/E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.ts deleted file mode 100644 index 592a1bdef80..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsGetSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json - */ -async function dataProductsGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get( - resourceGroupName, - dataProductName - ); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json - */ -async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get( - resourceGroupName, - dataProductName - ); - console.log(result); -} - -async function main() { - dataProductsGetMaximumSetGen(); - dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts deleted file mode 100644 index bd6a9f34578..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsListByResourceGroupSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts.map deleted file mode 100644 index 04cd8454f64..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["dataProductsListByResourceGroupSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js deleted file mode 100644 index 300dd9529c7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataProductsListByResourceGroupMaximumSetGen(); - dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsListByResourceGroupSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js.map deleted file mode 100644 index d1d40ba9da4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListByResourceGroupSample.js","sourceRoot":"","sources":["dataProductsListByResourceGroupSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4CAA4C;IACzD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAC5D,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kFAAkF;IAC/F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAC5D,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4CAA4C,EAAE,CAAC;IAC/C,kFAAkF,EAAE,CAAC;AACvF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.ts deleted file mode 100644 index 7db66b97df1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListByResourceGroupSample.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsListByResourceGroupMaximumSetGen(); - dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts deleted file mode 100644 index ba89955049d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsListBySubscriptionSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts.map deleted file mode 100644 index 020e622aa95..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["dataProductsListBySubscriptionSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js deleted file mode 100644 index 1c54379b2de..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataProductsListBySubscriptionMaximumSetGen(); - dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsListBySubscriptionSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js.map deleted file mode 100644 index 5865fb720f9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListBySubscriptionSample.js","sourceRoot":"","sources":["dataProductsListBySubscriptionSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,2CAA2C;IACxD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAChE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,iFAAiF;IAC9F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAChE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,2CAA2C,EAAE,CAAC;IAC9C,iFAAiF,EAAE,CAAC;AACtF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.ts deleted file mode 100644 index e765389b95b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListBySubscriptionSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsListBySubscriptionMaximumSetGen(); - dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts deleted file mode 100644 index 08e3be1c25a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsListRolesAssignmentsSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts.map deleted file mode 100644 index d8102a183e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListRolesAssignmentsSample.d.ts","sourceRoot":"","sources":["dataProductsListRolesAssignmentsSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js deleted file mode 100644 index 7cda88f15bc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsListRolesAssignmentsMaximumSetGen(); - dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsListRolesAssignmentsSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js.map deleted file mode 100644 index a017ecf12a7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListRolesAssignmentsSample.js","sourceRoot":"","sources":["dataProductsListRolesAssignmentsSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,6CAA6C;IAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAC3D,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,mFAAmF;IAChG,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAC3D,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,6CAA6C,EAAE,CAAC;IAChD,mFAAmF,EAAE,CAAC;AACxF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.ts deleted file mode 100644 index 1893752fa9b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsListRolesAssignmentsSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsListRolesAssignmentsMaximumSetGen(); - dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts deleted file mode 100644 index 0e34b2f8842..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsRemoveUserRoleSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts.map deleted file mode 100644 index 2431bfc978e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsRemoveUserRoleSample.d.ts","sourceRoot":"","sources":["dataProductsRemoveUserRoleSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js deleted file mode 100644 index 1c2281e0c39..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsRemoveUserRoleMaximumSetGen(); - dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsRemoveUserRoleSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js.map deleted file mode 100644 index 2e9a69e8aef..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsRemoveUserRo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AyB;QACjC,aAAa,EAAE,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,qCAAqC;QAClD,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,QAAQ;QACd,gBAAgB,EAAE,qCAAqC;QACvD,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,cAAc,CACrD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uCAAuC,EAAE,CAAC;IAC1C,6EAA6E,EAAE,CAAC;AAClF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.ts deleted file mode 100644 index 0344a82c8d0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRemoveUserRoleSample.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RoleAssignmentDetail, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: RoleAssignmentDetail = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: RoleAssignmentDetail = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsRemoveUserRoleMaximumSetGen(); - dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts deleted file mode 100644 index 1ab1a48d7c2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsRotateKeySample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts.map deleted file mode 100644 index 59027d7af9e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsRotateKeySample.d.ts","sourceRoot":"","sources":["dataProductsRotateKeySample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js deleted file mode 100644 index ade311c50d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - keyVaultUrl: "https://myKeyVault.vault.azure.net" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - keyVaultUrl: "https://myKeyVault.vault.azure.net" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsRotateKeyMaximumSetGen(); - dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsRotateKeySample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js.map deleted file mode 100644 index 61dd664fda2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsRotateKeySample.js","sourceRoot":"","sources":["dataProductsRotateKeySample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,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AC;IACrC,wEAAwE,EAAE,CAAC;AAC7E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.ts deleted file mode 100644 index c280787be94..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsRotateKeySample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - KeyVaultInfo, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: KeyVaultInfo = { - keyVaultUrl: "https://myKeyVault.vault.azure.net" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: KeyVaultInfo = { - keyVaultUrl: "https://myKeyVault.vault.azure.net" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsRotateKeyMaximumSetGen(); - dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts deleted file mode 100644 index 705d979ef6b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsUpdateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts.map deleted file mode 100644 index a3d1e0913f1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsUpdateSample.d.ts","sourceRoot":"","sources":["dataProductsUpdateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js deleted file mode 100644 index ceda37fd89d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } - }, - properties: { - currentMinorVersion: "1.0.1", - owners: ["abc@micros.com", "def@micros.com"], - privateLinksEnabled: "Disabled", - purviewAccount: "testpurview", - purviewCollection: "134567890" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait(resourceGroupName, dataProductName, properties); - console.log(result); -} -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait(resourceGroupName, dataProductName, properties); - console.log(result); -} -async function main() { - dataProductsUpdateMaximumSetGen(); - dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsUpdateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js.map deleted file mode 100644 index 619daa74264..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsUpdateSample.js","sourceRoot":"","sources":["dataProductsUpdateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAsB;QACpC,QAAQ,EAAE;YACR,IAAI,EAAE,cAAc;YACpB,sBAAsB,EAAE;gBACtB,qHAAqH,EAAE,EAAE;aAC1H;SACF;QACD,UAAU,EAAE;YACV,mBAAmB,EAAE,OAAO;YAC5B,MAAM,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;YAC5C,mBAAmB,EAAE,UAAU;YAC/B,cAAc,EAAE,aAAa;YAC7B,iBAAiB,EAAE,WAAW;SAC/B;QACD,IAAI,EAAE,EAAE,oBAAoB,EAAE,uBAAuB,EAAE;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAsB,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.ts deleted file mode 100644 index 0edc31352db..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataProductsUpdateSample.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataProductUpdate, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties: DataProductUpdate = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } - }, - properties: { - currentMinorVersion: "1.0.1", - owners: ["abc@micros.com", "def@micros.com"], - privateLinksEnabled: "Disabled", - purviewAccount: "testpurview", - purviewCollection: "134567890" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait( - resourceGroupName, - dataProductName, - properties - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties: DataProductUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait( - resourceGroupName, - dataProductName, - properties - ); - console.log(result); -} - -async function main() { - dataProductsUpdateMaximumSetGen(); - dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts deleted file mode 100644 index 0887d5b0dd8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesCreateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts.map deleted file mode 100644 index 20477ab2ad0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesCreateSample.d.ts","sourceRoot":"","sources":["dataTypesCreateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js deleted file mode 100644 index b402f22d9ce..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource = { - properties: { - databaseCacheRetention: 23, - databaseRetention: 6, - provisioningState: "Succeeded", - state: "STARTED", - storageOutputRetention: 27 - } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource); - console.log(result); -} -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource); - console.log(result); -} -async function main() { - dataTypesCreateMaximumSetGen(); - dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesCreateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js.map deleted file mode 100644 index a6c6ad7ca26..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":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C;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.ts deleted file mode 100644 index 0f9ea34a269..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesCreateSample.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataType, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource: DataType = { - properties: { - databaseCacheRetention: 23, - databaseRetention: 6, - provisioningState: "Succeeded", - state: "STARTED", - storageOutputRetention: 27 - } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - resource - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource: DataType = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - resource - ); - console.log(result); -} - -async function main() { - dataTypesCreateMaximumSetGen(); - dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts deleted file mode 100644 index b5e63d57ede..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesDeleteDataSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts.map deleted file mode 100644 index 1c012b1b837..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesDeleteDataSample.d.ts","sourceRoot":"","sources":["dataTypesDeleteDataSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js deleted file mode 100644 index d5d1e4ff3e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json - */ -async function dataTypesDeleteDataMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body); - console.log(result); -} -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json - */ -async function dataTypesDeleteDataMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body); - console.log(result); -} -async function main() { - dataTypesDeleteDataMaximumSetGen(); - dataTypesDeleteDataMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesDeleteDataSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js.map deleted file mode 100644 index 8bd8de885e5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesDeleteDataSample.js","sourceRoot":"","sources":["dataTypesDeleteDataSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,gCAAgC;IAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAC1D,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,gCAAgC;IAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAC1D,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,gCAAgC,EAAE,CAAC;IACnC,gCAAgC,EAAE,CAAC;AACrC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.ts deleted file mode 100644 index 8c031b138fc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteDataSample.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json - */ -async function dataTypesDeleteDataMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json - */ -async function dataTypesDeleteDataMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - body - ); - console.log(result); -} - -async function main() { - dataTypesDeleteDataMaximumSetGen(); - dataTypesDeleteDataMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts deleted file mode 100644 index 87b7d3cb874..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesDeleteSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts.map deleted file mode 100644 index 0a08af135b5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesDeleteSample.d.ts","sourceRoot":"","sources":["dataTypesDeleteSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js deleted file mode 100644 index 948f82efc90..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} -async function main() { - dataTypesDeleteMaximumSetGen(); - dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesDeleteSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js.map deleted file mode 100644 index 5769d9b6400..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesDeleteSample.js","sourceRoot":"","sources":["dataTypesDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;I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-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.ts deleted file mode 100644 index 11a0a3ab64a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesDeleteSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait( - resourceGroupName, - dataProductName, - dataTypeName - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait( - resourceGroupName, - dataProductName, - dataTypeName - ); - console.log(result); -} - -async function main() { - dataTypesDeleteMaximumSetGen(); - dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts deleted file mode 100644 index 6deef309b71..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesGenerateStorageContainerSasTokenSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map deleted file mode 100644 index e73e12c0ff7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesGenerateStorageContainerSasTokenSample.d.ts","sourceRoot":"","sources":["dataTypesGenerateStorageContainerSasTokenSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js deleted file mode 100644 index 063c422c66e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.039Z") - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body); - console.log(result); -} -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:16.887Z") - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body); - console.log(result); -} -async function main() { - dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); - dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesGenerateStorageContainerSasTokenSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js.map deleted file mode 100644 index c85d5711899..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesGenerateStorageContainerSasTokenSample.js","sourceRoot":"","sources":["dataTypesGenerateStorageContainerSasTokenSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,sDAAsD;IACnE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAAiB;QACzB,eAAe,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;QACrD,SAAS,EAAE,SAAS;QACpB,cAAc,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;KACrD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,gCAAgC,CACpE,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,4FAA4F;IACzG,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAAiB;QACzB,eAAe,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;QACrD,SAAS,EAAE,SAAS;QACpB,cAAc,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;KACrD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,gCAAgC,CACpE,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,sDAAsD,EAAE,CAAC;IACzD,4FAA4F,EAAE,CAAC;AACjG,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.ts deleted file mode 100644 index c59582d1e86..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGenerateStorageContainerSasTokenSample.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ContainerSaS, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body: ContainerSaS = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.039Z") - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken( - resourceGroupName, - dataProductName, - dataTypeName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body: ContainerSaS = { - expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:16.887Z") - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken( - resourceGroupName, - dataProductName, - dataTypeName, - body - ); - console.log(result); -} - -async function main() { - dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); - dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts deleted file mode 100644 index f624173fcc5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts.map deleted file mode 100644 index 35fc22320bf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesGetSample.d.ts","sourceRoot":"","sources":["dataTypesGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js deleted file mode 100644 index 39fef8479f0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json - */ -async function dataTypesGetMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json - */ -async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} -async function main() { - dataTypesGetMaximumSetGen(); - dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js.map deleted file mode 100644 index 4fe2f6674ef..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesGetSample.js","sourceRoot":"","sources":["dataTypesGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,yBAAyB;IACtC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,+DAA+D;IAC5E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,yBAAyB,EAAE,CAAC;IAC5B,+DAA+D,EAAE,CAAC;AACpE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.ts deleted file mode 100644 index c430835edb8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesGetSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json - */ -async function dataTypesGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get( - resourceGroupName, - dataProductName, - dataTypeName - ); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json - */ -async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get( - resourceGroupName, - dataProductName, - dataTypeName - ); - console.log(result); -} - -async function main() { - dataTypesGetMaximumSetGen(); - dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts deleted file mode 100644 index cc9f3d58e87..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesListByDataProductSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts.map deleted file mode 100644 index 52d1e22cd82..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesListByDataProductSample.d.ts","sourceRoot":"","sources":["dataTypesListByDataProductSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js deleted file mode 100644 index 53cc8222da3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataTypesListByDataProductMaximumSetGen(); - dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesListByDataProductSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js.map deleted file mode 100644 index a309ebfd60c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesListByDataProductSample.js","sourceRoot":"","sources":["dataTypesListByDataProductSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,uCAAuC;IACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,iBAAiB,CACvD,iBAAiB,EACjB,eAAe,CAChB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,6EAA6E;IAC1F,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,iBAAiB,CACvD,iBAAiB,EACjB,eAAe,CAChB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uCAAuC,EAAE,CAAC;IAC1C,6EAA6E,EAAE,CAAC;AAClF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.ts deleted file mode 100644 index 894c944360d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesListByDataProductSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct( - resourceGroupName, - dataProductName - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct( - resourceGroupName, - dataProductName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataTypesListByDataProductMaximumSetGen(); - dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts deleted file mode 100644 index a6d1b42eda1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesUpdateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts.map deleted file mode 100644 index e947203e164..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesUpdateSample.d.ts","sourceRoot":"","sources":["dataTypesUpdateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js deleted file mode 100644 index 8765bbda915..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties = { - properties: { - databaseCacheRetention: 16, - databaseRetention: 9, - state: "STARTED", - storageOutputRetention: 30 - } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties); - console.log(result); -} -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties); - console.log(result); -} -async function main() { - dataTypesUpdateMaximumSetGen(); - dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesUpdateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js.map deleted file mode 100644 index 54f1e05bc38..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesUpdateSample.js","sourceRoot":"","sources":["dataTypesUpdateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,Y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C,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.ts deleted file mode 100644 index 600eac4fa74..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/dataTypesUpdateSample.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataTypeUpdate, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties: DataTypeUpdate = { - properties: { - databaseCacheRetention: 16, - databaseRetention: 9, - state: "STARTED", - storageOutputRetention: 30 - } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - properties - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties: DataTypeUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - properties - ); - console.log(result); -} - -async function main() { - dataTypesUpdateMaximumSetGen(); - dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts deleted file mode 100644 index cb740f3e024..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=operationsListSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts.map deleted file mode 100644 index 772fe831a00..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["operationsListSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js deleted file mode 100644 index 15e702bc0dd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json - */ -async function operationsListMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json - */ -async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - operationsListMaximumSetGen(); - operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=operationsListSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js.map deleted file mode 100644 index a5bb0133a22..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["operationsListSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,2BAA2B;IACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,sCAAsC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,iEAAiE;IAC9E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,sCAAsC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,2BAA2B,EAAE,CAAC;IAC9B,iEAAiE,EAAE,CAAC;AACtE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.ts deleted file mode 100644 index 6640d1a5b7f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json - */ -async function operationsListMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json - */ -async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationsListMaximumSetGen(); - operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/README.md deleted file mode 100644 index 95cc38cda3e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [dataProductsAddUserRoleSample.js][dataproductsadduserrolesample] | Assign role to the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json | -| [dataProductsCatalogsGetSample.js][dataproductscatalogsgetsample] | Retrieve data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json | -| [dataProductsCatalogsListByResourceGroupSample.js][dataproductscatalogslistbyresourcegroupsample] | List data catalog by resource group. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json | -| [dataProductsCatalogsListBySubscriptionSample.js][dataproductscatalogslistbysubscriptionsample] | List data catalog by subscription. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json | -| [dataProductsCreateSample.js][dataproductscreatesample] | Create data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json | -| [dataProductsDeleteSample.js][dataproductsdeletesample] | Delete data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json | -| [dataProductsGenerateStorageAccountSasTokenSample.js][dataproductsgeneratestorageaccountsastokensample] | Generate sas token for storage account. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json | -| [dataProductsGetSample.js][dataproductsgetsample] | Retrieve data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json | -| [dataProductsListByResourceGroupSample.js][dataproductslistbyresourcegroupsample] | List data products by resource group. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json | -| [dataProductsListBySubscriptionSample.js][dataproductslistbysubscriptionsample] | List data products by subscription. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json | -| [dataProductsListRolesAssignmentsSample.js][dataproductslistrolesassignmentssample] | List user roles associated with the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json | -| [dataProductsRemoveUserRoleSample.js][dataproductsremoveuserrolesample] | Remove role from the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json | -| [dataProductsRotateKeySample.js][dataproductsrotatekeysample] | Initiate key rotation on Data Product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json | -| [dataProductsUpdateSample.js][dataproductsupdatesample] | Update data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json | -| [dataTypesCreateSample.js][datatypescreatesample] | Create data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json | -| [dataTypesDeleteDataSample.js][datatypesdeletedatasample] | Delete data for data type. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json | -| [dataTypesDeleteSample.js][datatypesdeletesample] | Delete data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json | -| [dataTypesGenerateStorageContainerSasTokenSample.js][datatypesgeneratestoragecontainersastokensample] | Generate sas token for storage container. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json | -| [dataTypesGetSample.js][datatypesgetsample] | Retrieve data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json | -| [dataTypesListByDataProductSample.js][datatypeslistbydataproductsample] | List data type by parent resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json | -| [dataTypesUpdateSample.js][datatypesupdatesample] | Update data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json | -| [operationsListSample.js][operationslistsample] | List the operations for the provider x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dataProductsAddUserRoleSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env NETWORKANALYTICS_SUBSCRIPTION_ID="" NETWORKANALYTICS_RESOURCE_GROUP="" node dataProductsAddUserRoleSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[dataproductsadduserrolesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsAddUserRoleSample.js -[dataproductscatalogsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsCatalogsGetSample.js -[dataproductscatalogslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js -[dataproductscatalogslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js -[dataproductscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsCreateSample.js -[dataproductsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsDeleteSample.js -[dataproductsgeneratestorageaccountsastokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js -[dataproductsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsGetSample.js -[dataproductslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsListByResourceGroupSample.js -[dataproductslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsListBySubscriptionSample.js -[dataproductslistrolesassignmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js -[dataproductsremoveuserrolesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsRemoveUserRoleSample.js -[dataproductsrotatekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsRotateKeySample.js -[dataproductsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataProductsUpdateSample.js -[datatypescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesCreateSample.js -[datatypesdeletedatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesDeleteDataSample.js -[datatypesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesDeleteSample.js -[datatypesgeneratestoragecontainersastokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js -[datatypesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesGetSample.js -[datatypeslistbydataproductsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesListByDataProductSample.js -[datatypesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/dataTypesUpdateSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/javascript/operationsListSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics/README.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsAddUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsAddUserRoleSample.js deleted file mode 100644 index 72115de226b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsAddUserRoleSample.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName", - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} - -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "userName", - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} - -async function main() { - dataProductsAddUserRoleMaximumSetGen(); - dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsGetSample.js deleted file mode 100644 index 79bfab001d7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsGetSample.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} - -async function main() { - dataProductsCatalogsGetMaximumSetGen(); - dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js deleted file mode 100644 index 45e0c5c3a87..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListByResourceGroupSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsCatalogsListByResourceGroupMaximumSetGen(); - dataProductsCatalogsListByResourceGroupMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js deleted file mode 100644 index b24bcd8a6f2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCatalogsListBySubscriptionSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsCatalogsListBySubscriptionMaximumSetGen(); - dataProductsCatalogsListBySubscriptionMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCreateSample.js deleted file mode 100644 index 814b59161b1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsCreateSample.js +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": - {}, - }, - }, - location: "eastus", - properties: { - consumptionEndpoints: {}, - currentMinorVersion: "1.0.1", - customerEncryptionKey: { - keyName: "keyName", - keyVaultUri: "https://KeyVault.vault.azure.net", - keyVersion: "keyVersion", - }, - customerManagedKeyEncryptionEnabled: "Enabled", - majorVersion: "1.0.0", - managedResourceGroupConfiguration: { - name: "managedResourceGroupName", - location: "eastus", - }, - networkacls: { - allowedQueryIpRangeList: ["1.1.1.1"], - defaultAction: "Allow", - ipRules: [{ action: "Allow", value: "1.1.1.1" }], - virtualNetworkRule: [ - { - action: "Allow", - id: "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", - state: "", - }, - ], - }, - owners: ["abc@micros.com"], - privateLinksEnabled: "Disabled", - product: "MCC", - provisioningState: "Succeeded", - publicNetworkAccess: "Enabled", - publisher: "Microsoft", - purviewAccount: "testpurview", - purviewCollection: "134567890", - redundancy: "Disabled", - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait( - resourceGroupName, - dataProductName, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource = { - location: "eastus", - properties: { - majorVersion: "1.0.0", - product: "MCC", - publisher: "Microsoft", - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait( - resourceGroupName, - dataProductName, - resource, - ); - console.log(result); -} - -async function main() { - dataProductsCreateMaximumSetGen(); - dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsDeleteSample.js deleted file mode 100644 index 9468a00b526..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsDeleteSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); - console.log(result); -} - -async function main() { - dataProductsDeleteMaximumSetGen(); - dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js deleted file mode 100644 index fc72b3f3f41..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGenerateStorageAccountSasTokenSample.js +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.151Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken( - resourceGroupName, - dataProductName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:17.051Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken( - resourceGroupName, - dataProductName, - body, - ); - console.log(result); -} - -async function main() { - dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); - dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGetSample.js deleted file mode 100644 index 8ec76d68a30..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsGetSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json - */ -async function dataProductsGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get(resourceGroupName, dataProductName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json - */ -async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get(resourceGroupName, dataProductName); - console.log(result); -} - -async function main() { - dataProductsGetMaximumSetGen(); - dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListByResourceGroupSample.js deleted file mode 100644 index a45819ead57..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListByResourceGroupSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsListByResourceGroupMaximumSetGen(); - dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListBySubscriptionSample.js deleted file mode 100644 index 6c736856baa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListBySubscriptionSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsListBySubscriptionMaximumSetGen(); - dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js deleted file mode 100644 index dcb2958f16b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsListRolesAssignmentsSample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments( - resourceGroupName, - dataProductName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments( - resourceGroupName, - dataProductName, - body, - ); - console.log(result); -} - -async function main() { - dataProductsListRolesAssignmentsMaximumSetGen(); - dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRemoveUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRemoveUserRoleSample.js deleted file mode 100644 index 718d3991561..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRemoveUserRoleSample.js +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName", - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} - -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName", - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} - -async function main() { - dataProductsRemoveUserRoleMaximumSetGen(); - dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRotateKeySample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRotateKeySample.js deleted file mode 100644 index 1fa3268c4a9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsRotateKeySample.js +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - keyVaultUrl: "https://myKeyVault.vault.azure.net", - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); - console.log(result); -} - -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - keyVaultUrl: "https://myKeyVault.vault.azure.net", - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); - console.log(result); -} - -async function main() { - dataProductsRotateKeyMaximumSetGen(); - dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsUpdateSample.js deleted file mode 100644 index 561061d0973..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataProductsUpdateSample.js +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": - {}, - }, - }, - properties: { - currentMinorVersion: "1.0.1", - owners: ["abc@micros.com", "def@micros.com"], - privateLinksEnabled: "Disabled", - purviewAccount: "testpurview", - purviewCollection: "134567890", - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait( - resourceGroupName, - dataProductName, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait( - resourceGroupName, - dataProductName, - properties, - ); - console.log(result); -} - -async function main() { - dataProductsUpdateMaximumSetGen(); - dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesCreateSample.js deleted file mode 100644 index ba9a83f9744..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesCreateSample.js +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource = { - properties: { - databaseCacheRetention: 23, - databaseRetention: 6, - provisioningState: "Succeeded", - state: "STARTED", - storageOutputRetention: 27, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - resource, - ); - console.log(result); -} - -async function main() { - dataTypesCreateMaximumSetGen(); - dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteDataSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteDataSample.js deleted file mode 100644 index acd623fba9b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteDataSample.js +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json - */ -async function dataTypesDeleteDataMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json - */ -async function dataTypesDeleteDataMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - body, - ); - console.log(result); -} - -async function main() { - dataTypesDeleteDataMaximumSetGen(); - dataTypesDeleteDataMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteSample.js deleted file mode 100644 index c11e86be8e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesDeleteSample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - ); - console.log(result); -} - -async function main() { - dataTypesDeleteMaximumSetGen(); - dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js deleted file mode 100644 index 0226e4eef0d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGenerateStorageContainerSasTokenSample.js +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.039Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken( - resourceGroupName, - dataProductName, - dataTypeName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:16.887Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken( - resourceGroupName, - dataProductName, - dataTypeName, - body, - ); - console.log(result); -} - -async function main() { - dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); - dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGetSample.js deleted file mode 100644 index a07a6edbf35..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesGetSample.js +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json - */ -async function dataTypesGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json - */ -async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} - -async function main() { - dataTypesGetMaximumSetGen(); - dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesListByDataProductSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesListByDataProductSample.js deleted file mode 100644 index 3f7bf316a14..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesListByDataProductSample.js +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataTypesListByDataProductMaximumSetGen(); - dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesUpdateSample.js deleted file mode 100644 index ff4f9f676d1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/dataTypesUpdateSample.js +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties = { - properties: { - databaseCacheRetention: 16, - databaseRetention: 9, - state: "STARTED", - storageOutputRetention: 30, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - properties, - ); - console.log(result); -} - -async function main() { - dataTypesUpdateMaximumSetGen(); - dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/operationsListSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/operationsListSample.js deleted file mode 100644 index 5d6ff67629d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/operationsListSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MicrosoftNetworkAnalytics } = require("@azure/arm-networkanalytics"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json - */ -async function operationsListMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json - */ -async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationsListMaximumSetGen(); - operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/package.json deleted file mode 100644 index 014327a7a67..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-networkanalytics-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/networkanalytics/arm-networkanalytics" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics", - "dependencies": { - "@azure/arm-networkanalytics": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/sample.env deleted file mode 100644 index 672847a3fea..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/README.md deleted file mode 100644 index 770ea60b8bd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/README.md +++ /dev/null @@ -1,105 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [dataProductsAddUserRoleSample.ts][dataproductsadduserrolesample] | Assign role to the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json | -| [dataProductsCatalogsGetSample.ts][dataproductscatalogsgetsample] | Retrieve data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json | -| [dataProductsCatalogsListByResourceGroupSample.ts][dataproductscatalogslistbyresourcegroupsample] | List data catalog by resource group. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json | -| [dataProductsCatalogsListBySubscriptionSample.ts][dataproductscatalogslistbysubscriptionsample] | List data catalog by subscription. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json | -| [dataProductsCreateSample.ts][dataproductscreatesample] | Create data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json | -| [dataProductsDeleteSample.ts][dataproductsdeletesample] | Delete data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json | -| [dataProductsGenerateStorageAccountSasTokenSample.ts][dataproductsgeneratestorageaccountsastokensample] | Generate sas token for storage account. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json | -| [dataProductsGetSample.ts][dataproductsgetsample] | Retrieve data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json | -| [dataProductsListByResourceGroupSample.ts][dataproductslistbyresourcegroupsample] | List data products by resource group. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json | -| [dataProductsListBySubscriptionSample.ts][dataproductslistbysubscriptionsample] | List data products by subscription. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json | -| [dataProductsListRolesAssignmentsSample.ts][dataproductslistrolesassignmentssample] | List user roles associated with the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json | -| [dataProductsRemoveUserRoleSample.ts][dataproductsremoveuserrolesample] | Remove role from the data product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json | -| [dataProductsRotateKeySample.ts][dataproductsrotatekeysample] | Initiate key rotation on Data Product. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json | -| [dataProductsUpdateSample.ts][dataproductsupdatesample] | Update data product resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json | -| [dataTypesCreateSample.ts][datatypescreatesample] | Create data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json | -| [dataTypesDeleteDataSample.ts][datatypesdeletedatasample] | Delete data for data type. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json | -| [dataTypesDeleteSample.ts][datatypesdeletesample] | Delete data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json | -| [dataTypesGenerateStorageContainerSasTokenSample.ts][datatypesgeneratestoragecontainersastokensample] | Generate sas token for storage container. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json | -| [dataTypesGetSample.ts][datatypesgetsample] | Retrieve data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json | -| [dataTypesListByDataProductSample.ts][datatypeslistbydataproductsample] | List data type by parent resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json | -| [dataTypesUpdateSample.ts][datatypesupdatesample] | Update data type resource. x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json | -| [operationsListSample.ts][operationslistsample] | List the operations for the provider x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/dataProductsAddUserRoleSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env NETWORKANALYTICS_SUBSCRIPTION_ID="" NETWORKANALYTICS_RESOURCE_GROUP="" node dist/dataProductsAddUserRoleSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[dataproductsadduserrolesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts -[dataproductscatalogsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts -[dataproductscatalogslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts -[dataproductscatalogslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts -[dataproductscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsCreateSample.ts -[dataproductsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsDeleteSample.ts -[dataproductsgeneratestorageaccountsastokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts -[dataproductsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsGetSample.ts -[dataproductslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts -[dataproductslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts -[dataproductslistrolesassignmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts -[dataproductsremoveuserrolesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts -[dataproductsrotatekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsRotateKeySample.ts -[dataproductsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataProductsUpdateSample.ts -[datatypescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesCreateSample.ts -[datatypesdeletedatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesDeleteDataSample.ts -[datatypesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesDeleteSample.ts -[datatypesgeneratestoragecontainersastokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts -[datatypesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesGetSample.ts -[datatypeslistbydataproductsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesListByDataProductSample.ts -[datatypesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/dataTypesUpdateSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkanalytics/arm-networkanalytics/samples/v1/typescript/src/operationsListSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/package.json deleted file mode 100644 index bd15d9edddc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-networkanalytics-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/networkanalytics/arm-networkanalytics" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkanalytics/arm-networkanalytics", - "dependencies": { - "@azure/arm-networkanalytics": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.4.5", - "rimraf": "latest" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/sample.env deleted file mode 100644 index 672847a3fea..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts deleted file mode 100644 index 08a9a5c9cae..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsAddUserRoleSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts.map deleted file mode 100644 index d518d99115b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsAddUserRoleSample.d.ts","sourceRoot":"","sources":["dataProductsAddUserRoleSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js deleted file mode 100644 index 67f539c7eb0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "userName" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsAddUserRoleMaximumSetGen(); - dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsAddUserRoleSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js.map deleted file mode 100644 index 741a0b07ba6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsAddUserRoleSample.js","sourceRoot":"","sources":["dataProductsAddUserRoleSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oCAAoC;IACjD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MA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MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oCAAoC,EAAE,CAAC;IACvC,0EAA0E,EAAE,CAAC;AAC/E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts deleted file mode 100644 index bfb77048d0b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsAddUserRoleSample.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RoleAssignmentCommonProperties, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: RoleAssignmentCommonProperties = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Assign role to the data product. - * - * @summary Assign role to the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json - */ -async function dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: RoleAssignmentCommonProperties = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "userName" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.addUserRole( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsAddUserRoleMaximumSetGen(); - dataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts deleted file mode 100644 index 439be196c27..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsCatalogsGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts.map deleted file mode 100644 index d64156b4ec2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsGetSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js deleted file mode 100644 index bb08cd33beb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} -async function main() { - dataProductsCatalogsGetMaximumSetGen(); - dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsCatalogsGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js.map deleted file mode 100644 index f9a13670022..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsGetSample.js","sourceRoot":"","sources":["dataProductsCatalogsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oCAAoC;IACjD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,0EAA0E;IACvF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oCAAoC,EAAE,CAAC;IACvC,0EAA0E,EAAE,CAAC;AAC/E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts deleted file mode 100644 index 77024bf580e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsGetSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json - */ -async function dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProductsCatalogs.get(resourceGroupName); - console.log(result); -} - -async function main() { - dataProductsCatalogsGetMaximumSetGen(); - dataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts deleted file mode 100644 index f549f2e8369..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsCatalogsListByResourceGroupSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts.map deleted file mode 100644 index 10d4d684bcf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsListByResourceGroupSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js deleted file mode 100644 index 514ab839f10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataProductsCatalogsListByResourceGroupMaximumSetGen(); - dataProductsCatalogsListByResourceGroupMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsCatalogsListByResourceGroupSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js.map deleted file mode 100644 index 1c67ce10215..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsListByResourceGroupSample.js","sourceRoot":"","sources":["dataProductsCatalogsListByResourceGroupSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,oDAAoD;IACjE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,oBAAoB,CAAC,mBAAmB,CACpE,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,oDAAoD;IACjE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,oBAAoB,CAAC,mBAAmB,CACpE,iBAAiB,CAClB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,oDAAoD,EAAE,CAAC;IACvD,oDAAoD,EAAE,CAAC;AACzD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts deleted file mode 100644 index 3d2367e68c0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListByResourceGroupSample.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data catalog by resource group. - * - * @summary List data catalog by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListByResourceGroupMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsCatalogsListByResourceGroupMaximumSetGen(); - dataProductsCatalogsListByResourceGroupMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts deleted file mode 100644 index 48c1050f815..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsCatalogsListBySubscriptionSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts.map deleted file mode 100644 index b81110d3880..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["dataProductsCatalogsListBySubscriptionSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js deleted file mode 100644 index 420a1b89bd2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataProductsCatalogsListBySubscriptionMaximumSetGen(); - dataProductsCatalogsListBySubscriptionMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsCatalogsListBySubscriptionSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js.map deleted file mode 100644 index 12366398fa5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogsListBySubscriptionSample.js","sourceRoot":"","sources":["dataProductsCatalogsListBySubscriptionSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uD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"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts deleted file mode 100644 index 93ad8a8215f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCatalogsListBySubscriptionSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data catalog by subscription. - * - * @summary List data catalog by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsCatalogsListBySubscriptionMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProductsCatalogs.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsCatalogsListBySubscriptionMaximumSetGen(); - dataProductsCatalogsListBySubscriptionMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts deleted file mode 100644 index 9b3aa33756a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsCreateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts.map deleted file mode 100644 index 1b249dd5fcb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCreateSample.d.ts","sourceRoot":"","sources":["dataProductsCreateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js deleted file mode 100644 index c5ec3708b58..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } - }, - location: "eastus", - properties: { - consumptionEndpoints: {}, - currentMinorVersion: "1.0.1", - customerEncryptionKey: { - keyName: "keyName", - keyVaultUri: "https://KeyVault.vault.azure.net", - keyVersion: "keyVersion" - }, - customerManagedKeyEncryptionEnabled: "Enabled", - majorVersion: "1.0.0", - managedResourceGroupConfiguration: { - name: "managedResourceGroupName", - location: "eastus" - }, - networkacls: { - allowedQueryIpRangeList: ["1.1.1.1"], - defaultAction: "Allow", - ipRules: [{ action: "Allow", value: "1.1.1.1" }], - virtualNetworkRule: [ - { - action: "Allow", - id: "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", - state: "" - } - ] - }, - owners: ["abc@micros.com"], - privateLinksEnabled: "Disabled", - product: "MCC", - provisioningState: "Succeeded", - publicNetworkAccess: "Enabled", - publisher: "Microsoft", - purviewAccount: "testpurview", - purviewCollection: "134567890", - redundancy: "Disabled" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait(resourceGroupName, dataProductName, resource); - console.log(result); -} -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource = { - location: "eastus", - properties: { - majorVersion: "1.0.0", - product: "MCC", - publisher: "Microsoft" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait(resourceGroupName, dataProductName, resource); - console.log(result); -} -async function main() { - dataProductsCreateMaximumSetGen(); - dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsCreateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js.map deleted file mode 100644 index 7bccad90499..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCreateSample.js","sourceRoot":"","sources":["dataProductsCreateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,QAAQ,GAAgB;QAC5B,QAAQ,EAAE;YACR,IAAI,EAAE,cAAc;YACpB,sBAAsB,EAAE;gBACtB,qHAAqH,EAAE,EAAE;aAC1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B,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,QAAQ,GAAgB;QAC5B,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACV,YAAY,EAAE,OAAO;YACrB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,WAAW;SACvB;QACD,IAAI,EAAE,EAAE,oBAAoB,EAAE,uBAAuB,EAAE;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.ts deleted file mode 100644 index 68837e98b83..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsCreateSample.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataProduct, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource: DataProduct = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } - }, - location: "eastus", - properties: { - consumptionEndpoints: {}, - currentMinorVersion: "1.0.1", - customerEncryptionKey: { - keyName: "keyName", - keyVaultUri: "https://KeyVault.vault.azure.net", - keyVersion: "keyVersion" - }, - customerManagedKeyEncryptionEnabled: "Enabled", - majorVersion: "1.0.0", - managedResourceGroupConfiguration: { - name: "managedResourceGroupName", - location: "eastus" - }, - networkacls: { - allowedQueryIpRangeList: ["1.1.1.1"], - defaultAction: "Allow", - ipRules: [{ action: "Allow", value: "1.1.1.1" }], - virtualNetworkRule: [ - { - action: "Allow", - id: - "/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName", - state: "" - } - ] - }, - owners: ["abc@micros.com"], - privateLinksEnabled: "Disabled", - product: "MCC", - provisioningState: "Succeeded", - publicNetworkAccess: "Enabled", - publisher: "Microsoft", - purviewAccount: "testpurview", - purviewCollection: "134567890", - redundancy: "Disabled" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait( - resourceGroupName, - dataProductName, - resource - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create data product resource. - * - * @summary Create data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json - */ -async function dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const resource: DataProduct = { - location: "eastus", - properties: { - majorVersion: "1.0.0", - product: "MCC", - publisher: "Microsoft" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginCreateAndWait( - resourceGroupName, - dataProductName, - resource - ); - console.log(result); -} - -async function main() { - dataProductsCreateMaximumSetGen(); - dataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts deleted file mode 100644 index 5b05bd03888..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsDeleteSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts.map deleted file mode 100644 index ec49e8459e0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsDeleteSample.d.ts","sourceRoot":"","sources":["dataProductsDeleteSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js deleted file mode 100644 index 2f3a7e1c206..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); - console.log(result); -} -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait(resourceGroupName, dataProductName); - console.log(result); -} -async function main() { - dataProductsDeleteMaximumSetGen(); - dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsDeleteSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js.map deleted file mode 100644 index c6bceb0cc74..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsDeleteSample.js","sourceRoot":"","sources":["dataProductsDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.ts deleted file mode 100644 index ae058b82a9c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsDeleteSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait( - resourceGroupName, - dataProductName - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data product resource. - * - * @summary Delete data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json - */ -async function dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginDeleteAndWait( - resourceGroupName, - dataProductName - ); - console.log(result); -} - -async function main() { - dataProductsDeleteMaximumSetGen(); - dataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts deleted file mode 100644 index 2eb1d1da828..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsGenerateStorageAccountSasTokenSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map deleted file mode 100644 index 37ff2588b31..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsGenerateStorageAccountSasTokenSample.d.ts","sourceRoot":"","sources":["dataProductsGenerateStorageAccountSasTokenSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js deleted file mode 100644 index a508027d425..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.151Z") - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:17.051Z") - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); - dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsGenerateStorageAccountSasTokenSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js.map deleted file mode 100644 index 44fda47931e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsGenerateStorageAccountSasTokenSample.js","sourceRoot":"","sources":["dataProductsGenerateStorageAccountSasTokenSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAu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AG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,8BAA8B,CACrE,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uDAAuD,EAAE,CAAC;IAC1D,6FAA6F,EAAE,CAAC;AAClG,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts deleted file mode 100644 index 105e2b635ab..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGenerateStorageAccountSasTokenSample.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AccountSas, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: AccountSas = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.151Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.151Z") - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Generate sas token for storage account. - * - * @summary Generate sas token for storage account. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json - */ -async function dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: AccountSas = { - expiryTimeStamp: new Date("2023-08-24T05:35:17.051Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:17.051Z") - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.generateStorageAccountSasToken( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsGenerateStorageAccountSasTokenMaximumSetGen(); - dataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts deleted file mode 100644 index 46c65e12bf9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts.map deleted file mode 100644 index 8eded8ab304..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsGetSample.d.ts","sourceRoot":"","sources":["dataProductsGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js deleted file mode 100644 index fdf94c061a1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json - */ -async function dataProductsGetMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get(resourceGroupName, dataProductName); - console.log(result); -} -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json - */ -async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get(resourceGroupName, dataProductName); - console.log(result); -} -async function main() { - dataProductsGetMaximumSetGen(); - dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js.map deleted file mode 100644 index 8bdd1b1c4a5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsGetSample.js","sourceRoot":"","sources":["dataProductsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kEAAkE;IAC/E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.ts deleted file mode 100644 index 592a1bdef80..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsGetSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json - */ -async function dataProductsGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get( - resourceGroupName, - dataProductName - ); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data product resource. - * - * @summary Retrieve data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json - */ -async function dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.get( - resourceGroupName, - dataProductName - ); - console.log(result); -} - -async function main() { - dataProductsGetMaximumSetGen(); - dataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts deleted file mode 100644 index bd6a9f34578..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsListByResourceGroupSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts.map deleted file mode 100644 index 04cd8454f64..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["dataProductsListByResourceGroupSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js deleted file mode 100644 index 300dd9529c7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataProductsListByResourceGroupMaximumSetGen(); - dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsListByResourceGroupSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js.map deleted file mode 100644 index d1d40ba9da4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListByResourceGroupSample.js","sourceRoot":"","sources":["dataProductsListByResourceGroupSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4CAA4C;IACzD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC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tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts deleted file mode 100644 index 7db66b97df1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListByResourceGroupSample.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data products by resource group. - * - * @summary List data products by resource group. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json - */ -async function dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsListByResourceGroupMaximumSetGen(); - dataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts deleted file mode 100644 index ba89955049d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsListBySubscriptionSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts.map deleted file mode 100644 index 020e622aa95..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["dataProductsListBySubscriptionSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js deleted file mode 100644 index 1c54379b2de..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataProductsListBySubscriptionMaximumSetGen(); - dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsListBySubscriptionSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js.map deleted file mode 100644 index 5865fb720f9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListBySubscriptionSample.js","sourceRoot":"","sources":["dataProductsListBySubscriptionSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;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AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts deleted file mode 100644 index e765389b95b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListBySubscriptionSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data products by subscription. - * - * @summary List data products by subscription. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json - */ -async function dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataProducts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataProductsListBySubscriptionMaximumSetGen(); - dataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts deleted file mode 100644 index 08e3be1c25a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsListRolesAssignmentsSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts.map deleted file mode 100644 index d8102a183e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListRolesAssignmentsSample.d.ts","sourceRoot":"","sources":["dataProductsListRolesAssignmentsSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js deleted file mode 100644 index 7cda88f15bc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsListRolesAssignmentsMaximumSetGen(); - dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsListRolesAssignmentsSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js.map deleted file mode 100644 index a017ecf12a7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsListRolesAssignmentsSample.js","sourceRoot":"","sources":["dataProductsListRolesAssignmentsSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,6CAA6C;IAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAC3D,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,mFAAmF;IAChG,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAC3D,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,6CAA6C,EAAE,CAAC;IAChD,mFAAmF,EAAE,CAAC;AACxF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts deleted file mode 100644 index 1893752fa9b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsListRolesAssignmentsSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to List user roles associated with the data product. - * - * @summary List user roles associated with the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json - */ -async function dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.listRolesAssignments( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsListRolesAssignmentsMaximumSetGen(); - dataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts deleted file mode 100644 index 0e34b2f8842..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsRemoveUserRoleSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts.map deleted file mode 100644 index 2431bfc978e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsRemoveUserRoleSample.d.ts","sourceRoot":"","sources":["dataProductsRemoveUserRoleSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js deleted file mode 100644 index 1c2281e0c39..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsRemoveUserRoleMaximumSetGen(); - dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsRemoveUserRoleSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js.map deleted file mode 100644 index 2e9a69e8aef..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsRemoveUserRoleSample.js","sourceRoot":"","sources":["dataProductsRemoveUserRoleSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,uCAAuC;IACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;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iB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uCAAuC,EAAE,CAAC;IAC1C,6EAA6E,EAAE,CAAC;AAClF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts deleted file mode 100644 index 0344a82c8d0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRemoveUserRoleSample.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RoleAssignmentDetail, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: RoleAssignmentDetail = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Remove role from the data product. - * - * @summary Remove role from the data product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json - */ -async function dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: RoleAssignmentDetail = { - dataTypeScope: ["scope"], - principalId: "00000000-0000-0000-0000-00000000000", - principalType: "User", - role: "Reader", - roleAssignmentId: "00000000-0000-0000-0000-00000000000", - roleId: "00000000-0000-0000-0000-00000000000", - userName: "UserName" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.removeUserRole( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsRemoveUserRoleMaximumSetGen(); - dataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts deleted file mode 100644 index 1ab1a48d7c2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsRotateKeySample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts.map deleted file mode 100644 index 59027d7af9e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsRotateKeySample.d.ts","sourceRoot":"","sources":["dataProductsRotateKeySample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js deleted file mode 100644 index ade311c50d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - keyVaultUrl: "https://myKeyVault.vault.azure.net" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); - console.log(result); -} -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body = { - keyVaultUrl: "https://myKeyVault.vault.azure.net" - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey(resourceGroupName, dataProductName, body); - console.log(result); -} -async function main() { - dataProductsRotateKeyMaximumSetGen(); - dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsRotateKeySample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js.map deleted file mode 100644 index 61dd664fda2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsRotateKeySample.js","sourceRoot":"","sources":["dataProductsRotateKeySample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,kCAAkC;IAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAiB;QACzB,WAAW,EAAE,oCAAoC;KAClD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,SAAS,CAChD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,wEAAwE;IACrF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,IAAI,GAAiB;QACzB,WAAW,EAAE,oCAAoC;KAClD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,SAAS,CAChD,iBAAiB,EACjB,eAAe,EACf,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,kCAAkC,EAAE,CAAC;IACrC,wEAAwE,EAAE,CAAC;AAC7E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.ts deleted file mode 100644 index c280787be94..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsRotateKeySample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - KeyVaultInfo, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: KeyVaultInfo = { - keyVaultUrl: "https://myKeyVault.vault.azure.net" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Initiate key rotation on Data Product. - * - * @summary Initiate key rotation on Data Product. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json - */ -async function dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const body: KeyVaultInfo = { - keyVaultUrl: "https://myKeyVault.vault.azure.net" - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.rotateKey( - resourceGroupName, - dataProductName, - body - ); - console.log(result); -} - -async function main() { - dataProductsRotateKeyMaximumSetGen(); - dataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts deleted file mode 100644 index 705d979ef6b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataProductsUpdateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts.map deleted file mode 100644 index a3d1e0913f1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsUpdateSample.d.ts","sourceRoot":"","sources":["dataProductsUpdateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js deleted file mode 100644 index ceda37fd89d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } - }, - properties: { - currentMinorVersion: "1.0.1", - owners: ["abc@micros.com", "def@micros.com"], - privateLinksEnabled: "Disabled", - purviewAccount: "testpurview", - purviewCollection: "134567890" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait(resourceGroupName, dataProductName, properties); - console.log(result); -} -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait(resourceGroupName, dataProductName, properties); - console.log(result); -} -async function main() { - dataProductsUpdateMaximumSetGen(); - dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataProductsUpdateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js.map deleted file mode 100644 index 619daa74264..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsUpdateSample.js","sourceRoot":"","sources":["dataProductsUpdateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,+BAA+B;IAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAsB;QACpC,QAAQ,EAAE;YACR,IAAI,EAAE,cAAc;YACpB,sBAAsB,EAAE;gBACtB,qHAAqH,EAAE,EAAE;aAC1H;SACF;QACD,UAAU,EAAE;YACV,mBAAmB,EAAE,OAAO;YAC5B,MAAM,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;YAC5C,mBAAmB,EAAE,UAAU;YAC/B,cAAc,EAAE,aAAa;YAC7B,iBAAiB,EAAE,WAAW;SAC/B;QACD,IAAI,EAAE,EAAE,oBAAoB,EAAE,uBAAuB,EAAE;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,qEAAqE;IAClF,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAsB,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,+BAA+B,EAAE,CAAC;IAClC,qEAAqE,EAAE,CAAC;AAC1E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.ts deleted file mode 100644 index 0edc31352db..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataProductsUpdateSample.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataProductUpdate, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties: DataProductUpdate = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } - }, - properties: { - currentMinorVersion: "1.0.1", - owners: ["abc@micros.com", "def@micros.com"], - privateLinksEnabled: "Disabled", - purviewAccount: "testpurview", - purviewCollection: "134567890" - }, - tags: { userSpecifiedKeyName: "userSpecifiedKeyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait( - resourceGroupName, - dataProductName, - properties - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update data product resource. - * - * @summary Update data product resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json - */ -async function dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const properties: DataProductUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataProducts.beginUpdateAndWait( - resourceGroupName, - dataProductName, - properties - ); - console.log(result); -} - -async function main() { - dataProductsUpdateMaximumSetGen(); - dataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts deleted file mode 100644 index 0887d5b0dd8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesCreateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts.map deleted file mode 100644 index 20477ab2ad0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesCreateSample.d.ts","sourceRoot":"","sources":["dataTypesCreateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js deleted file mode 100644 index b402f22d9ce..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource = { - properties: { - databaseCacheRetention: 23, - databaseRetention: 6, - provisioningState: "Succeeded", - state: "STARTED", - storageOutputRetention: 27 - } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource); - console.log(result); -} -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource); - console.log(result); -} -async function main() { - dataTypesCreateMaximumSetGen(); - dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesCreateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js.map deleted file mode 100644 index a6c6ad7ca26..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesCreateSample.js","sourceRoot":"","sources":["dataTypesCreateSample.ts"],"names":[],"mappings":";AAAA;;;;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9B,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.ts deleted file mode 100644 index 0f9ea34a269..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesCreateSample.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataType, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MaximumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource: DataType = { - properties: { - databaseCacheRetention: 23, - databaseRetention: 6, - provisioningState: "Succeeded", - state: "STARTED", - storageOutputRetention: 27 - } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - resource - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create data type resource. - * - * @summary Create data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Create_MinimumSet_Gen.json - */ -async function dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const resource: DataType = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginCreateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - resource - ); - console.log(result); -} - -async function main() { - dataTypesCreateMaximumSetGen(); - dataTypesCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts deleted file mode 100644 index b5e63d57ede..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesDeleteDataSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts.map deleted file mode 100644 index 1c012b1b837..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesDeleteDataSample.d.ts","sourceRoot":"","sources":["dataTypesDeleteDataSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js deleted file mode 100644 index d5d1e4ff3e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json - */ -async function dataTypesDeleteDataMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body); - console.log(result); -} -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json - */ -async function dataTypesDeleteDataMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body); - console.log(result); -} -async function main() { - dataTypesDeleteDataMaximumSetGen(); - dataTypesDeleteDataMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesDeleteDataSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js.map deleted file mode 100644 index 8bd8de885e5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesDeleteDataSample.js","sourceRoot":"","sources":["dataTypesDeleteDataSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,gCAAgC;IAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAC1D,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,gCAAgC;IAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAA4B,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAC1D,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,CACL,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,gCAAgC,EAAE,CAAC;IACnC,gCAAgC,EAAE,CAAC;AACrC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.ts deleted file mode 100644 index 8c031b138fc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteDataSample.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MaximumSet_Gen.json - */ -async function dataTypesDeleteDataMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data for data type. - * - * @summary Delete data for data type. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_DeleteData_MinimumSet_Gen.json - */ -async function dataTypesDeleteDataMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteDataAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - body - ); - console.log(result); -} - -async function main() { - dataTypesDeleteDataMaximumSetGen(); - dataTypesDeleteDataMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts deleted file mode 100644 index 87b7d3cb874..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesDeleteSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts.map deleted file mode 100644 index 0a08af135b5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesDeleteSample.d.ts","sourceRoot":"","sources":["dataTypesDeleteSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js deleted file mode 100644 index 948f82efc90..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} -async function main() { - dataTypesDeleteMaximumSetGen(); - dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesDeleteSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js.map deleted file mode 100644 index 5769d9b6400..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesDeleteSample.js","sourceRoot":"","sources":["dataTypesDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAA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E,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.ts deleted file mode 100644 index 11a0a3ab64a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesDeleteSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MaximumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait( - resourceGroupName, - dataProductName, - dataTypeName - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete data type resource. - * - * @summary Delete data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Delete_MinimumSet_Gen.json - */ -async function dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginDeleteAndWait( - resourceGroupName, - dataProductName, - dataTypeName - ); - console.log(result); -} - -async function main() { - dataTypesDeleteMaximumSetGen(); - dataTypesDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts deleted file mode 100644 index 6deef309b71..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesGenerateStorageContainerSasTokenSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map deleted file mode 100644 index e73e12c0ff7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesGenerateStorageContainerSasTokenSample.d.ts","sourceRoot":"","sources":["dataTypesGenerateStorageContainerSasTokenSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js deleted file mode 100644 index 063c422c66e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.039Z") - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body); - console.log(result); -} -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body = { - expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:16.887Z") - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body); - console.log(result); -} -async function main() { - dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); - dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesGenerateStorageContainerSasTokenSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js.map deleted file mode 100644 index c85d5711899..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesGenerateStorageContainerSasTokenSample.js","sourceRoot":"","sources":["dataTypesGenerateStorageContainerSasTokenSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,sDAAsD;IACnE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,IAAI,GAAiB;QACzB,eAAe,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;QACrD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IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts deleted file mode 100644 index c59582d1e86..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGenerateStorageContainerSasTokenSample.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ContainerSaS, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MaximumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body: ContainerSaS = { - expiryTimeStamp: new Date("2023-08-24T05:34:58.039Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:34:58.039Z") - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken( - resourceGroupName, - dataProductName, - dataTypeName, - body - ); - console.log(result); -} - -/** - * This sample demonstrates how to Generate sas token for storage container. - * - * @summary Generate sas token for storage container. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_GenerateStorageContainerSasToken_MinimumSet_Gen.json - */ -async function dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const body: ContainerSaS = { - expiryTimeStamp: new Date("2023-08-24T05:35:16.887Z"), - ipAddress: "1.1.1.1", - startTimeStamp: new Date("2023-08-24T05:35:16.887Z") - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.generateStorageContainerSasToken( - resourceGroupName, - dataProductName, - dataTypeName, - body - ); - console.log(result); -} - -async function main() { - dataTypesGenerateStorageContainerSasTokenMaximumSetGen(); - dataTypesGenerateStorageContainerSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts deleted file mode 100644 index f624173fcc5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesGetSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts.map deleted file mode 100644 index 35fc22320bf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesGetSample.d.ts","sourceRoot":"","sources":["dataTypesGetSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js deleted file mode 100644 index 39fef8479f0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json - */ -async function dataTypesGetMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json - */ -async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get(resourceGroupName, dataProductName, dataTypeName); - console.log(result); -} -async function main() { - dataTypesGetMaximumSetGen(); - dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesGetSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js.map deleted file mode 100644 index 4fe2f6674ef..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesGetSample.js","sourceRoot":"","sources":["dataTypesGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,yBAAyB;IACtC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,+DAA+D;IAC5E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,eAAe,EACf,YAAY,CACb,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,yBAAyB,EAAE,CAAC;IAC5B,+DAA+D,EAAE,CAAC;AACpE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.ts deleted file mode 100644 index c430835edb8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesGetSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MaximumSet_Gen.json - */ -async function dataTypesGetMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get( - resourceGroupName, - dataProductName, - dataTypeName - ); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve data type resource. - * - * @summary Retrieve data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Get_MinimumSet_Gen.json - */ -async function dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.get( - resourceGroupName, - dataProductName, - dataTypeName - ); - console.log(result); -} - -async function main() { - dataTypesGetMaximumSetGen(); - dataTypesGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts deleted file mode 100644 index cc9f3d58e87..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesListByDataProductSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts.map deleted file mode 100644 index 52d1e22cd82..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesListByDataProductSample.d.ts","sourceRoot":"","sources":["dataTypesListByDataProductSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js deleted file mode 100644 index 53cc8222da3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct(resourceGroupName, dataProductName)) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - dataTypesListByDataProductMaximumSetGen(); - dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesListByDataProductSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js.map deleted file mode 100644 index a309ebfd60c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesListByDataProductSample.js","sourceRoot":"","sources":["dataTypesListByDataProductSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,uCAAuC;IACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,UAAU,GAAG,IAAI,iC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-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.ts deleted file mode 100644 index 894c944360d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesListByDataProductSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct( - resourceGroupName, - dataProductName - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List data type by parent resource. - * - * @summary List data type by parent resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json - */ -async function dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTypes.listByDataProduct( - resourceGroupName, - dataProductName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - dataTypesListByDataProductMaximumSetGen(); - dataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts deleted file mode 100644 index a6d1b42eda1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dataTypesUpdateSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts.map deleted file mode 100644 index e947203e164..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesUpdateSample.d.ts","sourceRoot":"","sources":["dataTypesUpdateSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js deleted file mode 100644 index 8765bbda915..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties = { - properties: { - databaseCacheRetention: 16, - databaseRetention: 9, - state: "STARTED", - storageOutputRetention: 30 - } - }; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties); - console.log(result); -} -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties = {}; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties); - console.log(result); -} -async function main() { - dataTypesUpdateMaximumSetGen(); - dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=dataTypesUpdateSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js.map deleted file mode 100644 index 54f1e05bc38..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypesUpdateSample.js","sourceRoot":"","sources":["dataTypesUpdateSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAGqC;AACrC,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,4BAA4B;IACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAmB;QACjC,UAAU,EAAE;YACV,sBAAsB,EAAE,EAAE;YAC1B,iBAAiB,EAAE,CAAC;YACpB,KAAK,EAAE,SAAS;YAChB,sBAAsB,EAAE,EAAE;SAC3B;KACF,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,kEAAkE;IAC/E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,qCAAqC,CAAC;IACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,sBAAsB,CAAC;IAC3E,MAAM,eAAe,GAAG,eAAe,CAAC;IACxC,MAAM,YAAY,GAAG,cAAc,CAAC;IACpC,MAAM,UAAU,GAAmB,EAAE,CAAC;IACtC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,UAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,4BAA4B,EAAE,CAAC;IAC/B,kEAAkE,EAAE,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.ts deleted file mode 100644 index 600eac4fa74..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/dataTypesUpdateSample.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataTypeUpdate, - MicrosoftNetworkAnalytics -} from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MaximumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties: DataTypeUpdate = { - properties: { - databaseCacheRetention: 16, - databaseRetention: 9, - state: "STARTED", - storageOutputRetention: 30 - } - }; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - properties - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update data type resource. - * - * @summary Update data type resource. - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_Update_MinimumSet_Gen.json - */ -async function dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-00000000000"; - const resourceGroupName = - process.env["NETWORKANALYTICS_RESOURCE_GROUP"] || "aoiresourceGroupName"; - const dataProductName = "dataproduct01"; - const dataTypeName = "datatypename"; - const properties: DataTypeUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const result = await client.dataTypes.beginUpdateAndWait( - resourceGroupName, - dataProductName, - dataTypeName, - properties - ); - console.log(result); -} - -async function main() { - dataTypesUpdateMaximumSetGen(); - dataTypesUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts deleted file mode 100644 index cb740f3e024..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=operationsListSample.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts.map deleted file mode 100644 index 772fe831a00..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["operationsListSample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js deleted file mode 100644 index 15e702bc0dd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const arm_networkanalytics_1 = require("@azure/arm-networkanalytics"); -const identity_1 = require("@azure/identity"); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json - */ -async function operationsListMaximumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json - */ -async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new identity_1.DefaultAzureCredential(); - const client = new arm_networkanalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} -async function main() { - operationsListMaximumSetGen(); - operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} -main().catch(console.error); -//# sourceMappingURL=operationsListSample.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js.map deleted file mode 100644 index a5bb0133a22..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["operationsListSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,sEAAwE;AACxE,8CAAyD;AACzD,uDAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,KAAK,UAAU,2BAA2B;IACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,sCAAsC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,iEAAiE;IAC9E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;QAC/C,sCAAsC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,gDAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;IAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,2BAA2B,EAAE,CAAC;IAC9B,iEAAiE,EAAE,CAAC;AACtE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.ts deleted file mode 100644 index 6640d1a5b7f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MicrosoftNetworkAnalytics } from "@azure/arm-networkanalytics"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MaximumSet_Gen.json - */ -async function operationsListMaximumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/Operations_List_MinimumSet_Gen.json - */ -async function operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen() { - const subscriptionId = - process.env["NETWORKANALYTICS_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MicrosoftNetworkAnalytics(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationsListMaximumSetGen(); - operationsListMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen(); -} - -main().catch(console.error); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/tsconfig.json deleted file mode 100644 index e26ce2a6d8f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/samples/v1/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**.ts" - ] -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts deleted file mode 100644 index 7f85302468c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { MicrosoftNetworkAnalytics } from "./microsoftNetworkAnalytics"; -export * from "./operationsInterfaces"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts.map deleted file mode 100644 index bb971dcc694..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js deleted file mode 100644 index d04af681e9f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MicrosoftNetworkAnalytics = exports.getContinuationToken = void 0; -const tslib_1 = require("tslib"); -/// -var pagingHelper_1 = require("./pagingHelper"); -Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_1.getContinuationToken; } }); -tslib_1.__exportStar(require("./models"), exports); -var microsoftNetworkAnalytics_1 = require("./microsoftNetworkAnalytics"); -Object.defineProperty(exports, "MicrosoftNetworkAnalytics", { enumerable: true, get: function () { return microsoftNetworkAnalytics_1.MicrosoftNetworkAnalytics; } }); -tslib_1.__exportStar(require("./operationsInterfaces"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js.map deleted file mode 100644 index 66bcffef3df..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,+CAAsD;AAA7C,oHAAA,oBAAoB,OAAA;AAC7B,mDAAyB;AACzB,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,iEAAuC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.ts deleted file mode 100644 index accda255b1a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -/// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { MicrosoftNetworkAnalytics } from "./microsoftNetworkAnalytics"; -export * from "./operationsInterfaces"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts deleted file mode 100644 index e5dad739459..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export declare function createLroSpec(inputs: { - sendOperationFn: (args: any, spec: any) => Promise>; - args: Record; - spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record; -}): LongRunningOperation; -//# sourceMappingURL=lroImpl.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts.map deleted file mode 100644 index b5a423c251f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js deleted file mode 100644 index 437247e6126..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createLroSpec = createLroSpec; -function createLroSpec(inputs) { - const { args, spec, sendOperationFn } = inputs; - return { - requestMethod: spec.httpMethod, - requestPath: spec.path, - sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: (path, options) => { - const { requestBody, ...restSpec } = spec; - return sendOperationFn(args, { - ...restSpec, - httpMethod: "GET", - path, - abortSignal: options?.abortSignal - }); - } - }; -} -//# sourceMappingURL=lroImpl.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js.map deleted file mode 100644 index 2db139d026a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,sCA2BC;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.ts deleted file mode 100644 index dd803cd5e28..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/lroImpl.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { AbortSignalLike } from "@azure/abort-controller"; -import { LongRunningOperation, LroResponse } from "@azure/core-lro"; - -export function createLroSpec(inputs: { - sendOperationFn: (args: any, spec: any) => Promise>; - args: Record; - spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record; -}): LongRunningOperation { - const { args, spec, sendOperationFn } = inputs; - return { - requestMethod: spec.httpMethod, - requestPath: spec.path!, - sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: ( - path: string, - options?: { abortSignal?: AbortSignalLike } - ) => { - const { requestBody, ...restSpec } = spec; - return sendOperationFn(args, { - ...restSpec, - httpMethod: "GET", - path, - abortSignal: options?.abortSignal - }); - } - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts deleted file mode 100644 index 54a3dafef0b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import * as coreClient from "@azure/core-client"; -import * as coreAuth from "@azure/core-auth"; -import { Operations, DataProducts, DataProductsCatalogs, DataTypes } from "./operationsInterfaces"; -import { MicrosoftNetworkAnalyticsOptionalParams } from "./models"; -export declare class MicrosoftNetworkAnalytics extends coreClient.ServiceClient { - $host: string; - apiVersion: string; - subscriptionId: string; - /** - * Initializes a new instance of the MicrosoftNetworkAnalytics class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. - * @param options The parameter options - */ - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftNetworkAnalyticsOptionalParams); - /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ - private addCustomApiVersionPolicy; - operations: Operations; - dataProducts: DataProducts; - dataProductsCatalogs: DataProductsCatalogs; - dataTypes: DataTypes; -} -//# sourceMappingURL=microsoftNetworkAnalytics.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts.map deleted file mode 100644 index 95f02526ac6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"microsoftNetworkAnalytics.d.ts","sourceRoot":"","sources":["microsoftNetworkAnalytics.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uCAAuC,EAAE,MAAM,UAAU,CAAC;AAEnE,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC;IA+EnD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC;CACtB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js deleted file mode 100644 index 449740710a6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js +++ /dev/null @@ -1,117 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MicrosoftNetworkAnalytics = void 0; -const tslib_1 = require("tslib"); -const coreClient = tslib_1.__importStar(require("@azure/core-client")); -const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline")); -const operations_1 = require("./operations"); -class MicrosoftNetworkAnalytics extends coreClient.ServiceClient { - $host; - apiVersion; - subscriptionId; - /** - * Initializes a new instance of the MicrosoftNetworkAnalytics class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. - * @param options The parameter options - */ - constructor(credentials, subscriptionId, options) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults = { - requestContentType: "application/json; charset=utf-8", - credential: credentials - }; - const packageDetails = `azsdk-js-arm-networkanalytics/1.0.1`; - const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix - }, - endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com" - }; - super(optionsWithDefaults); - let bearerTokenAuthenticationPolicyFound = false; - if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies = options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName); - } - if (!options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge - } - })); - } - // Parameter assignments - this.subscriptionId = subscriptionId; - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-11-15"; - this.operations = new operations_1.OperationsImpl(this); - this.dataProducts = new operations_1.DataProductsImpl(this); - this.dataProductsCatalogs = new operations_1.DataProductsCatalogsImpl(this); - this.dataTypes = new operations_1.DataTypesImpl(this); - this.addCustomApiVersionPolicy(options.apiVersion); - } - /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ - addCustomApiVersionPolicy(apiVersion) { - if (!apiVersion) { - return; - } - const apiVersionPolicy = { - name: "CustomApiVersionPolicy", - async sendRequest(request, next) { - const param = request.url.split("?"); - if (param.length > 1) { - const newParams = param[1].split("&").map((item) => { - if (item.indexOf("api-version") > -1) { - return "api-version=" + apiVersion; - } - else { - return item; - } - }); - request.url = param[0] + "?" + newParams.join("&"); - } - return next(request); - } - }; - this.pipeline.addPolicy(apiVersionPolicy); - } - operations; - dataProducts; - dataProductsCatalogs; - dataTypes; -} -exports.MicrosoftNetworkAnalytics = MicrosoftNetworkAnalytics; -//# sourceMappingURL=microsoftNetworkAnalytics.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js.map deleted file mode 100644 index ca0f50325ed..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"microsoftNetworkAnalytics.js","sourceRoot":"","sources":["microsoftNetworkAnalytics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,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;QACzC,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,YAAY,CAAe;IAC3B,oBAAoB,CAAuB;IAC3C,SAAS,CAAY;CACtB;AA7HD,8DA6HC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.ts deleted file mode 100644 index 265eb302e7a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/microsoftNetworkAnalytics.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; -import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { - PipelineRequest, - PipelineResponse, - SendRequest -} from "@azure/core-rest-pipeline"; -import * as coreAuth from "@azure/core-auth"; -import { - OperationsImpl, - DataProductsImpl, - DataProductsCatalogsImpl, - DataTypesImpl -} from "./operations"; -import { - Operations, - DataProducts, - DataProductsCatalogs, - DataTypes -} from "./operationsInterfaces"; -import { MicrosoftNetworkAnalyticsOptionalParams } from "./models"; - -export class MicrosoftNetworkAnalytics extends coreClient.ServiceClient { - $host: string; - apiVersion: string; - subscriptionId: string; - - /** - * Initializes a new instance of the MicrosoftNetworkAnalytics class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. - * @param options The parameter options - */ - constructor( - credentials: coreAuth.TokenCredential, - subscriptionId: string, - options?: MicrosoftNetworkAnalyticsOptionalParams - ) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults: MicrosoftNetworkAnalyticsOptionalParams = { - requestContentType: "application/json; charset=utf-8", - credential: credentials - }; - - const packageDetails = `azsdk-js-arm-networkanalytics/1.0.1`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix - }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" - }; - super(optionsWithDefaults); - - let bearerTokenAuthenticationPolicyFound: boolean = false; - if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( - (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName - ); - } - if ( - !options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound - ) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); - } - // Parameter assignments - this.subscriptionId = subscriptionId; - - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-11-15"; - this.operations = new OperationsImpl(this); - this.dataProducts = new DataProductsImpl(this); - this.dataProductsCatalogs = new DataProductsCatalogsImpl(this); - this.dataTypes = new DataTypesImpl(this); - this.addCustomApiVersionPolicy(options.apiVersion); - } - - /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ - private addCustomApiVersionPolicy(apiVersion?: string) { - if (!apiVersion) { - return; - } - const apiVersionPolicy = { - name: "CustomApiVersionPolicy", - async sendRequest( - request: PipelineRequest, - next: SendRequest - ): Promise { - const param = request.url.split("?"); - if (param.length > 1) { - const newParams = param[1].split("&").map((item) => { - if (item.indexOf("api-version") > -1) { - return "api-version=" + apiVersion; - } else { - return item; - } - }); - request.url = param[0] + "?" + newParams.join("&"); - } - return next(request); - } - }; - this.pipeline.addPolicy(apiVersionPolicy); - } - - operations: Operations; - dataProducts: DataProducts; - dataProductsCatalogs: DataProductsCatalogs; - dataTypes: DataTypes; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts deleted file mode 100644 index b1fcb6ce7a4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts +++ /dev/null @@ -1,976 +0,0 @@ -import * as coreClient from "@azure/core-client"; -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface OperationListResult { - /** - * List of operations supported by the resource provider - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; - /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: Origin; - /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionType?: ActionType; -} -/** Localized display information for this particular operation. */ -export interface OperationDisplay { - /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} -/** The response of a DataProduct list operation. */ -export interface DataProductListResult { - /** The DataProduct items on this page */ - value: DataProduct[]; - /** The link to the next page of items */ - nextLink?: string; -} -/** The data product properties. */ -export interface DataProductProperties { - /** - * The resource GUID property of the data product resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; - /** - * Latest provisioning state of data product. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** Data product publisher name. */ - publisher: string; - /** Product name of data product. */ - product: string; - /** Major version of data product. */ - majorVersion: string; - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Flag to enable or disable redundancy for data product. */ - redundancy?: ControlState; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Flag to enable or disable public access of data product resource. */ - publicNetworkAccess?: ControlState; - /** Flag to enable customer managed key encryption for data product. */ - customerManagedKeyEncryptionEnabled?: ControlState; - /** Customer managed encryption key details for data product. */ - customerEncryptionKey?: EncryptionKeyDetails; - /** Network rule set for data product. */ - networkacls?: DataProductNetworkAcls; - /** Managed resource group configuration. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - /** - * List of available minor versions of the data product resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableMinorVersions?: string[]; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; - /** - * Documentation link for the data product based on definition file. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly documentation?: string; - /** - * Resource links which exposed to the customer to query the data. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly consumptionEndpoints?: ConsumptionEndpointsProperties; - /** - * Key vault url. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly keyVaultUrl?: string; -} -/** Encryption key details. */ -export interface EncryptionKeyDetails { - /** The Uri of the key vault. */ - keyVaultUri: string; - /** The name of the key vault key. */ - keyName: string; - /** The version of the key vault key. */ - keyVersion: string; -} -/** Data Product Network rule set */ -export interface DataProductNetworkAcls { - /** Virtual Network Rule */ - virtualNetworkRule: VirtualNetworkRule[]; - /** IP rule with specific IP or IP range in CIDR format. */ - ipRules: IPRules[]; - /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ - allowedQueryIpRangeList: string[]; - /** Default Action */ - defaultAction: DefaultAction; -} -/** Virtual Network Rule */ -export interface VirtualNetworkRule { - /** Resource ID of a subnet */ - id: string; - /** The action of virtual network rule. */ - action?: string; - /** Gets the state of virtual network rule. */ - state?: string; -} -/** IP rule with specific IP or IP range in CIDR format. */ -export interface IPRules { - /** IP Rules Value */ - value?: string; - /** The action of virtual network rule. */ - action: string; -} -/** ManagedResourceGroup related properties */ -export interface ManagedResourceGroupConfiguration { - /** Name of managed resource group */ - name: string; - /** Managed Resource Group location */ - location: string; -} -/** Details of Consumption Properties */ -export interface ConsumptionEndpointsProperties { - /** - * Ingestion url to upload the data. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ingestionUrl?: string; - /** - * Resource Id of ingestion endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ingestionResourceId?: string; - /** - * Url to consume file type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fileAccessUrl?: string; - /** - * Resource Id of file access endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fileAccessResourceId?: string; - /** - * Url to consume the processed data. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly queryUrl?: string; - /** - * Resource Id of query endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly queryResourceId?: string; -} -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface ManagedServiceIdentity { - /** - * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ - type: ManagedServiceIdentityType; - /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentity; - }; -} -/** User assigned identity properties */ -export interface UserAssignedIdentity { - /** - * The principal ID of the assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The client ID of the assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; -} -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} -/** The response of a DataProductsCatalog list operation. */ -export interface DataProductsCatalogListResult { - /** The DataProductsCatalog items on this page */ - value: DataProductsCatalog[]; - /** The link to the next page of items */ - nextLink?: string; -} -/** Details for data catalog properties. */ -export interface DataProductsCatalogProperties { - /** - * The data catalog provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** The data product publisher information. */ - publishers: PublisherInformation[]; -} -/** Details for Publisher Information. */ -export interface PublisherInformation { - /** Name of the publisher. */ - publisherName: string; - /** Data product information. */ - dataProducts: DataProductInformation[]; -} -/** Data Product Information */ -export interface DataProductInformation { - /** Name of data product. */ - dataProductName: string; - /** Description about data product. */ - description: string; - /** Version information of data product. */ - dataProductVersions: DataProductVersion[]; -} -/** Data Product Version. */ -export interface DataProductVersion { - /** Version of data product */ - version: string; -} -/** The type used for update operations of the DataProduct. */ -export interface DataProductUpdate { - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; - /** Resource tags. */ - tags?: { - [propertyName: string]: string; - }; - /** The updatable properties of the DataProduct. */ - properties?: DataProductUpdateProperties; -} -/** The updatable properties of the DataProduct. */ -export interface DataProductUpdateProperties { - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; -} -/** The details for role assignment common properties. */ -export interface RoleAssignmentCommonProperties { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; -} -/** The details for role assignment response. */ -export interface RoleAssignmentDetail { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; - /** Id of role assignment request */ - roleAssignmentId: string; -} -/** The response of a DataType list operation. */ -export interface DataTypeListResult { - /** The DataType items on this page */ - value: DataType[]; - /** The link to the next page of items */ - nextLink?: string; -} -/** The data type properties */ -export interface DataTypeProperties { - /** - * Latest provisioning state of data product. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** State of data type. */ - state?: DataTypeState; - /** - * Reason for the state of data type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly stateReason?: string; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; - /** - * Url for data visualization. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly visualizationUrl?: string; -} -/** The type used for update operations of the DataType. */ -export interface DataTypeUpdate { - /** The updatable properties of the DataType. */ - properties?: DataTypeUpdateProperties; -} -/** The updatable properties of the DataType. */ -export interface DataTypeUpdateProperties { - /** State of data type. */ - state?: DataTypeState; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; -} -/** The details for container sas creation. */ -export interface ContainerSaS { - /** Sas token start timestamp. */ - startTimeStamp: Date; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date; - /** Ip Address */ - ipAddress: string; -} -/** Details of storage container account sas token . */ -export interface ContainerSasToken { - /** - * Field to specify storage container sas token. - * This value contains a credential. Consider obscuring before showing to users - */ - storageContainerSasToken: string; -} -/** The details for storage account sas creation. */ -export interface AccountSas { - /** Sas token start timestamp. */ - startTimeStamp: Date; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date; - /** Ip Address */ - ipAddress: string; -} -/** Details of storage account sas token . */ -export interface AccountSasToken { - /** - * Field to specify storage account sas token. - * This value contains a credential. Consider obscuring before showing to users - */ - storageAccountSasToken: string; -} -/** list role assignments. */ -export interface ListRoleAssignments { - /** Count of role assignments. */ - count: number; - /** list of role assignments */ - roleAssignmentResponse: RoleAssignmentDetail[]; -} -/** Details for KeyVault. */ -export interface KeyVaultInfo { - /** key vault url. */ - keyVaultUrl: string; -} -/** Resource Access Rules. */ -export interface ResourceAccessRules { - /** The tenant ID of resource. */ - tenantId: string; - /** Resource ID */ - resourceId: string; -} -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { - [propertyName: string]: string; - }; - /** The geo-location where the resource lives */ - location: string; -} -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource { -} -/** The data product resource. */ -export interface DataProduct extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} -/** The data catalog resource. */ -export interface DataProductsCatalog extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductsCatalogProperties; -} -/** The data type resource. */ -export interface DataType extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataTypeProperties; -} -/** Defines headers for DataProducts_create operation. */ -export interface DataProductsCreateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} -/** Defines headers for DataProducts_update operation. */ -export interface DataProductsUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} -/** Defines headers for DataProducts_delete operation. */ -export interface DataProductsDeleteHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} -/** Defines headers for DataTypes_create operation. */ -export interface DataTypesCreateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} -/** Defines headers for DataTypes_update operation. */ -export interface DataTypesUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} -/** Defines headers for DataTypes_delete operation. */ -export interface DataTypesDeleteHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} -/** Defines headers for DataTypes_deleteData operation. */ -export interface DataTypesDeleteDataHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} -/** Known values of {@link Origin} that the service accepts. */ -export declare enum KnownOrigin { - /** User */ - User = "user", - /** System */ - System = "system", - /** UserSystem */ - UserSystem = "user,system" -} -/** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** - */ -export type Origin = string; -/** Known values of {@link ActionType} that the service accepts. */ -export declare enum KnownActionType { - /** Internal */ - Internal = "Internal" -} -/** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Internal** - */ -export type ActionType = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export declare enum KnownProvisioningState { - /** Represents a succeeded operation. */ - Succeeded = "Succeeded", - /** Represents a failed operation. */ - Failed = "Failed", - /** Represents a canceled operation. */ - Canceled = "Canceled", - /** Represents a pending operation. */ - Provisioning = "Provisioning", - /** Represents a pending operation. */ - Updating = "Updating", - /** Represents an operation under deletion. */ - Deleting = "Deleting", - /** Represents an accepted operation. */ - Accepted = "Accepted" -} -/** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded**: Represents a succeeded operation. \ - * **Failed**: Represents a failed operation. \ - * **Canceled**: Represents a canceled operation. \ - * **Provisioning**: Represents a pending operation. \ - * **Updating**: Represents a pending operation. \ - * **Deleting**: Represents an operation under deletion. \ - * **Accepted**: Represents an accepted operation. - */ -export type ProvisioningState = string; -/** Known values of {@link ControlState} that the service accepts. */ -export declare enum KnownControlState { - /** Field to enable a setting. */ - Enabled = "Enabled", - /** Field to disable a setting. */ - Disabled = "Disabled" -} -/** - * Defines values for ControlState. \ - * {@link KnownControlState} can be used interchangeably with ControlState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: Field to enable a setting. \ - * **Disabled**: Field to disable a setting. - */ -export type ControlState = string; -/** Known values of {@link DefaultAction} that the service accepts. */ -export declare enum KnownDefaultAction { - /** Represents allow action. */ - Allow = "Allow", - /** Represents deny action. */ - Deny = "Deny" -} -/** - * Defines values for DefaultAction. \ - * {@link KnownDefaultAction} can be used interchangeably with DefaultAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Allow**: Represents allow action. \ - * **Deny**: Represents deny action. - */ -export type DefaultAction = string; -/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ -export declare enum KnownManagedServiceIdentityType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned, UserAssigned" -} -/** - * Defines values for ManagedServiceIdentityType. \ - * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned, UserAssigned** - */ -export type ManagedServiceIdentityType = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export declare enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; -/** Known values of {@link DataProductUserRole} that the service accepts. */ -export declare enum KnownDataProductUserRole { - /** Field to specify user of type Reader. */ - Reader = "Reader", - /** - * Field to specify user of type SensitiveReader. - * This user has privileged access to read sensitive data of a data product. - */ - SensitiveReader = "SensitiveReader" -} -/** - * Defines values for DataProductUserRole. \ - * {@link KnownDataProductUserRole} can be used interchangeably with DataProductUserRole, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Reader**: Field to specify user of type Reader. \ - * **SensitiveReader**: Field to specify user of type SensitiveReader. - * This user has privileged access to read sensitive data of a data product. - */ -export type DataProductUserRole = string; -/** Known values of {@link DataTypeState} that the service accepts. */ -export declare enum KnownDataTypeState { - /** Field to specify stopped state. */ - Stopped = "Stopped", - /** Field to specify running state. */ - Running = "Running" -} -/** - * Defines values for DataTypeState. \ - * {@link KnownDataTypeState} can be used interchangeably with DataTypeState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Stopped**: Field to specify stopped state. \ - * **Running**: Field to specify running state. - */ -export type DataTypeState = string; -/** Known values of {@link Bypass} that the service accepts. */ -export declare enum KnownBypass { - /** Represents no bypassing of traffic. */ - None = "None", - /** Represents bypassing logging traffic. */ - Logging = "Logging", - /** Represents bypassing metrics traffic. */ - Metrics = "Metrics", - /** Represents bypassing azure services traffic. */ - AzureServices = "AzureServices" -} -/** - * Defines values for Bypass. \ - * {@link KnownBypass} can be used interchangeably with Bypass, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Represents no bypassing of traffic. \ - * **Logging**: Represents bypassing logging traffic. \ - * **Metrics**: Represents bypassing metrics traffic. \ - * **AzureServices**: Represents bypassing azure services traffic. - */ -export type Bypass = string; -/** Known values of {@link Versions} that the service accepts. */ -export declare enum KnownVersions { - /** The 2023-11-15 stable version. */ - V20231115 = "2023-11-15" -} -/** - * Defines values for Versions. \ - * {@link KnownVersions} can be used interchangeably with Versions, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **2023-11-15**: The 2023-11-15 stable version. - */ -export type Versions = string; -/** Optional parameters. */ -export interface OperationsListOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; -/** Optional parameters. */ -export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; -/** Optional parameters. */ -export interface DataProductsListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listBySubscription operation. */ -export type DataProductsListBySubscriptionResponse = DataProductListResult; -/** Optional parameters. */ -export interface DataProductsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listByResourceGroup operation. */ -export type DataProductsListByResourceGroupResponse = DataProductListResult; -/** Optional parameters. */ -export interface DataProductsGetOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the get operation. */ -export type DataProductsGetResponse = DataProduct; -/** Optional parameters. */ -export interface DataProductsCreateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} -/** Contains response data for the create operation. */ -export type DataProductsCreateResponse = DataProduct; -/** Optional parameters. */ -export interface DataProductsUpdateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} -/** Contains response data for the update operation. */ -export type DataProductsUpdateResponse = DataProduct; -/** Optional parameters. */ -export interface DataProductsDeleteOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} -/** Contains response data for the delete operation. */ -export type DataProductsDeleteResponse = DataProductsDeleteHeaders; -/** Optional parameters. */ -export interface DataProductsAddUserRoleOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the addUserRole operation. */ -export type DataProductsAddUserRoleResponse = RoleAssignmentDetail; -/** Optional parameters. */ -export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the generateStorageAccountSasToken operation. */ -export type DataProductsGenerateStorageAccountSasTokenResponse = AccountSasToken; -/** Optional parameters. */ -export interface DataProductsListRolesAssignmentsOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listRolesAssignments operation. */ -export type DataProductsListRolesAssignmentsResponse = ListRoleAssignments; -/** Optional parameters. */ -export interface DataProductsRemoveUserRoleOptionalParams extends coreClient.OperationOptions { -} -/** Optional parameters. */ -export interface DataProductsRotateKeyOptionalParams extends coreClient.OperationOptions { -} -/** Optional parameters. */ -export interface DataProductsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listBySubscriptionNext operation. */ -export type DataProductsListBySubscriptionNextResponse = DataProductListResult; -/** Optional parameters. */ -export interface DataProductsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listByResourceGroupNext operation. */ -export type DataProductsListByResourceGroupNextResponse = DataProductListResult; -/** Optional parameters. */ -export interface DataProductsCatalogsListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listBySubscription operation. */ -export type DataProductsCatalogsListBySubscriptionResponse = DataProductsCatalogListResult; -/** Optional parameters. */ -export interface DataProductsCatalogsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listByResourceGroup operation. */ -export type DataProductsCatalogsListByResourceGroupResponse = DataProductsCatalogListResult; -/** Optional parameters. */ -export interface DataProductsCatalogsGetOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the get operation. */ -export type DataProductsCatalogsGetResponse = DataProductsCatalog; -/** Optional parameters. */ -export interface DataProductsCatalogsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listBySubscriptionNext operation. */ -export type DataProductsCatalogsListBySubscriptionNextResponse = DataProductsCatalogListResult; -/** Optional parameters. */ -export interface DataProductsCatalogsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listByResourceGroupNext operation. */ -export type DataProductsCatalogsListByResourceGroupNextResponse = DataProductsCatalogListResult; -/** Optional parameters. */ -export interface DataTypesListByDataProductOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listByDataProduct operation. */ -export type DataTypesListByDataProductResponse = DataTypeListResult; -/** Optional parameters. */ -export interface DataTypesGetOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the get operation. */ -export type DataTypesGetResponse = DataType; -/** Optional parameters. */ -export interface DataTypesCreateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} -/** Contains response data for the create operation. */ -export type DataTypesCreateResponse = DataType; -/** Optional parameters. */ -export interface DataTypesUpdateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} -/** Contains response data for the update operation. */ -export type DataTypesUpdateResponse = DataType; -/** Optional parameters. */ -export interface DataTypesDeleteOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} -/** Contains response data for the delete operation. */ -export type DataTypesDeleteResponse = DataTypesDeleteHeaders; -/** Optional parameters. */ -export interface DataTypesDeleteDataOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} -/** Contains response data for the deleteData operation. */ -export type DataTypesDeleteDataResponse = DataTypesDeleteDataHeaders; -/** Optional parameters. */ -export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the generateStorageContainerSasToken operation. */ -export type DataTypesGenerateStorageContainerSasTokenResponse = ContainerSasToken; -/** Optional parameters. */ -export interface DataTypesListByDataProductNextOptionalParams extends coreClient.OperationOptions { -} -/** Contains response data for the listByDataProductNext operation. */ -export type DataTypesListByDataProductNextResponse = DataTypeListResult; -/** Optional parameters. */ -export interface MicrosoftNetworkAnalyticsOptionalParams extends coreClient.ServiceClientOptions { - /** server parameter */ - $host?: string; - /** Api Version */ - apiVersion?: string; - /** Overrides client endpoint. */ - endpoint?: string; -} -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts.map deleted file mode 100644 index 4fe118b346b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,qIAAqI;AACrI,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,0FAA0F;AAC1F,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAC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B;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js deleted file mode 100644 index 4dc7b679485..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.KnownVersions = exports.KnownBypass = exports.KnownDataTypeState = exports.KnownDataProductUserRole = exports.KnownCreatedByType = exports.KnownManagedServiceIdentityType = exports.KnownDefaultAction = exports.KnownControlState = exports.KnownProvisioningState = exports.KnownActionType = exports.KnownOrigin = void 0; -/** Known values of {@link Origin} that the service accepts. */ -var KnownOrigin; -(function (KnownOrigin) { - /** User */ - KnownOrigin["User"] = "user"; - /** System */ - KnownOrigin["System"] = "system"; - /** UserSystem */ - KnownOrigin["UserSystem"] = "user,system"; -})(KnownOrigin || (exports.KnownOrigin = KnownOrigin = {})); -/** Known values of {@link ActionType} that the service accepts. */ -var KnownActionType; -(function (KnownActionType) { - /** Internal */ - KnownActionType["Internal"] = "Internal"; -})(KnownActionType || (exports.KnownActionType = KnownActionType = {})); -/** Known values of {@link ProvisioningState} that the service accepts. */ -var KnownProvisioningState; -(function (KnownProvisioningState) { - /** Represents a succeeded operation. */ - KnownProvisioningState["Succeeded"] = "Succeeded"; - /** Represents a failed operation. */ - KnownProvisioningState["Failed"] = "Failed"; - /** Represents a canceled operation. */ - KnownProvisioningState["Canceled"] = "Canceled"; - /** Represents a pending operation. */ - KnownProvisioningState["Provisioning"] = "Provisioning"; - /** Represents a pending operation. */ - KnownProvisioningState["Updating"] = "Updating"; - /** Represents an operation under deletion. */ - KnownProvisioningState["Deleting"] = "Deleting"; - /** Represents an accepted operation. */ - KnownProvisioningState["Accepted"] = "Accepted"; -})(KnownProvisioningState || (exports.KnownProvisioningState = KnownProvisioningState = {})); -/** Known values of {@link ControlState} that the service accepts. */ -var KnownControlState; -(function (KnownControlState) { - /** Field to enable a setting. */ - KnownControlState["Enabled"] = "Enabled"; - /** Field to disable a setting. */ - KnownControlState["Disabled"] = "Disabled"; -})(KnownControlState || (exports.KnownControlState = KnownControlState = {})); -/** Known values of {@link DefaultAction} that the service accepts. */ -var KnownDefaultAction; -(function (KnownDefaultAction) { - /** Represents allow action. */ - KnownDefaultAction["Allow"] = "Allow"; - /** Represents deny action. */ - KnownDefaultAction["Deny"] = "Deny"; -})(KnownDefaultAction || (exports.KnownDefaultAction = KnownDefaultAction = {})); -/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ -var KnownManagedServiceIdentityType; -(function (KnownManagedServiceIdentityType) { - /** None */ - KnownManagedServiceIdentityType["None"] = "None"; - /** SystemAssigned */ - KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned"; - /** UserAssigned */ - KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned"; - /** SystemAssignedUserAssigned */ - KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned"; -})(KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = KnownManagedServiceIdentityType = {})); -/** Known values of {@link CreatedByType} that the service accepts. */ -var KnownCreatedByType; -(function (KnownCreatedByType) { - /** User */ - KnownCreatedByType["User"] = "User"; - /** Application */ - KnownCreatedByType["Application"] = "Application"; - /** ManagedIdentity */ - KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity"; - /** Key */ - KnownCreatedByType["Key"] = "Key"; -})(KnownCreatedByType || (exports.KnownCreatedByType = KnownCreatedByType = {})); -/** Known values of {@link DataProductUserRole} that the service accepts. */ -var KnownDataProductUserRole; -(function (KnownDataProductUserRole) { - /** Field to specify user of type Reader. */ - KnownDataProductUserRole["Reader"] = "Reader"; - /** - * Field to specify user of type SensitiveReader. - * This user has privileged access to read sensitive data of a data product. - */ - KnownDataProductUserRole["SensitiveReader"] = "SensitiveReader"; -})(KnownDataProductUserRole || (exports.KnownDataProductUserRole = KnownDataProductUserRole = {})); -/** Known values of {@link DataTypeState} that the service accepts. */ -var KnownDataTypeState; -(function (KnownDataTypeState) { - /** Field to specify stopped state. */ - KnownDataTypeState["Stopped"] = "Stopped"; - /** Field to specify running state. */ - KnownDataTypeState["Running"] = "Running"; -})(KnownDataTypeState || (exports.KnownDataTypeState = KnownDataTypeState = {})); -/** Known values of {@link Bypass} that the service accepts. */ -var KnownBypass; -(function (KnownBypass) { - /** Represents no bypassing of traffic. */ - KnownBypass["None"] = "None"; - /** Represents bypassing logging traffic. */ - KnownBypass["Logging"] = "Logging"; - /** Represents bypassing metrics traffic. */ - KnownBypass["Metrics"] = "Metrics"; - /** Represents bypassing azure services traffic. */ - KnownBypass["AzureServices"] = "AzureServices"; -})(KnownBypass || (exports.KnownBypass = KnownBypass = {})); -/** Known values of {@link Versions} that the service accepts. */ -var KnownVersions; -(function (KnownVersions) { - /** The 2023-11-15 stable version. */ - KnownVersions["V20231115"] = "2023-11-15"; -})(KnownVersions || (exports.KnownVersions = KnownVersions = {})); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js.map deleted file mode 100644 index 67934945d76..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AA8nBH,+DAA+D;AAC/D,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,aAAa;IACb,gCAAiB,CAAA;IACjB,iBAAiB;IACjB,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAaD,mEAAmE;AACnE,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAWD,0EAA0E;AAC1E,IAAY,sBAeX;AAfD,WAAY,sBAAsB;IAChC,wCAAwC;IACxC,iDAAuB,CAAA;IACvB,qCAAqC;IACrC,2CAAiB,CAAA;IACjB,uCAAuC;IACvC,+CAAqB,CAAA;IACrB,sCAAsC;IACtC,uDAA6B,CAAA;IAC7B,sCAAsC;IACtC,+CAAqB,CAAA;IACrB,8CAA8C;IAC9C,+CAAqB,CAAA;IACrB,wCAAwC;IACxC,+CAAqB,CAAA;AACvB,CAAC,EAfW,sBAAsB,sCAAtB,sBAAsB,QAejC;AAiBD,qEAAqE;AACrE,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,iCAAiC;IACjC,wCAAmB,CAAA;IACnB,kCAAkC;IAClC,0CAAqB,CAAA;AACvB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AAYD,sEAAsE;AACtE,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,+BAA+B;IAC/B,qCAAe,CAAA;IACf,8BAA8B;IAC9B,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAYD,mFAAmF;AACnF,IAAY,+BASX;AATD,WAAY,+BAA+B;IACzC,WAAW;IACX,gDAAa,CAAA;IACb,qBAAqB;IACrB,oEAAiC,CAAA;IACjC,mBAAmB;IACnB,gEAA6B,CAAA;IAC7B,iCAAiC;IACjC,8FAA2D,CAAA;AAC7D,CAAC,EATW,+BAA+B,+CAA/B,+BAA+B,QAS1C;AAcD,sEAAsE;AACtE,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,WAAW;IACX,mCAAa,CAAA;IACb,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,sBAAsB;IACtB,yDAAmC,CAAA;IACnC,UAAU;IACV,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,kCAAlB,kBAAkB,QAS7B;AAcD,4EAA4E;AAC5E,IAAY,wBAQX;AARD,WAAY,wBAAwB;IAClC,4CAA4C;IAC5C,6CAAiB,CAAA;IACjB;;;OAGG;IACH,+DAAmC,CAAA;AACrC,CAAC,EARW,wBAAwB,wCAAxB,wBAAwB,QAQnC;AAaD,sEAAsE;AACtE,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,sCAAsC;IACtC,yCAAmB,CAAA;IACnB,sCAAsC;IACtC,yCAAmB,CAAA;AACrB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAYD,+DAA+D;AAC/D,IAAY,WASX;AATD,WAAY,WAAW;IACrB,0CAA0C;IAC1C,4BAAa,CAAA;IACb,4CAA4C;IAC5C,kCAAmB,CAAA;IACnB,4CAA4C;IAC5C,kCAAmB,CAAA;IACnB,mDAAmD;IACnD,8CAA+B,CAAA;AACjC,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAcD,iEAAiE;AACjE,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,qCAAqC;IACrC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.ts deleted file mode 100644 index 40e53c9a37b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/index.ts +++ /dev/null @@ -1,1111 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface OperationListResult { - /** - * List of operations supported by the resource provider - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; - /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: Origin; - /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionType?: ActionType; -} - -/** Localized display information for this particular operation. */ -export interface OperationDisplay { - /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} - -/** The response of a DataProduct list operation. */ -export interface DataProductListResult { - /** The DataProduct items on this page */ - value: DataProduct[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** The data product properties. */ -export interface DataProductProperties { - /** - * The resource GUID property of the data product resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; - /** - * Latest provisioning state of data product. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** Data product publisher name. */ - publisher: string; - /** Product name of data product. */ - product: string; - /** Major version of data product. */ - majorVersion: string; - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Flag to enable or disable redundancy for data product. */ - redundancy?: ControlState; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Flag to enable or disable public access of data product resource. */ - publicNetworkAccess?: ControlState; - /** Flag to enable customer managed key encryption for data product. */ - customerManagedKeyEncryptionEnabled?: ControlState; - /** Customer managed encryption key details for data product. */ - customerEncryptionKey?: EncryptionKeyDetails; - /** Network rule set for data product. */ - networkacls?: DataProductNetworkAcls; - /** Managed resource group configuration. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - /** - * List of available minor versions of the data product resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableMinorVersions?: string[]; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; - /** - * Documentation link for the data product based on definition file. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly documentation?: string; - /** - * Resource links which exposed to the customer to query the data. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly consumptionEndpoints?: ConsumptionEndpointsProperties; - /** - * Key vault url. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly keyVaultUrl?: string; -} - -/** Encryption key details. */ -export interface EncryptionKeyDetails { - /** The Uri of the key vault. */ - keyVaultUri: string; - /** The name of the key vault key. */ - keyName: string; - /** The version of the key vault key. */ - keyVersion: string; -} - -/** Data Product Network rule set */ -export interface DataProductNetworkAcls { - /** Virtual Network Rule */ - virtualNetworkRule: VirtualNetworkRule[]; - /** IP rule with specific IP or IP range in CIDR format. */ - ipRules: IPRules[]; - /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ - allowedQueryIpRangeList: string[]; - /** Default Action */ - defaultAction: DefaultAction; -} - -/** Virtual Network Rule */ -export interface VirtualNetworkRule { - /** Resource ID of a subnet */ - id: string; - /** The action of virtual network rule. */ - action?: string; - /** Gets the state of virtual network rule. */ - state?: string; -} - -/** IP rule with specific IP or IP range in CIDR format. */ -export interface IPRules { - /** IP Rules Value */ - value?: string; - /** The action of virtual network rule. */ - action: string; -} - -/** ManagedResourceGroup related properties */ -export interface ManagedResourceGroupConfiguration { - /** Name of managed resource group */ - name: string; - /** Managed Resource Group location */ - location: string; -} - -/** Details of Consumption Properties */ -export interface ConsumptionEndpointsProperties { - /** - * Ingestion url to upload the data. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ingestionUrl?: string; - /** - * Resource Id of ingestion endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ingestionResourceId?: string; - /** - * Url to consume file type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fileAccessUrl?: string; - /** - * Resource Id of file access endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fileAccessResourceId?: string; - /** - * Url to consume the processed data. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly queryUrl?: string; - /** - * Resource Id of query endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly queryResourceId?: string; -} - -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface ManagedServiceIdentity { - /** - * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ - type: ManagedServiceIdentityType; - /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ - userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; -} - -/** User assigned identity properties */ -export interface UserAssignedIdentity { - /** - * The principal ID of the assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The client ID of the assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** The response of a DataProductsCatalog list operation. */ -export interface DataProductsCatalogListResult { - /** The DataProductsCatalog items on this page */ - value: DataProductsCatalog[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Details for data catalog properties. */ -export interface DataProductsCatalogProperties { - /** - * The data catalog provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** The data product publisher information. */ - publishers: PublisherInformation[]; -} - -/** Details for Publisher Information. */ -export interface PublisherInformation { - /** Name of the publisher. */ - publisherName: string; - /** Data product information. */ - dataProducts: DataProductInformation[]; -} - -/** Data Product Information */ -export interface DataProductInformation { - /** Name of data product. */ - dataProductName: string; - /** Description about data product. */ - description: string; - /** Version information of data product. */ - dataProductVersions: DataProductVersion[]; -} - -/** Data Product Version. */ -export interface DataProductVersion { - /** Version of data product */ - version: string; -} - -/** The type used for update operations of the DataProduct. */ -export interface DataProductUpdate { - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The updatable properties of the DataProduct. */ - properties?: DataProductUpdateProperties; -} - -/** The updatable properties of the DataProduct. */ -export interface DataProductUpdateProperties { - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; -} - -/** The details for role assignment common properties. */ -export interface RoleAssignmentCommonProperties { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; -} - -/** The details for role assignment response. */ -export interface RoleAssignmentDetail { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; - /** Id of role assignment request */ - roleAssignmentId: string; -} - -/** The response of a DataType list operation. */ -export interface DataTypeListResult { - /** The DataType items on this page */ - value: DataType[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** The data type properties */ -export interface DataTypeProperties { - /** - * Latest provisioning state of data product. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** State of data type. */ - state?: DataTypeState; - /** - * Reason for the state of data type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly stateReason?: string; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; - /** - * Url for data visualization. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly visualizationUrl?: string; -} - -/** The type used for update operations of the DataType. */ -export interface DataTypeUpdate { - /** The updatable properties of the DataType. */ - properties?: DataTypeUpdateProperties; -} - -/** The updatable properties of the DataType. */ -export interface DataTypeUpdateProperties { - /** State of data type. */ - state?: DataTypeState; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; -} - -/** The details for container sas creation. */ -export interface ContainerSaS { - /** Sas token start timestamp. */ - startTimeStamp: Date; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date; - /** Ip Address */ - ipAddress: string; -} - -/** Details of storage container account sas token . */ -export interface ContainerSasToken { - /** - * Field to specify storage container sas token. - * This value contains a credential. Consider obscuring before showing to users - */ - storageContainerSasToken: string; -} - -/** The details for storage account sas creation. */ -export interface AccountSas { - /** Sas token start timestamp. */ - startTimeStamp: Date; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date; - /** Ip Address */ - ipAddress: string; -} - -/** Details of storage account sas token . */ -export interface AccountSasToken { - /** - * Field to specify storage account sas token. - * This value contains a credential. Consider obscuring before showing to users - */ - storageAccountSasToken: string; -} - -/** list role assignments. */ -export interface ListRoleAssignments { - /** Count of role assignments. */ - count: number; - /** list of role assignments */ - roleAssignmentResponse: RoleAssignmentDetail[]; -} - -/** Details for KeyVault. */ -export interface KeyVaultInfo { - /** key vault url. */ - keyVaultUrl: string; -} - -/** Resource Access Rules. */ -export interface ResourceAccessRules { - /** The tenant ID of resource. */ - tenantId: string; - /** Resource ID */ - resourceId: string; -} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** The data product resource. */ -export interface DataProduct extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} - -/** The data catalog resource. */ -export interface DataProductsCatalog extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductsCatalogProperties; -} - -/** The data type resource. */ -export interface DataType extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataTypeProperties; -} - -/** Defines headers for DataProducts_create operation. */ -export interface DataProductsCreateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for DataProducts_update operation. */ -export interface DataProductsUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} - -/** Defines headers for DataProducts_delete operation. */ -export interface DataProductsDeleteHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} - -/** Defines headers for DataTypes_create operation. */ -export interface DataTypesCreateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for DataTypes_update operation. */ -export interface DataTypesUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} - -/** Defines headers for DataTypes_delete operation. */ -export interface DataTypesDeleteHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} - -/** Defines headers for DataTypes_deleteData operation. */ -export interface DataTypesDeleteDataHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; -} - -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** User */ - User = "user", - /** System */ - System = "system", - /** UserSystem */ - UserSystem = "user,system" -} - -/** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** - */ -export type Origin = string; - -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** Internal */ - Internal = "Internal" -} - -/** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Internal** - */ -export type ActionType = string; - -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Represents a succeeded operation. */ - Succeeded = "Succeeded", - /** Represents a failed operation. */ - Failed = "Failed", - /** Represents a canceled operation. */ - Canceled = "Canceled", - /** Represents a pending operation. */ - Provisioning = "Provisioning", - /** Represents a pending operation. */ - Updating = "Updating", - /** Represents an operation under deletion. */ - Deleting = "Deleting", - /** Represents an accepted operation. */ - Accepted = "Accepted" -} - -/** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded**: Represents a succeeded operation. \ - * **Failed**: Represents a failed operation. \ - * **Canceled**: Represents a canceled operation. \ - * **Provisioning**: Represents a pending operation. \ - * **Updating**: Represents a pending operation. \ - * **Deleting**: Represents an operation under deletion. \ - * **Accepted**: Represents an accepted operation. - */ -export type ProvisioningState = string; - -/** Known values of {@link ControlState} that the service accepts. */ -export enum KnownControlState { - /** Field to enable a setting. */ - Enabled = "Enabled", - /** Field to disable a setting. */ - Disabled = "Disabled" -} - -/** - * Defines values for ControlState. \ - * {@link KnownControlState} can be used interchangeably with ControlState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: Field to enable a setting. \ - * **Disabled**: Field to disable a setting. - */ -export type ControlState = string; - -/** Known values of {@link DefaultAction} that the service accepts. */ -export enum KnownDefaultAction { - /** Represents allow action. */ - Allow = "Allow", - /** Represents deny action. */ - Deny = "Deny" -} - -/** - * Defines values for DefaultAction. \ - * {@link KnownDefaultAction} can be used interchangeably with DefaultAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Allow**: Represents allow action. \ - * **Deny**: Represents deny action. - */ -export type DefaultAction = string; - -/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ -export enum KnownManagedServiceIdentityType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned, UserAssigned" -} - -/** - * Defines values for ManagedServiceIdentityType. \ - * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned, UserAssigned** - */ -export type ManagedServiceIdentityType = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link DataProductUserRole} that the service accepts. */ -export enum KnownDataProductUserRole { - /** Field to specify user of type Reader. */ - Reader = "Reader", - /** - * Field to specify user of type SensitiveReader. - * This user has privileged access to read sensitive data of a data product. - */ - SensitiveReader = "SensitiveReader" -} - -/** - * Defines values for DataProductUserRole. \ - * {@link KnownDataProductUserRole} can be used interchangeably with DataProductUserRole, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Reader**: Field to specify user of type Reader. \ - * **SensitiveReader**: Field to specify user of type SensitiveReader. - * This user has privileged access to read sensitive data of a data product. - */ -export type DataProductUserRole = string; - -/** Known values of {@link DataTypeState} that the service accepts. */ -export enum KnownDataTypeState { - /** Field to specify stopped state. */ - Stopped = "Stopped", - /** Field to specify running state. */ - Running = "Running" -} - -/** - * Defines values for DataTypeState. \ - * {@link KnownDataTypeState} can be used interchangeably with DataTypeState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Stopped**: Field to specify stopped state. \ - * **Running**: Field to specify running state. - */ -export type DataTypeState = string; - -/** Known values of {@link Bypass} that the service accepts. */ -export enum KnownBypass { - /** Represents no bypassing of traffic. */ - None = "None", - /** Represents bypassing logging traffic. */ - Logging = "Logging", - /** Represents bypassing metrics traffic. */ - Metrics = "Metrics", - /** Represents bypassing azure services traffic. */ - AzureServices = "AzureServices" -} - -/** - * Defines values for Bypass. \ - * {@link KnownBypass} can be used interchangeably with Bypass, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Represents no bypassing of traffic. \ - * **Logging**: Represents bypassing logging traffic. \ - * **Metrics**: Represents bypassing metrics traffic. \ - * **AzureServices**: Represents bypassing azure services traffic. - */ -export type Bypass = string; - -/** Known values of {@link Versions} that the service accepts. */ -export enum KnownVersions { - /** The 2023-11-15 stable version. */ - V20231115 = "2023-11-15" -} - -/** - * Defines values for Versions. \ - * {@link KnownVersions} can be used interchangeably with Versions, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **2023-11-15**: The 2023-11-15 stable version. - */ -export type Versions = string; - -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - -/** Optional parameters. */ -export interface DataProductsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type DataProductsListBySubscriptionResponse = DataProductListResult; - -/** Optional parameters. */ -export interface DataProductsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type DataProductsListByResourceGroupResponse = DataProductListResult; - -/** Optional parameters. */ -export interface DataProductsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DataProductsGetResponse = DataProduct; - -/** Optional parameters. */ -export interface DataProductsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type DataProductsCreateResponse = DataProduct; - -/** Optional parameters. */ -export interface DataProductsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type DataProductsUpdateResponse = DataProduct; - -/** Optional parameters. */ -export interface DataProductsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type DataProductsDeleteResponse = DataProductsDeleteHeaders; - -/** Optional parameters. */ -export interface DataProductsAddUserRoleOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the addUserRole operation. */ -export type DataProductsAddUserRoleResponse = RoleAssignmentDetail; - -/** Optional parameters. */ -export interface DataProductsGenerateStorageAccountSasTokenOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the generateStorageAccountSasToken operation. */ -export type DataProductsGenerateStorageAccountSasTokenResponse = AccountSasToken; - -/** Optional parameters. */ -export interface DataProductsListRolesAssignmentsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listRolesAssignments operation. */ -export type DataProductsListRolesAssignmentsResponse = ListRoleAssignments; - -/** Optional parameters. */ -export interface DataProductsRemoveUserRoleOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DataProductsRotateKeyOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DataProductsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type DataProductsListBySubscriptionNextResponse = DataProductListResult; - -/** Optional parameters. */ -export interface DataProductsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type DataProductsListByResourceGroupNextResponse = DataProductListResult; - -/** Optional parameters. */ -export interface DataProductsCatalogsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type DataProductsCatalogsListBySubscriptionResponse = DataProductsCatalogListResult; - -/** Optional parameters. */ -export interface DataProductsCatalogsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type DataProductsCatalogsListByResourceGroupResponse = DataProductsCatalogListResult; - -/** Optional parameters. */ -export interface DataProductsCatalogsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DataProductsCatalogsGetResponse = DataProductsCatalog; - -/** Optional parameters. */ -export interface DataProductsCatalogsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type DataProductsCatalogsListBySubscriptionNextResponse = DataProductsCatalogListResult; - -/** Optional parameters. */ -export interface DataProductsCatalogsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type DataProductsCatalogsListByResourceGroupNextResponse = DataProductsCatalogListResult; - -/** Optional parameters. */ -export interface DataTypesListByDataProductOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDataProduct operation. */ -export type DataTypesListByDataProductResponse = DataTypeListResult; - -/** Optional parameters. */ -export interface DataTypesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DataTypesGetResponse = DataType; - -/** Optional parameters. */ -export interface DataTypesCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type DataTypesCreateResponse = DataType; - -/** Optional parameters. */ -export interface DataTypesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type DataTypesUpdateResponse = DataType; - -/** Optional parameters. */ -export interface DataTypesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type DataTypesDeleteResponse = DataTypesDeleteHeaders; - -/** Optional parameters. */ -export interface DataTypesDeleteDataOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the deleteData operation. */ -export type DataTypesDeleteDataResponse = DataTypesDeleteDataHeaders; - -/** Optional parameters. */ -export interface DataTypesGenerateStorageContainerSasTokenOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the generateStorageContainerSasToken operation. */ -export type DataTypesGenerateStorageContainerSasTokenResponse = ContainerSasToken; - -/** Optional parameters. */ -export interface DataTypesListByDataProductNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDataProductNext operation. */ -export type DataTypesListByDataProductNextResponse = DataTypeListResult; - -/** Optional parameters. */ -export interface MicrosoftNetworkAnalyticsOptionalParams - extends coreClient.ServiceClientOptions { - /** server parameter */ - $host?: string; - /** Api Version */ - apiVersion?: string; - /** Overrides client endpoint. */ - endpoint?: string; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts deleted file mode 100644 index ecabc2dda78..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import * as coreClient from "@azure/core-client"; -export declare const OperationListResult: coreClient.CompositeMapper; -export declare const Operation: coreClient.CompositeMapper; -export declare const OperationDisplay: coreClient.CompositeMapper; -export declare const ErrorResponse: coreClient.CompositeMapper; -export declare const ErrorDetail: coreClient.CompositeMapper; -export declare const ErrorAdditionalInfo: coreClient.CompositeMapper; -export declare const DataProductListResult: coreClient.CompositeMapper; -export declare const DataProductProperties: coreClient.CompositeMapper; -export declare const EncryptionKeyDetails: coreClient.CompositeMapper; -export declare const DataProductNetworkAcls: coreClient.CompositeMapper; -export declare const VirtualNetworkRule: coreClient.CompositeMapper; -export declare const IPRules: coreClient.CompositeMapper; -export declare const ManagedResourceGroupConfiguration: coreClient.CompositeMapper; -export declare const ConsumptionEndpointsProperties: coreClient.CompositeMapper; -export declare const ManagedServiceIdentity: coreClient.CompositeMapper; -export declare const UserAssignedIdentity: coreClient.CompositeMapper; -export declare const Resource: coreClient.CompositeMapper; -export declare const SystemData: coreClient.CompositeMapper; -export declare const DataProductsCatalogListResult: coreClient.CompositeMapper; -export declare const DataProductsCatalogProperties: coreClient.CompositeMapper; -export declare const PublisherInformation: coreClient.CompositeMapper; -export declare const DataProductInformation: coreClient.CompositeMapper; -export declare const DataProductVersion: coreClient.CompositeMapper; -export declare const DataProductUpdate: coreClient.CompositeMapper; -export declare const DataProductUpdateProperties: coreClient.CompositeMapper; -export declare const RoleAssignmentCommonProperties: coreClient.CompositeMapper; -export declare const RoleAssignmentDetail: coreClient.CompositeMapper; -export declare const DataTypeListResult: coreClient.CompositeMapper; -export declare const DataTypeProperties: coreClient.CompositeMapper; -export declare const DataTypeUpdate: coreClient.CompositeMapper; -export declare const DataTypeUpdateProperties: coreClient.CompositeMapper; -export declare const ContainerSaS: coreClient.CompositeMapper; -export declare const ContainerSasToken: coreClient.CompositeMapper; -export declare const AccountSas: coreClient.CompositeMapper; -export declare const AccountSasToken: coreClient.CompositeMapper; -export declare const ListRoleAssignments: coreClient.CompositeMapper; -export declare const KeyVaultInfo: coreClient.CompositeMapper; -export declare const ResourceAccessRules: coreClient.CompositeMapper; -export declare const TrackedResource: coreClient.CompositeMapper; -export declare const ProxyResource: coreClient.CompositeMapper; -export declare const DataProduct: coreClient.CompositeMapper; -export declare const DataProductsCatalog: coreClient.CompositeMapper; -export declare const DataType: coreClient.CompositeMapper; -export declare const DataProductsCreateHeaders: coreClient.CompositeMapper; -export declare const DataProductsUpdateHeaders: coreClient.CompositeMapper; -export declare const DataProductsDeleteHeaders: coreClient.CompositeMapper; -export declare const DataTypesCreateHeaders: coreClient.CompositeMapper; -export declare const DataTypesUpdateHeaders: coreClient.CompositeMapper; -export declare const DataTypesDeleteHeaders: coreClient.CompositeMapper; -export declare const DataTypesDeleteDataHeaders: coreClient.CompositeMapper; -//# sourceMappingURL=mappers.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts.map deleted file mode 100644 index d2dd367ac53..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eA2B5C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eA0ClC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eAmCzC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eActC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAsDpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAsB5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eA0B9C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAqJ9C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eA4B7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAoD/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eA0B3C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,UAAU,CAAC,eAoBhC,CAAC;A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AAO,MAAM,UAAU,EAAE,UAAU,CAAC,eA4BnC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAcxC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eA2B5C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eAcrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAqB5C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAsBxC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAQtC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAsBpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAe5C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,eAejC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAalD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAmBlD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAmBlD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAa/C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAmB/C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAmB/C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,eAmBnD,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js deleted file mode 100644 index 48ce889021a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js +++ /dev/null @@ -1,1547 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataTypesDeleteDataHeaders = exports.DataTypesDeleteHeaders = exports.DataTypesUpdateHeaders = exports.DataTypesCreateHeaders = exports.DataProductsDeleteHeaders = exports.DataProductsUpdateHeaders = exports.DataProductsCreateHeaders = exports.DataType = exports.DataProductsCatalog = exports.DataProduct = exports.ProxyResource = exports.TrackedResource = exports.ResourceAccessRules = exports.KeyVaultInfo = exports.ListRoleAssignments = exports.AccountSasToken = exports.AccountSas = exports.ContainerSasToken = exports.ContainerSaS = exports.DataTypeUpdateProperties = exports.DataTypeUpdate = exports.DataTypeProperties = exports.DataTypeListResult = exports.RoleAssignmentDetail = exports.RoleAssignmentCommonProperties = exports.DataProductUpdateProperties = exports.DataProductUpdate = exports.DataProductVersion = exports.DataProductInformation = exports.PublisherInformation = exports.DataProductsCatalogProperties = exports.DataProductsCatalogListResult = exports.SystemData = exports.Resource = exports.UserAssignedIdentity = exports.ManagedServiceIdentity = exports.ConsumptionEndpointsProperties = exports.ManagedResourceGroupConfiguration = exports.IPRules = exports.VirtualNetworkRule = exports.DataProductNetworkAcls = exports.EncryptionKeyDetails = exports.DataProductProperties = exports.DataProductListResult = exports.ErrorAdditionalInfo = exports.ErrorDetail = exports.ErrorResponse = exports.OperationDisplay = exports.Operation = exports.OperationListResult = void 0; -exports.OperationListResult = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; -exports.Operation = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, - type: { - name: "Boolean" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String" - } - }, - actionType: { - serializedName: "actionType", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; -exports.OperationDisplay = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; -exports.ErrorResponse = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - } -}; -exports.ErrorDetail = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String" - } - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } -}; -exports.ErrorAdditionalInfo = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; -exports.DataProductListResult = { - type: { - name: "Composite", - className: "DataProductListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataProduct" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; -exports.DataProductProperties = { - type: { - name: "Composite", - className: "DataProductProperties", - modelProperties: { - resourceGuid: { - serializedName: "resourceGuid", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - required: true, - type: { - name: "String" - } - }, - product: { - serializedName: "product", - required: true, - type: { - name: "String" - } - }, - majorVersion: { - serializedName: "majorVersion", - required: true, - type: { - name: "String" - } - }, - owners: { - serializedName: "owners", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - redundancy: { - serializedName: "redundancy", - type: { - name: "String" - } - }, - purviewAccount: { - serializedName: "purviewAccount", - type: { - name: "String" - } - }, - purviewCollection: { - serializedName: "purviewCollection", - type: { - name: "String" - } - }, - privateLinksEnabled: { - serializedName: "privateLinksEnabled", - type: { - name: "String" - } - }, - publicNetworkAccess: { - serializedName: "publicNetworkAccess", - type: { - name: "String" - } - }, - customerManagedKeyEncryptionEnabled: { - serializedName: "customerManagedKeyEncryptionEnabled", - type: { - name: "String" - } - }, - customerEncryptionKey: { - serializedName: "customerEncryptionKey", - type: { - name: "Composite", - className: "EncryptionKeyDetails" - } - }, - networkacls: { - serializedName: "networkacls", - type: { - name: "Composite", - className: "DataProductNetworkAcls" - } - }, - managedResourceGroupConfiguration: { - serializedName: "managedResourceGroupConfiguration", - type: { - name: "Composite", - className: "ManagedResourceGroupConfiguration" - } - }, - availableMinorVersions: { - serializedName: "availableMinorVersions", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - currentMinorVersion: { - serializedName: "currentMinorVersion", - type: { - name: "String" - } - }, - documentation: { - serializedName: "documentation", - readOnly: true, - type: { - name: "String" - } - }, - consumptionEndpoints: { - serializedName: "consumptionEndpoints", - type: { - name: "Composite", - className: "ConsumptionEndpointsProperties" - } - }, - keyVaultUrl: { - serializedName: "keyVaultUrl", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; -exports.EncryptionKeyDetails = { - type: { - name: "Composite", - className: "EncryptionKeyDetails", - modelProperties: { - keyVaultUri: { - serializedName: "keyVaultUri", - required: true, - type: { - name: "String" - } - }, - keyName: { - serializedName: "keyName", - required: true, - type: { - name: "String" - } - }, - keyVersion: { - serializedName: "keyVersion", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.DataProductNetworkAcls = { - type: { - name: "Composite", - className: "DataProductNetworkAcls", - modelProperties: { - virtualNetworkRule: { - serializedName: "virtualNetworkRule", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkRule" - } - } - } - }, - ipRules: { - serializedName: "ipRules", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPRules" - } - } - } - }, - allowedQueryIpRangeList: { - serializedName: "allowedQueryIpRangeList", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - defaultAction: { - serializedName: "defaultAction", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.VirtualNetworkRule = { - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - } - } - } -}; -exports.IPRules = { - type: { - name: "Composite", - className: "IPRules", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.ManagedResourceGroupConfiguration = { - type: { - name: "Composite", - className: "ManagedResourceGroupConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.ConsumptionEndpointsProperties = { - type: { - name: "Composite", - className: "ConsumptionEndpointsProperties", - modelProperties: { - ingestionUrl: { - serializedName: "ingestionUrl", - readOnly: true, - type: { - name: "String" - } - }, - ingestionResourceId: { - serializedName: "ingestionResourceId", - readOnly: true, - type: { - name: "String" - } - }, - fileAccessUrl: { - serializedName: "fileAccessUrl", - readOnly: true, - type: { - name: "String" - } - }, - fileAccessResourceId: { - serializedName: "fileAccessResourceId", - readOnly: true, - type: { - name: "String" - } - }, - queryUrl: { - serializedName: "queryUrl", - readOnly: true, - type: { - name: "String" - } - }, - queryResourceId: { - serializedName: "queryResourceId", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; -exports.ManagedServiceIdentity = { - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "Uuid" - } - }, - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } -}; -exports.UserAssignedIdentity = { - type: { - name: "Composite", - className: "UserAssignedIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "Uuid" - } - }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "Uuid" - } - } - } - } -}; -exports.Resource = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - } - } - } -}; -exports.SystemData = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; -exports.DataProductsCatalogListResult = { - type: { - name: "Composite", - className: "DataProductsCatalogListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataProductsCatalog" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; -exports.DataProductsCatalogProperties = { - type: { - name: "Composite", - className: "DataProductsCatalogProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - publishers: { - serializedName: "publishers", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PublisherInformation" - } - } - } - } - } - } -}; -exports.PublisherInformation = { - type: { - name: "Composite", - className: "PublisherInformation", - modelProperties: { - publisherName: { - serializedName: "publisherName", - required: true, - type: { - name: "String" - } - }, - dataProducts: { - serializedName: "dataProducts", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataProductInformation" - } - } - } - } - } - } -}; -exports.DataProductInformation = { - type: { - name: "Composite", - className: "DataProductInformation", - modelProperties: { - dataProductName: { - serializedName: "dataProductName", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - required: true, - type: { - name: "String" - } - }, - dataProductVersions: { - serializedName: "dataProductVersions", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataProductVersion" - } - } - } - } - } - } -}; -exports.DataProductVersion = { - type: { - name: "Composite", - className: "DataProductVersion", - modelProperties: { - version: { - serializedName: "version", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.DataProductUpdate = { - type: { - name: "Composite", - className: "DataProductUpdate", - modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataProductUpdateProperties" - } - } - } - } -}; -exports.DataProductUpdateProperties = { - type: { - name: "Composite", - className: "DataProductUpdateProperties", - modelProperties: { - owners: { - serializedName: "owners", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - purviewAccount: { - serializedName: "purviewAccount", - type: { - name: "String" - } - }, - purviewCollection: { - serializedName: "purviewCollection", - type: { - name: "String" - } - }, - privateLinksEnabled: { - serializedName: "privateLinksEnabled", - type: { - name: "String" - } - }, - currentMinorVersion: { - serializedName: "currentMinorVersion", - type: { - name: "String" - } - } - } - } -}; -exports.RoleAssignmentCommonProperties = { - type: { - name: "Composite", - className: "RoleAssignmentCommonProperties", - modelProperties: { - roleId: { - serializedName: "roleId", - required: true, - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", - required: true, - type: { - name: "String" - } - }, - userName: { - serializedName: "userName", - required: true, - type: { - name: "String" - } - }, - dataTypeScope: { - serializedName: "dataTypeScope", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - principalType: { - serializedName: "principalType", - required: true, - type: { - name: "String" - } - }, - role: { - serializedName: "role", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.RoleAssignmentDetail = { - type: { - name: "Composite", - className: "RoleAssignmentDetail", - modelProperties: { - roleId: { - serializedName: "roleId", - required: true, - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", - required: true, - type: { - name: "String" - } - }, - userName: { - serializedName: "userName", - required: true, - type: { - name: "String" - } - }, - dataTypeScope: { - serializedName: "dataTypeScope", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - principalType: { - serializedName: "principalType", - required: true, - type: { - name: "String" - } - }, - role: { - serializedName: "role", - required: true, - type: { - name: "String" - } - }, - roleAssignmentId: { - serializedName: "roleAssignmentId", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.DataTypeListResult = { - type: { - name: "Composite", - className: "DataTypeListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataType" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; -exports.DataTypeProperties = { - type: { - name: "Composite", - className: "DataTypeProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - }, - stateReason: { - serializedName: "stateReason", - readOnly: true, - type: { - name: "String" - } - }, - storageOutputRetention: { - serializedName: "storageOutputRetention", - type: { - name: "Number" - } - }, - databaseCacheRetention: { - serializedName: "databaseCacheRetention", - type: { - name: "Number" - } - }, - databaseRetention: { - serializedName: "databaseRetention", - type: { - name: "Number" - } - }, - visualizationUrl: { - serializedName: "visualizationUrl", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; -exports.DataTypeUpdate = { - type: { - name: "Composite", - className: "DataTypeUpdate", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataTypeUpdateProperties" - } - } - } - } -}; -exports.DataTypeUpdateProperties = { - type: { - name: "Composite", - className: "DataTypeUpdateProperties", - modelProperties: { - state: { - serializedName: "state", - type: { - name: "String" - } - }, - storageOutputRetention: { - serializedName: "storageOutputRetention", - type: { - name: "Number" - } - }, - databaseCacheRetention: { - serializedName: "databaseCacheRetention", - type: { - name: "Number" - } - }, - databaseRetention: { - serializedName: "databaseRetention", - type: { - name: "Number" - } - } - } - } -}; -exports.ContainerSaS = { - type: { - name: "Composite", - className: "ContainerSaS", - modelProperties: { - startTimeStamp: { - serializedName: "startTimeStamp", - required: true, - type: { - name: "DateTime" - } - }, - expiryTimeStamp: { - serializedName: "expiryTimeStamp", - required: true, - type: { - name: "DateTime" - } - }, - ipAddress: { - serializedName: "ipAddress", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.ContainerSasToken = { - type: { - name: "Composite", - className: "ContainerSasToken", - modelProperties: { - storageContainerSasToken: { - serializedName: "storageContainerSasToken", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.AccountSas = { - type: { - name: "Composite", - className: "AccountSas", - modelProperties: { - startTimeStamp: { - serializedName: "startTimeStamp", - required: true, - type: { - name: "DateTime" - } - }, - expiryTimeStamp: { - serializedName: "expiryTimeStamp", - required: true, - type: { - name: "DateTime" - } - }, - ipAddress: { - serializedName: "ipAddress", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.AccountSasToken = { - type: { - name: "Composite", - className: "AccountSasToken", - modelProperties: { - storageAccountSasToken: { - serializedName: "storageAccountSasToken", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.ListRoleAssignments = { - type: { - name: "Composite", - className: "ListRoleAssignments", - modelProperties: { - count: { - serializedName: "count", - required: true, - type: { - name: "Number" - } - }, - roleAssignmentResponse: { - serializedName: "roleAssignmentResponse", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoleAssignmentDetail" - } - } - } - } - } - } -}; -exports.KeyVaultInfo = { - type: { - name: "Composite", - className: "KeyVaultInfo", - modelProperties: { - keyVaultUrl: { - serializedName: "keyVaultUrl", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.ResourceAccessRules = { - type: { - name: "Composite", - className: "ResourceAccessRules", - modelProperties: { - tenantId: { - serializedName: "tenantId", - required: true, - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.TrackedResource = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...exports.Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } - } - } -}; -exports.ProxyResource = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...exports.Resource.type.modelProperties - } - } -}; -exports.DataProduct = { - type: { - name: "Composite", - className: "DataProduct", - modelProperties: { - ...exports.TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataProductProperties" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - } - } - } -}; -exports.DataProductsCatalog = { - type: { - name: "Composite", - className: "DataProductsCatalog", - modelProperties: { - ...exports.ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataProductsCatalogProperties" - } - } - } - } -}; -exports.DataType = { - type: { - name: "Composite", - className: "DataType", - modelProperties: { - ...exports.ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataTypeProperties" - } - } - } - } -}; -exports.DataProductsCreateHeaders = { - type: { - name: "Composite", - className: "DataProductsCreateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; -exports.DataProductsUpdateHeaders = { - type: { - name: "Composite", - className: "DataProductsUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; -exports.DataProductsDeleteHeaders = { - type: { - name: "Composite", - className: "DataProductsDeleteHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; -exports.DataTypesCreateHeaders = { - type: { - name: "Composite", - className: "DataTypesCreateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; -exports.DataTypesUpdateHeaders = { - type: { - name: "Composite", - className: "DataTypesUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; -exports.DataTypesDeleteHeaders = { - type: { - name: "Composite", - className: "DataTypesDeleteHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; -exports.DataTypesDeleteDataHeaders = { - type: { - name: "Composite", - className: "DataTypesDeleteDataHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; -//# sourceMappingURL=mappers.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js.map deleted file mode 100644 index 66ec2e86d91..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mappers.js","sourceRoot":"","sources":["mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,WAAW;yBACvB;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;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c,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,0BAA0B,GAA+B;IACpE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,4BAA4B;QACvC,eAAe,EAAE;YACf,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.ts deleted file mode 100644 index 97cba9f018c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/mappers.ts +++ /dev/null @@ -1,1595 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; - -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, - type: { - name: "Boolean" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String" - } - }, - actionType: { - serializedName: "actionType", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - } -}; - -export const ErrorDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String" - } - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } -}; - -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const DataProductListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataProduct" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const DataProductProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductProperties", - modelProperties: { - resourceGuid: { - serializedName: "resourceGuid", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - required: true, - type: { - name: "String" - } - }, - product: { - serializedName: "product", - required: true, - type: { - name: "String" - } - }, - majorVersion: { - serializedName: "majorVersion", - required: true, - type: { - name: "String" - } - }, - owners: { - serializedName: "owners", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - redundancy: { - serializedName: "redundancy", - type: { - name: "String" - } - }, - purviewAccount: { - serializedName: "purviewAccount", - type: { - name: "String" - } - }, - purviewCollection: { - serializedName: "purviewCollection", - type: { - name: "String" - } - }, - privateLinksEnabled: { - serializedName: "privateLinksEnabled", - type: { - name: "String" - } - }, - publicNetworkAccess: { - serializedName: "publicNetworkAccess", - type: { - name: "String" - } - }, - customerManagedKeyEncryptionEnabled: { - serializedName: "customerManagedKeyEncryptionEnabled", - type: { - name: "String" - } - }, - customerEncryptionKey: { - serializedName: "customerEncryptionKey", - type: { - name: "Composite", - className: "EncryptionKeyDetails" - } - }, - networkacls: { - serializedName: "networkacls", - type: { - name: "Composite", - className: "DataProductNetworkAcls" - } - }, - managedResourceGroupConfiguration: { - serializedName: "managedResourceGroupConfiguration", - type: { - name: "Composite", - className: "ManagedResourceGroupConfiguration" - } - }, - availableMinorVersions: { - serializedName: "availableMinorVersions", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - currentMinorVersion: { - serializedName: "currentMinorVersion", - type: { - name: "String" - } - }, - documentation: { - serializedName: "documentation", - readOnly: true, - type: { - name: "String" - } - }, - consumptionEndpoints: { - serializedName: "consumptionEndpoints", - type: { - name: "Composite", - className: "ConsumptionEndpointsProperties" - } - }, - keyVaultUrl: { - serializedName: "keyVaultUrl", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const EncryptionKeyDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EncryptionKeyDetails", - modelProperties: { - keyVaultUri: { - serializedName: "keyVaultUri", - required: true, - type: { - name: "String" - } - }, - keyName: { - serializedName: "keyName", - required: true, - type: { - name: "String" - } - }, - keyVersion: { - serializedName: "keyVersion", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const DataProductNetworkAcls: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductNetworkAcls", - modelProperties: { - virtualNetworkRule: { - serializedName: "virtualNetworkRule", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkRule" - } - } - } - }, - ipRules: { - serializedName: "ipRules", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPRules" - } - } - } - }, - allowedQueryIpRangeList: { - serializedName: "allowedQueryIpRangeList", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - defaultAction: { - serializedName: "defaultAction", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualNetworkRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - } - } - } -}; - -export const IPRules: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IPRules", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedResourceGroupConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedResourceGroupConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ConsumptionEndpointsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConsumptionEndpointsProperties", - modelProperties: { - ingestionUrl: { - serializedName: "ingestionUrl", - readOnly: true, - type: { - name: "String" - } - }, - ingestionResourceId: { - serializedName: "ingestionResourceId", - readOnly: true, - type: { - name: "String" - } - }, - fileAccessUrl: { - serializedName: "fileAccessUrl", - readOnly: true, - type: { - name: "String" - } - }, - fileAccessResourceId: { - serializedName: "fileAccessResourceId", - readOnly: true, - type: { - name: "String" - } - }, - queryUrl: { - serializedName: "queryUrl", - readOnly: true, - type: { - name: "String" - } - }, - queryResourceId: { - serializedName: "queryResourceId", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedServiceIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "Uuid" - } - }, - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } -}; - -export const UserAssignedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "Uuid" - } - }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "Uuid" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - } - } - } -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const DataProductsCatalogListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductsCatalogListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataProductsCatalog" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const DataProductsCatalogProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductsCatalogProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - publishers: { - serializedName: "publishers", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PublisherInformation" - } - } - } - } - } - } -}; - -export const PublisherInformation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PublisherInformation", - modelProperties: { - publisherName: { - serializedName: "publisherName", - required: true, - type: { - name: "String" - } - }, - dataProducts: { - serializedName: "dataProducts", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataProductInformation" - } - } - } - } - } - } -}; - -export const DataProductInformation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductInformation", - modelProperties: { - dataProductName: { - serializedName: "dataProductName", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - required: true, - type: { - name: "String" - } - }, - dataProductVersions: { - serializedName: "dataProductVersions", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataProductVersion" - } - } - } - } - } - } -}; - -export const DataProductVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductVersion", - modelProperties: { - version: { - serializedName: "version", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const DataProductUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductUpdate", - modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataProductUpdateProperties" - } - } - } - } -}; - -export const DataProductUpdateProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductUpdateProperties", - modelProperties: { - owners: { - serializedName: "owners", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - purviewAccount: { - serializedName: "purviewAccount", - type: { - name: "String" - } - }, - purviewCollection: { - serializedName: "purviewCollection", - type: { - name: "String" - } - }, - privateLinksEnabled: { - serializedName: "privateLinksEnabled", - type: { - name: "String" - } - }, - currentMinorVersion: { - serializedName: "currentMinorVersion", - type: { - name: "String" - } - } - } - } -}; - -export const RoleAssignmentCommonProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleAssignmentCommonProperties", - modelProperties: { - roleId: { - serializedName: "roleId", - required: true, - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", - required: true, - type: { - name: "String" - } - }, - userName: { - serializedName: "userName", - required: true, - type: { - name: "String" - } - }, - dataTypeScope: { - serializedName: "dataTypeScope", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - principalType: { - serializedName: "principalType", - required: true, - type: { - name: "String" - } - }, - role: { - serializedName: "role", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const RoleAssignmentDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleAssignmentDetail", - modelProperties: { - roleId: { - serializedName: "roleId", - required: true, - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", - required: true, - type: { - name: "String" - } - }, - userName: { - serializedName: "userName", - required: true, - type: { - name: "String" - } - }, - dataTypeScope: { - serializedName: "dataTypeScope", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - principalType: { - serializedName: "principalType", - required: true, - type: { - name: "String" - } - }, - role: { - serializedName: "role", - required: true, - type: { - name: "String" - } - }, - roleAssignmentId: { - serializedName: "roleAssignmentId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const DataTypeListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTypeListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataType" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const DataTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTypeProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - }, - stateReason: { - serializedName: "stateReason", - readOnly: true, - type: { - name: "String" - } - }, - storageOutputRetention: { - serializedName: "storageOutputRetention", - type: { - name: "Number" - } - }, - databaseCacheRetention: { - serializedName: "databaseCacheRetention", - type: { - name: "Number" - } - }, - databaseRetention: { - serializedName: "databaseRetention", - type: { - name: "Number" - } - }, - visualizationUrl: { - serializedName: "visualizationUrl", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const DataTypeUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTypeUpdate", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataTypeUpdateProperties" - } - } - } - } -}; - -export const DataTypeUpdateProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTypeUpdateProperties", - modelProperties: { - state: { - serializedName: "state", - type: { - name: "String" - } - }, - storageOutputRetention: { - serializedName: "storageOutputRetention", - type: { - name: "Number" - } - }, - databaseCacheRetention: { - serializedName: "databaseCacheRetention", - type: { - name: "Number" - } - }, - databaseRetention: { - serializedName: "databaseRetention", - type: { - name: "Number" - } - } - } - } -}; - -export const ContainerSaS: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContainerSaS", - modelProperties: { - startTimeStamp: { - serializedName: "startTimeStamp", - required: true, - type: { - name: "DateTime" - } - }, - expiryTimeStamp: { - serializedName: "expiryTimeStamp", - required: true, - type: { - name: "DateTime" - } - }, - ipAddress: { - serializedName: "ipAddress", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ContainerSasToken: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContainerSasToken", - modelProperties: { - storageContainerSasToken: { - serializedName: "storageContainerSasToken", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const AccountSas: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountSas", - modelProperties: { - startTimeStamp: { - serializedName: "startTimeStamp", - required: true, - type: { - name: "DateTime" - } - }, - expiryTimeStamp: { - serializedName: "expiryTimeStamp", - required: true, - type: { - name: "DateTime" - } - }, - ipAddress: { - serializedName: "ipAddress", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const AccountSasToken: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountSasToken", - modelProperties: { - storageAccountSasToken: { - serializedName: "storageAccountSasToken", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ListRoleAssignments: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListRoleAssignments", - modelProperties: { - count: { - serializedName: "count", - required: true, - type: { - name: "Number" - } - }, - roleAssignmentResponse: { - serializedName: "roleAssignmentResponse", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoleAssignmentDetail" - } - } - } - } - } - } -}; - -export const KeyVaultInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KeyVaultInfo", - modelProperties: { - keyVaultUrl: { - serializedName: "keyVaultUrl", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ResourceAccessRules: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceAccessRules", - modelProperties: { - tenantId: { - serializedName: "tenantId", - required: true, - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const DataProduct: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProduct", - modelProperties: { - ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataProductProperties" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - } - } - } -}; - -export const DataProductsCatalog: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductsCatalog", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataProductsCatalogProperties" - } - } - } - } -}; - -export const DataType: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataType", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataTypeProperties" - } - } - } - } -}; - -export const DataProductsCreateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductsCreateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const DataProductsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductsUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const DataProductsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataProductsDeleteHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const DataTypesCreateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTypesCreateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const DataTypesUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTypesUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const DataTypesDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTypesDeleteHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const DataTypesDeleteDataHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTypesDeleteDataHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts deleted file mode 100644 index dc2f4c1fe56..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client"; -export declare const accept: OperationParameter; -export declare const $host: OperationURLParameter; -export declare const apiVersion: OperationQueryParameter; -export declare const nextLink: OperationURLParameter; -export declare const subscriptionId: OperationURLParameter; -export declare const resourceGroupName: OperationURLParameter; -export declare const dataProductName: OperationURLParameter; -export declare const contentType: OperationParameter; -export declare const resource: OperationParameter; -export declare const properties: OperationParameter; -export declare const body: OperationParameter; -export declare const body1: OperationParameter; -export declare const body2: OperationParameter; -export declare const body3: OperationParameter; -export declare const body4: OperationParameter; -export declare const dataTypeName: OperationURLParameter; -export declare const resource1: OperationParameter; -export declare const properties1: OperationParameter; -export declare const body5: OperationParameter; -//# sourceMappingURL=parameters.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts.map deleted file mode 100644 index 33c4b26253e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAa5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAY5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAa/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,qBAc7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,kBAGtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,kBAGlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAUnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,qBAc1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js deleted file mode 100644 index b86c33fb45d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js +++ /dev/null @@ -1,171 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.body5 = exports.properties1 = exports.resource1 = exports.dataTypeName = exports.body4 = exports.body3 = exports.body2 = exports.body1 = exports.body = exports.properties = exports.resource = exports.contentType = exports.dataProductName = exports.resourceGroupName = exports.subscriptionId = exports.nextLink = exports.apiVersion = exports.$host = exports.accept = void 0; -const mappers_1 = require("../models/mappers"); -exports.accept = { - parameterPath: "accept", - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Accept", - type: { - name: "String" - } - } -}; -exports.$host = { - parameterPath: "$host", - mapper: { - serializedName: "$host", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; -exports.apiVersion = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2023-11-15", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; -exports.nextLink = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; -exports.subscriptionId = { - parameterPath: "subscriptionId", - mapper: { - constraints: { - MinLength: 1 - }, - serializedName: "subscriptionId", - required: true, - type: { - name: "String" - } - } -}; -exports.resourceGroupName = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1 - }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String" - } - } -}; -exports.dataProductName = { - parameterPath: "dataProductName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]*$"), - MaxLength: 63, - MinLength: 3 - }, - serializedName: "dataProductName", - required: true, - type: { - name: "String" - } - } -}; -exports.contentType = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; -exports.resource = { - parameterPath: "resource", - mapper: mappers_1.DataProduct -}; -exports.properties = { - parameterPath: "properties", - mapper: mappers_1.DataProductUpdate -}; -exports.body = { - parameterPath: "body", - mapper: mappers_1.RoleAssignmentCommonProperties -}; -exports.body1 = { - parameterPath: "body", - mapper: mappers_1.AccountSas -}; -exports.body2 = { - parameterPath: "body", - mapper: { - serializedName: "body", - required: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } -}; -exports.body3 = { - parameterPath: "body", - mapper: mappers_1.RoleAssignmentDetail -}; -exports.body4 = { - parameterPath: "body", - mapper: mappers_1.KeyVaultInfo -}; -exports.dataTypeName = { - parameterPath: "dataTypeName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-z][a-z0-9-]*$"), - MaxLength: 63, - MinLength: 3 - }, - serializedName: "dataTypeName", - required: true, - type: { - name: "String" - } - } -}; -exports.resource1 = { - parameterPath: "resource", - mapper: mappers_1.DataType -}; -exports.properties1 = { - parameterPath: "properties", - mapper: mappers_1.DataTypeUpdate -}; -exports.body5 = { - parameterPath: "body", - mapper: mappers_1.ContainerSaS -}; -//# sourceMappingURL=parameters.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js.map deleted file mode 100644 index 73d5d6927e2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameters.js","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAOH,+CAU2B;AAEd,QAAA,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAA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AC,mBAAmB,CAAC;YACxC,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,CAAC;SACb;QACD,cAAc,EAAE,cAAc;QAC9B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,SAAS,GAAuB;IAC3C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE,kBAAc;CACvB,CAAC;AAEW,QAAA,WAAW,GAAuB;IAC7C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,wBAAoB;CAC7B,CAAC;AAEW,QAAA,KAAK,GAAuB;IACvC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,sBAAkB;CAC3B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.ts deleted file mode 100644 index 81020bdfa05..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/models/parameters.ts +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - OperationParameter, - OperationURLParameter, - OperationQueryParameter -} from "@azure/core-client"; -import { - DataProduct as DataProductMapper, - DataProductUpdate as DataProductUpdateMapper, - RoleAssignmentCommonProperties as RoleAssignmentCommonPropertiesMapper, - AccountSas as AccountSasMapper, - RoleAssignmentDetail as RoleAssignmentDetailMapper, - KeyVaultInfo as KeyVaultInfoMapper, - DataType as DataTypeMapper, - DataTypeUpdate as DataTypeUpdateMapper, - ContainerSaS as ContainerSaSMapper -} from "../models/mappers"; - -export const accept: OperationParameter = { - parameterPath: "accept", - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Accept", - type: { - name: "String" - } - } -}; - -export const $host: OperationURLParameter = { - parameterPath: "$host", - mapper: { - serializedName: "$host", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2023-11-15", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - constraints: { - MinLength: 1 - }, - serializedName: "subscriptionId", - required: true, - type: { - name: "String" - } - } -}; - -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1 - }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String" - } - } -}; - -export const dataProductName: OperationURLParameter = { - parameterPath: "dataProductName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]*$"), - MaxLength: 63, - MinLength: 3 - }, - serializedName: "dataProductName", - required: true, - type: { - name: "String" - } - } -}; - -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const resource: OperationParameter = { - parameterPath: "resource", - mapper: DataProductMapper -}; - -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: DataProductUpdateMapper -}; - -export const body: OperationParameter = { - parameterPath: "body", - mapper: RoleAssignmentCommonPropertiesMapper -}; - -export const body1: OperationParameter = { - parameterPath: "body", - mapper: AccountSasMapper -}; - -export const body2: OperationParameter = { - parameterPath: "body", - mapper: { - serializedName: "body", - required: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } -}; - -export const body3: OperationParameter = { - parameterPath: "body", - mapper: RoleAssignmentDetailMapper -}; - -export const body4: OperationParameter = { - parameterPath: "body", - mapper: KeyVaultInfoMapper -}; - -export const dataTypeName: OperationURLParameter = { - parameterPath: "dataTypeName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-z][a-z0-9-]*$"), - MaxLength: 63, - MinLength: 3 - }, - serializedName: "dataTypeName", - required: true, - type: { - name: "String" - } - } -}; - -export const resource1: OperationParameter = { - parameterPath: "resource", - mapper: DataTypeMapper -}; - -export const properties1: OperationParameter = { - parameterPath: "properties", - mapper: DataTypeUpdateMapper -}; - -export const body5: OperationParameter = { - parameterPath: "body", - mapper: ContainerSaSMapper -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts deleted file mode 100644 index ad9048ae9fb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts +++ /dev/null @@ -1,147 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { DataProducts } from "../operationsInterfaces"; -import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { DataProduct, DataProductsListBySubscriptionOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsGetOptionalParams, DataProductsGetResponse, DataProductsCreateOptionalParams, DataProductsCreateResponse, DataProductUpdate, DataProductsUpdateOptionalParams, DataProductsUpdateResponse, DataProductsDeleteOptionalParams, DataProductsDeleteResponse, RoleAssignmentCommonProperties, DataProductsAddUserRoleOptionalParams, DataProductsAddUserRoleResponse, AccountSas, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsGenerateStorageAccountSasTokenResponse, DataProductsListRolesAssignmentsOptionalParams, DataProductsListRolesAssignmentsResponse, RoleAssignmentDetail, DataProductsRemoveUserRoleOptionalParams, KeyVaultInfo, DataProductsRotateKeyOptionalParams } from "../models"; -/** Class containing DataProducts operations. */ -export declare class DataProductsImpl implements DataProducts { - private readonly client; - /** - * Initialize a new instance of the class DataProducts class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftNetworkAnalytics); - /** - * List data products by subscription. - * @param options The options parameters. - */ - listBySubscription(options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - private listBySubscriptionPagingPage; - private listBySubscriptionPagingAll; - /** - * List data products by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup(resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - private listByResourceGroupPagingPage; - private listByResourceGroupPagingAll; - /** - * List data products by subscription. - * @param options The options parameters. - */ - private _listBySubscription; - /** - * List data products by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup; - /** - * Retrieve data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - get(resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreate(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise, DataProductsCreateResponse>>; - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateAndWait(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise; - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise, DataProductsUpdateResponse>>; - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise; - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - beginDelete(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise, DataProductsDeleteResponse>>; - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - beginDeleteAndWait(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise; - /** - * Assign role to the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - addUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): Promise; - /** - * Generate sas token for storage account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageAccountSasToken(resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; - /** - * List user roles associated with the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - listRolesAssignments(resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; - /** - * Remove role from the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - removeUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): Promise; - /** - * Initiate key rotation on Data Product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - rotateKey(resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): Promise; - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext; - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext; -} -//# sourceMappingURL=dataProducts.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts.map deleted file mode 100644 index e3965b5ba6a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProducts.d.ts","sourceRoot":"","sources":["dataProducts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,WAAW,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AO,CAAC,kDAAkD,CAAC;IAO9D;;;;;;OAMG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAOpD;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,SAAS,CACP,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js deleted file mode 100644 index b63f6f6e0f4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js +++ /dev/null @@ -1,689 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataProductsImpl = void 0; -const tslib_1 = require("tslib"); -const pagingHelper_1 = require("../pagingHelper"); -const coreClient = tslib_1.__importStar(require("@azure/core-client")); -const Mappers = tslib_1.__importStar(require("../models/mappers")); -const Parameters = tslib_1.__importStar(require("../models/parameters")); -const core_lro_1 = require("@azure/core-lro"); -const lroImpl_1 = require("../lroImpl"); -/// -/** Class containing DataProducts operations. */ -class DataProductsImpl { - client; - /** - * Initialize a new instance of the class DataProducts class. - * @param client Reference to the service client - */ - constructor(client) { - this.client = client; - } - /** - * List data products by subscription. - * @param options The options parameters. - */ - listBySubscription(options) { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - } - }; - } - async *listBySubscriptionPagingPage(options, settings) { - let result; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - } - async *listBySubscriptionPagingAll(options) { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - /** - * List data products by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup(resourceGroupName, options) { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); - } - }; - } - async *listByResourceGroupPagingPage(resourceGroupName, options, settings) { - let result; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - } - async *listByResourceGroupPagingAll(resourceGroupName, options) { - for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { - yield* page; - } - } - /** - * List data products by subscription. - * @param options The options parameters. - */ - _listBySubscription(options) { - return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); - } - /** - * List data products by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - _listByResourceGroup(resourceGroupName, options) { - return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec); - } - /** - * Retrieve data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - get(resourceGroupName, dataProductName, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, options }, getOperationSpec); - } - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreate(resourceGroupName, dataProductName, resource, options) { - const directSendOperation = async (args, spec) => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async (args, spec) => { - let currentRawResponse = undefined; - const providedCallback = args.options?.onResponse; - const callback = (rawResponse, flatResponse) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse.status, - body: currentRawResponse.parsedBody, - headers: currentRawResponse.headers.toJSON() - } - }; - }; - const lro = (0, lroImpl_1.createLroSpec)({ - sendOperationFn, - args: { resourceGroupName, dataProductName, resource, options }, - spec: createOperationSpec - }); - const poller = await (0, core_lro_1.createHttpPoller)(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateAndWait(resourceGroupName, dataProductName, resource, options) { - const poller = await this.beginCreate(resourceGroupName, dataProductName, resource, options); - return poller.pollUntilDone(); - } - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate(resourceGroupName, dataProductName, properties, options) { - const directSendOperation = async (args, spec) => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async (args, spec) => { - let currentRawResponse = undefined; - const providedCallback = args.options?.onResponse; - const callback = (rawResponse, flatResponse) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse.status, - body: currentRawResponse.parsedBody, - headers: currentRawResponse.headers.toJSON() - } - }; - }; - const lro = (0, lroImpl_1.createLroSpec)({ - sendOperationFn, - args: { resourceGroupName, dataProductName, properties, options }, - spec: updateOperationSpec - }); - const poller = await (0, core_lro_1.createHttpPoller)(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait(resourceGroupName, dataProductName, properties, options) { - const poller = await this.beginUpdate(resourceGroupName, dataProductName, properties, options); - return poller.pollUntilDone(); - } - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - async beginDelete(resourceGroupName, dataProductName, options) { - const directSendOperation = async (args, spec) => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async (args, spec) => { - let currentRawResponse = undefined; - const providedCallback = args.options?.onResponse; - const callback = (rawResponse, flatResponse) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse.status, - body: currentRawResponse.parsedBody, - headers: currentRawResponse.headers.toJSON() - } - }; - }; - const lro = (0, lroImpl_1.createLroSpec)({ - sendOperationFn, - args: { resourceGroupName, dataProductName, options }, - spec: deleteOperationSpec - }); - const poller = await (0, core_lro_1.createHttpPoller)(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - async beginDeleteAndWait(resourceGroupName, dataProductName, options) { - const poller = await this.beginDelete(resourceGroupName, dataProductName, options); - return poller.pollUntilDone(); - } - /** - * Assign role to the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - addUserRole(resourceGroupName, dataProductName, body, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, addUserRoleOperationSpec); - } - /** - * Generate sas token for storage account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageAccountSasToken(resourceGroupName, dataProductName, body, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, generateStorageAccountSasTokenOperationSpec); - } - /** - * List user roles associated with the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - listRolesAssignments(resourceGroupName, dataProductName, body, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, listRolesAssignmentsOperationSpec); - } - /** - * Remove role from the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - removeUserRole(resourceGroupName, dataProductName, body, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, removeUserRoleOperationSpec); - } - /** - * Initiate key rotation on Data Product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - rotateKey(resourceGroupName, dataProductName, body, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, body, options }, rotateKeyOperationSpec); - } - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - _listBySubscriptionNext(nextLink, options) { - return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec); - } - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - _listByResourceGroupNext(resourceGroupName, nextLink, options) { - return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec); - } -} -exports.DataProductsImpl = DataProductsImpl; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listBySubscriptionOperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProduct - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DataProduct - }, - 201: { - bodyMapper: Mappers.DataProduct - }, - 202: { - bodyMapper: Mappers.DataProduct - }, - 204: { - bodyMapper: Mappers.DataProduct - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.resource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.DataProduct - }, - 201: { - bodyMapper: Mappers.DataProduct - }, - 202: { - bodyMapper: Mappers.DataProduct - }, - 204: { - bodyMapper: Mappers.DataProduct - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.properties, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.DataProductsDeleteHeaders - }, - 201: { - headersMapper: Mappers.DataProductsDeleteHeaders - }, - 202: { - headersMapper: Mappers.DataProductsDeleteHeaders - }, - 204: { - headersMapper: Mappers.DataProductsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept], - serializer -}; -const addUserRoleOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.RoleAssignmentDetail - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const generateStorageAccountSasTokenOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AccountSasToken - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listRolesAssignmentsOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ListRoleAssignments - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const removeUserRoleOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body3, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const rotateKeyOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listBySubscriptionNextOperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -//# sourceMappingURL=dataProducts.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js.map deleted file mode 100644 index b43d14aa372..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProducts.js","sourceRoot":"","sources":["dataProducts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,kDAAuD;AAEvD,uEAAiD;AACjD,mEAA6C;AAC7C,yEAAmD;AAEnD,8CAIyB;AACzB,wCAA2C;AAkC3C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAa,gBAAgB;IACV,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAk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/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.ts deleted file mode 100644 index 2c440edd792..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProducts.ts +++ /dev/null @@ -1,960 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataProducts } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - DataProduct, - DataProductsListBySubscriptionNextOptionalParams, - DataProductsListBySubscriptionOptionalParams, - DataProductsListBySubscriptionResponse, - DataProductsListByResourceGroupNextOptionalParams, - DataProductsListByResourceGroupOptionalParams, - DataProductsListByResourceGroupResponse, - DataProductsGetOptionalParams, - DataProductsGetResponse, - DataProductsCreateOptionalParams, - DataProductsCreateResponse, - DataProductUpdate, - DataProductsUpdateOptionalParams, - DataProductsUpdateResponse, - DataProductsDeleteOptionalParams, - DataProductsDeleteResponse, - RoleAssignmentCommonProperties, - DataProductsAddUserRoleOptionalParams, - DataProductsAddUserRoleResponse, - AccountSas, - DataProductsGenerateStorageAccountSasTokenOptionalParams, - DataProductsGenerateStorageAccountSasTokenResponse, - DataProductsListRolesAssignmentsOptionalParams, - DataProductsListRolesAssignmentsResponse, - RoleAssignmentDetail, - DataProductsRemoveUserRoleOptionalParams, - KeyVaultInfo, - DataProductsRotateKeyOptionalParams, - DataProductsListBySubscriptionNextResponse, - DataProductsListByResourceGroupNextResponse -} from "../models"; - -/// -/** Class containing DataProducts operations. */ -export class DataProductsImpl implements DataProducts { - private readonly client: MicrosoftNetworkAnalytics; - - /** - * Initialize a new instance of the class DataProducts class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftNetworkAnalytics) { - this.client = client; - } - - /** - * List data products by subscription. - * @param options The options parameters. - */ - public listBySubscription( - options?: DataProductsListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - } - }; - } - - private async *listBySubscriptionPagingPage( - options?: DataProductsListBySubscriptionOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DataProductsListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: DataProductsListBySubscriptionOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * List data products by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: DataProductsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); - } - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: DataProductsListByResourceGroupOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DataProductsListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: DataProductsListByResourceGroupOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { - yield* page; - } - } - - /** - * List data products by subscription. - * @param options The options parameters. - */ - private _listBySubscription( - options?: DataProductsListBySubscriptionOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec - ); - } - - /** - * List data products by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: DataProductsListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } - - /** - * Retrieve data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - dataProductName: string, - options?: DataProductsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, options }, - getOperationSpec - ); - } - - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreate( - resourceGroupName: string, - dataProductName: string, - resource: DataProduct, - options?: DataProductsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataProductsCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, dataProductName, resource, options }, - spec: createOperationSpec - }); - const poller = await createHttpPoller< - DataProductsCreateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateAndWait( - resourceGroupName: string, - dataProductName: string, - resource: DataProduct, - options?: DataProductsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - dataProductName, - resource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - dataProductName: string, - properties: DataProductUpdate, - options?: DataProductsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataProductsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, dataProductName, properties, options }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - DataProductsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - dataProductName: string, - properties: DataProductUpdate, - options?: DataProductsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - dataProductName, - properties, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - dataProductName: string, - options?: DataProductsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataProductsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, dataProductName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - DataProductsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - dataProductName: string, - options?: DataProductsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - dataProductName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Assign role to the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - addUserRole( - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentCommonProperties, - options?: DataProductsAddUserRoleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, body, options }, - addUserRoleOperationSpec - ); - } - - /** - * Generate sas token for storage account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageAccountSasToken( - resourceGroupName: string, - dataProductName: string, - body: AccountSas, - options?: DataProductsGenerateStorageAccountSasTokenOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, body, options }, - generateStorageAccountSasTokenOperationSpec - ); - } - - /** - * List user roles associated with the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - listRolesAssignments( - resourceGroupName: string, - dataProductName: string, - body: Record, - options?: DataProductsListRolesAssignmentsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, body, options }, - listRolesAssignmentsOperationSpec - ); - } - - /** - * Remove role from the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - removeUserRole( - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentDetail, - options?: DataProductsRemoveUserRoleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, body, options }, - removeUserRoleOperationSpec - ); - } - - /** - * Initiate key rotation on Data Product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - rotateKey( - resourceGroupName: string, - dataProductName: string, - body: KeyVaultInfo, - options?: DataProductsRotateKeyOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, body, options }, - rotateKeyOperationSpec - ); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: DataProductsListBySubscriptionNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: DataProductsListByResourceGroupNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProduct - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DataProduct - }, - 201: { - bodyMapper: Mappers.DataProduct - }, - 202: { - bodyMapper: Mappers.DataProduct - }, - 204: { - bodyMapper: Mappers.DataProduct - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.resource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.DataProduct - }, - 201: { - bodyMapper: Mappers.DataProduct - }, - 202: { - bodyMapper: Mappers.DataProduct - }, - 204: { - bodyMapper: Mappers.DataProduct - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.properties, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.DataProductsDeleteHeaders - }, - 201: { - headersMapper: Mappers.DataProductsDeleteHeaders - }, - 202: { - headersMapper: Mappers.DataProductsDeleteHeaders - }, - 204: { - headersMapper: Mappers.DataProductsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept], - serializer -}; -const addUserRoleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.RoleAssignmentDetail - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const generateStorageAccountSasTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AccountSasToken - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listRolesAssignmentsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ListRoleAssignments - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const removeUserRoleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body3, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const rotateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts deleted file mode 100644 index 6a18f6041a2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { DataProductsCatalogs } from "../operationsInterfaces"; -import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; -import { DataProductsCatalog, DataProductsCatalogsListBySubscriptionOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsGetOptionalParams, DataProductsCatalogsGetResponse } from "../models"; -/** Class containing DataProductsCatalogs operations. */ -export declare class DataProductsCatalogsImpl implements DataProductsCatalogs { - private readonly client; - /** - * Initialize a new instance of the class DataProductsCatalogs class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftNetworkAnalytics); - /** - * List data catalog by subscription. - * @param options The options parameters. - */ - listBySubscription(options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - private listBySubscriptionPagingPage; - private listBySubscriptionPagingAll; - /** - * List data catalog by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup(resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - private listByResourceGroupPagingPage; - private listByResourceGroupPagingAll; - /** - * List data catalog by subscription. - * @param options The options parameters. - */ - private _listBySubscription; - /** - * List data catalog by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup; - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - get(resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext; - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext; -} -//# sourceMappingURL=dataProductsCatalogs.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts.map deleted file mode 100644 index 8340d52dbaa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogs.d.ts","sourceRoot":"","sources":["dataProductsCatalogs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,mBAAmB,EAEnB,oDAAoD,EAGpD,qDAAqD,EAErD,qCAAqC,EACrC,+BAA+B,EAGhC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,mBAAmB,CAAC;YAkBnC,4BAA4B;YAsB5B,2BAA2B;IAQ1C;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,mBAAmB,CAAC;YAsBnC,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;OAIG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js deleted file mode 100644 index 63a7d6e19ad..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js +++ /dev/null @@ -1,255 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataProductsCatalogsImpl = void 0; -const tslib_1 = require("tslib"); -const pagingHelper_1 = require("../pagingHelper"); -const coreClient = tslib_1.__importStar(require("@azure/core-client")); -const Mappers = tslib_1.__importStar(require("../models/mappers")); -const Parameters = tslib_1.__importStar(require("../models/parameters")); -/// -/** Class containing DataProductsCatalogs operations. */ -class DataProductsCatalogsImpl { - client; - /** - * Initialize a new instance of the class DataProductsCatalogs class. - * @param client Reference to the service client - */ - constructor(client) { - this.client = client; - } - /** - * List data catalog by subscription. - * @param options The options parameters. - */ - listBySubscription(options) { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - } - }; - } - async *listBySubscriptionPagingPage(options, settings) { - let result; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - } - async *listBySubscriptionPagingAll(options) { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - /** - * List data catalog by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup(resourceGroupName, options) { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); - } - }; - } - async *listByResourceGroupPagingPage(resourceGroupName, options, settings) { - let result; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - } - async *listByResourceGroupPagingAll(resourceGroupName, options) { - for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { - yield* page; - } - } - /** - * List data catalog by subscription. - * @param options The options parameters. - */ - _listBySubscription(options) { - return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); - } - /** - * List data catalog by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - _listByResourceGroup(resourceGroupName, options) { - return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec); - } - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - get(resourceGroupName, options) { - return this.client.sendOperationRequest({ resourceGroupName, options }, getOperationSpec); - } - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - _listBySubscriptionNext(nextLink, options) { - return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec); - } - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - _listByResourceGroupNext(resourceGroupName, nextLink, options) { - return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec); - } -} -exports.DataProductsCatalogsImpl = DataProductsCatalogsImpl; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listBySubscriptionOperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalogListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalogListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalog - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionNextOperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalogListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalogListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -//# sourceMappingURL=dataProductsCatalogs.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js.map deleted file mode 100644 index c70d0b6da1d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogs.js","sourceRoot":"","sources":["dataProductsCatalogs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,kDAAuD;AAEvD,uEAAiD;AACjD,mEAA6C;AAC7C,yEAAmD;AAgBnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAA8D;QAE9D,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,4BAA4B,CACzC,OAA8D,EAC9D,QAAuB;QAEvB,IAAI,MAAsD,CAAC;QAC3D,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YACjD,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B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.ts deleted file mode 100644 index 65ae6571c80..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataProductsCatalogs.ts +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataProductsCatalogs } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; -import { - DataProductsCatalog, - DataProductsCatalogsListBySubscriptionNextOptionalParams, - DataProductsCatalogsListBySubscriptionOptionalParams, - DataProductsCatalogsListBySubscriptionResponse, - DataProductsCatalogsListByResourceGroupNextOptionalParams, - DataProductsCatalogsListByResourceGroupOptionalParams, - DataProductsCatalogsListByResourceGroupResponse, - DataProductsCatalogsGetOptionalParams, - DataProductsCatalogsGetResponse, - DataProductsCatalogsListBySubscriptionNextResponse, - DataProductsCatalogsListByResourceGroupNextResponse -} from "../models"; - -/// -/** Class containing DataProductsCatalogs operations. */ -export class DataProductsCatalogsImpl implements DataProductsCatalogs { - private readonly client: MicrosoftNetworkAnalytics; - - /** - * Initialize a new instance of the class DataProductsCatalogs class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftNetworkAnalytics) { - this.client = client; - } - - /** - * List data catalog by subscription. - * @param options The options parameters. - */ - public listBySubscription( - options?: DataProductsCatalogsListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - } - }; - } - - private async *listBySubscriptionPagingPage( - options?: DataProductsCatalogsListBySubscriptionOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DataProductsCatalogsListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: DataProductsCatalogsListBySubscriptionOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * List data catalog by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: DataProductsCatalogsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); - } - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: DataProductsCatalogsListByResourceGroupOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DataProductsCatalogsListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: DataProductsCatalogsListByResourceGroupOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { - yield* page; - } - } - - /** - * List data catalog by subscription. - * @param options The options parameters. - */ - private _listBySubscription( - options?: DataProductsCatalogsListBySubscriptionOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec - ); - } - - /** - * List data catalog by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: DataProductsCatalogsListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } - - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - options?: DataProductsCatalogsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - getOperationSpec - ); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: DataProductsCatalogsListBySubscriptionNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: DataProductsCatalogsListByResourceGroupNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalogListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalogListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalog - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalogListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataProductsCatalogListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts deleted file mode 100644 index 8fa89207d39..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { DataTypes } from "../operationsInterfaces"; -import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { DataType, DataTypesListByDataProductOptionalParams, DataTypesGetOptionalParams, DataTypesGetResponse, DataTypesCreateOptionalParams, DataTypesCreateResponse, DataTypeUpdate, DataTypesUpdateOptionalParams, DataTypesUpdateResponse, DataTypesDeleteOptionalParams, DataTypesDeleteResponse, DataTypesDeleteDataOptionalParams, DataTypesDeleteDataResponse, ContainerSaS, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesGenerateStorageContainerSasTokenResponse } from "../models"; -/** Class containing DataTypes operations. */ -export declare class DataTypesImpl implements DataTypes { - private readonly client; - /** - * Initialize a new instance of the class DataTypes class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftNetworkAnalytics); - /** - * List data type by parent resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - listByDataProduct(resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; - private listByDataProductPagingPage; - private listByDataProductPagingAll; - /** - * List data type by parent resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - private _listByDataProduct; - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - get(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreate(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise, DataTypesCreateResponse>>; - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise; - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise, DataTypesUpdateResponse>>; - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise; - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - beginDelete(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise, DataTypesDeleteResponse>>; - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - beginDeleteAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise; - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginDeleteData(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise, DataTypesDeleteDataResponse>>; - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginDeleteDataAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise; - /** - * Generate sas token for storage container. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageContainerSasToken(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; - /** - * ListByDataProductNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param nextLink The nextLink from the previous successful call to the ListByDataProduct method. - * @param options The options parameters. - */ - private _listByDataProductNext; -} -//# sourceMappingURL=dataTypes.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts.map deleted file mode 100644 index 2b91767db67..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypes.d.ts","sourceRoot":"","sources":["dataTypes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,QAAQ,EAER,wCAAwC,EAExC,0BAA0B,EAC1B,oBAAoB,EACpB,6BAA6B,EAC7B,uBAAuB,EACvB,cAAc,EACd,6BAA6B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;;;;;;;OAOG;IACH,gCAAgC,CAC9B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC;IAO7D;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;CAW/B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js deleted file mode 100644 index 4aab4b7b961..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js +++ /dev/null @@ -1,591 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataTypesImpl = void 0; -const tslib_1 = require("tslib"); -const pagingHelper_1 = require("../pagingHelper"); -const coreClient = tslib_1.__importStar(require("@azure/core-client")); -const Mappers = tslib_1.__importStar(require("../models/mappers")); -const Parameters = tslib_1.__importStar(require("../models/parameters")); -const core_lro_1 = require("@azure/core-lro"); -const lroImpl_1 = require("../lroImpl"); -/// -/** Class containing DataTypes operations. */ -class DataTypesImpl { - client; - /** - * Initialize a new instance of the class DataTypes class. - * @param client Reference to the service client - */ - constructor(client) { - this.client = client; - } - /** - * List data type by parent resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - listByDataProduct(resourceGroupName, dataProductName, options) { - const iter = this.listByDataProductPagingAll(resourceGroupName, dataProductName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByDataProductPagingPage(resourceGroupName, dataProductName, options, settings); - } - }; - } - async *listByDataProductPagingPage(resourceGroupName, dataProductName, options, settings) { - let result; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByDataProduct(resourceGroupName, dataProductName, options); - let page = result.value || []; - continuationToken = result.nextLink; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByDataProductNext(resourceGroupName, dataProductName, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - } - async *listByDataProductPagingAll(resourceGroupName, dataProductName, options) { - for await (const page of this.listByDataProductPagingPage(resourceGroupName, dataProductName, options)) { - yield* page; - } - } - /** - * List data type by parent resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - _listByDataProduct(resourceGroupName, dataProductName, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, options }, listByDataProductOperationSpec); - } - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - get(resourceGroupName, dataProductName, dataTypeName, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, dataTypeName, options }, getOperationSpec); - } - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreate(resourceGroupName, dataProductName, dataTypeName, resource, options) { - const directSendOperation = async (args, spec) => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async (args, spec) => { - let currentRawResponse = undefined; - const providedCallback = args.options?.onResponse; - const callback = (rawResponse, flatResponse) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse.status, - body: currentRawResponse.parsedBody, - headers: currentRawResponse.headers.toJSON() - } - }; - }; - const lro = (0, lroImpl_1.createLroSpec)({ - sendOperationFn, - args: { - resourceGroupName, - dataProductName, - dataTypeName, - resource, - options - }, - spec: createOperationSpec - }); - const poller = await (0, core_lro_1.createHttpPoller)(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateAndWait(resourceGroupName, dataProductName, dataTypeName, resource, options) { - const poller = await this.beginCreate(resourceGroupName, dataProductName, dataTypeName, resource, options); - return poller.pollUntilDone(); - } - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate(resourceGroupName, dataProductName, dataTypeName, properties, options) { - const directSendOperation = async (args, spec) => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async (args, spec) => { - let currentRawResponse = undefined; - const providedCallback = args.options?.onResponse; - const callback = (rawResponse, flatResponse) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse.status, - body: currentRawResponse.parsedBody, - headers: currentRawResponse.headers.toJSON() - } - }; - }; - const lro = (0, lroImpl_1.createLroSpec)({ - sendOperationFn, - args: { - resourceGroupName, - dataProductName, - dataTypeName, - properties, - options - }, - spec: updateOperationSpec - }); - const poller = await (0, core_lro_1.createHttpPoller)(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait(resourceGroupName, dataProductName, dataTypeName, properties, options) { - const poller = await this.beginUpdate(resourceGroupName, dataProductName, dataTypeName, properties, options); - return poller.pollUntilDone(); - } - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - async beginDelete(resourceGroupName, dataProductName, dataTypeName, options) { - const directSendOperation = async (args, spec) => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async (args, spec) => { - let currentRawResponse = undefined; - const providedCallback = args.options?.onResponse; - const callback = (rawResponse, flatResponse) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse.status, - body: currentRawResponse.parsedBody, - headers: currentRawResponse.headers.toJSON() - } - }; - }; - const lro = (0, lroImpl_1.createLroSpec)({ - sendOperationFn, - args: { resourceGroupName, dataProductName, dataTypeName, options }, - spec: deleteOperationSpec - }); - const poller = await (0, core_lro_1.createHttpPoller)(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - async beginDeleteAndWait(resourceGroupName, dataProductName, dataTypeName, options) { - const poller = await this.beginDelete(resourceGroupName, dataProductName, dataTypeName, options); - return poller.pollUntilDone(); - } - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginDeleteData(resourceGroupName, dataProductName, dataTypeName, body, options) { - const directSendOperation = async (args, spec) => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async (args, spec) => { - let currentRawResponse = undefined; - const providedCallback = args.options?.onResponse; - const callback = (rawResponse, flatResponse) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse.status, - body: currentRawResponse.parsedBody, - headers: currentRawResponse.headers.toJSON() - } - }; - }; - const lro = (0, lroImpl_1.createLroSpec)({ - sendOperationFn, - args: { resourceGroupName, dataProductName, dataTypeName, body, options }, - spec: deleteDataOperationSpec - }); - const poller = await (0, core_lro_1.createHttpPoller)(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginDeleteDataAndWait(resourceGroupName, dataProductName, dataTypeName, body, options) { - const poller = await this.beginDeleteData(resourceGroupName, dataProductName, dataTypeName, body, options); - return poller.pollUntilDone(); - } - /** - * Generate sas token for storage container. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageContainerSasToken(resourceGroupName, dataProductName, dataTypeName, body, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, dataTypeName, body, options }, generateStorageContainerSasTokenOperationSpec); - } - /** - * ListByDataProductNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param nextLink The nextLink from the previous successful call to the ListByDataProduct method. - * @param options The options parameters. - */ - _listByDataProductNext(resourceGroupName, dataProductName, nextLink, options) { - return this.client.sendOperationRequest({ resourceGroupName, dataProductName, nextLink, options }, listByDataProductNextOperationSpec); - } -} -exports.DataTypesImpl = DataTypesImpl; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByDataProductOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataTypeListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataType - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DataType - }, - 201: { - bodyMapper: Mappers.DataType - }, - 202: { - bodyMapper: Mappers.DataType - }, - 204: { - bodyMapper: Mappers.DataType - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.resource1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.DataType - }, - 201: { - bodyMapper: Mappers.DataType - }, - 202: { - bodyMapper: Mappers.DataType - }, - 204: { - bodyMapper: Mappers.DataType - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.properties1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.DataTypesDeleteHeaders - }, - 201: { - headersMapper: Mappers.DataTypesDeleteHeaders - }, - 202: { - headersMapper: Mappers.DataTypesDeleteHeaders - }, - 204: { - headersMapper: Mappers.DataTypesDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteDataOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.DataTypesDeleteDataHeaders - }, - 201: { - headersMapper: Mappers.DataTypesDeleteDataHeaders - }, - 202: { - headersMapper: Mappers.DataTypesDeleteDataHeaders - }, - 204: { - headersMapper: Mappers.DataTypesDeleteDataHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const generateStorageContainerSasTokenOperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ContainerSasToken - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body5, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listByDataProductNextOperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataTypeListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept], - serializer -}; -//# sourceMappingURL=dataTypes.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js.map deleted file mode 100644 index 3cf65ac2ee2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypes.js","sourceRoot":"","sources":["dataTypes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,kDAAuD;AAEvD,uEAAiD;AACjD,mEAA6C;AAC7C,yEAAmD;AAEnD,8CAIyB;AACzB,wCAA2C;AAuB3C,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,iBAAiB,CACtB,iBAAyB,EACzB,eAAuB,EACvB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,0BAA0B,CAC1C,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,2BAA2B,CACrC,iBAAiB,EACjB,eAAe,EACf,OAAO,EACP,QAAQ,CACT,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QAC1B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.ts deleted file mode 100644 index 847d14bef7f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/dataTypes.ts +++ /dev/null @@ -1,855 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataTypes } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - DataType, - DataTypesListByDataProductNextOptionalParams, - DataTypesListByDataProductOptionalParams, - DataTypesListByDataProductResponse, - DataTypesGetOptionalParams, - DataTypesGetResponse, - DataTypesCreateOptionalParams, - DataTypesCreateResponse, - DataTypeUpdate, - DataTypesUpdateOptionalParams, - DataTypesUpdateResponse, - DataTypesDeleteOptionalParams, - DataTypesDeleteResponse, - DataTypesDeleteDataOptionalParams, - DataTypesDeleteDataResponse, - ContainerSaS, - DataTypesGenerateStorageContainerSasTokenOptionalParams, - DataTypesGenerateStorageContainerSasTokenResponse, - DataTypesListByDataProductNextResponse -} from "../models"; - -/// -/** Class containing DataTypes operations. */ -export class DataTypesImpl implements DataTypes { - private readonly client: MicrosoftNetworkAnalytics; - - /** - * Initialize a new instance of the class DataTypes class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftNetworkAnalytics) { - this.client = client; - } - - /** - * List data type by parent resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - public listByDataProduct( - resourceGroupName: string, - dataProductName: string, - options?: DataTypesListByDataProductOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByDataProductPagingAll( - resourceGroupName, - dataProductName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByDataProductPagingPage( - resourceGroupName, - dataProductName, - options, - settings - ); - } - }; - } - - private async *listByDataProductPagingPage( - resourceGroupName: string, - dataProductName: string, - options?: DataTypesListByDataProductOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DataTypesListByDataProductResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByDataProduct( - resourceGroupName, - dataProductName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByDataProductNext( - resourceGroupName, - dataProductName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByDataProductPagingAll( - resourceGroupName: string, - dataProductName: string, - options?: DataTypesListByDataProductOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByDataProductPagingPage( - resourceGroupName, - dataProductName, - options - )) { - yield* page; - } - } - - /** - * List data type by parent resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - private _listByDataProduct( - resourceGroupName: string, - dataProductName: string, - options?: DataTypesListByDataProductOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, options }, - listByDataProductOperationSpec - ); - } - - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, dataTypeName, options }, - getOperationSpec - ); - } - - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreate( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - resource: DataType, - options?: DataTypesCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataTypesCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - dataProductName, - dataTypeName, - resource, - options - }, - spec: createOperationSpec - }); - const poller = await createHttpPoller< - DataTypesCreateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateAndWait( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - resource: DataType, - options?: DataTypesCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - dataProductName, - dataTypeName, - resource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - properties: DataTypeUpdate, - options?: DataTypesUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataTypesUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - dataProductName, - dataTypeName, - properties, - options - }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - DataTypesUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - properties: DataTypeUpdate, - options?: DataTypesUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - dataProductName, - dataTypeName, - properties, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataTypesDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, dataProductName, dataTypeName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - DataTypesDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - dataProductName, - dataTypeName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginDeleteData( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: Record, - options?: DataTypesDeleteDataOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataTypesDeleteDataResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, dataProductName, dataTypeName, body, options }, - spec: deleteDataOperationSpec - }); - const poller = await createHttpPoller< - DataTypesDeleteDataResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginDeleteDataAndWait( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: Record, - options?: DataTypesDeleteDataOptionalParams - ): Promise { - const poller = await this.beginDeleteData( - resourceGroupName, - dataProductName, - dataTypeName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Generate sas token for storage container. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageContainerSasToken( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: ContainerSaS, - options?: DataTypesGenerateStorageContainerSasTokenOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, dataTypeName, body, options }, - generateStorageContainerSasTokenOperationSpec - ); - } - - /** - * ListByDataProductNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param nextLink The nextLink from the previous successful call to the ListByDataProduct method. - * @param options The options parameters. - */ - private _listByDataProductNext( - resourceGroupName: string, - dataProductName: string, - nextLink: string, - options?: DataTypesListByDataProductNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, dataProductName, nextLink, options }, - listByDataProductNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByDataProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataTypeListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataType - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DataType - }, - 201: { - bodyMapper: Mappers.DataType - }, - 202: { - bodyMapper: Mappers.DataType - }, - 204: { - bodyMapper: Mappers.DataType - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.resource1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.DataType - }, - 201: { - bodyMapper: Mappers.DataType - }, - 202: { - bodyMapper: Mappers.DataType - }, - 204: { - bodyMapper: Mappers.DataType - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.properties1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.DataTypesDeleteHeaders - }, - 201: { - headersMapper: Mappers.DataTypesDeleteHeaders - }, - 202: { - headersMapper: Mappers.DataTypesDeleteHeaders - }, - 204: { - headersMapper: Mappers.DataTypesDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteDataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.DataTypesDeleteDataHeaders - }, - 201: { - headersMapper: Mappers.DataTypesDeleteDataHeaders - }, - 202: { - headersMapper: Mappers.DataTypesDeleteDataHeaders - }, - 204: { - headersMapper: Mappers.DataTypesDeleteDataHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const generateStorageContainerSasTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ContainerSasToken - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body5, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName, - Parameters.dataTypeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listByDataProductNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataTypeListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.dataProductName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts deleted file mode 100644 index f40582f617d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./operations"; -export * from "./dataProducts"; -export * from "./dataProductsCatalogs"; -export * from "./dataTypes"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts.map deleted file mode 100644 index edc27ccf08f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js deleted file mode 100644 index d41aac44082..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./operations"), exports); -tslib_1.__exportStar(require("./dataProducts"), exports); -tslib_1.__exportStar(require("./dataProductsCatalogs"), exports); -tslib_1.__exportStar(require("./dataTypes"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js.map deleted file mode 100644 index d219d9715aa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uDAA6B;AAC7B,yDAA+B;AAC/B,iEAAuC;AACvC,sDAA4B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.ts deleted file mode 100644 index b5e3f0dc13d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export * from "./operations"; -export * from "./dataProducts"; -export * from "./dataProductsCatalogs"; -export * from "./dataTypes"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts deleted file mode 100644 index 7c38a3dd5d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operations } from "../operationsInterfaces"; -import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; -import { Operation, OperationsListOptionalParams } from "../models"; -/** Class containing Operations operations. */ -export declare class OperationsImpl implements Operations { - private readonly client; - /** - * Initialize a new instance of the class Operations class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftNetworkAnalytics); - /** - * List the operations for the provider - * @param options The options parameters. - */ - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; - private listPagingPage; - private listPagingAll; - /** - * List the operations for the provider - * @param options The options parameters. - */ - private _list; - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext; -} -//# sourceMappingURL=operations.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts.map deleted file mode 100644 index f708c7d2800..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js deleted file mode 100644 index f270a074ed0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OperationsImpl = void 0; -const tslib_1 = require("tslib"); -const pagingHelper_1 = require("../pagingHelper"); -const coreClient = tslib_1.__importStar(require("@azure/core-client")); -const Mappers = tslib_1.__importStar(require("../models/mappers")); -const Parameters = tslib_1.__importStar(require("../models/parameters")); -/// -/** Class containing Operations operations. */ -class OperationsImpl { - client; - /** - * Initialize a new instance of the class Operations class. - * @param client Reference to the service client - */ - constructor(client) { - this.client = client; - } - /** - * List the operations for the provider - * @param options The options parameters. - */ - list(options) { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(options, settings); - } - }; - } - async *listPagingPage(options, settings) { - let result; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - (0, pagingHelper_1.setContinuationToken)(page, continuationToken); - yield page; - } - } - async *listPagingAll(options) { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - /** - * List the operations for the provider - * @param options The options parameters. - */ - _list(options) { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - _listNext(nextLink, options) { - return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); - } -} -exports.OperationsImpl = OperationsImpl; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listOperationSpec = { - path: "/providers/Microsoft.NetworkAnalytics/operations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [Parameters.$host, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer -}; -//# sourceMappingURL=operations.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js.map deleted file mode 100644 index ae2aeb8d86b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"operations.js","sourceRoot":"","sources":["operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,kDAAuD;AAEvD,uEAAiD;AACjD,mEAA6C;AAC7C,yEAAmD;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;S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C,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AAzFD,wCAyFC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,kDAAkD;IACxD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.ts deleted file mode 100644 index ab0bb361e3f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operations/operations.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftNetworkAnalytics } from "../microsoftNetworkAnalytics"; -import { - Operation, - OperationsListNextOptionalParams, - OperationsListOptionalParams, - OperationsListResponse, - OperationsListNextResponse -} from "../models"; - -/// -/** Class containing Operations operations. */ -export class OperationsImpl implements Operations { - private readonly client: MicrosoftNetworkAnalytics; - - /** - * Initialize a new instance of the class Operations class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftNetworkAnalytics) { - this.client = client; - } - - /** - * List the operations for the provider - * @param options The options parameters. - */ - public list( - options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(options, settings); - } - }; - } - - private async *listPagingPage( - options?: OperationsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: OperationsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: OperationsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * List the operations for the provider - * @param options The options parameters. - */ - private _list( - options?: OperationsListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: OperationsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/providers/Microsoft.NetworkAnalytics/operations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [Parameters.$host, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts deleted file mode 100644 index 09575a6e162..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { DataProduct, DataProductsListBySubscriptionOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsGetOptionalParams, DataProductsGetResponse, DataProductsCreateOptionalParams, DataProductsCreateResponse, DataProductUpdate, DataProductsUpdateOptionalParams, DataProductsUpdateResponse, DataProductsDeleteOptionalParams, DataProductsDeleteResponse, RoleAssignmentCommonProperties, DataProductsAddUserRoleOptionalParams, DataProductsAddUserRoleResponse, AccountSas, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsGenerateStorageAccountSasTokenResponse, DataProductsListRolesAssignmentsOptionalParams, DataProductsListRolesAssignmentsResponse, RoleAssignmentDetail, DataProductsRemoveUserRoleOptionalParams, KeyVaultInfo, DataProductsRotateKeyOptionalParams } from "../models"; -/** Interface representing a DataProducts. */ -export interface DataProducts { - /** - * List data products by subscription. - * @param options The options parameters. - */ - listBySubscription(options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - /** - * List data products by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup(resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - /** - * Retrieve data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - get(resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreate(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise, DataProductsCreateResponse>>; - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateAndWait(resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): Promise; - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise, DataProductsUpdateResponse>>; - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait(resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): Promise; - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - beginDelete(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise, DataProductsDeleteResponse>>; - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - beginDeleteAndWait(resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): Promise; - /** - * Assign role to the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - addUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): Promise; - /** - * Generate sas token for storage account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageAccountSasToken(resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; - /** - * List user roles associated with the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - listRolesAssignments(resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; - /** - * Remove role from the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - removeUserRole(resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): Promise; - /** - * Initiate key rotation on Data Product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - rotateKey(resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): Promise; -} -//# sourceMappingURL=dataProducts.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts.map deleted file mode 100644 index 6bca6469b69..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProducts.d.ts","sourceRoot":"","sources":["dataProducts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,WAAW,EACX,4CAA4C,EAC5C,6CAA6C,EAC7C,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,0BAA0B,EAC1B,iBAAiB,EACjB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,8BAA8B,EAC9B,qCAAqC,EACrC,+BAA+B,EAC/B,UAAU,EACV,wDAAwD,EACxD,kDAAkD,EAClD,8CAA8C,EAC9C,wCAAwC,EACxC,oBAAoB,EACpB,wCAAwC,EACxC,YAAY,EACZ,mCAAmC,EACpC,MAAM,WAAW,CAAC;AA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,CAAC,IAAI,CAAC,CAAC;CAClB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js deleted file mode 100644 index 72e20d11dcb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=dataProducts.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js.map deleted file mode 100644 index 67875216bd4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProducts.js","sourceRoot":"","sources":["dataProducts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.ts deleted file mode 100644 index 0c0ae229f88..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProducts.ts +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - DataProduct, - DataProductsListBySubscriptionOptionalParams, - DataProductsListByResourceGroupOptionalParams, - DataProductsGetOptionalParams, - DataProductsGetResponse, - DataProductsCreateOptionalParams, - DataProductsCreateResponse, - DataProductUpdate, - DataProductsUpdateOptionalParams, - DataProductsUpdateResponse, - DataProductsDeleteOptionalParams, - DataProductsDeleteResponse, - RoleAssignmentCommonProperties, - DataProductsAddUserRoleOptionalParams, - DataProductsAddUserRoleResponse, - AccountSas, - DataProductsGenerateStorageAccountSasTokenOptionalParams, - DataProductsGenerateStorageAccountSasTokenResponse, - DataProductsListRolesAssignmentsOptionalParams, - DataProductsListRolesAssignmentsResponse, - RoleAssignmentDetail, - DataProductsRemoveUserRoleOptionalParams, - KeyVaultInfo, - DataProductsRotateKeyOptionalParams -} from "../models"; - -/// -/** Interface representing a DataProducts. */ -export interface DataProducts { - /** - * List data products by subscription. - * @param options The options parameters. - */ - listBySubscription( - options?: DataProductsListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator; - /** - * List data products by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: DataProductsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator; - /** - * Retrieve data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - dataProductName: string, - options?: DataProductsGetOptionalParams - ): Promise; - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreate( - resourceGroupName: string, - dataProductName: string, - resource: DataProduct, - options?: DataProductsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataProductsCreateResponse - > - >; - /** - * Create data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateAndWait( - resourceGroupName: string, - dataProductName: string, - resource: DataProduct, - options?: DataProductsCreateOptionalParams - ): Promise; - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - dataProductName: string, - properties: DataProductUpdate, - options?: DataProductsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataProductsUpdateResponse - > - >; - /** - * Update data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - dataProductName: string, - properties: DataProductUpdate, - options?: DataProductsUpdateOptionalParams - ): Promise; - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - dataProductName: string, - options?: DataProductsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataProductsDeleteResponse - > - >; - /** - * Delete data product resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - dataProductName: string, - options?: DataProductsDeleteOptionalParams - ): Promise; - /** - * Assign role to the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - addUserRole( - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentCommonProperties, - options?: DataProductsAddUserRoleOptionalParams - ): Promise; - /** - * Generate sas token for storage account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageAccountSasToken( - resourceGroupName: string, - dataProductName: string, - body: AccountSas, - options?: DataProductsGenerateStorageAccountSasTokenOptionalParams - ): Promise; - /** - * List user roles associated with the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - listRolesAssignments( - resourceGroupName: string, - dataProductName: string, - body: Record, - options?: DataProductsListRolesAssignmentsOptionalParams - ): Promise; - /** - * Remove role from the data product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - removeUserRole( - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentDetail, - options?: DataProductsRemoveUserRoleOptionalParams - ): Promise; - /** - * Initiate key rotation on Data Product. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param body The content of the action request - * @param options The options parameters. - */ - rotateKey( - resourceGroupName: string, - dataProductName: string, - body: KeyVaultInfo, - options?: DataProductsRotateKeyOptionalParams - ): Promise; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts deleted file mode 100644 index 77565221ae9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { DataProductsCatalog, DataProductsCatalogsListBySubscriptionOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsGetOptionalParams, DataProductsCatalogsGetResponse } from "../models"; -/** Interface representing a DataProductsCatalogs. */ -export interface DataProductsCatalogs { - /** - * List data catalog by subscription. - * @param options The options parameters. - */ - listBySubscription(options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - /** - * List data catalog by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup(resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - get(resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; -} -//# sourceMappingURL=dataProductsCatalogs.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts.map deleted file mode 100644 index 88f424e98df..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogs.d.ts","sourceRoot":"","sources":["dataProductsCatalogs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,oDAAoD,EACpD,qDAAqD,EACrD,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;OAIG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js deleted file mode 100644 index 5bf95b85d13..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=dataProductsCatalogs.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js.map deleted file mode 100644 index 854bf5be1d6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataProductsCatalogs.js","sourceRoot":"","sources":["dataProductsCatalogs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.ts deleted file mode 100644 index 7d8131c9165..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataProductsCatalogs.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - DataProductsCatalog, - DataProductsCatalogsListBySubscriptionOptionalParams, - DataProductsCatalogsListByResourceGroupOptionalParams, - DataProductsCatalogsGetOptionalParams, - DataProductsCatalogsGetResponse -} from "../models"; - -/// -/** Interface representing a DataProductsCatalogs. */ -export interface DataProductsCatalogs { - /** - * List data catalog by subscription. - * @param options The options parameters. - */ - listBySubscription( - options?: DataProductsCatalogsListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator; - /** - * List data catalog by resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: DataProductsCatalogsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator; - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - options?: DataProductsCatalogsGetOptionalParams - ): Promise; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts deleted file mode 100644 index 971cc857f4c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { DataType, DataTypesListByDataProductOptionalParams, DataTypesGetOptionalParams, DataTypesGetResponse, DataTypesCreateOptionalParams, DataTypesCreateResponse, DataTypeUpdate, DataTypesUpdateOptionalParams, DataTypesUpdateResponse, DataTypesDeleteOptionalParams, DataTypesDeleteResponse, DataTypesDeleteDataOptionalParams, DataTypesDeleteDataResponse, ContainerSaS, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesGenerateStorageContainerSasTokenResponse } from "../models"; -/** Interface representing a DataTypes. */ -export interface DataTypes { - /** - * List data type by parent resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - listByDataProduct(resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - get(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreate(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise, DataTypesCreateResponse>>; - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): Promise; - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise, DataTypesUpdateResponse>>; - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): Promise; - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - beginDelete(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise, DataTypesDeleteResponse>>; - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - beginDeleteAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): Promise; - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginDeleteData(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise, DataTypesDeleteDataResponse>>; - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginDeleteDataAndWait(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): Promise; - /** - * Generate sas token for storage container. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageContainerSasToken(resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; -} -//# sourceMappingURL=dataTypes.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts.map deleted file mode 100644 index 4b817246bae..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypes.d.ts","sourceRoot":"","sources":["dataTypes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,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AAC,CAAC;IACxC;;;;;;;OAOG;IACH,gCAAgC,CAC9B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC,CAAC;CAC/D"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js deleted file mode 100644 index 10d4b919cca..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=dataTypes.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js.map deleted file mode 100644 index 8c545a09721..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataTypes.js","sourceRoot":"","sources":["dataTypes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.ts deleted file mode 100644 index 466d8b59635..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/dataTypes.ts +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - DataType, - DataTypesListByDataProductOptionalParams, - DataTypesGetOptionalParams, - DataTypesGetResponse, - DataTypesCreateOptionalParams, - DataTypesCreateResponse, - DataTypeUpdate, - DataTypesUpdateOptionalParams, - DataTypesUpdateResponse, - DataTypesDeleteOptionalParams, - DataTypesDeleteResponse, - DataTypesDeleteDataOptionalParams, - DataTypesDeleteDataResponse, - ContainerSaS, - DataTypesGenerateStorageContainerSasTokenOptionalParams, - DataTypesGenerateStorageContainerSasTokenResponse -} from "../models"; - -/// -/** Interface representing a DataTypes. */ -export interface DataTypes { - /** - * List data type by parent resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param options The options parameters. - */ - listByDataProduct( - resourceGroupName: string, - dataProductName: string, - options?: DataTypesListByDataProductOptionalParams - ): PagedAsyncIterableIterator; - /** - * Retrieve data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesGetOptionalParams - ): Promise; - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreate( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - resource: DataType, - options?: DataTypesCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataTypesCreateResponse - > - >; - /** - * Create data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateAndWait( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - resource: DataType, - options?: DataTypesCreateOptionalParams - ): Promise; - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - properties: DataTypeUpdate, - options?: DataTypesUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataTypesUpdateResponse - > - >; - /** - * Update data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - properties: DataTypeUpdate, - options?: DataTypesUpdateOptionalParams - ): Promise; - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataTypesDeleteResponse - > - >; - /** - * Delete data type resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesDeleteOptionalParams - ): Promise; - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginDeleteData( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: Record, - options?: DataTypesDeleteDataOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - DataTypesDeleteDataResponse - > - >; - /** - * Delete data for data type. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginDeleteDataAndWait( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: Record, - options?: DataTypesDeleteDataOptionalParams - ): Promise; - /** - * Generate sas token for storage container. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dataProductName The data product resource name - * @param dataTypeName The data type name. - * @param body The content of the action request - * @param options The options parameters. - */ - generateStorageContainerSasToken( - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: ContainerSaS, - options?: DataTypesGenerateStorageContainerSasTokenOptionalParams - ): Promise; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts deleted file mode 100644 index f40582f617d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./operations"; -export * from "./dataProducts"; -export * from "./dataProductsCatalogs"; -export * from "./dataTypes"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts.map deleted file mode 100644 index edc27ccf08f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js deleted file mode 100644 index d41aac44082..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./operations"), exports); -tslib_1.__exportStar(require("./dataProducts"), exports); -tslib_1.__exportStar(require("./dataProductsCatalogs"), exports); -tslib_1.__exportStar(require("./dataTypes"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js.map deleted file mode 100644 index d219d9715aa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uDAA6B;AAC7B,yDAA+B;AAC/B,iEAAuC;AACvC,sDAA4B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.ts deleted file mode 100644 index b5e3f0dc13d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export * from "./operations"; -export * from "./dataProducts"; -export * from "./dataProductsCatalogs"; -export * from "./dataTypes"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts deleted file mode 100644 index c3ea87ca1c6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; -/** Interface representing a Operations. */ -export interface Operations { - /** - * List the operations for the provider - * @param options The options parameters. - */ - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; -} -//# sourceMappingURL=operations.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts.map deleted file mode 100644 index 6349b6461d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js deleted file mode 100644 index 8e3a30c090b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=operations.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js.map deleted file mode 100644 index 4a6d490fb8a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"operations.js","sourceRoot":"","sources":["operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.ts deleted file mode 100644 index 5cf5581845b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/operationsInterfaces/operations.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; - -/// -/** Interface representing a Operations. */ -export interface Operations { - /** - * List the operations for the provider - * @param options The options parameters. - */ - list( - options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts deleted file mode 100644 index 0c455e23c5d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export interface PageInfo { - continuationToken?: string; -} -/** - * Given the last `.value` produced by the `byPage` iterator, - * returns a continuation token that can be used to begin paging from - * that point later. - * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. - * @returns The continuation token that can be passed into byPage() during future calls. - */ -export declare function getContinuationToken(page: unknown): string | undefined; -export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void; -//# sourceMappingURL=pagingHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts.map deleted file mode 100644 index 387b6f0d309..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js deleted file mode 100644 index 71a41e0539a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getContinuationToken = getContinuationToken; -exports.setContinuationToken = setContinuationToken; -const pageMap = new WeakMap(); -/** - * Given the last `.value` produced by the `byPage` iterator, - * returns a continuation token that can be used to begin paging from - * that point later. - * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. - * @returns The continuation token that can be passed into byPage() during future calls. - */ -function getContinuationToken(page) { - if (typeof page !== "object" || page === null) { - return undefined; - } - return pageMap.get(page)?.continuationToken; -} -function setContinuationToken(page, continuationToken) { - if (typeof page !== "object" || page === null || !continuationToken) { - return; - } - const pageInfo = pageMap.get(page) ?? {}; - pageInfo.continuationToken = continuationToken; - pageMap.set(page, pageInfo); -} -//# sourceMappingURL=pagingHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js.map deleted file mode 100644 index bc8dbf1fb53..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.ts deleted file mode 100644 index 269a2b9814b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/src/pagingHelper.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export interface PageInfo { - continuationToken?: string; -} - -const pageMap = new WeakMap(); - -/** - * Given the last `.value` produced by the `byPage` iterator, - * returns a continuation token that can be used to begin paging from - * that point later. - * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. - * @returns The continuation token that can be passed into byPage() during future calls. - */ -export function getContinuationToken(page: unknown): string | undefined { - if (typeof page !== "object" || page === null) { - return undefined; - } - return pageMap.get(page)?.continuationToken; -} - -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined -): void { - if (typeof page !== "object" || page === null || !continuationToken) { - return; - } - const pageInfo = pageMap.get(page) ?? {}; - pageInfo.continuationToken = continuationToken; - pageMap.set(page, pageInfo); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts deleted file mode 100644 index d9138babf9f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const testPollingOptions: { - updateIntervalInMs: number | undefined; -}; -//# sourceMappingURL=networkanalytics_operations_test.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts.map deleted file mode 100644 index 031498af4f7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkanalytics_operations_test.spec.d.ts","sourceRoot":"","sources":["networkanalytics_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js deleted file mode 100644 index a985372831a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.testPollingOptions = void 0; -const test_recorder_1 = require("@azure-tools/test-recorder"); -const test_credential_1 = require("@azure-tools/test-credential"); -const chai_1 = require("chai"); -const microsoftNetworkAnalytics_1 = require("../src/microsoftNetworkAnalytics"); -const replaceableVariables = { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" -}; -const recorderOptions = { - envSetupForPlayback: replaceableVariables -}; -exports.testPollingOptions = { - updateIntervalInMs: (0, test_recorder_1.isPlaybackMode)() ? 0 : undefined, -}; -describe("NetworkAnalytics test", () => { - let recorder; - let subscriptionId; - let client; - let location; - let resourceGroup; - let resourcename; - beforeEach(async function () { - recorder = new test_recorder_1.Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = test_recorder_1.env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = (0, test_credential_1.createTestCredential)(); - client = new microsoftNetworkAnalytics_1.MicrosoftNetworkAnalytics(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus2euap"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - }); - afterEach(async function () { - await recorder.stop(); - }); - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - chai_1.assert.notEqual(resArray.length, 0); - }); - it.skip("dataProducts create test", async function () { - const res = await client.dataProducts.beginCreateAndWait(resourceGroup, resourcename, { - location, - properties: { - majorVersion: "1", - product: "MCC", - publisher: "Microsoft" - } - }, exports.testPollingOptions); - chai_1.assert.equal(res.name, resourcename); - }).timeout(14400000); - it("dataProducts get test", async function () { - const res = await client.dataProducts.get(resourceGroup, resourcename); - chai_1.assert.equal(res.name, resourcename); - }); - it("dataProducts list test", async function () { - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - chai_1.assert.equal(resArray.length, 1); - }); - it("dataProducts delete test", async function () { - const resArray = new Array(); - const res = await client.dataProducts.beginDeleteAndWait(resourceGroup, resourcename, exports.testPollingOptions); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - chai_1.assert.equal(resArray.length, 0); - }); -}); -//# sourceMappingURL=networkanalytics_operations_test.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js.map deleted file mode 100644 index b8308364d5f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkanalytics_operations_test.spec.js","sourceRoot":"","sources":["networkanalytics_operations_test.spec.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,8DAMoC;AACpC,kEAAoE;AACpE,+BAA8B;AAE9B,gFAA6E;AAE7E,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,IAAA,8BAAc,GAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAiC,CAAC;IACtC,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IAEzB,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,IAAI,wBAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,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KAAK;QAC/B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CACvC,aAAa,EACb,YAAY,CAAC,CAAC;QAChB,aAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK;QAChC,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;QAC7B,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,CAAC;YAC9E,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;QACD,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,KAAK;QAClC,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACtD,aAAa,EACb,YAAY,EACZ,0BAAkB,CACnB,CAAC;QACF,IAAI,KAAK,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,CAAC;YAC9E,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;QACD,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.ts deleted file mode 100644 index ce11be25bc2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/test/networkanalytics_operations_test.spec.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - Recorder, - RecorderStartOptions, - delay, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { MicrosoftNetworkAnalytics } from "../src/microsoftNetworkAnalytics"; - -const replaceableVariables: Record = { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("NetworkAnalytics test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: MicrosoftNetworkAnalytics; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new MicrosoftNetworkAnalytics(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus2euap"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); - - it.skip("dataProducts create test", async function () { - const res = await client.dataProducts.beginCreateAndWait( - resourceGroup, - resourcename, - { - location, - properties: { - majorVersion: "1", - product: "MCC", - publisher: "Microsoft" - } - }, - testPollingOptions); - assert.equal(res.name, resourcename); - }).timeout(14400000); - - it("dataProducts get test", async function () { - const res = await client.dataProducts.get( - resourceGroup, - resourcename); - assert.equal(res.name, resourcename); - }); - - it("dataProducts list test", async function () { - const resArray = new Array(); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 1); - }); - - it("dataProducts delete test", async function () { - const resArray = new Array(); - const res = await client.dataProducts.beginDeleteAndWait( - resourceGroup, - resourcename, - testPollingOptions, - ); - for await (let item of client.dataProducts.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 0); - }); - -}) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/tsconfig.json deleted file mode 100644 index 7f81f9714dd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/latest-package/tsconfig.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es6", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "declaration": true, - "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-networkanalytics": [ - "./src/index" - ] - } - }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.eslintrc.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.eslintrc.json deleted file mode 100644 index 619797ac39b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "plugins": ["@azure/azure-sdk"], - "extends": ["plugin:@azure/azure-sdk/azure-sdk-base"], - "rules": { - "@azure/azure-sdk/ts-modules-only-named": "warn", - "@azure/azure-sdk/ts-apiextractor-json-types": "warn", - "@azure/azure-sdk/ts-package-json-types": "warn", - "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", - "tsdoc/syntax": "warn" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/browser.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/browser.json deleted file mode 100644 index 32e74e04ec6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/browser.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./build.json", - "include": [ - "../src/**/*.ts", - "../src/**/*.mts", - "../src/**/*.tsx" - ], - "exclude": [], - "compilerOptions": { - "outDir": "../.tshy-build/browser" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/build.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/build.json deleted file mode 100644 index aea1a9e93b5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/build.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "rootDir": "../src", - "module": "nodenext", - "moduleResolution": "nodenext" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/commonjs.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/commonjs.json deleted file mode 100644 index 5ace94d041f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/commonjs.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./build.json", - "include": [ - "../src/**/*.ts", - "../src/**/*.cts", - "../src/**/*.tsx" - ], - "exclude": [ - "../src/**/*.mts" - ], - "compilerOptions": { - "outDir": "../.tshy-build/commonjs" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/esm.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/esm.json deleted file mode 100644 index ff5264e692d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/esm.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./build.json", - "include": [ - "../src/**/*.ts", - "../src/**/*.mts", - "../src/**/*.tsx" - ], - "exclude": [], - "compilerOptions": { - "outDir": "../.tshy-build/esm" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/react-native.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/react-native.json deleted file mode 100644 index f431a06985d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/.tshy/react-native.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./build.json", - "include": [ - "../src/**/*.ts", - "../src/**/*.mts", - "../src/**/*.tsx" - ], - "exclude": [], - "compilerOptions": { - "outDir": "../.tshy-build/react-native" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/README.md deleted file mode 100644 index 320874dc2de..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# Azure NetworkAnalytics REST client library for JavaScript - - - -**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library** - -Key links: - -- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-networkanalytics) -- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-networkanalytics?view=azure-node-preview) - -## Getting started - -### Currently supported environments - -- LTS versions of Node.js - -### Prerequisites - -- You must have an [Azure subscription](https://azure.microsoft.com/free/) to use this package. - -### Install the `@azure/arm-networkanalytics` package - -Install the Azure NetworkAnalytics REST client REST client library for JavaScript with `npm`: - -```bash -npm install @azure/arm-networkanalytics -``` - -### Create and authenticate a `NetworkAnalyticsClient` - -To use an [Azure Active Directory (AAD) token credential](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token), -provide an instance of the desired credential type obtained from the -[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library. - -To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity) - -After setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use. -As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential) -can be used to authenticate the client. - -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: -AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET - -## Troubleshooting - -### Logging - -Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: - -```javascript -const { setLogLevel } = require("@azure/logger"); - -setLogLevel("info"); -``` - -For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/api-extractor.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/api-extractor.json deleted file mode 100644 index 260154a0f4b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/api-extractor.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist/esm/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, - "dtsRollup": { - "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/arm-networkanalytics.d.ts" - }, - "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, - "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } - } - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/karma.conf.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/karma.conf.js deleted file mode 100644 index a9d5f1b5fc5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/karma.conf.js +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "ENDPOINT", - "AZURE_CLIENT_SECRET", - "AZURE_CLIENT_ID", - "AZURE_TENANT_ID", - "SUBSCRIPTION_ID", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/package.json deleted file mode 100644 index a72621e9e8d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/package.json +++ /dev/null @@ -1,277 +0,0 @@ -{ - "name": "@azure/arm-networkanalytics", - "version": "1.0.0-beta.1", - "description": "A generated SDK for NetworkAnalyticsClient.", - "engines": { - "node": ">=18.0.0" - }, - "sideEffects": false, - "autoPublish": false, - "tshy": { - "exports": { - "./package.json": "./package.json", - ".": "./src/index.ts", - "./api": "./src/api/index.ts", - "./models": "./src/models/index.ts", - "./api/operations": "./src/api/operations/index.ts", - "./api/dataProductsCatalogs": "./src/api/dataProductsCatalogs/index.ts", - "./api/dataTypes": "./src/api/dataTypes/index.ts", - "./api/dataProducts": "./src/api/dataProducts/index.ts" - }, - "dialects": [ - "esm", - "commonjs" - ], - "esmDialects": [ - "browser", - "react-native" - ], - "selfLink": false - }, - "type": "module", - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "files": [ - "dist", - "README.md", - "LICENSE", - "review/*" - ], - "sdk-type": "client", - "repository": "github:Azure/azure-sdk-for-js", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", - "//metadata": { - "constantPaths": [ - { - "path": "src/rest/networkAnalyticsClient.ts", - "prefix": "package-version" - } - ] - }, - "dependencies": { - "@azure-rest/core-client": "^2.0.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-rest-pipeline": "^1.5.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.6.2", - "@azure/core-lro": "3.0.0-beta.2", - "@azure/abort-controller": "^2.0.0", - "@azure/core-paging": "^1.5.0" - }, - "devDependencies": { - "dotenv": "^16.0.0", - "@microsoft/api-extractor": "^7.40.3", - "@types/node": "^18.0.0", - "eslint": "^8.55.0", - "prettier": "^3.2.5", - "rimraf": "^5.0.5", - "mkdirp": "^3.0.1", - "typescript": "~5.4.5", - "tshy": "^1.11.1", - "@azure/core-util": "^1.0.0", - "@azure/identity": "^4.0.1", - "@vitest/browser": "^1.3.1", - "@vitest/coverage-istanbul": "^1.3.1", - "playwright": "^1.41.2", - "vitest": "^1.3.1", - "@azure-tools/test-credential": "^2.0.0", - "@azure-tools/test-recorder": "^4.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/eslint-plugin-azure-sdk": "^3.0.0" - }, - "scripts": { - "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", - "pack": "npm pack 2>&1", - "lint": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts", - "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts --fix --fix-type [problem,suggestion]", - "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", - "unit-test:node": "dev-tool run test:vitest", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "echo skipped", - "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", - "build:samples": "dev-tool samples publish --force", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", - "execute:samples": "dev-tool samples run samples-dev", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", - "generate:client": "echo skipped", - "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "build:test": "npm run clean && tshy && dev-tool run build-test", - "build": "npm run clean && tshy && mkdirp ./review && dev-tool run extract-api", - "test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node", - "test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test" - }, - "exports": { - "./package.json": "./package.json", - ".": { - "browser": { - "source": "./src/index.ts", - "types": "./dist/browser/index.d.ts", - "default": "./dist/browser/index.js" - }, - "react-native": { - "source": "./src/index.ts", - "types": "./dist/react-native/index.d.ts", - "default": "./dist/react-native/index.js" - }, - "import": { - "source": "./src/index.ts", - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" - }, - "require": { - "source": "./src/index.ts", - "types": "./dist/commonjs/index.d.ts", - "default": "./dist/commonjs/index.js" - } - }, - "./api": { - "browser": { - "source": "./src/api/index.ts", - "types": "./dist/browser/api/index.d.ts", - "default": "./dist/browser/api/index.js" - }, - "react-native": { - "source": "./src/api/index.ts", - "types": "./dist/react-native/api/index.d.ts", - "default": "./dist/react-native/api/index.js" - }, - "import": { - "source": "./src/api/index.ts", - "types": "./dist/esm/api/index.d.ts", - "default": "./dist/esm/api/index.js" - }, - "require": { - "source": "./src/api/index.ts", - "types": "./dist/commonjs/api/index.d.ts", - "default": "./dist/commonjs/api/index.js" - } - }, - "./models": { - "browser": { - "source": "./src/models/index.ts", - "types": "./dist/browser/models/index.d.ts", - "default": "./dist/browser/models/index.js" - }, - "react-native": { - "source": "./src/models/index.ts", - "types": "./dist/react-native/models/index.d.ts", - "default": "./dist/react-native/models/index.js" - }, - "import": { - "source": "./src/models/index.ts", - "types": "./dist/esm/models/index.d.ts", - "default": "./dist/esm/models/index.js" - }, - "require": { - "source": "./src/models/index.ts", - "types": "./dist/commonjs/models/index.d.ts", - "default": "./dist/commonjs/models/index.js" - } - }, - "./api/operations": { - "browser": { - "source": "./src/api/operations/index.ts", - "types": "./dist/browser/api/operations/index.d.ts", - "default": "./dist/browser/api/operations/index.js" - }, - "react-native": { - "source": "./src/api/operations/index.ts", - "types": "./dist/react-native/api/operations/index.d.ts", - "default": "./dist/react-native/api/operations/index.js" - }, - "import": { - "source": "./src/api/operations/index.ts", - "types": "./dist/esm/api/operations/index.d.ts", - "default": "./dist/esm/api/operations/index.js" - }, - "require": { - "source": "./src/api/operations/index.ts", - "types": "./dist/commonjs/api/operations/index.d.ts", - "default": "./dist/commonjs/api/operations/index.js" - } - }, - "./api/dataProductsCatalogs": { - "browser": { - "source": "./src/api/dataProductsCatalogs/index.ts", - "types": "./dist/browser/api/dataProductsCatalogs/index.d.ts", - "default": "./dist/browser/api/dataProductsCatalogs/index.js" - }, - "react-native": { - "source": "./src/api/dataProductsCatalogs/index.ts", - "types": "./dist/react-native/api/dataProductsCatalogs/index.d.ts", - "default": "./dist/react-native/api/dataProductsCatalogs/index.js" - }, - "import": { - "source": "./src/api/dataProductsCatalogs/index.ts", - "types": "./dist/esm/api/dataProductsCatalogs/index.d.ts", - "default": "./dist/esm/api/dataProductsCatalogs/index.js" - }, - "require": { - "source": "./src/api/dataProductsCatalogs/index.ts", - "types": "./dist/commonjs/api/dataProductsCatalogs/index.d.ts", - "default": "./dist/commonjs/api/dataProductsCatalogs/index.js" - } - }, - "./api/dataTypes": { - "browser": { - "source": "./src/api/dataTypes/index.ts", - "types": "./dist/browser/api/dataTypes/index.d.ts", - "default": "./dist/browser/api/dataTypes/index.js" - }, - "react-native": { - "source": "./src/api/dataTypes/index.ts", - "types": "./dist/react-native/api/dataTypes/index.d.ts", - "default": "./dist/react-native/api/dataTypes/index.js" - }, - "import": { - "source": "./src/api/dataTypes/index.ts", - "types": "./dist/esm/api/dataTypes/index.d.ts", - "default": "./dist/esm/api/dataTypes/index.js" - }, - "require": { - "source": "./src/api/dataTypes/index.ts", - "types": "./dist/commonjs/api/dataTypes/index.d.ts", - "default": "./dist/commonjs/api/dataTypes/index.js" - } - }, - "./api/dataProducts": { - "browser": { - "source": "./src/api/dataProducts/index.ts", - "types": "./dist/browser/api/dataProducts/index.d.ts", - "default": "./dist/browser/api/dataProducts/index.js" - }, - "react-native": { - "source": "./src/api/dataProducts/index.ts", - "types": "./dist/react-native/api/dataProducts/index.d.ts", - "default": "./dist/react-native/api/dataProducts/index.js" - }, - "import": { - "source": "./src/api/dataProducts/index.ts", - "types": "./dist/esm/api/dataProducts/index.d.ts", - "default": "./dist/esm/api/dataProducts/index.js" - }, - "require": { - "source": "./src/api/dataProducts/index.ts", - "types": "./dist/commonjs/api/dataProducts/index.d.ts", - "default": "./dist/commonjs/api/dataProducts/index.js" - } - } - }, - "main": "./dist/commonjs/index.js", - "types": "./dist/commonjs/index.d.ts" -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_create_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_create_test.json deleted file mode 100644 index be1a7798b4c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_create_test.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest?api-version=2023-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "100", - "Content-Type": "application/json; charset=UTF-8", - "Origin": "http://localhost:5173", - "Referer": "http://localhost:5173/", - "sec-ch-ua": "\"HeadlessChrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\"Windows\"", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/125.0.6422.26 Safari/537.36", - "x-ms-client-request-id": "Sanitized", - "x-ms-useragent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 OS/Windows" - }, - "RequestBody": { - "location": "eastus2euap", - "properties": { - "publisher": "Microsoft", - "product": "MCC", - "majorVersion": "1" - } - }, - "StatusCode": 409, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Access-Control-Expose-Headers": "x-ms-ratelimit-remaining-subscription-writes,x-ms-providerhub-traffic,x-ms-failure-cause,x-ms-request-id,x-ms-correlation-request-id,Date,x-ms-routing-request-id,Content-Length", - "Cache-Control": "no-cache", - "Content-Length": "272", - "Content-Type": "application/json", - "Date": "Wed, 12 Jun 2024 08:55:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Cache": "CONFIG_NOCACHE", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "407a7128-5a57-47c9-95bb-3056a77e64c3", - "x-ms-failure-cause": "gateway", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "Sanitized", - "x-ms-routing-request-id": "SOUTHEASTASIA:20240612T085549Z:407a7128-5a57-47c9-95bb-3056a77e64c3", - "X-MSEdge-Ref": "Ref A: 4F13FF24274B4B4EA4C054628D1BD4A1 Ref B: MAA201060516051 Ref C: 2024-06-12T08:55:46Z" - }, - "ResponseBody": { - "error": { - "code": "InvalidResourceOperation", - "message": "The operation for resource '/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest' is invalid as it is being provisioned with state: 'Accepted'." - } - } - } - ], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_delete_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_delete_test.json deleted file mode 100644 index f721723386d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_delete_test.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_get_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_get_test.json deleted file mode 100644 index bcf08cde80a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_get_test.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest?api-version=2023-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Origin": "http://localhost:5173", - "Referer": "http://localhost:5173/", - "sec-ch-ua": "\"HeadlessChrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\"Windows\"", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/125.0.6422.26 Safari/537.36", - "x-ms-client-request-id": "Sanitized", - "x-ms-useragent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 OS/Windows" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Access-Control-Expose-Headers": "x-ms-ratelimit-remaining-subscription-reads,x-ms-providerhub-traffic,x-ms-request-id,x-ms-correlation-request-id,Date,ETag,x-ms-routing-request-id,Content-Length", - "Cache-Control": "no-cache", - "Content-Length": "653", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Jun 2024 08:55:51 GMT", - "ETag": "\"0000c3de-0000-3400-0000-66695ed60000\"", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Cache": "CONFIG_NOCACHE", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2ed7f9a3-0cbf-4143-9fa7-d65eedadf432", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "Sanitized", - "x-ms-routing-request-id": "SOUTHEASTASIA:20240612T085551Z:2ed7f9a3-0cbf-4143-9fa7-d65eedadf432", - "X-MSEdge-Ref": "Ref A: 0745DDFC861B4A1B9D19AFEA695F2458 Ref B: MAA201060516051 Ref C: 2024-06-12T08:55:50Z" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest", - "name": "resourcetest", - "type": "microsoft.networkanalytics/dataproducts", - "location": "eastus2euap", - "systemData": { - "createdBy": "Sanitized", - "createdByType": "User", - "createdAt": "2024-06-12T08:39:39.0480081Z", - "lastModifiedBy": "Sanitized", - "lastModifiedByType": "User", - "lastModifiedAt": "2024-06-12T08:39:39.0480081Z" - }, - "properties": { - "publisher": "Microsoft", - "product": "MCC", - "majorVersion": "1", - "managedResourceGroupConfiguration": { - "location": "eastus2euap", - "name": "resourcetest-HostedResources-7EE8A6AF" - }, - "provisioningState": "Accepted" - } - } - } - ], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_list_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_list_test.json deleted file mode 100644 index 716c420a347..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_dataproducts_list_test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts?api-version=2023-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Origin": "http://localhost:5173", - "Referer": "http://localhost:5173/", - "sec-ch-ua": "\"HeadlessChrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\"Windows\"", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/125.0.6422.26 Safari/537.36", - "x-ms-client-request-id": "Sanitized", - "x-ms-useragent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 OS/Windows" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Access-Control-Expose-Headers": "x-ms-ratelimit-remaining-subscription-reads,x-ms-providerhub-traffic,x-ms-request-id,x-ms-correlation-request-id,Date,x-ms-routing-request-id,Content-Length", - "Cache-Control": "no-cache", - "Content-Length": "665", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Jun 2024 08:55:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Cache": "CONFIG_NOCACHE", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "495d1013-cdee-4974-9ba8-984af937e129", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "Sanitized", - "x-ms-routing-request-id": "SOUTHEASTASIA:20240612T085554Z:495d1013-cdee-4974-9ba8-984af937e129", - "X-MSEdge-Ref": "Ref A: ECD694DD05524F5CAB8D8DF89FC6ACE2 Ref B: MAA201060516051 Ref C: 2024-06-12T08:55:53Z" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest", - "name": "resourcetest", - "type": "microsoft.networkanalytics/dataproducts", - "location": "eastus2euap", - "systemData": { - "createdBy": "Sanitized", - "createdByType": "User", - "createdAt": "2024-06-12T08:39:39.0480081Z", - "lastModifiedBy": "Sanitized", - "lastModifiedByType": "User", - "lastModifiedAt": "2024-06-12T08:39:39.0480081Z" - }, - "properties": { - "publisher": "Microsoft", - "product": "MCC", - "majorVersion": "1", - "managedResourceGroupConfiguration": { - "location": "eastus2euap", - "name": "resourcetest-HostedResources-7EE8A6AF" - }, - "provisioningState": "Accepted" - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_operation_list_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_operation_list_test.json deleted file mode 100644 index 9e36e6c8b11..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/browsers/networkanalytics_test/recording_operation_list_test.json +++ /dev/null @@ -1,341 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://Sanitized.azure.com/providers/Microsoft.NetworkAnalytics/operations?api-version=2023-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Origin": "http://localhost:5173", - "Referer": "http://localhost:5173/", - "sec-ch-ua": "\"HeadlessChrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\"Windows\"", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/125.0.6422.26 Safari/537.36", - "x-ms-client-request-id": "Sanitized", - "x-ms-useragent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 OS/Windows" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Access-Control-Expose-Headers": "x-ms-ratelimit-remaining-tenant-reads,x-ms-providerhub-traffic,x-ms-request-id,x-ms-correlation-request-id,Date,x-ms-routing-request-id,Content-Length", - "Cache-Control": "no-cache", - "Content-Length": "7767", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 13 Jun 2024 09:13:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Cache": "CONFIG_NOCACHE", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "aabaf55b-cff8-43d6-835e-b74ed4682b05", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "Sanitized", - "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T091321Z:aabaf55b-cff8-43d6-835e-b74ed4682b05", - "X-MSEdge-Ref": "Ref A: 3EFF10F8E9314A1B821976EB110CA86F Ref B: MAA201060513027 Ref C: 2024-06-13T09:13:21Z" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.NetworkAnalytics/Locations/OperationStatuses/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Locations/OperationStatuses", - "operation": "read_OperationStatuses", - "description": "read OperationStatuses" - } - }, - { - "name": "Microsoft.NetworkAnalytics/Locations/OperationStatuses/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Locations/OperationStatuses", - "operation": "write_OperationStatuses", - "description": "write OperationStatuses" - } - }, - { - "name": "Microsoft.NetworkAnalytics/Operations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Operations", - "operation": "read_Operations", - "description": "read Operations" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_ListBySubscription", - "description": "List DataLakeHouseResources resources by subscription ID" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_ListByResourceGroup", - "description": "List DataLakeHouseResources resources by resource group" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_Get", - "description": "Get a DataLakeHouseResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_CreateOrUpdate", - "description": "Create a DataLakeHouseResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_Delete", - "description": "Delete a DataLakeHouseResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_Update", - "description": "Update a DataLakeHouseResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_ListBySubscription", - "description": "List DataConnectors resources by subscription ID" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_ListByResourceGroup", - "description": "List DataConnectors resources by resource group" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_Get", - "description": "Get a DataConnectors" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_CreateOrUpdate", - "description": "Create a DataConnectors" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_Delete", - "description": "Delete a DataConnectors" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_Update", - "description": "Update a DataConnectors" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_ListBySubscription", - "description": "List NetworkAnalyticsProducts resources by subscription ID" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_ListByResourceGroup", - "description": "List NetworkAnalyticsProducts resources by resource group" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_Get", - "description": "Get a NetworkAnalyticsProducts" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_CreateOrUpdate", - "description": "Create a NetworkAnalyticsProducts" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_Delete", - "description": "Delete a NetworkAnalyticsProducts" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_Update", - "description": "Update a NetworkAnalyticsProducts" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_List", - "description": "List MetricsIngestionEndpointResources resources by parent" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_Get", - "description": "Get a MetricsIngestionEndpointResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_CreateOrUpdate", - "description": "Create a MetricsIngestionEndpointResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_Delete", - "description": "Delete a MetricsIngestionEndpointResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_Update", - "description": "Update a MetricsIngestionEndpointResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/registeredSubscriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "registeredSubscriptions", - "operation": "read_registeredSubscriptions", - "description": "read registeredSubscriptions" - } - }, - { - "name": "Microsoft.NetworkAnalytics/register/action", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Microsoft.NetworkAnalytics", - "operation": "Register the Microsoft.NetworkAnalytics", - "description": "Register the subscription for Microsoft.NetworkAnalytics" - } - }, - { - "name": "Microsoft.NetworkAnalytics/unregister/action", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Microsoft.NetworkAnalytics", - "operation": "Unregister the Microsoft.NetworkAnalytics", - "description": "Unregister the subscription for Microsoft.NetworkAnalytics" - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_create_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_create_test.json deleted file mode 100644 index c03ea291be9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_create_test.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest?api-version=2023-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "100", - "Content-Type": "application/json; charset=UTF-8", - "User-Agent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 Node/18.19.0 OS/(x64-Windows_NT-10.0.22631)", - "x-ms-client-request-id": "Sanitized" - }, - "RequestBody": { - "location": "eastus2euap", - "properties": { - "publisher": "Microsoft", - "product": "MCC", - "majorVersion": "1" - } - }, - "StatusCode": 409, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "272", - "Content-Type": "application/json", - "Date": "Thu, 13 Jun 2024 08:47:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Cache": "CONFIG_NOCACHE", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0db09c16-2b0e-48b5-bc41-1ec801f9310f", - "x-ms-failure-cause": "gateway", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "Sanitized", - "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T084734Z:0db09c16-2b0e-48b5-bc41-1ec801f9310f", - "X-MSEdge-Ref": "Ref A: 3FB82C6D65654A5EA4235111C5AF4005 Ref B: MAA201060514053 Ref C: 2024-06-13T08:47:32Z" - }, - "ResponseBody": { - "error": { - "code": "InvalidResourceOperation", - "message": "The operation for resource '/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest' is invalid as it is being provisioned with state: 'Accepted'." - } - } - } - ], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_delete_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_delete_test.json deleted file mode 100644 index f721723386d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_delete_test.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_get_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_get_test.json deleted file mode 100644 index bef48983cc7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_get_test.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest?api-version=2023-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 Node/18.19.0 OS/(x64-Windows_NT-10.0.22631)", - "x-ms-client-request-id": "Sanitized" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "653", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 13 Jun 2024 08:47:38 GMT", - "ETag": "\"0000c3de-0000-3400-0000-66695ed60000\"", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Cache": "CONFIG_NOCACHE", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f025a585-6cfa-43bb-bda4-4943ec590443", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "Sanitized", - "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T084738Z:f025a585-6cfa-43bb-bda4-4943ec590443", - "X-MSEdge-Ref": "Ref A: BB50EC48827A4FBE8A7D739285F31334 Ref B: MAA201060514053 Ref C: 2024-06-13T08:47:36Z" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest", - "name": "resourcetest", - "type": "microsoft.networkanalytics/dataproducts", - "location": "eastus2euap", - "systemData": { - "createdBy": "Sanitized", - "createdByType": "User", - "createdAt": "2024-06-12T08:39:39.0480081Z", - "lastModifiedBy": "Sanitized", - "lastModifiedByType": "User", - "lastModifiedAt": "2024-06-12T08:39:39.0480081Z" - }, - "properties": { - "publisher": "Microsoft", - "product": "MCC", - "majorVersion": "1", - "managedResourceGroupConfiguration": { - "location": "eastus2euap", - "name": "resourcetest-HostedResources-7EE8A6AF" - }, - "provisioningState": "Accepted" - } - } - } - ], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_list_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_list_test.json deleted file mode 100644 index fd6804aa6dd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_dataproducts_list_test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://Sanitized.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts?api-version=2023-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 Node/18.19.0 OS/(x64-Windows_NT-10.0.22631)", - "x-ms-client-request-id": "Sanitized" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "665", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 13 Jun 2024 08:47:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Cache": "CONFIG_NOCACHE", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d26ad19d-2890-4810-91fb-dabc4a1e3d92", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "Sanitized", - "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T084741Z:d26ad19d-2890-4810-91fb-dabc4a1e3d92", - "X-MSEdge-Ref": "Ref A: FBA5D597E1844B37B62F3205CF313307 Ref B: MAA201060514053 Ref C: 2024-06-13T08:47:40Z" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.NetworkAnalytics/dataProducts/resourcetest", - "name": "resourcetest", - "type": "microsoft.networkanalytics/dataproducts", - "location": "eastus2euap", - "systemData": { - "createdBy": "Sanitized", - "createdByType": "User", - "createdAt": "2024-06-12T08:39:39.0480081Z", - "lastModifiedBy": "Sanitized", - "lastModifiedByType": "User", - "lastModifiedAt": "2024-06-12T08:39:39.0480081Z" - }, - "properties": { - "publisher": "Microsoft", - "product": "MCC", - "majorVersion": "1", - "managedResourceGroupConfiguration": { - "location": "eastus2euap", - "name": "resourcetest-HostedResources-7EE8A6AF" - }, - "provisioningState": "Accepted" - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_operation_list_test.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_operation_list_test.json deleted file mode 100644 index ad66a7e8de7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/recordings/node/networkanalytics_test/recording_operation_list_test.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://Sanitized.azure.com/providers/Microsoft.NetworkAnalytics/operations?api-version=2023-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1 core-rest-pipeline/1.16.1 Node/18.19.0 OS/(x64-Windows_NT-10.0.22631)", - "x-ms-client-request-id": "Sanitized" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "7767", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 13 Jun 2024 09:12:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Cache": "CONFIG_NOCACHE", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "856050a3-9301-4924-9694-3ec9c79d012e", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "Sanitized", - "x-ms-routing-request-id": "SOUTHEASTASIA:20240613T091239Z:856050a3-9301-4924-9694-3ec9c79d012e", - "X-MSEdge-Ref": "Ref A: 6BD936295D264AD89CADB9A2B9150DD4 Ref B: MAA201060514023 Ref C: 2024-06-13T09:12:39Z" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.NetworkAnalytics/Locations/OperationStatuses/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Locations/OperationStatuses", - "operation": "read_OperationStatuses", - "description": "read OperationStatuses" - } - }, - { - "name": "Microsoft.NetworkAnalytics/Locations/OperationStatuses/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Locations/OperationStatuses", - "operation": "write_OperationStatuses", - "description": "write OperationStatuses" - } - }, - { - "name": "Microsoft.NetworkAnalytics/Operations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Operations", - "operation": "read_Operations", - "description": "read Operations" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_ListBySubscription", - "description": "List DataLakeHouseResources resources by subscription ID" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_ListByResourceGroup", - "description": "List DataLakeHouseResources resources by resource group" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_Get", - "description": "Get a DataLakeHouseResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_CreateOrUpdate", - "description": "Create a DataLakeHouseResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_Delete", - "description": "Delete a DataLakeHouseResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataLakeHouses/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataLakeHouses", - "operation": "Storage_Update", - "description": "Update a DataLakeHouseResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_ListBySubscription", - "description": "List DataConnectors resources by subscription ID" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_ListByResourceGroup", - "description": "List DataConnectors resources by resource group" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_Get", - "description": "Get a DataConnectors" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_CreateOrUpdate", - "description": "Create a DataConnectors" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_Delete", - "description": "Delete a DataConnectors" - } - }, - { - "name": "Microsoft.NetworkAnalytics/dataConnectors/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "dataConnectors", - "operation": "DataConnector_Update", - "description": "Update a DataConnectors" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_ListBySubscription", - "description": "List NetworkAnalyticsProducts resources by subscription ID" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_ListByResourceGroup", - "description": "List NetworkAnalyticsProducts resources by resource group" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_Get", - "description": "Get a NetworkAnalyticsProducts" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_CreateOrUpdate", - "description": "Create a NetworkAnalyticsProducts" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_Delete", - "description": "Delete a NetworkAnalyticsProducts" - } - }, - { - "name": "Microsoft.NetworkAnalytics/networkAnalyticsProducts/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "networkAnalyticsProducts", - "operation": "NetworkAnalyticsProduct_Update", - "description": "Update a NetworkAnalyticsProducts" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_List", - "description": "List MetricsIngestionEndpointResources resources by parent" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_Get", - "description": "Get a MetricsIngestionEndpointResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_CreateOrUpdate", - "description": "Create a MetricsIngestionEndpointResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_Delete", - "description": "Delete a MetricsIngestionEndpointResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/metricsIngestionEndpoints/write", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "metricsIngestionEndpoints", - "operation": "MetricsIngestionEndpoints_Update", - "description": "Update a MetricsIngestionEndpointResources" - } - }, - { - "name": "Microsoft.NetworkAnalytics/registeredSubscriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "registeredSubscriptions", - "operation": "read_registeredSubscriptions", - "description": "read registeredSubscriptions" - } - }, - { - "name": "Microsoft.NetworkAnalytics/register/action", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Microsoft.NetworkAnalytics", - "operation": "Register the Microsoft.NetworkAnalytics", - "description": "Register the subscription for Microsoft.NetworkAnalytics" - } - }, - { - "name": "Microsoft.NetworkAnalytics/unregister/action", - "isDataAction": false, - "display": { - "provider": "Microsoft.NetworkAnalytics", - "resource": "Microsoft.NetworkAnalytics", - "operation": "Unregister the Microsoft.NetworkAnalytics", - "description": "Unregister the subscription for Microsoft.NetworkAnalytics" - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProducts.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProducts.api.md deleted file mode 100644 index ea6abd14ebd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProducts.api.md +++ /dev/null @@ -1,118 +0,0 @@ -## API Report File for "@azure/arm-networkanalytics" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Client } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { OperationOptions } from '@azure-rest/core-client'; -import { OperationState } from '@azure/core-lro'; -import { Paged } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; - -// @public -export function $delete(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): PollerLike, void>; - -// @public (undocumented) -export function _$deleteDeserialize(result: DataProductsDelete202Response | DataProductsDelete204Response | DataProductsDeleteDefaultResponse | DataProductsDeleteLogicalResponse): Promise; - -// @public (undocumented) -export function _$deleteSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): StreamableMethod; - -// @public -export function addUserRole(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties_2, options?: DataProductsAddUserRoleOptionalParams): Promise; - -// @public (undocumented) -export function _addUserRoleDeserialize(result: DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse): Promise; - -// @public (undocumented) -export function _addUserRoleSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties_2, options?: DataProductsAddUserRoleOptionalParams): StreamableMethod; - -// @public -export function create(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct_2, options?: DataProductsCreateOptionalParams): PollerLike, DataProduct_2>; - -// @public (undocumented) -export function _createDeserialize(result: DataProductsCreate200Response | DataProductsCreate201Response | DataProductsCreateDefaultResponse | DataProductsCreateLogicalResponse): Promise; - -// @public (undocumented) -export function _createSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct_2, options?: DataProductsCreateOptionalParams): StreamableMethod; - -// @public -export function generateStorageAccountSasToken(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas_2, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; - -// @public (undocumented) -export function _generateStorageAccountSasTokenDeserialize(result: DataProductsGenerateStorageAccountSasToken200Response | DataProductsGenerateStorageAccountSasTokenDefaultResponse): Promise; - -// @public (undocumented) -export function _generateStorageAccountSasTokenSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas_2, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): StreamableMethod; - -// @public -export function get(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; - -// @public (undocumented) -export function _getDeserialize(result: DataProductsGet200Response | DataProductsGetDefaultResponse): Promise; - -// @public (undocumented) -export function _getSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): StreamableMethod; - -// @public -export function listByResourceGroup(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - -// @public (undocumented) -export function _listByResourceGroupDeserialize(result: DataProductsListByResourceGroup200Response | DataProductsListByResourceGroupDefaultResponse): Promise; - -// @public (undocumented) -export function _listByResourceGroupSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): StreamableMethod; - -// @public -export function listBySubscription(context: NetworkAnalyticsContext, subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - -// @public (undocumented) -export function _listBySubscriptionDeserialize(result: DataProductsListBySubscription200Response | DataProductsListBySubscriptionDefaultResponse): Promise; - -// @public (undocumented) -export function _listBySubscriptionSend(context: NetworkAnalyticsContext, subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams): StreamableMethod; - -// @public -export function listRolesAssignments(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; - -// @public (undocumented) -export function _listRolesAssignmentsDeserialize(result: DataProductsListRolesAssignments200Response | DataProductsListRolesAssignmentsDefaultResponse): Promise; - -// @public (undocumented) -export function _listRolesAssignmentsSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): StreamableMethod; - -// @public -export function removeUserRole(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail_2, options?: DataProductsRemoveUserRoleOptionalParams): Promise; - -// @public (undocumented) -export function _removeUserRoleDeserialize(result: DataProductsRemoveUserRole204Response | DataProductsRemoveUserRoleDefaultResponse): Promise; - -// @public (undocumented) -export function _removeUserRoleSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail_2, options?: DataProductsRemoveUserRoleOptionalParams): StreamableMethod; - -// @public -export function rotateKey(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo_2, options?: DataProductsRotateKeyOptionalParams): Promise; - -// @public (undocumented) -export function _rotateKeyDeserialize(result: DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse): Promise; - -// @public (undocumented) -export function _rotateKeySend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo_2, options?: DataProductsRotateKeyOptionalParams): StreamableMethod; - -// @public -export function update(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate_2, options?: DataProductsUpdateOptionalParams): PollerLike, DataProduct_2>; - -// @public (undocumented) -export function _updateDeserialize(result: DataProductsUpdate200Response | DataProductsUpdate202Response | DataProductsUpdateDefaultResponse | DataProductsUpdateLogicalResponse): Promise; - -// @public (undocumented) -export function _updateSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate_2, options?: DataProductsUpdateOptionalParams): StreamableMethod; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProductsCatalogs.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProductsCatalogs.api.md deleted file mode 100644 index 6f284e30e4e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataProductsCatalogs.api.md +++ /dev/null @@ -1,44 +0,0 @@ -## API Report File for "@azure/arm-networkanalytics" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Client } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { OperationOptions } from '@azure-rest/core-client'; -import { Paged } from '@azure/core-paging'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; - -// @public -export function get(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; - -// @public (undocumented) -export function _getDeserialize(result: DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse): Promise; - -// @public (undocumented) -export function _getSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): StreamableMethod; - -// @public -export function listByResourceGroup(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - -// @public (undocumented) -export function _listByResourceGroupDeserialize(result: DataProductsCatalogsListByResourceGroup200Response | DataProductsCatalogsListByResourceGroupDefaultResponse): Promise; - -// @public (undocumented) -export function _listByResourceGroupSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): StreamableMethod; - -// @public -export function listBySubscription(context: NetworkAnalyticsContext, subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - -// @public (undocumented) -export function _listBySubscriptionDeserialize(result: DataProductsCatalogsListBySubscription200Response | DataProductsCatalogsListBySubscriptionDefaultResponse): Promise; - -// @public (undocumented) -export function _listBySubscriptionSend(context: NetworkAnalyticsContext, subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams): StreamableMethod; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataTypes.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataTypes.api.md deleted file mode 100644 index fa84c743e0d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-dataTypes.api.md +++ /dev/null @@ -1,82 +0,0 @@ -## API Report File for "@azure/arm-networkanalytics" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Client } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { OperationOptions } from '@azure-rest/core-client'; -import { OperationState } from '@azure/core-lro'; -import { Paged } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; - -// @public -export function $delete(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): PollerLike, void>; - -// @public (undocumented) -export function _$deleteDeserialize(result: DataTypesDelete202Response | DataTypesDelete204Response | DataTypesDeleteDefaultResponse | DataTypesDeleteLogicalResponse): Promise; - -// @public (undocumented) -export function _$deleteSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): StreamableMethod; - -// @public -export function create(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType_2, options?: DataTypesCreateOptionalParams): PollerLike, DataType_2>; - -// @public (undocumented) -export function _createDeserialize(result: DataTypesCreate200Response | DataTypesCreate201Response | DataTypesCreateDefaultResponse | DataTypesCreateLogicalResponse): Promise; - -// @public (undocumented) -export function _createSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType_2, options?: DataTypesCreateOptionalParams): StreamableMethod; - -// @public -export function deleteData(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): PollerLike, void>; - -// @public (undocumented) -export function _deleteDataDeserialize(result: DataTypesDeleteData202Response | DataTypesDeleteData204Response | DataTypesDeleteDataDefaultResponse | DataTypesDeleteDataLogicalResponse): Promise; - -// @public (undocumented) -export function _deleteDataSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): StreamableMethod; - -// @public -export function generateStorageContainerSasToken(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS_2, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; - -// @public (undocumented) -export function _generateStorageContainerSasTokenDeserialize(result: DataTypesGenerateStorageContainerSasToken200Response | DataTypesGenerateStorageContainerSasTokenDefaultResponse): Promise; - -// @public (undocumented) -export function _generateStorageContainerSasTokenSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS_2, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): StreamableMethod; - -// @public -export function get(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; - -// @public (undocumented) -export function _getDeserialize(result: DataTypesGet200Response | DataTypesGetDefaultResponse): Promise; - -// @public (undocumented) -export function _getSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): StreamableMethod; - -// @public -export function listByDataProduct(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; - -// @public (undocumented) -export function _listByDataProductDeserialize(result: DataTypesListByDataProduct200Response | DataTypesListByDataProductDefaultResponse): Promise; - -// @public (undocumented) -export function _listByDataProductSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): StreamableMethod; - -// @public -export function update(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate_2, options?: DataTypesUpdateOptionalParams): PollerLike, DataType_2>; - -// @public (undocumented) -export function _updateDeserialize(result: DataTypesUpdate200Response | DataTypesUpdate202Response | DataTypesUpdateDefaultResponse | DataTypesUpdateLogicalResponse): Promise; - -// @public (undocumented) -export function _updateSend(context: NetworkAnalyticsContext, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate_2, options?: DataTypesUpdateOptionalParams): StreamableMethod; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-operations.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-operations.api.md deleted file mode 100644 index 99f9d3c61b8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api-operations.api.md +++ /dev/null @@ -1,26 +0,0 @@ -## API Report File for "@azure/arm-networkanalytics" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Client } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { OperationOptions } from '@azure-rest/core-client'; -import { Paged } from '@azure/core-paging'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; - -// @public -export function list(context: NetworkAnalyticsContext, options?: OperationsListOptionalParams): PagedAsyncIterableIterator; - -// @public (undocumented) -export function _listDeserialize(result: OperationsList200Response | OperationsListDefaultResponse): Promise; - -// @public (undocumented) -export function _listSend(context: NetworkAnalyticsContext, options?: OperationsListOptionalParams): StreamableMethod; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api.api.md deleted file mode 100644 index ae2ac29174f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-api.api.md +++ /dev/null @@ -1,31 +0,0 @@ -## API Report File for "@azure/arm-networkanalytics" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { Paged } from '@azure/core-paging'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; - -// @public (undocumented) -export function createNetworkAnalytics(credential: TokenCredential, options?: NetworkAnalyticsClientOptions): NetworkAnalyticsContext; - -// @public (undocumented) -export interface NetworkAnalyticsClientOptions extends ClientOptions { - apiVersion?: string; -} - -// @public (undocumented) -export type NetworkAnalyticsContext = Client & { - path: Routes; -}; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-models.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-models.api.md deleted file mode 100644 index f202fe86e44..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics-models.api.md +++ /dev/null @@ -1,479 +0,0 @@ -## API Report File for "@azure/arm-networkanalytics" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { OperationOptions } from '@azure-rest/core-client'; - -// @public -export interface AccountSas { - expiryTimeStamp: Date; - ipAddress: string; - startTimeStamp: Date; -} - -// @public -export interface AccountSasToken { - storageAccountSasToken: string; -} - -// @public -export type ActionType = string; - -// @public -export interface ArmOperationStatus { - readonly endTime?: Date; - readonly error?: ErrorDetail; - readonly name?: string; - readonly percentComplete?: number; - readonly startTime?: Date; - status: ResourceProvisioningState; -} - -// @public -export interface ConsumptionEndpointsProperties { - readonly fileAccessResourceId?: string; - readonly fileAccessUrl?: string; - readonly ingestionResourceId?: string; - readonly ingestionUrl?: string; - readonly queryResourceId?: string; - readonly queryUrl?: string; -} - -// @public -export interface ContainerSaS { - expiryTimeStamp: Date; - ipAddress: string; - startTimeStamp: Date; -} - -// @public -export interface ContainerSasToken { - storageContainerSasToken: string; -} - -// @public -export type ContinuablePage = TPage & { - continuationToken?: string; -}; - -// @public -export type ControlState = string; - -// @public -export type CreatedByType = string; - -// @public -export interface DataProduct extends TrackedResource { - identity?: ManagedServiceIdentity; - properties?: DataProductProperties; -} - -// @public -export interface DataProductInformation { - dataProductName: string; - dataProductVersions: DataProductVersion[]; - description: string; -} - -// @public -export interface DataProductListResult { - nextLink?: string; - value: DataProduct[]; -} - -// @public -export interface DataProductNetworkAcls { - allowedQueryIpRangeList: string[]; - defaultAction: DefaultAction; - ipRules: IPRules[]; - virtualNetworkRule: VirtualNetworkRule[]; -} - -// @public -export interface DataProductProperties { - readonly availableMinorVersions?: string[]; - readonly consumptionEndpoints?: ConsumptionEndpointsProperties; - currentMinorVersion?: string; - customerEncryptionKey?: EncryptionKeyDetails; - customerManagedKeyEncryptionEnabled?: ControlState; - readonly documentation?: string; - readonly keyVaultUrl?: string; - majorVersion: string; - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - networkacls?: DataProductNetworkAcls; - owners?: string[]; - privateLinksEnabled?: ControlState; - product: string; - readonly provisioningState?: ProvisioningState; - publicNetworkAccess?: ControlState; - publisher: string; - purviewAccount?: string; - purviewCollection?: string; - redundancy?: ControlState; - readonly resourceGuid?: string; -} - -// @public (undocumented) -export interface DataProductsAddUserRoleOptionalParams extends OperationOptions { -} - -// @public -export interface DataProductsCatalog extends ProxyResource { - properties?: DataProductsCatalogProperties; -} - -// @public -export interface DataProductsCatalogListResult { - nextLink?: string; - value: DataProductsCatalog[]; -} - -// @public -export interface DataProductsCatalogProperties { - readonly provisioningState?: ProvisioningState; - publishers: PublisherInformation[]; -} - -// @public (undocumented) -export interface DataProductsCatalogsGetOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsCatalogsListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsCatalogsListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsCreateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataProductsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsGetOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsListRolesAssignmentsOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsRemoveUserRoleOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsRotateKeyOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DataProductUpdate { - identity?: ManagedServiceIdentity; - // (undocumented) - properties?: DataProductUpdateProperties; - tags?: Record; -} - -// @public -export interface DataProductUpdateProperties { - currentMinorVersion?: string; - owners?: string[]; - privateLinksEnabled?: ControlState; - purviewAccount?: string; - purviewCollection?: string; -} - -// @public -export type DataProductUserRole = string; - -// @public -export interface DataProductVersion { - version: string; -} - -// @public -export interface DataType extends ProxyResource { - properties?: DataTypeProperties; -} - -// @public -export interface DataTypeListResult { - nextLink?: string; - value: DataType[]; -} - -// @public -export interface DataTypeProperties { - databaseCacheRetention?: number; - databaseRetention?: number; - readonly provisioningState?: ProvisioningState; - state?: DataTypeState; - readonly stateReason?: string; - storageOutputRetention?: number; - readonly visualizationUrl?: string; -} - -// @public (undocumented) -export interface DataTypesCreateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataTypesDeleteDataOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataTypesDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataTypesGetOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataTypesListByDataProductOptionalParams extends OperationOptions { -} - -// @public -export type DataTypeState = string; - -// @public (undocumented) -export interface DataTypesUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DataTypeUpdate { - // (undocumented) - properties?: DataTypeUpdateProperties; -} - -// @public -export interface DataTypeUpdateProperties { - databaseCacheRetention?: number; - databaseRetention?: number; - state?: DataTypeState; - storageOutputRetention?: number; -} - -// @public -export type DefaultAction = string; - -// @public -export interface EncryptionKeyDetails { - keyName: string; - keyVaultUri: string; - keyVersion: string; -} - -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; -} - -// @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} - -// @public -export interface ErrorResponse { - error?: ErrorDetail; -} - -// @public -export interface IPRules { - action: string; - value?: string; -} - -// @public -export interface KeyVaultInfo { - keyVaultUrl: string; -} - -// @public -export interface ListRoleAssignments { - count: number; - roleAssignmentResponse: RoleAssignmentDetail[]; -} - -// @public -export interface ManagedResourceGroupConfiguration { - location: string; - name: string; -} - -// @public -export interface ManagedServiceIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type: ManagedServiceIdentityType; - userAssignedIdentities?: UserAssignedIdentities; -} - -// @public -export type ManagedServiceIdentityType = string; - -// @public -export interface Operation { - actionType?: ActionType; - display?: OperationDisplay; - readonly isDataAction?: boolean; - readonly name?: string; - readonly origin?: Origin; -} - -// @public -export interface OperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; -} - -// @public (undocumented) -export interface OperationsListOptionalParams extends OperationOptions { -} - -// @public -export type Origin = string; - -// @public -export interface PagedAsyncIterableIterator { - [Symbol.asyncIterator](): PagedAsyncIterableIterator; - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; - next(): Promise>; -} - -// @public -export interface PagedOperation { - nextLink?: string; - value: Operation[]; -} - -// @public -export interface PageSettings { - continuationToken?: string; -} - -// @public -export type ProvisioningState = string; - -// @public -export interface ProxyResource extends Resource { -} - -// @public -export interface PublisherInformation { - dataProducts: DataProductInformation[]; - publisherName: string; -} - -// @public -export interface Resource { - readonly id?: string; - readonly name?: string; - readonly systemData?: SystemData; - readonly type?: string; -} - -// @public -export type ResourceProvisioningState = string; - -// @public -export interface RoleAssignmentCommonProperties { - dataTypeScope: string[]; - principalId: string; - principalType: string; - role: DataProductUserRole; - roleId: string; - userName: string; -} - -// @public -export interface RoleAssignmentDetail { - dataTypeScope: string[]; - principalId: string; - principalType: string; - role: DataProductUserRole; - roleAssignmentId: string; - roleId: string; - userName: string; -} - -// @public -export interface SystemData { - readonly createdAt?: Date; - readonly createdBy?: string; - readonly createdByType?: CreatedByType; - readonly lastModifiedAt?: Date; - readonly lastModifiedBy?: string; - readonly lastModifiedByType?: CreatedByType; -} - -// @public -export interface TrackedResource extends Resource { - location: string; - tags?: Record; -} - -// @public -export interface UserAssignedIdentities extends Record { -} - -// @public -export interface UserAssignedIdentity { - clientId?: string; - principalId?: string; -} - -// @public (undocumented) -export type Versions = "2023-11-15"; - -// @public -export interface VirtualNetworkRule { - action?: string; - id: string; - state?: string; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics.api.md deleted file mode 100644 index fb52a21ee65..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/review/arm-networkanalytics.api.md +++ /dev/null @@ -1,579 +0,0 @@ -## API Report File for "@azure/arm-networkanalytics" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { AbortSignalLike } from '@azure/abort-controller'; -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { OperationOptions } from '@azure-rest/core-client'; -import { OperationState } from '@azure/core-lro'; -import { Paged } from '@azure/core-paging'; -import { PathUncheckedResponse } from '@azure-rest/core-client'; -import { Pipeline } from '@azure/core-rest-pipeline'; -import { PollerLike } from '@azure/core-lro'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; - -// @public -export interface AccountSas { - expiryTimeStamp: Date; - ipAddress: string; - startTimeStamp: Date; -} - -// @public -export interface AccountSasToken { - storageAccountSasToken: string; -} - -// @public -export type ActionType = string; - -// @public -export interface ArmOperationStatus { - readonly endTime?: Date; - readonly error?: ErrorDetail; - readonly name?: string; - readonly percentComplete?: number; - readonly startTime?: Date; - status: ResourceProvisioningState; -} - -// @public -export interface ConsumptionEndpointsProperties { - readonly fileAccessResourceId?: string; - readonly fileAccessUrl?: string; - readonly ingestionResourceId?: string; - readonly ingestionUrl?: string; - readonly queryResourceId?: string; - readonly queryUrl?: string; -} - -// @public -export interface ContainerSaS { - expiryTimeStamp: Date; - ipAddress: string; - startTimeStamp: Date; -} - -// @public -export interface ContainerSasToken { - storageContainerSasToken: string; -} - -// @public -export type ContinuablePage = TPage & { - continuationToken?: string; -}; - -// @public -export type ControlState = string; - -// @public -export type CreatedByType = string; - -// @public -export interface DataProduct extends TrackedResource { - identity?: ManagedServiceIdentity; - properties?: DataProductProperties; -} - -// @public -export interface DataProductInformation { - dataProductName: string; - dataProductVersions: DataProductVersion[]; - description: string; -} - -// @public -export interface DataProductListResult { - nextLink?: string; - value: DataProduct[]; -} - -// @public -export interface DataProductNetworkAcls { - allowedQueryIpRangeList: string[]; - defaultAction: DefaultAction; - ipRules: IPRules[]; - virtualNetworkRule: VirtualNetworkRule[]; -} - -// @public -export interface DataProductProperties { - readonly availableMinorVersions?: string[]; - readonly consumptionEndpoints?: ConsumptionEndpointsProperties; - currentMinorVersion?: string; - customerEncryptionKey?: EncryptionKeyDetails; - customerManagedKeyEncryptionEnabled?: ControlState; - readonly documentation?: string; - readonly keyVaultUrl?: string; - majorVersion: string; - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - networkacls?: DataProductNetworkAcls; - owners?: string[]; - privateLinksEnabled?: ControlState; - product: string; - readonly provisioningState?: ProvisioningState; - publicNetworkAccess?: ControlState; - publisher: string; - purviewAccount?: string; - purviewCollection?: string; - redundancy?: ControlState; - readonly resourceGuid?: string; -} - -// @public (undocumented) -export interface DataProductsAddUserRoleOptionalParams extends OperationOptions { -} - -// @public -export interface DataProductsCatalog extends ProxyResource { - properties?: DataProductsCatalogProperties; -} - -// @public -export interface DataProductsCatalogListResult { - nextLink?: string; - value: DataProductsCatalog[]; -} - -// @public -export interface DataProductsCatalogProperties { - readonly provisioningState?: ProvisioningState; - publishers: PublisherInformation[]; -} - -// @public (undocumented) -export interface DataProductsCatalogsGetOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsCatalogsListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsCatalogsListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsCatalogsOperations { - // (undocumented) - get: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams) => Promise; - // (undocumented) - listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; - // (undocumented) - listBySubscription: (subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; -} - -// @public (undocumented) -export interface DataProductsCreateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataProductsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsGetOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsListRolesAssignmentsOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsOperations { - // (undocumented) - addUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams) => Promise; - // (undocumented) - create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams) => PollerLike, DataProduct>; - // (undocumented) - delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams) => PollerLike, void>; - // (undocumented) - generateStorageAccountSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams) => Promise; - // (undocumented) - get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams) => Promise; - // (undocumented) - listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; - // (undocumented) - listBySubscription: (subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; - // (undocumented) - listRolesAssignments: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams) => Promise; - // (undocumented) - removeUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams) => Promise; - // (undocumented) - rotateKey: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams) => Promise; - // (undocumented) - update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams) => PollerLike, DataProduct>; -} - -// @public (undocumented) -export interface DataProductsRemoveUserRoleOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsRotateKeyOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataProductsUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DataProductUpdate { - identity?: ManagedServiceIdentity; - // (undocumented) - properties?: DataProductUpdateProperties; - tags?: Record; -} - -// @public -export interface DataProductUpdateProperties { - currentMinorVersion?: string; - owners?: string[]; - privateLinksEnabled?: ControlState; - purviewAccount?: string; - purviewCollection?: string; -} - -// @public -export type DataProductUserRole = string; - -// @public -export interface DataProductVersion { - version: string; -} - -// @public -export interface DataType extends ProxyResource { - properties?: DataTypeProperties; -} - -// @public -export interface DataTypeListResult { - nextLink?: string; - value: DataType[]; -} - -// @public -export interface DataTypeProperties { - databaseCacheRetention?: number; - databaseRetention?: number; - readonly provisioningState?: ProvisioningState; - state?: DataTypeState; - readonly stateReason?: string; - storageOutputRetention?: number; - readonly visualizationUrl?: string; -} - -// @public (undocumented) -export interface DataTypesCreateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataTypesDeleteDataOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataTypesDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public (undocumented) -export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataTypesGetOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataTypesListByDataProductOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface DataTypesOperations { - // (undocumented) - create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams) => PollerLike, DataType>; - // (undocumented) - delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams) => PollerLike, void>; - // (undocumented) - deleteData: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams) => PollerLike, void>; - // (undocumented) - generateStorageContainerSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams) => Promise; - // (undocumented) - get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams) => Promise; - // (undocumented) - listByDataProduct: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams) => PagedAsyncIterableIterator; - // (undocumented) - update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams) => PollerLike, DataType>; -} - -// @public -export type DataTypeState = string; - -// @public (undocumented) -export interface DataTypesUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DataTypeUpdate { - // (undocumented) - properties?: DataTypeUpdateProperties; -} - -// @public -export interface DataTypeUpdateProperties { - databaseCacheRetention?: number; - databaseRetention?: number; - state?: DataTypeState; - storageOutputRetention?: number; -} - -// @public -export type DefaultAction = string; - -// @public -export interface EncryptionKeyDetails { - keyName: string; - keyVaultUri: string; - keyVersion: string; -} - -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; -} - -// @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} - -// @public -export interface ErrorResponse { - error?: ErrorDetail; -} - -// @public -export interface IPRules { - action: string; - value?: string; -} - -// @public -export interface KeyVaultInfo { - keyVaultUrl: string; -} - -// @public -export interface ListRoleAssignments { - count: number; - roleAssignmentResponse: RoleAssignmentDetail[]; -} - -// @public -export interface ManagedResourceGroupConfiguration { - location: string; - name: string; -} - -// @public -export interface ManagedServiceIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type: ManagedServiceIdentityType; - userAssignedIdentities?: UserAssignedIdentities; -} - -// @public -export type ManagedServiceIdentityType = string; - -// @public (undocumented) -export class NetworkAnalyticsClient { - constructor(credential: TokenCredential, options?: NetworkAnalyticsClientOptions); - readonly dataProducts: DataProductsOperations; - readonly dataProductsCatalogs: DataProductsCatalogsOperations; - readonly dataTypes: DataTypesOperations; - readonly operations: OperationsOperations; - readonly pipeline: Pipeline; -} - -// @public (undocumented) -export interface NetworkAnalyticsClientOptions extends ClientOptions { - apiVersion?: string; -} - -// @public -export interface Operation { - actionType?: ActionType; - display?: OperationDisplay; - readonly isDataAction?: boolean; - readonly name?: string; - readonly origin?: Origin; -} - -// @public -export interface OperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; -} - -// @public (undocumented) -export interface OperationsListOptionalParams extends OperationOptions { -} - -// @public (undocumented) -export interface OperationsOperations { - // (undocumented) - list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; -} - -// @public -export type Origin = string; - -// @public -export interface PagedAsyncIterableIterator { - [Symbol.asyncIterator](): PagedAsyncIterableIterator; - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; - next(): Promise>; -} - -// @public -export interface PagedOperation { - nextLink?: string; - value: Operation[]; -} - -// @public -export interface PageSettings { - continuationToken?: string; -} - -// @public -export type ProvisioningState = string; - -// @public -export interface ProxyResource extends Resource { -} - -// @public -export interface PublisherInformation { - dataProducts: DataProductInformation[]; - publisherName: string; -} - -// @public -export interface Resource { - readonly id?: string; - readonly name?: string; - readonly systemData?: SystemData; - readonly type?: string; -} - -// @public -export type ResourceProvisioningState = string; - -// Warning: (ae-forgotten-export) The symbol "NetworkAnalyticsContext" needs to be exported by the entry point index.d.ts -// -// @public -export function restorePoller(client: NetworkAnalyticsContext | NetworkAnalyticsClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike, TResult>, options?: RestorePollerOptions): PollerLike, TResult>; - -// @public (undocumented) -export interface RestorePollerOptions extends OperationOptions { - abortSignal?: AbortSignalLike; - processResponseBody?: (result: TResponse) => Promise; - updateIntervalInMs?: number; -} - -// @public -export interface RoleAssignmentCommonProperties { - dataTypeScope: string[]; - principalId: string; - principalType: string; - role: DataProductUserRole; - roleId: string; - userName: string; -} - -// @public -export interface RoleAssignmentDetail { - dataTypeScope: string[]; - principalId: string; - principalType: string; - role: DataProductUserRole; - roleAssignmentId: string; - roleId: string; - userName: string; -} - -// @public -export interface SystemData { - readonly createdAt?: Date; - readonly createdBy?: string; - readonly createdByType?: CreatedByType; - readonly lastModifiedAt?: Date; - readonly lastModifiedBy?: string; - readonly lastModifiedByType?: CreatedByType; -} - -// @public -export interface TrackedResource extends Resource { - location: string; - tags?: Record; -} - -// @public -export interface UserAssignedIdentities extends Record { -} - -// @public -export interface UserAssignedIdentity { - clientId?: string; - principalId?: string; -} - -// @public (undocumented) -export type Versions = "2023-11-15"; - -// @public -export interface VirtualNetworkRule { - action?: string; - id: string; - state?: string; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/rollup.config.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/rollup.config.js deleted file mode 100644 index 61251d7a8d5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/rollup.config.js +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import nodeResolve from "@rollup/plugin-node-resolve"; -import cjs from "@rollup/plugin-commonjs"; -import sourcemaps from "rollup-plugin-sourcemaps"; -import multiEntry from "@rollup/plugin-multi-entry"; -import json from "@rollup/plugin-json"; - -import nodeBuiltins from "builtin-modules"; - -// #region Warning Handler - -/** - * A function that can determine whether a rollup warning should be ignored. If - * the function returns `true`, then the warning will not be displayed. - */ - -function ignoreNiseSinonEval(warning) { - return ( - warning.code === "EVAL" && - warning.id && - (warning.id.includes("node_modules/nise") || - warning.id.includes("node_modules/sinon")) === true - ); -} - -function ignoreChaiCircularDependency(warning) { - return ( - warning.code === "CIRCULAR_DEPENDENCY" && - warning.importer && - warning.importer.includes("node_modules/chai") === true - ); -} - -const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; - -/** - * Construct a warning handler for the shared rollup configuration - * that ignores certain warnings that are not relevant to testing. - */ -function makeOnWarnForTesting() { - return (warning, warn) => { - // If every inhibitor returns false (i.e. no inhibitors), then show the warning - if (warningInhibitors.every((inhib) => !inhib(warning))) { - warn(warning); - } - }; -} - -// #endregion - -function makeBrowserTestConfig() { - const config = { - input: { - include: ["dist-esm/test/**/*.spec.js"], - exclude: ["dist-esm/test/**/node/**"], - }, - output: { - file: `dist-test/index.browser.js`, - format: "umd", - sourcemap: true, - }, - preserveSymlinks: false, - plugins: [ - multiEntry({ exports: false }), - nodeResolve({ - mainFields: ["module", "browser"], - }), - cjs(), - json(), - sourcemaps(), - //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) - ], - onwarn: makeOnWarnForTesting(), - // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, - // rollup started respecting the "sideEffects" field in package.json. Since - // our package.json sets "sideEffects=false", this also applies to test - // code, which causes all tests to be removed by tree-shaking. - treeshake: false, - }; - - return config; -} - -const defaultConfigurationOptions = { - disableBrowserBundle: false, -}; - -export function makeConfig(pkg, options) { - options = { - ...defaultConfigurationOptions, - ...(options || {}), - }; - - const baseConfig = { - // Use the package's module field if it has one - input: pkg["module"] || "dist-esm/src/index.js", - external: [ - ...nodeBuiltins, - ...Object.keys(pkg.dependencies), - ...Object.keys(pkg.devDependencies), - ], - output: { file: "dist/index.js", format: "cjs", sourcemap: true }, - preserveSymlinks: false, - plugins: [sourcemaps(), nodeResolve()], - }; - - const config = [baseConfig]; - - if (!options.disableBrowserBundle) { - config.push(makeBrowserTestConfig()); - } - - return config; -} - -export default makeConfig(require("./package.json")); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts deleted file mode 100644 index 3651fff278b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { PollerLike, OperationState } from "@azure/core-lro"; -import { DataProduct, DataProductUpdate, AccountSas, AccountSasToken, KeyVaultInfo, RoleAssignmentCommonProperties, RoleAssignmentDetail, ListRoleAssignments, DataProductListResult } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { DataProductsAddUserRole200Response, DataProductsAddUserRoleDefaultResponse, DataProductsCreate200Response, DataProductsCreate201Response, DataProductsCreateDefaultResponse, DataProductsCreateLogicalResponse, DataProductsDelete202Response, DataProductsDelete204Response, DataProductsDeleteDefaultResponse, DataProductsDeleteLogicalResponse, DataProductsGenerateStorageAccountSasToken200Response, DataProductsGenerateStorageAccountSasTokenDefaultResponse, DataProductsGet200Response, DataProductsGetDefaultResponse, DataProductsListByResourceGroup200Response, DataProductsListByResourceGroupDefaultResponse, DataProductsListBySubscription200Response, DataProductsListBySubscriptionDefaultResponse, DataProductsListRolesAssignments200Response, DataProductsListRolesAssignmentsDefaultResponse, DataProductsRemoveUserRole204Response, DataProductsRemoveUserRoleDefaultResponse, DataProductsRotateKey204Response, DataProductsRotateKeyDefaultResponse, DataProductsUpdate200Response, DataProductsUpdate202Response, DataProductsUpdateDefaultResponse, DataProductsUpdateLogicalResponse, NetworkAnalyticsContext as Client } from "../../rest/index.js"; -import { StreamableMethod } from "@azure-rest/core-client"; -import { DataProductsCreateOptionalParams, DataProductsGetOptionalParams, DataProductsUpdateOptionalParams, DataProductsDeleteOptionalParams, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsRotateKeyOptionalParams, DataProductsAddUserRoleOptionalParams, DataProductsRemoveUserRoleOptionalParams, DataProductsListRolesAssignmentsOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsListBySubscriptionOptionalParams } from "../../models/options.js"; -export declare function _createSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): StreamableMethod; -export declare function _createDeserialize(result: DataProductsCreate200Response | DataProductsCreate201Response | DataProductsCreateDefaultResponse | DataProductsCreateLogicalResponse): Promise; -/** Create data product resource. */ -export declare function create(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams): PollerLike, DataProduct>; -export declare function _getSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): StreamableMethod; -export declare function _getDeserialize(result: DataProductsGet200Response | DataProductsGetDefaultResponse): Promise; -/** Retrieve data product resource. */ -export declare function get(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams): Promise; -export declare function _updateSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): StreamableMethod; -export declare function _updateDeserialize(result: DataProductsUpdate200Response | DataProductsUpdate202Response | DataProductsUpdateDefaultResponse | DataProductsUpdateLogicalResponse): Promise; -/** Update data product resource. */ -export declare function update(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams): PollerLike, DataProduct>; -export declare function _$deleteSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): StreamableMethod; -export declare function _$deleteDeserialize(result: DataProductsDelete202Response | DataProductsDelete204Response | DataProductsDeleteDefaultResponse | DataProductsDeleteLogicalResponse): Promise; -/** Delete data product resource. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export declare function $delete(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams): PollerLike, void>; -export declare function _generateStorageAccountSasTokenSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): StreamableMethod; -export declare function _generateStorageAccountSasTokenDeserialize(result: DataProductsGenerateStorageAccountSasToken200Response | DataProductsGenerateStorageAccountSasTokenDefaultResponse): Promise; -/** Generate sas token for storage account. */ -export declare function generateStorageAccountSasToken(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams): Promise; -export declare function _rotateKeySend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): StreamableMethod; -export declare function _rotateKeyDeserialize(result: DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse): Promise; -/** Initiate key rotation on Data Product. */ -export declare function rotateKey(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams): Promise; -export declare function _addUserRoleSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): StreamableMethod; -export declare function _addUserRoleDeserialize(result: DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse): Promise; -/** Assign role to the data product. */ -export declare function addUserRole(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams): Promise; -export declare function _removeUserRoleSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): StreamableMethod; -export declare function _removeUserRoleDeserialize(result: DataProductsRemoveUserRole204Response | DataProductsRemoveUserRoleDefaultResponse): Promise; -/** Remove role from the data product. */ -export declare function removeUserRole(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams): Promise; -export declare function _listRolesAssignmentsSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): StreamableMethod; -export declare function _listRolesAssignmentsDeserialize(result: DataProductsListRolesAssignments200Response | DataProductsListRolesAssignmentsDefaultResponse): Promise; -/** List user roles associated with the data product. */ -export declare function listRolesAssignments(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams): Promise; -export declare function _listByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): StreamableMethod; -export declare function _listByResourceGroupDeserialize(result: DataProductsListByResourceGroup200Response | DataProductsListByResourceGroupDefaultResponse): Promise; -/** List data products by resource group. */ -export declare function listByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; -export declare function _listBySubscriptionSend(context: Client, subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams): StreamableMethod; -export declare function _listBySubscriptionDeserialize(result: DataProductsListBySubscription200Response | DataProductsListBySubscriptionDefaultResponse): Promise; -/** List data products by subscription. */ -export declare function listBySubscription(context: Client, subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts.map deleted file mode 100644 index 42dc002c337..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,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6CAER,GACA,gBAAgB,CACf,0CAA0C,GAC1C,8CAA8C,CACjD,CAQA;AAED,wBAAsB,+BAA+B,CACnD,MAAM,EACF,0CAA0C,GAC1C,8CAA8C,GACjD,OAAO,CAAC,qBAAqB,CAAC,CAoHhC;AAED,4CAA4C;AAC5C,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,6CAER,GACA,0BAA0B,CAAC,WAAW,CAAC,CAazC;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,4CAER,GACA,gBAAgB,CACf,yCAAyC,GACzC,6CAA6C,CAChD,CAOA;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EACF,yCAAyC,GACzC,6CAA6C,GAChD,OAAO,CAAC,qBAAqB,CAAC,CAoHhC;AAED,0CAA0C;AAC1C,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,4CAER,GACA,0BAA0B,CAAC,WAAW,CAAC,CAOzC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js deleted file mode 100644 index da956a5810e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js +++ /dev/null @@ -1,775 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { getLongRunningPoller } from "../pollingHelpers.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; -import { isUnexpected, } from "../../rest/index.js"; -import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client"; -export function _createSend(context, subscriptionId, resourceGroupName, dataProductName, resource, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId, resourceGroupName, dataProductName) - .put({ - ...operationOptionsToRequestParameters(options), - body: { - location: resource["location"], - tags: resource["tags"], - properties: !resource.properties - ? undefined - : { - publisher: resource.properties?.["publisher"], - product: resource.properties?.["product"], - majorVersion: resource.properties?.["majorVersion"], - owners: resource.properties?.["owners"], - redundancy: resource.properties?.["redundancy"], - purviewAccount: resource.properties?.["purviewAccount"], - purviewCollection: resource.properties?.["purviewCollection"], - privateLinksEnabled: resource.properties?.["privateLinksEnabled"], - publicNetworkAccess: resource.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: resource.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !resource.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: resource.properties?.customerEncryptionKey?.["keyVaultUri"], - keyName: resource.properties?.customerEncryptionKey?.["keyName"], - keyVersion: resource.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !resource.properties?.networkacls - ? undefined - : { - virtualNetworkRule: resource.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: resource.properties?.networkacls?.["ipRules"].map((p) => ({ value: p["value"], action: p["action"] })), - allowedQueryIpRangeList: resource.properties?.networkacls?.["allowedQueryIpRangeList"], - defaultAction: resource.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !resource.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: resource.properties - ?.managedResourceGroupConfiguration?.["name"], - location: resource.properties?.managedResourceGroupConfiguration?.["location"], - }, - currentMinorVersion: resource.properties?.["currentMinorVersion"], - }, - identity: !resource.identity - ? undefined - : { - type: resource.identity?.["type"], - userAssignedIdentities: resource.identity?.["userAssignedIdentities"], - }, - }, - }); -} -export async function _createDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - result = result; - return { - location: result.body["location"], - tags: result.body["tags"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - resourceGuid: result.body.properties?.["resourceGuid"], - provisioningState: result.body.properties?.["provisioningState"], - publisher: result.body.properties?.["publisher"], - product: result.body.properties?.["product"], - majorVersion: result.body.properties?.["majorVersion"], - owners: result.body.properties?.["owners"], - redundancy: result.body.properties?.["redundancy"], - purviewAccount: result.body.properties?.["purviewAccount"], - purviewCollection: result.body.properties?.["purviewCollection"], - privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], - publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: result.body.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !result.body.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: result.body.properties?.customerEncryptionKey?.["keyVaultUri"], - keyName: result.body.properties?.customerEncryptionKey?.["keyName"], - keyVersion: result.body.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !result.body.properties?.networkacls - ? undefined - : { - virtualNetworkRule: result.body.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: result.body.properties?.networkacls?.["ipRules"].map((p) => ({ value: p["value"], action: p["action"] })), - allowedQueryIpRangeList: result.body.properties?.networkacls?.["allowedQueryIpRangeList"], - defaultAction: result.body.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !result.body.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: result.body.properties - ?.managedResourceGroupConfiguration?.["name"], - location: result.body.properties?.managedResourceGroupConfiguration?.["location"], - }, - availableMinorVersions: result.body.properties?.["availableMinorVersions"], - currentMinorVersion: result.body.properties?.["currentMinorVersion"], - documentation: result.body.properties?.["documentation"], - consumptionEndpoints: !result.body.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: result.body.properties?.consumptionEndpoints?.["ingestionUrl"], - ingestionResourceId: result.body.properties?.consumptionEndpoints?.["ingestionResourceId"], - fileAccessUrl: result.body.properties?.consumptionEndpoints?.["fileAccessUrl"], - fileAccessResourceId: result.body.properties?.consumptionEndpoints?.["fileAccessResourceId"], - queryUrl: result.body.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: result.body.properties?.consumptionEndpoints?.["queryResourceId"], - }, - keyVaultUrl: result.body.properties?.["keyVaultUrl"], - }, - identity: !result.body.identity - ? undefined - : { - tenantId: result.body.identity?.["tenantId"], - principalId: result.body.identity?.["principalId"], - type: result.body.identity?.["type"], - userAssignedIdentities: result.body.identity?.["userAssignedIdentities"], - }, - }; -} -/** Create data product resource. */ -export function create(context, subscriptionId, resourceGroupName, dataProductName, resource, options = { requestOptions: {} }) { - return getLongRunningPoller(context, _createDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _createSend(context, subscriptionId, resourceGroupName, dataProductName, resource, options), - }); -} -export function _getSend(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId, resourceGroupName, dataProductName) - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _getDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - location: result.body["location"], - tags: result.body["tags"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - resourceGuid: result.body.properties?.["resourceGuid"], - provisioningState: result.body.properties?.["provisioningState"], - publisher: result.body.properties?.["publisher"], - product: result.body.properties?.["product"], - majorVersion: result.body.properties?.["majorVersion"], - owners: result.body.properties?.["owners"], - redundancy: result.body.properties?.["redundancy"], - purviewAccount: result.body.properties?.["purviewAccount"], - purviewCollection: result.body.properties?.["purviewCollection"], - privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], - publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: result.body.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !result.body.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: result.body.properties?.customerEncryptionKey?.["keyVaultUri"], - keyName: result.body.properties?.customerEncryptionKey?.["keyName"], - keyVersion: result.body.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !result.body.properties?.networkacls - ? undefined - : { - virtualNetworkRule: result.body.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: result.body.properties?.networkacls?.["ipRules"].map((p) => ({ value: p["value"], action: p["action"] })), - allowedQueryIpRangeList: result.body.properties?.networkacls?.["allowedQueryIpRangeList"], - defaultAction: result.body.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !result.body.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: result.body.properties - ?.managedResourceGroupConfiguration?.["name"], - location: result.body.properties?.managedResourceGroupConfiguration?.["location"], - }, - availableMinorVersions: result.body.properties?.["availableMinorVersions"], - currentMinorVersion: result.body.properties?.["currentMinorVersion"], - documentation: result.body.properties?.["documentation"], - consumptionEndpoints: !result.body.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: result.body.properties?.consumptionEndpoints?.["ingestionUrl"], - ingestionResourceId: result.body.properties?.consumptionEndpoints?.["ingestionResourceId"], - fileAccessUrl: result.body.properties?.consumptionEndpoints?.["fileAccessUrl"], - fileAccessResourceId: result.body.properties?.consumptionEndpoints?.["fileAccessResourceId"], - queryUrl: result.body.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: result.body.properties?.consumptionEndpoints?.["queryResourceId"], - }, - keyVaultUrl: result.body.properties?.["keyVaultUrl"], - }, - identity: !result.body.identity - ? undefined - : { - tenantId: result.body.identity?.["tenantId"], - principalId: result.body.identity?.["principalId"], - type: result.body.identity?.["type"], - userAssignedIdentities: result.body.identity?.["userAssignedIdentities"], - }, - }; -} -/** Retrieve data product resource. */ -export async function get(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { - const result = await _getSend(context, subscriptionId, resourceGroupName, dataProductName, options); - return _getDeserialize(result); -} -export function _updateSend(context, subscriptionId, resourceGroupName, dataProductName, properties, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId, resourceGroupName, dataProductName) - .patch({ - ...operationOptionsToRequestParameters(options), - body: { - identity: !properties.identity - ? undefined - : { - type: properties.identity?.["type"], - userAssignedIdentities: properties.identity?.["userAssignedIdentities"], - }, - tags: properties["tags"], - properties: !properties.properties - ? undefined - : { - owners: properties.properties?.["owners"], - purviewAccount: properties.properties?.["purviewAccount"], - purviewCollection: properties.properties?.["purviewCollection"], - privateLinksEnabled: properties.properties?.["privateLinksEnabled"], - currentMinorVersion: properties.properties?.["currentMinorVersion"], - }, - }, - }); -} -export async function _updateDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - result = result; - return { - location: result.body["location"], - tags: result.body["tags"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - resourceGuid: result.body.properties?.["resourceGuid"], - provisioningState: result.body.properties?.["provisioningState"], - publisher: result.body.properties?.["publisher"], - product: result.body.properties?.["product"], - majorVersion: result.body.properties?.["majorVersion"], - owners: result.body.properties?.["owners"], - redundancy: result.body.properties?.["redundancy"], - purviewAccount: result.body.properties?.["purviewAccount"], - purviewCollection: result.body.properties?.["purviewCollection"], - privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], - publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: result.body.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !result.body.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: result.body.properties?.customerEncryptionKey?.["keyVaultUri"], - keyName: result.body.properties?.customerEncryptionKey?.["keyName"], - keyVersion: result.body.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !result.body.properties?.networkacls - ? undefined - : { - virtualNetworkRule: result.body.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: result.body.properties?.networkacls?.["ipRules"].map((p) => ({ value: p["value"], action: p["action"] })), - allowedQueryIpRangeList: result.body.properties?.networkacls?.["allowedQueryIpRangeList"], - defaultAction: result.body.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !result.body.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: result.body.properties - ?.managedResourceGroupConfiguration?.["name"], - location: result.body.properties?.managedResourceGroupConfiguration?.["location"], - }, - availableMinorVersions: result.body.properties?.["availableMinorVersions"], - currentMinorVersion: result.body.properties?.["currentMinorVersion"], - documentation: result.body.properties?.["documentation"], - consumptionEndpoints: !result.body.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: result.body.properties?.consumptionEndpoints?.["ingestionUrl"], - ingestionResourceId: result.body.properties?.consumptionEndpoints?.["ingestionResourceId"], - fileAccessUrl: result.body.properties?.consumptionEndpoints?.["fileAccessUrl"], - fileAccessResourceId: result.body.properties?.consumptionEndpoints?.["fileAccessResourceId"], - queryUrl: result.body.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: result.body.properties?.consumptionEndpoints?.["queryResourceId"], - }, - keyVaultUrl: result.body.properties?.["keyVaultUrl"], - }, - identity: !result.body.identity - ? undefined - : { - tenantId: result.body.identity?.["tenantId"], - principalId: result.body.identity?.["principalId"], - type: result.body.identity?.["type"], - userAssignedIdentities: result.body.identity?.["userAssignedIdentities"], - }, - }; -} -/** Update data product resource. */ -export function update(context, subscriptionId, resourceGroupName, dataProductName, properties, options = { requestOptions: {} }) { - return getLongRunningPoller(context, _updateDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _updateSend(context, subscriptionId, resourceGroupName, dataProductName, properties, options), - }); -} -export function _$deleteSend(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId, resourceGroupName, dataProductName) - .delete({ ...operationOptionsToRequestParameters(options) }); -} -export async function _$deleteDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - result = result; - return; -} -/** Delete data product resource. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export function $delete(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { - return getLongRunningPoller(context, _$deleteDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _$deleteSend(context, subscriptionId, resourceGroupName, dataProductName, options), - }); -} -export function _generateStorageAccountSasTokenSend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { - requestOptions: {}, -}) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", subscriptionId, resourceGroupName, dataProductName) - .post({ - ...operationOptionsToRequestParameters(options), - body: { - startTimeStamp: body["startTimeStamp"].toISOString(), - expiryTimeStamp: body["expiryTimeStamp"].toISOString(), - ipAddress: body["ipAddress"], - }, - }); -} -export async function _generateStorageAccountSasTokenDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - storageAccountSasToken: result.body["storageAccountSasToken"], - }; -} -/** Generate sas token for storage account. */ -export async function generateStorageAccountSasToken(context, subscriptionId, resourceGroupName, dataProductName, body, options = { - requestOptions: {}, -}) { - const result = await _generateStorageAccountSasTokenSend(context, subscriptionId, resourceGroupName, dataProductName, body, options); - return _generateStorageAccountSasTokenDeserialize(result); -} -export function _rotateKeySend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", subscriptionId, resourceGroupName, dataProductName) - .post({ - ...operationOptionsToRequestParameters(options), - body: { keyVaultUrl: body["keyVaultUrl"] }, - }); -} -export async function _rotateKeyDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return; -} -/** Initiate key rotation on Data Product. */ -export async function rotateKey(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { - const result = await _rotateKeySend(context, subscriptionId, resourceGroupName, dataProductName, body, options); - return _rotateKeyDeserialize(result); -} -export function _addUserRoleSend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", subscriptionId, resourceGroupName, dataProductName) - .post({ - ...operationOptionsToRequestParameters(options), - body: { - roleId: body["roleId"], - principalId: body["principalId"], - userName: body["userName"], - dataTypeScope: body["dataTypeScope"], - principalType: body["principalType"], - role: body["role"], - }, - }); -} -export async function _addUserRoleDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - roleId: result.body["roleId"], - principalId: result.body["principalId"], - userName: result.body["userName"], - dataTypeScope: result.body["dataTypeScope"], - principalType: result.body["principalType"], - role: result.body["role"], - roleAssignmentId: result.body["roleAssignmentId"], - }; -} -/** Assign role to the data product. */ -export async function addUserRole(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { - const result = await _addUserRoleSend(context, subscriptionId, resourceGroupName, dataProductName, body, options); - return _addUserRoleDeserialize(result); -} -export function _removeUserRoleSend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", subscriptionId, resourceGroupName, dataProductName) - .post({ - ...operationOptionsToRequestParameters(options), - body: { - roleId: body["roleId"], - principalId: body["principalId"], - userName: body["userName"], - dataTypeScope: body["dataTypeScope"], - principalType: body["principalType"], - role: body["role"], - roleAssignmentId: body["roleAssignmentId"], - }, - }); -} -export async function _removeUserRoleDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return; -} -/** Remove role from the data product. */ -export async function removeUserRole(context, subscriptionId, resourceGroupName, dataProductName, body, options = { requestOptions: {} }) { - const result = await _removeUserRoleSend(context, subscriptionId, resourceGroupName, dataProductName, body, options); - return _removeUserRoleDeserialize(result); -} -export function _listRolesAssignmentsSend(context, subscriptionId, resourceGroupName, dataProductName, body, options = { - requestOptions: {}, -}) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", subscriptionId, resourceGroupName, dataProductName) - .post({ ...operationOptionsToRequestParameters(options), body: body }); -} -export async function _listRolesAssignmentsDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - count: result.body["count"], - roleAssignmentResponse: result.body["roleAssignmentResponse"].map((p) => ({ - roleId: p["roleId"], - principalId: p["principalId"], - userName: p["userName"], - dataTypeScope: p["dataTypeScope"], - principalType: p["principalType"], - role: p["role"], - roleAssignmentId: p["roleAssignmentId"], - })), - }; -} -/** List user roles associated with the data product. */ -export async function listRolesAssignments(context, subscriptionId, resourceGroupName, dataProductName, body, options = { - requestOptions: {}, -}) { - const result = await _listRolesAssignmentsSend(context, subscriptionId, resourceGroupName, dataProductName, body, options); - return _listRolesAssignmentsDeserialize(result); -} -export function _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options = { - requestOptions: {}, -}) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", subscriptionId, resourceGroupName) - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _listByResourceGroupDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - value: result.body["value"].map((p) => ({ - location: p["location"], - tags: p["tags"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - resourceGuid: p.properties?.["resourceGuid"], - provisioningState: p.properties?.["provisioningState"], - publisher: p.properties?.["publisher"], - product: p.properties?.["product"], - majorVersion: p.properties?.["majorVersion"], - owners: p.properties?.["owners"], - redundancy: p.properties?.["redundancy"], - purviewAccount: p.properties?.["purviewAccount"], - purviewCollection: p.properties?.["purviewCollection"], - privateLinksEnabled: p.properties?.["privateLinksEnabled"], - publicNetworkAccess: p.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: p.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !p.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: p.properties?.customerEncryptionKey?.["keyVaultUri"], - keyName: p.properties?.customerEncryptionKey?.["keyName"], - keyVersion: p.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !p.properties?.networkacls - ? undefined - : { - virtualNetworkRule: p.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: p.properties?.networkacls?.["ipRules"].map((p) => ({ - value: p["value"], - action: p["action"], - })), - allowedQueryIpRangeList: p.properties?.networkacls?.["allowedQueryIpRangeList"], - defaultAction: p.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !p.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: p.properties?.managedResourceGroupConfiguration?.["name"], - location: p.properties?.managedResourceGroupConfiguration?.["location"], - }, - availableMinorVersions: p.properties?.["availableMinorVersions"], - currentMinorVersion: p.properties?.["currentMinorVersion"], - documentation: p.properties?.["documentation"], - consumptionEndpoints: !p.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: p.properties?.consumptionEndpoints?.["ingestionUrl"], - ingestionResourceId: p.properties?.consumptionEndpoints?.["ingestionResourceId"], - fileAccessUrl: p.properties?.consumptionEndpoints?.["fileAccessUrl"], - fileAccessResourceId: p.properties?.consumptionEndpoints?.["fileAccessResourceId"], - queryUrl: p.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: p.properties?.consumptionEndpoints?.["queryResourceId"], - }, - keyVaultUrl: p.properties?.["keyVaultUrl"], - }, - identity: !p.identity - ? undefined - : { - tenantId: p.identity?.["tenantId"], - principalId: p.identity?.["principalId"], - type: p.identity?.["type"], - userAssignedIdentities: p.identity?.["userAssignedIdentities"], - }, - })), - nextLink: result.body["nextLink"], - }; -} -/** List data products by resource group. */ -export function listByResourceGroup(context, subscriptionId, resourceGroupName, options = { - requestOptions: {}, -}) { - return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _listByResourceGroupDeserialize, { itemName: "value", nextLinkName: "nextLink" }); -} -export function _listBySubscriptionSend(context, subscriptionId, options = { - requestOptions: {}, -}) { - return context - .path("/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", subscriptionId) - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _listBySubscriptionDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - value: result.body["value"].map((p) => ({ - location: p["location"], - tags: p["tags"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - resourceGuid: p.properties?.["resourceGuid"], - provisioningState: p.properties?.["provisioningState"], - publisher: p.properties?.["publisher"], - product: p.properties?.["product"], - majorVersion: p.properties?.["majorVersion"], - owners: p.properties?.["owners"], - redundancy: p.properties?.["redundancy"], - purviewAccount: p.properties?.["purviewAccount"], - purviewCollection: p.properties?.["purviewCollection"], - privateLinksEnabled: p.properties?.["privateLinksEnabled"], - publicNetworkAccess: p.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: p.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !p.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: p.properties?.customerEncryptionKey?.["keyVaultUri"], - keyName: p.properties?.customerEncryptionKey?.["keyName"], - keyVersion: p.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !p.properties?.networkacls - ? undefined - : { - virtualNetworkRule: p.properties?.networkacls?.["virtualNetworkRule"].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: p.properties?.networkacls?.["ipRules"].map((p) => ({ - value: p["value"], - action: p["action"], - })), - allowedQueryIpRangeList: p.properties?.networkacls?.["allowedQueryIpRangeList"], - defaultAction: p.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !p.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: p.properties?.managedResourceGroupConfiguration?.["name"], - location: p.properties?.managedResourceGroupConfiguration?.["location"], - }, - availableMinorVersions: p.properties?.["availableMinorVersions"], - currentMinorVersion: p.properties?.["currentMinorVersion"], - documentation: p.properties?.["documentation"], - consumptionEndpoints: !p.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: p.properties?.consumptionEndpoints?.["ingestionUrl"], - ingestionResourceId: p.properties?.consumptionEndpoints?.["ingestionResourceId"], - fileAccessUrl: p.properties?.consumptionEndpoints?.["fileAccessUrl"], - fileAccessResourceId: p.properties?.consumptionEndpoints?.["fileAccessResourceId"], - queryUrl: p.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: p.properties?.consumptionEndpoints?.["queryResourceId"], - }, - keyVaultUrl: p.properties?.["keyVaultUrl"], - }, - identity: !p.identity - ? undefined - : { - tenantId: p.identity?.["tenantId"], - principalId: p.identity?.["principalId"], - type: p.identity?.["type"], - userAssignedIdentities: p.identity?.["userAssignedIdentities"], - }, - })), - nextLink: result.body["nextLink"], - }; -} -/** List data products by subscription. */ -export function listBySubscription(context, subscriptionId, options = { - requestOptions: {}, -}) { - return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, subscriptionId, options), _listBySubscriptionDeserialize, { itemName: "value", nextLinkName: "nextLink" }); -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js.map deleted file mode 100644 index 66f0d1646d4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAc5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EA6BL,YAAY,GAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mCAAmC,EACnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAejC,MAAM,UAAU,WAAW,CACzB,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,QAAqB,EACrB,U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,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.ts deleted file mode 100644 index 6a682a1cc3d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProducts/index.ts +++ /dev/null @@ -1,1410 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { getLongRunningPoller } from "../pollingHelpers.js"; -import { PollerLike, OperationState } from "@azure/core-lro"; -import { - DataProduct, - DataProductUpdate, - AccountSas, - AccountSasToken, - KeyVaultInfo, - RoleAssignmentCommonProperties, - RoleAssignmentDetail, - ListRoleAssignments, - DataProductListResult, -} from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; -import { - DataProductsAddUserRole200Response, - DataProductsAddUserRoleDefaultResponse, - DataProductsCreate200Response, - DataProductsCreate201Response, - DataProductsCreateDefaultResponse, - DataProductsCreateLogicalResponse, - DataProductsDelete202Response, - DataProductsDelete204Response, - DataProductsDeleteDefaultResponse, - DataProductsDeleteLogicalResponse, - DataProductsGenerateStorageAccountSasToken200Response, - DataProductsGenerateStorageAccountSasTokenDefaultResponse, - DataProductsGet200Response, - DataProductsGetDefaultResponse, - DataProductsListByResourceGroup200Response, - DataProductsListByResourceGroupDefaultResponse, - DataProductsListBySubscription200Response, - DataProductsListBySubscriptionDefaultResponse, - DataProductsListRolesAssignments200Response, - DataProductsListRolesAssignmentsDefaultResponse, - DataProductsRemoveUserRole204Response, - DataProductsRemoveUserRoleDefaultResponse, - DataProductsRotateKey204Response, - DataProductsRotateKeyDefaultResponse, - DataProductsUpdate200Response, - DataProductsUpdate202Response, - DataProductsUpdateDefaultResponse, - DataProductsUpdateLogicalResponse, - isUnexpected, - NetworkAnalyticsContext as Client, -} from "../../rest/index.js"; -import { - StreamableMethod, - operationOptionsToRequestParameters, - createRestError, -} from "@azure-rest/core-client"; -import { - DataProductsCreateOptionalParams, - DataProductsGetOptionalParams, - DataProductsUpdateOptionalParams, - DataProductsDeleteOptionalParams, - DataProductsGenerateStorageAccountSasTokenOptionalParams, - DataProductsRotateKeyOptionalParams, - DataProductsAddUserRoleOptionalParams, - DataProductsRemoveUserRoleOptionalParams, - DataProductsListRolesAssignmentsOptionalParams, - DataProductsListByResourceGroupOptionalParams, - DataProductsListBySubscriptionOptionalParams, -} from "../../models/options.js"; - -export function _createSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - resource: DataProduct, - options: DataProductsCreateOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataProductsCreate200Response - | DataProductsCreate201Response - | DataProductsCreateDefaultResponse - | DataProductsCreateLogicalResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .put({ - ...operationOptionsToRequestParameters(options), - body: { - location: resource["location"], - tags: resource["tags"], - properties: !resource.properties - ? undefined - : { - publisher: resource.properties?.["publisher"], - product: resource.properties?.["product"], - majorVersion: resource.properties?.["majorVersion"], - owners: resource.properties?.["owners"], - redundancy: resource.properties?.["redundancy"], - purviewAccount: resource.properties?.["purviewAccount"], - purviewCollection: resource.properties?.["purviewCollection"], - privateLinksEnabled: resource.properties?.["privateLinksEnabled"], - publicNetworkAccess: resource.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: - resource.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !resource.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: - resource.properties?.customerEncryptionKey?.[ - "keyVaultUri" - ], - keyName: - resource.properties?.customerEncryptionKey?.["keyName"], - keyVersion: - resource.properties?.customerEncryptionKey?.[ - "keyVersion" - ], - }, - networkacls: !resource.properties?.networkacls - ? undefined - : { - virtualNetworkRule: resource.properties?.networkacls?.[ - "virtualNetworkRule" - ].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: resource.properties?.networkacls?.["ipRules"].map( - (p) => ({ value: p["value"], action: p["action"] }), - ), - allowedQueryIpRangeList: - resource.properties?.networkacls?.[ - "allowedQueryIpRangeList" - ], - defaultAction: - resource.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !resource.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: resource.properties - ?.managedResourceGroupConfiguration?.["name"], - location: - resource.properties?.managedResourceGroupConfiguration?.[ - "location" - ], - }, - currentMinorVersion: resource.properties?.["currentMinorVersion"], - }, - identity: !resource.identity - ? undefined - : { - type: resource.identity?.["type"], - userAssignedIdentities: - resource.identity?.["userAssignedIdentities"], - }, - }, - }); -} - -export async function _createDeserialize( - result: - | DataProductsCreate200Response - | DataProductsCreate201Response - | DataProductsCreateDefaultResponse - | DataProductsCreateLogicalResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - result = result as DataProductsCreateLogicalResponse; - return { - location: result.body["location"], - tags: result.body["tags"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - resourceGuid: result.body.properties?.["resourceGuid"], - provisioningState: result.body.properties?.["provisioningState"], - publisher: result.body.properties?.["publisher"], - product: result.body.properties?.["product"], - majorVersion: result.body.properties?.["majorVersion"], - owners: result.body.properties?.["owners"], - redundancy: result.body.properties?.["redundancy"], - purviewAccount: result.body.properties?.["purviewAccount"], - purviewCollection: result.body.properties?.["purviewCollection"], - privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], - publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: - result.body.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !result.body.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: - result.body.properties?.customerEncryptionKey?.[ - "keyVaultUri" - ], - keyName: - result.body.properties?.customerEncryptionKey?.["keyName"], - keyVersion: - result.body.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !result.body.properties?.networkacls - ? undefined - : { - virtualNetworkRule: result.body.properties?.networkacls?.[ - "virtualNetworkRule" - ].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: result.body.properties?.networkacls?.["ipRules"].map( - (p) => ({ value: p["value"], action: p["action"] }), - ), - allowedQueryIpRangeList: - result.body.properties?.networkacls?.[ - "allowedQueryIpRangeList" - ], - defaultAction: - result.body.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !result.body.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: result.body.properties - ?.managedResourceGroupConfiguration?.["name"], - location: - result.body.properties?.managedResourceGroupConfiguration?.[ - "location" - ], - }, - availableMinorVersions: - result.body.properties?.["availableMinorVersions"], - currentMinorVersion: result.body.properties?.["currentMinorVersion"], - documentation: result.body.properties?.["documentation"], - consumptionEndpoints: !result.body.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: - result.body.properties?.consumptionEndpoints?.[ - "ingestionUrl" - ], - ingestionResourceId: - result.body.properties?.consumptionEndpoints?.[ - "ingestionResourceId" - ], - fileAccessUrl: - result.body.properties?.consumptionEndpoints?.[ - "fileAccessUrl" - ], - fileAccessResourceId: - result.body.properties?.consumptionEndpoints?.[ - "fileAccessResourceId" - ], - queryUrl: - result.body.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: - result.body.properties?.consumptionEndpoints?.[ - "queryResourceId" - ], - }, - keyVaultUrl: result.body.properties?.["keyVaultUrl"], - }, - identity: !result.body.identity - ? undefined - : { - tenantId: result.body.identity?.["tenantId"], - principalId: result.body.identity?.["principalId"], - type: result.body.identity?.["type"], - userAssignedIdentities: - result.body.identity?.["userAssignedIdentities"], - }, - }; -} - -/** Create data product resource. */ -export function create( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - resource: DataProduct, - options: DataProductsCreateOptionalParams = { requestOptions: {} }, -): PollerLike, DataProduct> { - return getLongRunningPoller(context, _createDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _createSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - resource, - options, - ), - }) as PollerLike, DataProduct>; -} - -export function _getSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options: DataProductsGetOptionalParams = { requestOptions: {} }, -): StreamableMethod< - DataProductsGet200Response | DataProductsGetDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _getDeserialize( - result: DataProductsGet200Response | DataProductsGetDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - location: result.body["location"], - tags: result.body["tags"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - resourceGuid: result.body.properties?.["resourceGuid"], - provisioningState: result.body.properties?.["provisioningState"], - publisher: result.body.properties?.["publisher"], - product: result.body.properties?.["product"], - majorVersion: result.body.properties?.["majorVersion"], - owners: result.body.properties?.["owners"], - redundancy: result.body.properties?.["redundancy"], - purviewAccount: result.body.properties?.["purviewAccount"], - purviewCollection: result.body.properties?.["purviewCollection"], - privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], - publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: - result.body.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !result.body.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: - result.body.properties?.customerEncryptionKey?.[ - "keyVaultUri" - ], - keyName: - result.body.properties?.customerEncryptionKey?.["keyName"], - keyVersion: - result.body.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !result.body.properties?.networkacls - ? undefined - : { - virtualNetworkRule: result.body.properties?.networkacls?.[ - "virtualNetworkRule" - ].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: result.body.properties?.networkacls?.["ipRules"].map( - (p) => ({ value: p["value"], action: p["action"] }), - ), - allowedQueryIpRangeList: - result.body.properties?.networkacls?.[ - "allowedQueryIpRangeList" - ], - defaultAction: - result.body.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !result.body.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: result.body.properties - ?.managedResourceGroupConfiguration?.["name"], - location: - result.body.properties?.managedResourceGroupConfiguration?.[ - "location" - ], - }, - availableMinorVersions: - result.body.properties?.["availableMinorVersions"], - currentMinorVersion: result.body.properties?.["currentMinorVersion"], - documentation: result.body.properties?.["documentation"], - consumptionEndpoints: !result.body.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: - result.body.properties?.consumptionEndpoints?.[ - "ingestionUrl" - ], - ingestionResourceId: - result.body.properties?.consumptionEndpoints?.[ - "ingestionResourceId" - ], - fileAccessUrl: - result.body.properties?.consumptionEndpoints?.[ - "fileAccessUrl" - ], - fileAccessResourceId: - result.body.properties?.consumptionEndpoints?.[ - "fileAccessResourceId" - ], - queryUrl: - result.body.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: - result.body.properties?.consumptionEndpoints?.[ - "queryResourceId" - ], - }, - keyVaultUrl: result.body.properties?.["keyVaultUrl"], - }, - identity: !result.body.identity - ? undefined - : { - tenantId: result.body.identity?.["tenantId"], - principalId: result.body.identity?.["principalId"], - type: result.body.identity?.["type"], - userAssignedIdentities: - result.body.identity?.["userAssignedIdentities"], - }, - }; -} - -/** Retrieve data product resource. */ -export async function get( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options: DataProductsGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - options, - ); - return _getDeserialize(result); -} - -export function _updateSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - properties: DataProductUpdate, - options: DataProductsUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataProductsUpdate200Response - | DataProductsUpdate202Response - | DataProductsUpdateDefaultResponse - | DataProductsUpdateLogicalResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .patch({ - ...operationOptionsToRequestParameters(options), - body: { - identity: !properties.identity - ? undefined - : { - type: properties.identity?.["type"], - userAssignedIdentities: - properties.identity?.["userAssignedIdentities"], - }, - tags: properties["tags"], - properties: !properties.properties - ? undefined - : { - owners: properties.properties?.["owners"], - purviewAccount: properties.properties?.["purviewAccount"], - purviewCollection: properties.properties?.["purviewCollection"], - privateLinksEnabled: - properties.properties?.["privateLinksEnabled"], - currentMinorVersion: - properties.properties?.["currentMinorVersion"], - }, - }, - }); -} - -export async function _updateDeserialize( - result: - | DataProductsUpdate200Response - | DataProductsUpdate202Response - | DataProductsUpdateDefaultResponse - | DataProductsUpdateLogicalResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - result = result as DataProductsUpdateLogicalResponse; - return { - location: result.body["location"], - tags: result.body["tags"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - resourceGuid: result.body.properties?.["resourceGuid"], - provisioningState: result.body.properties?.["provisioningState"], - publisher: result.body.properties?.["publisher"], - product: result.body.properties?.["product"], - majorVersion: result.body.properties?.["majorVersion"], - owners: result.body.properties?.["owners"], - redundancy: result.body.properties?.["redundancy"], - purviewAccount: result.body.properties?.["purviewAccount"], - purviewCollection: result.body.properties?.["purviewCollection"], - privateLinksEnabled: result.body.properties?.["privateLinksEnabled"], - publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: - result.body.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !result.body.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: - result.body.properties?.customerEncryptionKey?.[ - "keyVaultUri" - ], - keyName: - result.body.properties?.customerEncryptionKey?.["keyName"], - keyVersion: - result.body.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !result.body.properties?.networkacls - ? undefined - : { - virtualNetworkRule: result.body.properties?.networkacls?.[ - "virtualNetworkRule" - ].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: result.body.properties?.networkacls?.["ipRules"].map( - (p) => ({ value: p["value"], action: p["action"] }), - ), - allowedQueryIpRangeList: - result.body.properties?.networkacls?.[ - "allowedQueryIpRangeList" - ], - defaultAction: - result.body.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !result.body.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: result.body.properties - ?.managedResourceGroupConfiguration?.["name"], - location: - result.body.properties?.managedResourceGroupConfiguration?.[ - "location" - ], - }, - availableMinorVersions: - result.body.properties?.["availableMinorVersions"], - currentMinorVersion: result.body.properties?.["currentMinorVersion"], - documentation: result.body.properties?.["documentation"], - consumptionEndpoints: !result.body.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: - result.body.properties?.consumptionEndpoints?.[ - "ingestionUrl" - ], - ingestionResourceId: - result.body.properties?.consumptionEndpoints?.[ - "ingestionResourceId" - ], - fileAccessUrl: - result.body.properties?.consumptionEndpoints?.[ - "fileAccessUrl" - ], - fileAccessResourceId: - result.body.properties?.consumptionEndpoints?.[ - "fileAccessResourceId" - ], - queryUrl: - result.body.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: - result.body.properties?.consumptionEndpoints?.[ - "queryResourceId" - ], - }, - keyVaultUrl: result.body.properties?.["keyVaultUrl"], - }, - identity: !result.body.identity - ? undefined - : { - tenantId: result.body.identity?.["tenantId"], - principalId: result.body.identity?.["principalId"], - type: result.body.identity?.["type"], - userAssignedIdentities: - result.body.identity?.["userAssignedIdentities"], - }, - }; -} - -/** Update data product resource. */ -export function update( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - properties: DataProductUpdate, - options: DataProductsUpdateOptionalParams = { requestOptions: {} }, -): PollerLike, DataProduct> { - return getLongRunningPoller(context, _updateDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _updateSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - properties, - options, - ), - }) as PollerLike, DataProduct>; -} - -export function _$deleteSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options: DataProductsDeleteOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataProductsDelete202Response - | DataProductsDelete204Response - | DataProductsDeleteDefaultResponse - | DataProductsDeleteLogicalResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .delete({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _$deleteDeserialize( - result: - | DataProductsDelete202Response - | DataProductsDelete204Response - | DataProductsDeleteDefaultResponse - | DataProductsDeleteLogicalResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - result = result as DataProductsDeleteLogicalResponse; - return; -} - -/** Delete data product resource. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export function $delete( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options: DataProductsDeleteOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _$deleteDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _$deleteSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - options, - ), - }) as PollerLike, void>; -} - -export function _generateStorageAccountSasTokenSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: AccountSas, - options: DataProductsGenerateStorageAccountSasTokenOptionalParams = { - requestOptions: {}, - }, -): StreamableMethod< - | DataProductsGenerateStorageAccountSasToken200Response - | DataProductsGenerateStorageAccountSasTokenDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .post({ - ...operationOptionsToRequestParameters(options), - body: { - startTimeStamp: body["startTimeStamp"].toISOString(), - expiryTimeStamp: body["expiryTimeStamp"].toISOString(), - ipAddress: body["ipAddress"], - }, - }); -} - -export async function _generateStorageAccountSasTokenDeserialize( - result: - | DataProductsGenerateStorageAccountSasToken200Response - | DataProductsGenerateStorageAccountSasTokenDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - storageAccountSasToken: result.body["storageAccountSasToken"], - }; -} - -/** Generate sas token for storage account. */ -export async function generateStorageAccountSasToken( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: AccountSas, - options: DataProductsGenerateStorageAccountSasTokenOptionalParams = { - requestOptions: {}, - }, -): Promise { - const result = await _generateStorageAccountSasTokenSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ); - return _generateStorageAccountSasTokenDeserialize(result); -} - -export function _rotateKeySend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: KeyVaultInfo, - options: DataProductsRotateKeyOptionalParams = { requestOptions: {} }, -): StreamableMethod< - DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .post({ - ...operationOptionsToRequestParameters(options), - body: { keyVaultUrl: body["keyVaultUrl"] }, - }); -} - -export async function _rotateKeyDeserialize( - result: - | DataProductsRotateKey204Response - | DataProductsRotateKeyDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return; -} - -/** Initiate key rotation on Data Product. */ -export async function rotateKey( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: KeyVaultInfo, - options: DataProductsRotateKeyOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _rotateKeySend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ); - return _rotateKeyDeserialize(result); -} - -export function _addUserRoleSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentCommonProperties, - options: DataProductsAddUserRoleOptionalParams = { requestOptions: {} }, -): StreamableMethod< - DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .post({ - ...operationOptionsToRequestParameters(options), - body: { - roleId: body["roleId"], - principalId: body["principalId"], - userName: body["userName"], - dataTypeScope: body["dataTypeScope"], - principalType: body["principalType"], - role: body["role"], - }, - }); -} - -export async function _addUserRoleDeserialize( - result: - | DataProductsAddUserRole200Response - | DataProductsAddUserRoleDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - roleId: result.body["roleId"], - principalId: result.body["principalId"], - userName: result.body["userName"], - dataTypeScope: result.body["dataTypeScope"], - principalType: result.body["principalType"], - role: result.body["role"], - roleAssignmentId: result.body["roleAssignmentId"], - }; -} - -/** Assign role to the data product. */ -export async function addUserRole( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentCommonProperties, - options: DataProductsAddUserRoleOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _addUserRoleSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ); - return _addUserRoleDeserialize(result); -} - -export function _removeUserRoleSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentDetail, - options: DataProductsRemoveUserRoleOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataProductsRemoveUserRole204Response - | DataProductsRemoveUserRoleDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .post({ - ...operationOptionsToRequestParameters(options), - body: { - roleId: body["roleId"], - principalId: body["principalId"], - userName: body["userName"], - dataTypeScope: body["dataTypeScope"], - principalType: body["principalType"], - role: body["role"], - roleAssignmentId: body["roleAssignmentId"], - }, - }); -} - -export async function _removeUserRoleDeserialize( - result: - | DataProductsRemoveUserRole204Response - | DataProductsRemoveUserRoleDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return; -} - -/** Remove role from the data product. */ -export async function removeUserRole( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentDetail, - options: DataProductsRemoveUserRoleOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _removeUserRoleSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ); - return _removeUserRoleDeserialize(result); -} - -export function _listRolesAssignmentsSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: Record, - options: DataProductsListRolesAssignmentsOptionalParams = { - requestOptions: {}, - }, -): StreamableMethod< - | DataProductsListRolesAssignments200Response - | DataProductsListRolesAssignmentsDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .post({ ...operationOptionsToRequestParameters(options), body: body }); -} - -export async function _listRolesAssignmentsDeserialize( - result: - | DataProductsListRolesAssignments200Response - | DataProductsListRolesAssignmentsDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - count: result.body["count"], - roleAssignmentResponse: result.body["roleAssignmentResponse"].map((p) => ({ - roleId: p["roleId"], - principalId: p["principalId"], - userName: p["userName"], - dataTypeScope: p["dataTypeScope"], - principalType: p["principalType"], - role: p["role"], - roleAssignmentId: p["roleAssignmentId"], - })), - }; -} - -/** List user roles associated with the data product. */ -export async function listRolesAssignments( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: Record, - options: DataProductsListRolesAssignmentsOptionalParams = { - requestOptions: {}, - }, -): Promise { - const result = await _listRolesAssignmentsSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ); - return _listRolesAssignmentsDeserialize(result); -} - -export function _listByResourceGroupSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - options: DataProductsListByResourceGroupOptionalParams = { - requestOptions: {}, - }, -): StreamableMethod< - | DataProductsListByResourceGroup200Response - | DataProductsListByResourceGroupDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", - subscriptionId, - resourceGroupName, - ) - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _listByResourceGroupDeserialize( - result: - | DataProductsListByResourceGroup200Response - | DataProductsListByResourceGroupDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - value: result.body["value"].map((p) => ({ - location: p["location"], - tags: p["tags"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - resourceGuid: p.properties?.["resourceGuid"], - provisioningState: p.properties?.["provisioningState"], - publisher: p.properties?.["publisher"], - product: p.properties?.["product"], - majorVersion: p.properties?.["majorVersion"], - owners: p.properties?.["owners"], - redundancy: p.properties?.["redundancy"], - purviewAccount: p.properties?.["purviewAccount"], - purviewCollection: p.properties?.["purviewCollection"], - privateLinksEnabled: p.properties?.["privateLinksEnabled"], - publicNetworkAccess: p.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: - p.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !p.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: - p.properties?.customerEncryptionKey?.["keyVaultUri"], - keyName: p.properties?.customerEncryptionKey?.["keyName"], - keyVersion: - p.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !p.properties?.networkacls - ? undefined - : { - virtualNetworkRule: p.properties?.networkacls?.[ - "virtualNetworkRule" - ].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: p.properties?.networkacls?.["ipRules"].map((p) => ({ - value: p["value"], - action: p["action"], - })), - allowedQueryIpRangeList: - p.properties?.networkacls?.["allowedQueryIpRangeList"], - defaultAction: p.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !p.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: p.properties?.managedResourceGroupConfiguration?.[ - "name" - ], - location: - p.properties?.managedResourceGroupConfiguration?.[ - "location" - ], - }, - availableMinorVersions: p.properties?.["availableMinorVersions"], - currentMinorVersion: p.properties?.["currentMinorVersion"], - documentation: p.properties?.["documentation"], - consumptionEndpoints: !p.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: - p.properties?.consumptionEndpoints?.["ingestionUrl"], - ingestionResourceId: - p.properties?.consumptionEndpoints?.["ingestionResourceId"], - fileAccessUrl: - p.properties?.consumptionEndpoints?.["fileAccessUrl"], - fileAccessResourceId: - p.properties?.consumptionEndpoints?.[ - "fileAccessResourceId" - ], - queryUrl: p.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: - p.properties?.consumptionEndpoints?.["queryResourceId"], - }, - keyVaultUrl: p.properties?.["keyVaultUrl"], - }, - identity: !p.identity - ? undefined - : { - tenantId: p.identity?.["tenantId"], - principalId: p.identity?.["principalId"], - type: p.identity?.["type"], - userAssignedIdentities: p.identity?.["userAssignedIdentities"], - }, - })), - nextLink: result.body["nextLink"], - }; -} - -/** List data products by resource group. */ -export function listByResourceGroup( - context: Client, - subscriptionId: string, - resourceGroupName: string, - options: DataProductsListByResourceGroupOptionalParams = { - requestOptions: {}, - }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => - _listByResourceGroupSend( - context, - subscriptionId, - resourceGroupName, - options, - ), - _listByResourceGroupDeserialize, - { itemName: "value", nextLinkName: "nextLink" }, - ); -} - -export function _listBySubscriptionSend( - context: Client, - subscriptionId: string, - options: DataProductsListBySubscriptionOptionalParams = { - requestOptions: {}, - }, -): StreamableMethod< - | DataProductsListBySubscription200Response - | DataProductsListBySubscriptionDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", - subscriptionId, - ) - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _listBySubscriptionDeserialize( - result: - | DataProductsListBySubscription200Response - | DataProductsListBySubscriptionDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - value: result.body["value"].map((p) => ({ - location: p["location"], - tags: p["tags"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - resourceGuid: p.properties?.["resourceGuid"], - provisioningState: p.properties?.["provisioningState"], - publisher: p.properties?.["publisher"], - product: p.properties?.["product"], - majorVersion: p.properties?.["majorVersion"], - owners: p.properties?.["owners"], - redundancy: p.properties?.["redundancy"], - purviewAccount: p.properties?.["purviewAccount"], - purviewCollection: p.properties?.["purviewCollection"], - privateLinksEnabled: p.properties?.["privateLinksEnabled"], - publicNetworkAccess: p.properties?.["publicNetworkAccess"], - customerManagedKeyEncryptionEnabled: - p.properties?.["customerManagedKeyEncryptionEnabled"], - customerEncryptionKey: !p.properties?.customerEncryptionKey - ? undefined - : { - keyVaultUri: - p.properties?.customerEncryptionKey?.["keyVaultUri"], - keyName: p.properties?.customerEncryptionKey?.["keyName"], - keyVersion: - p.properties?.customerEncryptionKey?.["keyVersion"], - }, - networkacls: !p.properties?.networkacls - ? undefined - : { - virtualNetworkRule: p.properties?.networkacls?.[ - "virtualNetworkRule" - ].map((p) => ({ - id: p["id"], - action: p["action"], - state: p["state"], - })), - ipRules: p.properties?.networkacls?.["ipRules"].map((p) => ({ - value: p["value"], - action: p["action"], - })), - allowedQueryIpRangeList: - p.properties?.networkacls?.["allowedQueryIpRangeList"], - defaultAction: p.properties?.networkacls?.["defaultAction"], - }, - managedResourceGroupConfiguration: !p.properties - ?.managedResourceGroupConfiguration - ? undefined - : { - name: p.properties?.managedResourceGroupConfiguration?.[ - "name" - ], - location: - p.properties?.managedResourceGroupConfiguration?.[ - "location" - ], - }, - availableMinorVersions: p.properties?.["availableMinorVersions"], - currentMinorVersion: p.properties?.["currentMinorVersion"], - documentation: p.properties?.["documentation"], - consumptionEndpoints: !p.properties?.consumptionEndpoints - ? undefined - : { - ingestionUrl: - p.properties?.consumptionEndpoints?.["ingestionUrl"], - ingestionResourceId: - p.properties?.consumptionEndpoints?.["ingestionResourceId"], - fileAccessUrl: - p.properties?.consumptionEndpoints?.["fileAccessUrl"], - fileAccessResourceId: - p.properties?.consumptionEndpoints?.[ - "fileAccessResourceId" - ], - queryUrl: p.properties?.consumptionEndpoints?.["queryUrl"], - queryResourceId: - p.properties?.consumptionEndpoints?.["queryResourceId"], - }, - keyVaultUrl: p.properties?.["keyVaultUrl"], - }, - identity: !p.identity - ? undefined - : { - tenantId: p.identity?.["tenantId"], - principalId: p.identity?.["principalId"], - type: p.identity?.["type"], - userAssignedIdentities: p.identity?.["userAssignedIdentities"], - }, - })), - nextLink: result.body["nextLink"], - }; -} - -/** List data products by subscription. */ -export function listBySubscription( - context: Client, - subscriptionId: string, - options: DataProductsListBySubscriptionOptionalParams = { - requestOptions: {}, - }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listBySubscriptionSend(context, subscriptionId, options), - _listBySubscriptionDeserialize, - { itemName: "value", nextLinkName: "nextLink" }, - ); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts deleted file mode 100644 index de8b209d781..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { DataProductsCatalog, DataProductsCatalogListResult } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { DataProductsCatalogsGet200Response, DataProductsCatalogsGetDefaultResponse, DataProductsCatalogsListByResourceGroup200Response, DataProductsCatalogsListByResourceGroupDefaultResponse, DataProductsCatalogsListBySubscription200Response, DataProductsCatalogsListBySubscriptionDefaultResponse, NetworkAnalyticsContext as Client } from "../../rest/index.js"; -import { StreamableMethod } from "@azure-rest/core-client"; -import { DataProductsCatalogsGetOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsListBySubscriptionOptionalParams } from "../../models/options.js"; -export declare function _getSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): StreamableMethod; -export declare function _getDeserialize(result: DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse): Promise; -/** Retrieve data type resource. */ -export declare function get(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams): Promise; -export declare function _listByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): StreamableMethod; -export declare function _listByResourceGroupDeserialize(result: DataProductsCatalogsListByResourceGroup200Response | DataProductsCatalogsListByResourceGroupDefaultResponse): Promise; -/** List data catalog by resource group. */ -export declare function listByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; -export declare function _listBySubscriptionSend(context: Client, subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams): StreamableMethod; -export declare function _listBySubscriptionDeserialize(result: DataProductsCatalogsListBySubscription200Response | DataProductsCatalogsListBySubscriptionDefaultResponse): Promise; -/** List data catalog by subscription. */ -export declare function listBySubscription(context: Client, subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts.map deleted file mode 100644 index 4c93ba0196b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EACL,kCAAkC,EAClC,sCAAsC,EACtC,kDAAkD,EAClD,sDAAsD,EACtD,iDAAiD,EACjD,qDAAqD,EAErD,uBAAuB,IAAI,MAAM,EAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qCAAqC,EACrC,qDAAqD,EACrD,oDAAoD,EACrD,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,qCAA8D,GACtE,gBAAgB,CACjB,kCAAkC,GAAG,sCAAsC,CAC5E,CAQA;AAED,wBAAsB,eAAe,CACnC,MAAM,EACF,kCAAkC,GAClC,sCAAsC,GACzC,OAAO,CAAC,mBAAmB,CAAC,CAyC9B;AAED,mCAAmC;AACnC,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,qCAA8D,GACtE,OAAO,CAAC,mBAAmB,CAAC,CAQ9B;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,qDAER,GACA,gBAAgB,CACf,kDAAkD,GAClD,sDAAsD,CACzD,CAQA;AAED,wBAAsB,+BAA+B,CACnD,MAAM,EACF,kDAAkD,GAClD,sDAAsD,GACzD,OAAO,CAAC,6BAA6B,CAAC,CA4CxC;AAED,2CAA2C;AAC3C,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,qDAER,GACA,0BAA0B,CAAC,mBAAmB,CAAC,CAajD;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,oDAER,GACA,gBAAgB,CACf,iDAAiD,GACjD,qDAAqD,CACxD,CAOA;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EACF,iDAAiD,GACjD,qDAAqD,GACxD,OAAO,CAAC,6BAA6B,CAAC,CA4CxC;AAED,yCAAyC;AACzC,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,oDAER,GACA,0BAA0B,CAAC,mBAAmB,CAAC,CAOjD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js deleted file mode 100644 index dd5950c7c70..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; -import { isUnexpected, } from "../../rest/index.js"; -import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client"; -export function _getSend(context, subscriptionId, resourceGroupName, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", subscriptionId, resourceGroupName) - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _getDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - publishers: result.body.properties?.["publishers"].map((p) => ({ - publisherName: p["publisherName"], - dataProducts: p["dataProducts"].map((p) => ({ - dataProductName: p["dataProductName"], - description: p["description"], - dataProductVersions: p["dataProductVersions"].map((p) => ({ - version: p["version"], - })), - })), - })), - }, - }; -} -/** Retrieve data type resource. */ -export async function get(context, subscriptionId, resourceGroupName, options = { requestOptions: {} }) { - const result = await _getSend(context, subscriptionId, resourceGroupName, options); - return _getDeserialize(result); -} -export function _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options = { - requestOptions: {}, -}) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", subscriptionId, resourceGroupName) - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _listByResourceGroupDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - value: result.body["value"].map((p) => ({ - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - publishers: p.properties?.["publishers"].map((p) => ({ - publisherName: p["publisherName"], - dataProducts: p["dataProducts"].map((p) => ({ - dataProductName: p["dataProductName"], - description: p["description"], - dataProductVersions: p["dataProductVersions"].map((p) => ({ - version: p["version"], - })), - })), - })), - }, - })), - nextLink: result.body["nextLink"], - }; -} -/** List data catalog by resource group. */ -export function listByResourceGroup(context, subscriptionId, resourceGroupName, options = { - requestOptions: {}, -}) { - return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _listByResourceGroupDeserialize, { itemName: "value", nextLinkName: "nextLink" }); -} -export function _listBySubscriptionSend(context, subscriptionId, options = { - requestOptions: {}, -}) { - return context - .path("/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", subscriptionId) - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _listBySubscriptionDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - value: result.body["value"].map((p) => ({ - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - publishers: p.properties?.["publishers"].map((p) => ({ - publisherName: p["publisherName"], - dataProducts: p["dataProducts"].map((p) => ({ - dataProductName: p["dataProductName"], - description: p["description"], - dataProductVersions: p["dataProductVersions"].map((p) => ({ - version: p["version"], - })), - })), - })), - }, - })), - nextLink: result.body["nextLink"], - }; -} -/** List data catalog by subscription. */ -export function listBySubscription(context, subscriptionId, options = { - requestOptions: {}, -}) { - return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, subscriptionId, options), _listBySubscriptionDeserialize, { itemName: "value", nextLinkName: "nextLink" }); -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js.map deleted file mode 100644 index 6f33195e3ce..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAOL,YAAY,GAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mCAAmC,EACnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAOjC,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAIvE,OAAO,OAAO;SACX,IAAI,CACH,sIAAsI,EACtI,cAAc,EACd,iBAAiB,CAClB;SACA,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;A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AAiB,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,mBAAmB,CAAC;oBACtD,UAAU,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;wBACnD,aAAa,EAAE,CAAC,CAAC,eAAe,CAAC;wBACjC,YAAY,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;4BAC1C,eAAe,EAAE,CAAC,CAAC,iBAAiB,CAAC;4BACrC,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC;4BAC7B,mBAAmB,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gCACxD,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC;6BACtB,CAAC,CAAC;yBACJ,CAAC,CAAC;qBACJ,CAAC,CAAC;iBACJ;SACN,CAAC,CAAC;QACH,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,yCAAyC;AACzC,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,cAAsB,EACtB,UAAgE;IAC9D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAC/D,8BAA8B,EAC9B,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.ts deleted file mode 100644 index 1153d3e39c9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataProductsCatalogs/index.ts +++ /dev/null @@ -1,286 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - DataProductsCatalog, - DataProductsCatalogListResult, -} from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; -import { - DataProductsCatalogsGet200Response, - DataProductsCatalogsGetDefaultResponse, - DataProductsCatalogsListByResourceGroup200Response, - DataProductsCatalogsListByResourceGroupDefaultResponse, - DataProductsCatalogsListBySubscription200Response, - DataProductsCatalogsListBySubscriptionDefaultResponse, - isUnexpected, - NetworkAnalyticsContext as Client, -} from "../../rest/index.js"; -import { - StreamableMethod, - operationOptionsToRequestParameters, - createRestError, -} from "@azure-rest/core-client"; -import { - DataProductsCatalogsGetOptionalParams, - DataProductsCatalogsListByResourceGroupOptionalParams, - DataProductsCatalogsListBySubscriptionOptionalParams, -} from "../../models/options.js"; - -export function _getSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - options: DataProductsCatalogsGetOptionalParams = { requestOptions: {} }, -): StreamableMethod< - DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", - subscriptionId, - resourceGroupName, - ) - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _getDeserialize( - result: - | DataProductsCatalogsGet200Response - | DataProductsCatalogsGetDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - publishers: result.body.properties?.["publishers"].map((p) => ({ - publisherName: p["publisherName"], - dataProducts: p["dataProducts"].map((p) => ({ - dataProductName: p["dataProductName"], - description: p["description"], - dataProductVersions: p["dataProductVersions"].map((p) => ({ - version: p["version"], - })), - })), - })), - }, - }; -} - -/** Retrieve data type resource. */ -export async function get( - context: Client, - subscriptionId: string, - resourceGroupName: string, - options: DataProductsCatalogsGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend( - context, - subscriptionId, - resourceGroupName, - options, - ); - return _getDeserialize(result); -} - -export function _listByResourceGroupSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - options: DataProductsCatalogsListByResourceGroupOptionalParams = { - requestOptions: {}, - }, -): StreamableMethod< - | DataProductsCatalogsListByResourceGroup200Response - | DataProductsCatalogsListByResourceGroupDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - subscriptionId, - resourceGroupName, - ) - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _listByResourceGroupDeserialize( - result: - | DataProductsCatalogsListByResourceGroup200Response - | DataProductsCatalogsListByResourceGroupDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - value: result.body["value"].map((p) => ({ - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - publishers: p.properties?.["publishers"].map((p) => ({ - publisherName: p["publisherName"], - dataProducts: p["dataProducts"].map((p) => ({ - dataProductName: p["dataProductName"], - description: p["description"], - dataProductVersions: p["dataProductVersions"].map((p) => ({ - version: p["version"], - })), - })), - })), - }, - })), - nextLink: result.body["nextLink"], - }; -} - -/** List data catalog by resource group. */ -export function listByResourceGroup( - context: Client, - subscriptionId: string, - resourceGroupName: string, - options: DataProductsCatalogsListByResourceGroupOptionalParams = { - requestOptions: {}, - }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => - _listByResourceGroupSend( - context, - subscriptionId, - resourceGroupName, - options, - ), - _listByResourceGroupDeserialize, - { itemName: "value", nextLinkName: "nextLink" }, - ); -} - -export function _listBySubscriptionSend( - context: Client, - subscriptionId: string, - options: DataProductsCatalogsListBySubscriptionOptionalParams = { - requestOptions: {}, - }, -): StreamableMethod< - | DataProductsCatalogsListBySubscription200Response - | DataProductsCatalogsListBySubscriptionDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - subscriptionId, - ) - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _listBySubscriptionDeserialize( - result: - | DataProductsCatalogsListBySubscription200Response - | DataProductsCatalogsListBySubscriptionDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - value: result.body["value"].map((p) => ({ - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - publishers: p.properties?.["publishers"].map((p) => ({ - publisherName: p["publisherName"], - dataProducts: p["dataProducts"].map((p) => ({ - dataProductName: p["dataProductName"], - description: p["description"], - dataProductVersions: p["dataProductVersions"].map((p) => ({ - version: p["version"], - })), - })), - })), - }, - })), - nextLink: result.body["nextLink"], - }; -} - -/** List data catalog by subscription. */ -export function listBySubscription( - context: Client, - subscriptionId: string, - options: DataProductsCatalogsListBySubscriptionOptionalParams = { - requestOptions: {}, - }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listBySubscriptionSend(context, subscriptionId, options), - _listBySubscriptionDeserialize, - { itemName: "value", nextLinkName: "nextLink" }, - ); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts deleted file mode 100644 index 561ec6488c2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { PollerLike, OperationState } from "@azure/core-lro"; -import { DataType, DataTypeUpdate, ContainerSaS, ContainerSasToken, DataTypeListResult } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { DataTypesCreate200Response, DataTypesCreate201Response, DataTypesCreateDefaultResponse, DataTypesCreateLogicalResponse, DataTypesDelete202Response, DataTypesDelete204Response, DataTypesDeleteData202Response, DataTypesDeleteData204Response, DataTypesDeleteDataDefaultResponse, DataTypesDeleteDataLogicalResponse, DataTypesDeleteDefaultResponse, DataTypesDeleteLogicalResponse, DataTypesGenerateStorageContainerSasToken200Response, DataTypesGenerateStorageContainerSasTokenDefaultResponse, DataTypesGet200Response, DataTypesGetDefaultResponse, DataTypesListByDataProduct200Response, DataTypesListByDataProductDefaultResponse, DataTypesUpdate200Response, DataTypesUpdate202Response, DataTypesUpdateDefaultResponse, DataTypesUpdateLogicalResponse, NetworkAnalyticsContext as Client } from "../../rest/index.js"; -import { StreamableMethod } from "@azure-rest/core-client"; -import { DataTypesCreateOptionalParams, DataTypesGetOptionalParams, DataTypesUpdateOptionalParams, DataTypesDeleteOptionalParams, DataTypesDeleteDataOptionalParams, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesListByDataProductOptionalParams } from "../../models/options.js"; -export declare function _createSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): StreamableMethod; -export declare function _createDeserialize(result: DataTypesCreate200Response | DataTypesCreate201Response | DataTypesCreateDefaultResponse | DataTypesCreateLogicalResponse): Promise; -/** Create data type resource. */ -export declare function create(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams): PollerLike, DataType>; -export declare function _getSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): StreamableMethod; -export declare function _getDeserialize(result: DataTypesGet200Response | DataTypesGetDefaultResponse): Promise; -/** Retrieve data type resource. */ -export declare function get(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams): Promise; -export declare function _updateSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): StreamableMethod; -export declare function _updateDeserialize(result: DataTypesUpdate200Response | DataTypesUpdate202Response | DataTypesUpdateDefaultResponse | DataTypesUpdateLogicalResponse): Promise; -/** Update data type resource. */ -export declare function update(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams): PollerLike, DataType>; -export declare function _$deleteSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): StreamableMethod; -export declare function _$deleteDeserialize(result: DataTypesDelete202Response | DataTypesDelete204Response | DataTypesDeleteDefaultResponse | DataTypesDeleteLogicalResponse): Promise; -/** Delete data type resource. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export declare function $delete(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams): PollerLike, void>; -export declare function _deleteDataSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): StreamableMethod; -export declare function _deleteDataDeserialize(result: DataTypesDeleteData202Response | DataTypesDeleteData204Response | DataTypesDeleteDataDefaultResponse | DataTypesDeleteDataLogicalResponse): Promise; -/** Delete data for data type. */ -export declare function deleteData(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams): PollerLike, void>; -export declare function _generateStorageContainerSasTokenSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): StreamableMethod; -export declare function _generateStorageContainerSasTokenDeserialize(result: DataTypesGenerateStorageContainerSasToken200Response | DataTypesGenerateStorageContainerSasTokenDefaultResponse): Promise; -/** Generate sas token for storage container. */ -export declare function generateStorageContainerSasToken(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams): Promise; -export declare function _listByDataProductSend(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): StreamableMethod; -export declare function _listByDataProductDeserialize(result: DataTypesListByDataProduct200Response | DataTypesListByDataProductDefaultResponse): Promise; -/** List data type by parent resource. */ -export declare function listByDataProduct(context: Client, subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams): PagedAsyncIterableIterator; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts.map deleted file mode 100644 index 11db7e26fbb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,8BAA8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AC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAexC;AAED,wBAAgB,qCAAqC,CACnD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,YAAY,EAClB,OAAO,GAAE,uDAER,GACA,gBAAgB,CACf,oDAAoD,GACpD,wDAAwD,CAC3D,CAiBA;AAED,wBAAsB,4CAA4C,CAChE,MAAM,EACF,oDAAoD,GACpD,wDAAwD,GAC3D,OAAO,CAAC,iBAAiB,CAAC,CAQ5B;AAED,gDAAgD;AAChD,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,YAAY,EAClB,OAAO,GAAE,uDAER,GACA,OAAO,CAAC,iBAAiB,CAAC,CAW5B;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,wCAAiE,GACzE,gBAAgB,CACf,qCAAqC,GACrC,yCAAyC,CAC5C,CASA;AAED,wBAAsB,6BAA6B,CACjD,MAAM,EACF,qCAAqC,GACrC,yCAAyC,GAC5C,OAAO,CAAC,kBAAkB,CAAC,CAwC7B;AAED,yCAAyC;AACzC,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,wCAAiE,GACzE,0BAA0B,CAAC,QAAQ,CAAC,CActC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js deleted file mode 100644 index 7fa9006d0ae..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js +++ /dev/null @@ -1,295 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { getLongRunningPoller } from "../pollingHelpers.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; -import { isUnexpected, } from "../../rest/index.js"; -import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client"; -export function _createSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId, resourceGroupName, dataProductName, dataTypeName) - .put({ - ...operationOptionsToRequestParameters(options), - body: { - properties: !resource.properties - ? undefined - : { - state: resource.properties?.["state"], - storageOutputRetention: resource.properties?.["storageOutputRetention"], - databaseCacheRetention: resource.properties?.["databaseCacheRetention"], - databaseRetention: resource.properties?.["databaseRetention"], - }, - }, - }); -} -export async function _createDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - result = result; - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - state: result.body.properties?.["state"], - stateReason: result.body.properties?.["stateReason"], - storageOutputRetention: result.body.properties?.["storageOutputRetention"], - databaseCacheRetention: result.body.properties?.["databaseCacheRetention"], - databaseRetention: result.body.properties?.["databaseRetention"], - visualizationUrl: result.body.properties?.["visualizationUrl"], - }, - }; -} -/** Create data type resource. */ -export function create(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options = { requestOptions: {} }) { - return getLongRunningPoller(context, _createDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _createSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options), - }); -} -export function _getSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId, resourceGroupName, dataProductName, dataTypeName) - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _getDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - state: result.body.properties?.["state"], - stateReason: result.body.properties?.["stateReason"], - storageOutputRetention: result.body.properties?.["storageOutputRetention"], - databaseCacheRetention: result.body.properties?.["databaseCacheRetention"], - databaseRetention: result.body.properties?.["databaseRetention"], - visualizationUrl: result.body.properties?.["visualizationUrl"], - }, - }; -} -/** Retrieve data type resource. */ -export async function get(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options = { requestOptions: {} }) { - const result = await _getSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options); - return _getDeserialize(result); -} -export function _updateSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId, resourceGroupName, dataProductName, dataTypeName) - .patch({ - ...operationOptionsToRequestParameters(options), - body: { - properties: !properties.properties - ? undefined - : { - state: properties.properties?.["state"], - storageOutputRetention: properties.properties?.["storageOutputRetention"], - databaseCacheRetention: properties.properties?.["databaseCacheRetention"], - databaseRetention: properties.properties?.["databaseRetention"], - }, - }, - }); -} -export async function _updateDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - result = result; - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - state: result.body.properties?.["state"], - stateReason: result.body.properties?.["stateReason"], - storageOutputRetention: result.body.properties?.["storageOutputRetention"], - databaseCacheRetention: result.body.properties?.["databaseCacheRetention"], - databaseRetention: result.body.properties?.["databaseRetention"], - visualizationUrl: result.body.properties?.["visualizationUrl"], - }, - }; -} -/** Update data type resource. */ -export function update(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options = { requestOptions: {} }) { - return getLongRunningPoller(context, _updateDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _updateSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options), - }); -} -export function _$deleteSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId, resourceGroupName, dataProductName, dataTypeName) - .delete({ ...operationOptionsToRequestParameters(options) }); -} -export async function _$deleteDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - result = result; - return; -} -/** Delete data type resource. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export function $delete(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options = { requestOptions: {} }) { - return getLongRunningPoller(context, _$deleteDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _$deleteSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options), - }); -} -export function _deleteDataSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", subscriptionId, resourceGroupName, dataProductName, dataTypeName) - .post({ ...operationOptionsToRequestParameters(options), body: body }); -} -export async function _deleteDataDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - result = result; - return; -} -/** Delete data for data type. */ -export function deleteData(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options = { requestOptions: {} }) { - return getLongRunningPoller(context, _deleteDataDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _deleteDataSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options), - }); -} -export function _generateStorageContainerSasTokenSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options = { - requestOptions: {}, -}) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", subscriptionId, resourceGroupName, dataProductName, dataTypeName) - .post({ - ...operationOptionsToRequestParameters(options), - body: { - startTimeStamp: body["startTimeStamp"].toISOString(), - expiryTimeStamp: body["expiryTimeStamp"].toISOString(), - ipAddress: body["ipAddress"], - }, - }); -} -export async function _generateStorageContainerSasTokenDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - storageContainerSasToken: result.body["storageContainerSasToken"], - }; -} -/** Generate sas token for storage container. */ -export async function generateStorageContainerSasToken(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options = { - requestOptions: {}, -}) { - const result = await _generateStorageContainerSasTokenSend(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options); - return _generateStorageContainerSasTokenDeserialize(result); -} -export function _listByDataProductSend(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { - return context - .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", subscriptionId, resourceGroupName, dataProductName) - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _listByDataProductDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - value: result.body["value"].map((p) => ({ - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - state: p.properties?.["state"], - stateReason: p.properties?.["stateReason"], - storageOutputRetention: p.properties?.["storageOutputRetention"], - databaseCacheRetention: p.properties?.["databaseCacheRetention"], - databaseRetention: p.properties?.["databaseRetention"], - visualizationUrl: p.properties?.["visualizationUrl"], - }, - })), - nextLink: result.body["nextLink"], - }; -} -/** List data type by parent resource. */ -export function listByDataProduct(context, subscriptionId, resourceGroupName, dataProductName, options = { requestOptions: {} }) { - return buildPagedAsyncIterator(context, () => _listByDataProductSend(context, subscriptionId, resourceGroupName, dataProductName, options), _listByDataProductDeserialize, { itemName: "value", nextLinkName: "nextLink" }); -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js.map deleted file mode 100644 index 8569872a853..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAU5D,OAAO,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CAAC,UAAU,EAAE,CAAC,mBAAmB,CAAC;oBACtD,gBAAgB,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,kBAAkB,CAAC;iBACrD;SACN,CAAC,CAAC;QACH,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,yCAAyC;AACzC,MAAM,UAAU,iBAAiB,CAC/B,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAoD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE1E,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CACH,sBAAsB,CACpB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,EACH,6BAA6B,EAC7B,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.ts deleted file mode 100644 index 74f6ce02280..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/dataTypes/index.ts +++ /dev/null @@ -1,655 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { getLongRunningPoller } from "../pollingHelpers.js"; -import { PollerLike, OperationState } from "@azure/core-lro"; -import { - DataType, - DataTypeUpdate, - ContainerSaS, - ContainerSasToken, - DataTypeListResult, -} from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; -import { - DataTypesCreate200Response, - DataTypesCreate201Response, - DataTypesCreateDefaultResponse, - DataTypesCreateLogicalResponse, - DataTypesDelete202Response, - DataTypesDelete204Response, - DataTypesDeleteData202Response, - DataTypesDeleteData204Response, - DataTypesDeleteDataDefaultResponse, - DataTypesDeleteDataLogicalResponse, - DataTypesDeleteDefaultResponse, - DataTypesDeleteLogicalResponse, - DataTypesGenerateStorageContainerSasToken200Response, - DataTypesGenerateStorageContainerSasTokenDefaultResponse, - DataTypesGet200Response, - DataTypesGetDefaultResponse, - DataTypesListByDataProduct200Response, - DataTypesListByDataProductDefaultResponse, - DataTypesUpdate200Response, - DataTypesUpdate202Response, - DataTypesUpdateDefaultResponse, - DataTypesUpdateLogicalResponse, - isUnexpected, - NetworkAnalyticsContext as Client, -} from "../../rest/index.js"; -import { - StreamableMethod, - operationOptionsToRequestParameters, - createRestError, -} from "@azure-rest/core-client"; -import { - DataTypesCreateOptionalParams, - DataTypesGetOptionalParams, - DataTypesUpdateOptionalParams, - DataTypesDeleteOptionalParams, - DataTypesDeleteDataOptionalParams, - DataTypesGenerateStorageContainerSasTokenOptionalParams, - DataTypesListByDataProductOptionalParams, -} from "../../models/options.js"; - -export function _createSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - resource: DataType, - options: DataTypesCreateOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataTypesCreate200Response - | DataTypesCreate201Response - | DataTypesCreateDefaultResponse - | DataTypesCreateLogicalResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - ) - .put({ - ...operationOptionsToRequestParameters(options), - body: { - properties: !resource.properties - ? undefined - : { - state: resource.properties?.["state"], - storageOutputRetention: - resource.properties?.["storageOutputRetention"], - databaseCacheRetention: - resource.properties?.["databaseCacheRetention"], - databaseRetention: resource.properties?.["databaseRetention"], - }, - }, - }); -} - -export async function _createDeserialize( - result: - | DataTypesCreate200Response - | DataTypesCreate201Response - | DataTypesCreateDefaultResponse - | DataTypesCreateLogicalResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - result = result as DataTypesCreateLogicalResponse; - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - state: result.body.properties?.["state"], - stateReason: result.body.properties?.["stateReason"], - storageOutputRetention: - result.body.properties?.["storageOutputRetention"], - databaseCacheRetention: - result.body.properties?.["databaseCacheRetention"], - databaseRetention: result.body.properties?.["databaseRetention"], - visualizationUrl: result.body.properties?.["visualizationUrl"], - }, - }; -} - -/** Create data type resource. */ -export function create( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - resource: DataType, - options: DataTypesCreateOptionalParams = { requestOptions: {} }, -): PollerLike, DataType> { - return getLongRunningPoller(context, _createDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _createSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - resource, - options, - ), - }) as PollerLike, DataType>; -} - -export function _getSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options: DataTypesGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - ) - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _getDeserialize( - result: DataTypesGet200Response | DataTypesGetDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - state: result.body.properties?.["state"], - stateReason: result.body.properties?.["stateReason"], - storageOutputRetention: - result.body.properties?.["storageOutputRetention"], - databaseCacheRetention: - result.body.properties?.["databaseCacheRetention"], - databaseRetention: result.body.properties?.["databaseRetention"], - visualizationUrl: result.body.properties?.["visualizationUrl"], - }, - }; -} - -/** Retrieve data type resource. */ -export async function get( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options: DataTypesGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - options, - ); - return _getDeserialize(result); -} - -export function _updateSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - properties: DataTypeUpdate, - options: DataTypesUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataTypesUpdate200Response - | DataTypesUpdate202Response - | DataTypesUpdateDefaultResponse - | DataTypesUpdateLogicalResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - ) - .patch({ - ...operationOptionsToRequestParameters(options), - body: { - properties: !properties.properties - ? undefined - : { - state: properties.properties?.["state"], - storageOutputRetention: - properties.properties?.["storageOutputRetention"], - databaseCacheRetention: - properties.properties?.["databaseCacheRetention"], - databaseRetention: properties.properties?.["databaseRetention"], - }, - }, - }); -} - -export async function _updateDeserialize( - result: - | DataTypesUpdate200Response - | DataTypesUpdate202Response - | DataTypesUpdateDefaultResponse - | DataTypesUpdateLogicalResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - result = result as DataTypesUpdateLogicalResponse; - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - state: result.body.properties?.["state"], - stateReason: result.body.properties?.["stateReason"], - storageOutputRetention: - result.body.properties?.["storageOutputRetention"], - databaseCacheRetention: - result.body.properties?.["databaseCacheRetention"], - databaseRetention: result.body.properties?.["databaseRetention"], - visualizationUrl: result.body.properties?.["visualizationUrl"], - }, - }; -} - -/** Update data type resource. */ -export function update( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - properties: DataTypeUpdate, - options: DataTypesUpdateOptionalParams = { requestOptions: {} }, -): PollerLike, DataType> { - return getLongRunningPoller(context, _updateDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _updateSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - properties, - options, - ), - }) as PollerLike, DataType>; -} - -export function _$deleteSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options: DataTypesDeleteOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataTypesDelete202Response - | DataTypesDelete204Response - | DataTypesDeleteDefaultResponse - | DataTypesDeleteLogicalResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - ) - .delete({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _$deleteDeserialize( - result: - | DataTypesDelete202Response - | DataTypesDelete204Response - | DataTypesDeleteDefaultResponse - | DataTypesDeleteLogicalResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - result = result as DataTypesDeleteLogicalResponse; - return; -} - -/** Delete data type resource. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export function $delete( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options: DataTypesDeleteOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _$deleteDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _$deleteSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - options, - ), - }) as PollerLike, void>; -} - -export function _deleteDataSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: Record, - options: DataTypesDeleteDataOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataTypesDeleteData202Response - | DataTypesDeleteData204Response - | DataTypesDeleteDataDefaultResponse - | DataTypesDeleteDataLogicalResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - ) - .post({ ...operationOptionsToRequestParameters(options), body: body }); -} - -export async function _deleteDataDeserialize( - result: - | DataTypesDeleteData202Response - | DataTypesDeleteData204Response - | DataTypesDeleteDataDefaultResponse - | DataTypesDeleteDataLogicalResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - result = result as DataTypesDeleteDataLogicalResponse; - return; -} - -/** Delete data for data type. */ -export function deleteData( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: Record, - options: DataTypesDeleteDataOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _deleteDataDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _deleteDataSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - body, - options, - ), - }) as PollerLike, void>; -} - -export function _generateStorageContainerSasTokenSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: ContainerSaS, - options: DataTypesGenerateStorageContainerSasTokenOptionalParams = { - requestOptions: {}, - }, -): StreamableMethod< - | DataTypesGenerateStorageContainerSasToken200Response - | DataTypesGenerateStorageContainerSasTokenDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - ) - .post({ - ...operationOptionsToRequestParameters(options), - body: { - startTimeStamp: body["startTimeStamp"].toISOString(), - expiryTimeStamp: body["expiryTimeStamp"].toISOString(), - ipAddress: body["ipAddress"], - }, - }); -} - -export async function _generateStorageContainerSasTokenDeserialize( - result: - | DataTypesGenerateStorageContainerSasToken200Response - | DataTypesGenerateStorageContainerSasTokenDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - storageContainerSasToken: result.body["storageContainerSasToken"], - }; -} - -/** Generate sas token for storage container. */ -export async function generateStorageContainerSasToken( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: ContainerSaS, - options: DataTypesGenerateStorageContainerSasTokenOptionalParams = { - requestOptions: {}, - }, -): Promise { - const result = await _generateStorageContainerSasTokenSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - body, - options, - ); - return _generateStorageContainerSasTokenDeserialize(result); -} - -export function _listByDataProductSend( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options: DataTypesListByDataProductOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DataTypesListByDataProduct200Response - | DataTypesListByDataProductDefaultResponse -> { - return context - .path( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", - subscriptionId, - resourceGroupName, - dataProductName, - ) - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _listByDataProductDeserialize( - result: - | DataTypesListByDataProduct200Response - | DataTypesListByDataProductDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - value: result.body["value"].map((p) => ({ - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - state: p.properties?.["state"], - stateReason: p.properties?.["stateReason"], - storageOutputRetention: p.properties?.["storageOutputRetention"], - databaseCacheRetention: p.properties?.["databaseCacheRetention"], - databaseRetention: p.properties?.["databaseRetention"], - visualizationUrl: p.properties?.["visualizationUrl"], - }, - })), - nextLink: result.body["nextLink"], - }; -} - -/** List data type by parent resource. */ -export function listByDataProduct( - context: Client, - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options: DataTypesListByDataProductOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => - _listByDataProductSend( - context, - subscriptionId, - resourceGroupName, - dataProductName, - options, - ), - _listByDataProductDeserialize, - { itemName: "value", nextLinkName: "nextLink" }, - ); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts deleted file mode 100644 index 8e83eed5c3c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { createNetworkAnalytics, NetworkAnalyticsClientOptions, NetworkAnalyticsContext, } from "./networkAnalyticsContext.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts.map deleted file mode 100644 index bc6a03a6fa8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js deleted file mode 100644 index 63bd3d28579..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export { createNetworkAnalytics, } from "./networkAnalyticsContext.js"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js.map deleted file mode 100644 index 37e0e2db63b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sBAAsB,GAGvB,MAAM,8BAA8B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.ts deleted file mode 100644 index b9d427b4a66..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -export { - createNetworkAnalytics, - NetworkAnalyticsClientOptions, - NetworkAnalyticsContext, -} from "./networkAnalyticsContext.js"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts deleted file mode 100644 index c53a09585f3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { TokenCredential } from "@azure/core-auth"; -import { ClientOptions } from "@azure-rest/core-client"; -import { NetworkAnalyticsContext } from "../rest/index.js"; -export interface NetworkAnalyticsClientOptions extends ClientOptions { - /** The API version to use for this operation. */ - apiVersion?: string; -} -export { NetworkAnalyticsContext } from "../rest/index.js"; -export declare function createNetworkAnalytics(credential: TokenCredential, options?: NetworkAnalyticsClientOptions): NetworkAnalyticsContext; -//# sourceMappingURL=networkAnalyticsContext.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts.map deleted file mode 100644 index 7878e1bfbb2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkAnalyticsContext.d.ts","sourceRoot":"","sources":["networkAnalyticsContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAG3D,MAAM,WAAW,6BAA8B,SAAQ,aAAa;IAClE,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC,GAC1C,uBAAuB,CAGzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js deleted file mode 100644 index 204567fc303..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import getClient from "../rest/index.js"; -export function createNetworkAnalytics(credential, options = {}) { - const clientContext = getClient(credential, options); - return clientContext; -} -//# sourceMappingURL=networkAnalyticsContext.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js.map deleted file mode 100644 index b8cce98415e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkAnalyticsContext.js","sourceRoot":"","sources":["networkAnalyticsContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,SAAS,MAAM,kBAAkB,CAAC;AASzC,MAAM,UAAU,sBAAsB,CACpC,UAA2B,EAC3B,UAAyC,EAAE;IAE3C,MAAM,aAAa,GAAG,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACrD,OAAO,aAAa,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.ts deleted file mode 100644 index 3c21444f2d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/networkAnalyticsContext.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { TokenCredential } from "@azure/core-auth"; -import { ClientOptions } from "@azure-rest/core-client"; -import { NetworkAnalyticsContext } from "../rest/index.js"; -import getClient from "../rest/index.js"; - -export interface NetworkAnalyticsClientOptions extends ClientOptions { - /** The API version to use for this operation. */ - apiVersion?: string; -} - -export { NetworkAnalyticsContext } from "../rest/index.js"; - -export function createNetworkAnalytics( - credential: TokenCredential, - options: NetworkAnalyticsClientOptions = {}, -): NetworkAnalyticsContext { - const clientContext = getClient(credential, options); - return clientContext; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts deleted file mode 100644 index 7e6f304e22f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { PagedOperation, Operation } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { NetworkAnalyticsContext as Client, OperationsList200Response, OperationsListDefaultResponse } from "../../rest/index.js"; -import { StreamableMethod } from "@azure-rest/core-client"; -import { OperationsListOptionalParams } from "../../models/options.js"; -export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod; -export declare function _listDeserialize(result: OperationsList200Response | OperationsListDefaultResponse): Promise; -/** List the operations for the provider */ -export declare function list(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts.map deleted file mode 100644 index 4b373cc4e84..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EAEL,uBAAuB,IAAI,MAAM,EACjC,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAAC,yBAAyB,GAAG,6BAA6B,CAAC,CAI7E;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,yBAAyB,GAAG,6BAA6B,GAChE,OAAO,CAAC,cAAc,CAAC,CAsBzB;AAED,2CAA2C;AAC3C,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAOvC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js deleted file mode 100644 index 2869c607eb8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; -import { isUnexpected, } from "../../rest/index.js"; -import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client"; -export function _listSend(context, options = { requestOptions: {} }) { - return context - .path("/providers/Microsoft.NetworkAnalytics/operations") - .get({ ...operationOptionsToRequestParameters(options) }); -} -export async function _listDeserialize(result) { - if (isUnexpected(result)) { - throw createRestError(result); - } - return { - value: result.body["value"].map((p) => ({ - name: p["name"], - isDataAction: p["isDataAction"], - display: !p.display - ? undefined - : { - provider: p.display?.["provider"], - resource: p.display?.["resource"], - operation: p.display?.["operation"], - description: p.display?.["description"], - }, - origin: p["origin"], - actionType: p["actionType"], - })), - nextLink: result.body["nextLink"], - }; -} -/** List the operations for the provider */ -export function list(context, options = { requestOptions: {} }) { - return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, { itemName: "value", nextLinkName: "nextLink" }); -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js.map deleted file mode 100644 index 1865c237eb6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,YAAY,GAIb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mCAAmC,EACnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE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ChB,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.ts deleted file mode 100644 index ae7bcb55cc5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/operations/index.ts +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { PagedOperation, Operation } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; -import { - isUnexpected, - NetworkAnalyticsContext as Client, - OperationsList200Response, - OperationsListDefaultResponse, -} from "../../rest/index.js"; -import { - StreamableMethod, - operationOptionsToRequestParameters, - createRestError, -} from "@azure-rest/core-client"; -import { OperationsListOptionalParams } from "../../models/options.js"; - -export function _listSend( - context: Client, - options: OperationsListOptionalParams = { requestOptions: {} }, -): StreamableMethod { - return context - .path("/providers/Microsoft.NetworkAnalytics/operations") - .get({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _listDeserialize( - result: OperationsList200Response | OperationsListDefaultResponse, -): Promise { - if (isUnexpected(result)) { - throw createRestError(result); - } - - return { - value: result.body["value"].map((p) => ({ - name: p["name"], - isDataAction: p["isDataAction"], - display: !p.display - ? undefined - : { - provider: p.display?.["provider"], - resource: p.display?.["resource"], - operation: p.display?.["operation"], - description: p.display?.["description"], - }, - origin: p["origin"], - actionType: p["actionType"], - })), - nextLink: result.body["nextLink"], - }; -} - -/** List the operations for the provider */ -export function list( - context: Client, - options: OperationsListOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listSend(context, options), - _listDeserialize, - { itemName: "value", nextLinkName: "nextLink" }, - ); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts deleted file mode 100644 index 98a4e21cd14..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Client, PathUncheckedResponse } from "@azure-rest/core-client"; -import { BuildPagedAsyncIteratorOptions, PageSettings, PagedAsyncIterableIterator } from "../models/pagingTypes.js"; -/** - * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator - */ -export declare function buildPagedAsyncIterator(client: Client, getInitialResponse: () => PromiseLike, processResponseBody: (result: TResponse) => PromiseLike, options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator; -//# sourceMappingURL=pagingHelpers.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts.map deleted file mode 100644 index d600a521828..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,MAAM,EAEN,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,8BAA8B,EAE9B,YAAY,EACZ,0BAA0B,EAE3B,MAAM,0BAA0B,CAAC;AAGlC;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAE/D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,EAChD,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,CAAC,OAAO,CAAC,EAChE,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js deleted file mode 100644 index 4f05ecc67cc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { createRestError, } from "@azure-rest/core-client"; -import { RestError } from "@azure/core-rest-pipeline"; -import { isUnexpected } from "../rest/index.js"; -/** - * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator - */ -export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, options = {}) { - const itemName = options.itemName ?? "value"; - const nextLinkName = options.nextLinkName ?? "nextLink"; - const pagedResult = { - getPage: async (pageLink) => { - const result = pageLink === undefined - ? await getInitialResponse() - : await client.pathUnchecked(pageLink).get(); - checkPagingRequest(result); - const results = await processResponseBody(result); - const nextLink = getNextLink(results, nextLinkName); - const values = getElements(results, itemName); - return { - page: values, - nextPageLink: nextLink, - }; - }, - byPage: (settings) => { - const { continuationToken } = settings ?? {}; - return getPageAsyncIterator(pagedResult, { - pageLink: continuationToken, - }); - }, - }; - return getPagedAsyncIterator(pagedResult); -} -/** - * returns an async iterator that iterates over results. It also has a `byPage` - * method that returns pages of items at once. - * - * @param pagedResult - an object that specifies how to get pages. - * @returns a paged async iterator that iterates over results. - */ -function getPagedAsyncIterator(pagedResult) { - const iter = getItemAsyncIterator(pagedResult); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: pagedResult?.byPage ?? - ((settings) => { - const { continuationToken } = settings ?? {}; - return getPageAsyncIterator(pagedResult, { - pageLink: continuationToken, - }); - }), - }; -} -async function* getItemAsyncIterator(pagedResult) { - const pages = getPageAsyncIterator(pagedResult); - for await (const page of pages) { - yield* page; - } -} -async function* getPageAsyncIterator(pagedResult, options = {}) { - const { pageLink } = options; - let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); - if (!response) { - return; - } - let result = response.page; - result.continuationToken = response.nextPageLink; - yield result; - while (response.nextPageLink) { - response = await pagedResult.getPage(response.nextPageLink); - if (!response) { - return; - } - result = response.page; - result.continuationToken = response.nextPageLink; - yield result; - } -} -/** - * Gets for the value of nextLink in the body - */ -function getNextLink(body, nextLinkName) { - if (!nextLinkName) { - return undefined; - } - const nextLink = body[nextLinkName]; - if (typeof nextLink !== "string" && - typeof nextLink !== "undefined" && - nextLink !== null) { - throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`); - } - if (nextLink === null) { - return undefined; - } - return nextLink; -} -/** - * Gets the elements of the current request in the body. - */ -function getElements(body, itemName) { - const value = body[itemName]; - if (!Array.isArray(value)) { - throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`); - } - return value ?? []; -} -/** - * Checks if a request failed - */ -function checkPagingRequest(response) { - if (isUnexpected(response)) { - throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response); - } -} -//# sourceMappingURL=pagingHelpers.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js.map deleted file mode 100644 index d797804d85f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAEL,eAAe,GAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,UAA0C,EAAE;IAE5C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,MAAM,MAAM,GACV,QAAQ,KAAK,SAAS;gBACpB,CAAC,CAAC,MAAM,kBAAkB,EAAE;gBAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;YACjD,kBAAkB,CAAC,MAAM,CAAC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KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,IAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3B,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.ts deleted file mode 100644 index 9780e76e04a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pagingHelpers.ts +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - Client, - createRestError, - PathUncheckedResponse, -} from "@azure-rest/core-client"; -import { RestError } from "@azure/core-rest-pipeline"; -import { - BuildPagedAsyncIteratorOptions, - ContinuablePage, - PageSettings, - PagedAsyncIterableIterator, - PagedResult, -} from "../models/pagingTypes.js"; -import { isUnexpected } from "../rest/index.js"; - -/** - * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator - */ -export function buildPagedAsyncIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, - TResponse extends PathUncheckedResponse = PathUncheckedResponse, ->( - client: Client, - getInitialResponse: () => PromiseLike, - processResponseBody: (result: TResponse) => PromiseLike, - options: BuildPagedAsyncIteratorOptions = {}, -): PagedAsyncIterableIterator { - const itemName = options.itemName ?? "value"; - const nextLinkName = options.nextLinkName ?? "nextLink"; - const pagedResult: PagedResult = { - getPage: async (pageLink?: string) => { - const result = - pageLink === undefined - ? await getInitialResponse() - : await client.pathUnchecked(pageLink).get(); - checkPagingRequest(result); - const results = await processResponseBody(result as TResponse); - const nextLink = getNextLink(results, nextLinkName); - const values = getElements(results, itemName) as TPage; - return { - page: values, - nextPageLink: nextLink, - }; - }, - byPage: (settings?: TPageSettings) => { - const { continuationToken } = settings ?? {}; - return getPageAsyncIterator(pagedResult, { - pageLink: continuationToken, - }); - }, - }; - return getPagedAsyncIterator(pagedResult); -} - -/** - * returns an async iterator that iterates over results. It also has a `byPage` - * method that returns pages of items at once. - * - * @param pagedResult - an object that specifies how to get pages. - * @returns a paged async iterator that iterates over results. - */ - -function getPagedAsyncIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, ->( - pagedResult: PagedResult, -): PagedAsyncIterableIterator { - const iter = getItemAsyncIterator( - pagedResult, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: - pagedResult?.byPage ?? - ((settings?: TPageSettings) => { - const { continuationToken } = settings ?? {}; - return getPageAsyncIterator(pagedResult, { - pageLink: continuationToken, - }); - }), - }; -} - -async function* getItemAsyncIterator< - TElement, - TPage, - TPageSettings extends PageSettings, ->( - pagedResult: PagedResult, -): AsyncIterableIterator { - const pages = getPageAsyncIterator(pagedResult); - for await (const page of pages) { - yield* page as unknown as TElement[]; - } -} - -async function* getPageAsyncIterator< - TElement, - TPage, - TPageSettings extends PageSettings, ->( - pagedResult: PagedResult, - options: { - pageLink?: string; - } = {}, -): AsyncIterableIterator> { - const { pageLink } = options; - let response = await pagedResult.getPage( - pageLink ?? pagedResult.firstPageLink, - ); - if (!response) { - return; - } - let result = response.page as ContinuablePage; - result.continuationToken = response.nextPageLink; - yield result; - while (response.nextPageLink) { - response = await pagedResult.getPage(response.nextPageLink); - if (!response) { - return; - } - result = response.page as ContinuablePage; - result.continuationToken = response.nextPageLink; - yield result; - } -} - -/** - * Gets for the value of nextLink in the body - */ -function getNextLink(body: unknown, nextLinkName?: string): string | undefined { - if (!nextLinkName) { - return undefined; - } - - const nextLink = (body as Record)[nextLinkName]; - - if ( - typeof nextLink !== "string" && - typeof nextLink !== "undefined" && - nextLink !== null - ) { - throw new RestError( - `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, - ); - } - - if (nextLink === null) { - return undefined; - } - - return nextLink; -} - -/** - * Gets the elements of the current request in the body. - */ -function getElements(body: unknown, itemName: string): T[] { - const value = (body as Record)[itemName] as T[]; - if (!Array.isArray(value)) { - throw new RestError( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, - ); - } - - return value ?? []; -} - -/** - * Checks if a request failed - */ -function checkPagingRequest(response: PathUncheckedResponse): void { - if (isUnexpected(response)) { - throw createRestError( - `Pagination failed with unexpected statusCode ${response.status}`, - response, - ); - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts deleted file mode 100644 index 9c493f64915..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { PollerLike, OperationState, ResourceLocationConfig } from "@azure/core-lro"; -import { Client, PathUncheckedResponse } from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; -export interface GetLongRunningPollerOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** - * The signal which can be used to abort requests. - */ - abortSignal?: AbortSignalLike; - /** - * The potential location of the result of the LRO if specified by the LRO extension in the swagger. - */ - resourceLocationConfig?: ResourceLocationConfig; - /** - * The original url of the LRO - * Should not be null when restoreFrom is set - */ - initialRequestUrl?: string; - /** - * A serialized poller which can be used to resume an existing paused Long-Running-Operation. - */ - restoreFrom?: string; - /** - * The function to get the initial response - */ - getInitialResponse?: () => PromiseLike; -} -export declare function getLongRunningPoller(client: Client, processResponseBody: (result: TResponse) => Promise, options: GetLongRunningPollerOptions): PollerLike, TResult>; -//# sourceMappingURL=pollingHelpers.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts.map deleted file mode 100644 index 39b0d9eec35..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["pollingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,MAAM,EACN,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,MAAM,WAAW,2BAA2B,CAAC,SAAS;IACpD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC;CACnD;AACD,wBAAgB,oBAAoB,CAClC,SAAS,SAAS,qBAAqB,EACvC,OAAO,GAAG,IAAI,EAEd,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5D,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAC9C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAiE9C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js deleted file mode 100644 index a5e0f9c12e6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { createHttpPoller, } from "@azure/core-lro"; -import { createRestError, } from "@azure-rest/core-client"; -import { isUnexpected } from "../rest/index.js"; -export function getLongRunningPoller(client, processResponseBody, options) { - const { restoreFrom, getInitialResponse } = options; - if (!restoreFrom && !getInitialResponse) { - throw new Error("Either restoreFrom or getInitialResponse must be specified"); - } - let initialResponse = undefined; - const pollAbortController = new AbortController(); - const poller = { - sendInitialRequest: async () => { - if (!getInitialResponse) { - throw new Error("getInitialResponse is required when initializing a new poller"); - } - initialResponse = await getInitialResponse(); - return getLroResponse(initialResponse); - }, - sendPollRequest: async (path, pollOptions) => { - // The poll request would both listen to the user provided abort signal and the poller's own abort signal - function abortListener() { - pollAbortController.abort(); - } - const abortSignal = pollAbortController.signal; - if (options.abortSignal?.aborted) { - pollAbortController.abort(); - } - else if (pollOptions?.abortSignal?.aborted) { - pollAbortController.abort(); - } - else if (!abortSignal.aborted) { - options.abortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - pollOptions?.abortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - } - let response; - try { - response = await client.pathUnchecked(path).get({ abortSignal }); - } - finally { - options.abortSignal?.removeEventListener("abort", abortListener); - pollOptions?.abortSignal?.removeEventListener("abort", abortListener); - } - if (options.initialRequestUrl || initialResponse) { - response.headers["x-ms-original-url"] = - options.initialRequestUrl ?? initialResponse.request.url; - } - return getLroResponse(response); - }, - }; - return createHttpPoller(poller, { - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: options?.resourceLocationConfig, - restoreFrom: options?.restoreFrom, - processResult: (result) => { - return processResponseBody(result); - }, - }); -} -/** - * Converts a Rest Client response to a response that the LRO implementation understands - * @param response - a rest client http response - * @param deserializeFn - deserialize function to convert Rest response to modular output - * @returns - An LRO response that the LRO implementation understands - */ -function getLroResponse(response) { - if (isUnexpected(response)) { - throw createRestError(response); - } - return { - flatResponse: response, - rawResponse: { - ...response, - statusCode: Number.parseInt(response.status), - body: response.body, - }, - }; -} -//# sourceMappingURL=pollingHelpers.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js.map deleted file mode 100644 index 6e4c82aca12..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["pollingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAGL,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA2BhD,MAAM,UAAU,oBAAoB,CAIlC,MAAc,EACd,mBAA4D,EAC5D,OAA+C;IAE/C,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;IACpD,IAAI,CAAC,WAAW,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CACb,4DAA4D,CAC7D,CAAC;IACJ,CAAC;IACD,IAAI,eAAe,GAA0B,SAAS,CAAC;IACvD,MAAM,mBAAmB,GAAG,IAAI,eAAe,EAAE,CAAC;IAClD,MAAM,MAAM,GAAgC;QAC1C,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACxB,MAAM,IAAI,KAAK,CACb,+DAA+D,CAChE,CAAC;YACJ,CAAC;YACD,eAAe,GAAG,MAAM,kBAAkB,EAAE,CAAC;YAC7C,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EACpB,IAAY,EACZ,WAEC,EACD,EAAE;YACF,yGAAyG;YACzG,SAAS,aAAa;gBACpB,mBAAmB,CAAC,KAAK,EAAE,CAAC;YAC9B,CAAC;YACD,MAAM,WAAW,GAAG,mBAAmB,CAAC,MAAM,CAAC;YAC/C,IAAI,OAAO,CAAC,WAAW,EAAE,OAAO,E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e,EAAE,EAAE;YACjC,OAAO,mBAAmB,CAAC,MAAmB,CAAC,CAAC;QAClD,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AACD;;;;;GAKG;AACH,SAAS,cAAc,CACrB,QAAmB;IAEnB,IAAI,YAAY,CAAC,QAAiC,CAAC,EAAE,CAAC;QACpD,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE;YACX,GAAG,QAAQ;YACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.ts deleted file mode 100644 index f3bd59e41b4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/api/pollingHelpers.ts +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - PollerLike, - OperationState, - ResourceLocationConfig, - RunningOperation, - createHttpPoller, - OperationResponse, -} from "@azure/core-lro"; - -import { - Client, - PathUncheckedResponse, - createRestError, -} from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; -import { isUnexpected } from "../rest/index.js"; - -export interface GetLongRunningPollerOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** - * The signal which can be used to abort requests. - */ - abortSignal?: AbortSignalLike; - /** - * The potential location of the result of the LRO if specified by the LRO extension in the swagger. - */ - resourceLocationConfig?: ResourceLocationConfig; - /** - * The original url of the LRO - * Should not be null when restoreFrom is set - */ - initialRequestUrl?: string; - /** - * A serialized poller which can be used to resume an existing paused Long-Running-Operation. - */ - restoreFrom?: string; - /** - * The function to get the initial response - */ - getInitialResponse?: () => PromiseLike; -} -export function getLongRunningPoller< - TResponse extends PathUncheckedResponse, - TResult = void, ->( - client: Client, - processResponseBody: (result: TResponse) => Promise, - options: GetLongRunningPollerOptions, -): PollerLike, TResult> { - const { restoreFrom, getInitialResponse } = options; - if (!restoreFrom && !getInitialResponse) { - throw new Error( - "Either restoreFrom or getInitialResponse must be specified", - ); - } - let initialResponse: TResponse | undefined = undefined; - const pollAbortController = new AbortController(); - const poller: RunningOperation = { - sendInitialRequest: async () => { - if (!getInitialResponse) { - throw new Error( - "getInitialResponse is required when initializing a new poller", - ); - } - initialResponse = await getInitialResponse(); - return getLroResponse(initialResponse); - }, - sendPollRequest: async ( - path: string, - pollOptions?: { - abortSignal?: AbortSignalLike; - }, - ) => { - // The poll request would both listen to the user provided abort signal and the poller's own abort signal - function abortListener(): void { - pollAbortController.abort(); - } - const abortSignal = pollAbortController.signal; - if (options.abortSignal?.aborted) { - pollAbortController.abort(); - } else if (pollOptions?.abortSignal?.aborted) { - pollAbortController.abort(); - } else if (!abortSignal.aborted) { - options.abortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - pollOptions?.abortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - } - let response; - try { - response = await client.pathUnchecked(path).get({ abortSignal }); - } finally { - options.abortSignal?.removeEventListener("abort", abortListener); - pollOptions?.abortSignal?.removeEventListener("abort", abortListener); - } - if (options.initialRequestUrl || initialResponse) { - response.headers["x-ms-original-url"] = - options.initialRequestUrl ?? initialResponse!.request.url; - } - - return getLroResponse(response as TResponse); - }, - }; - return createHttpPoller(poller, { - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: options?.resourceLocationConfig, - restoreFrom: options?.restoreFrom, - processResult: (result: unknown) => { - return processResponseBody(result as TResponse); - }, - }); -} -/** - * Converts a Rest Client response to a response that the LRO implementation understands - * @param response - a rest client http response - * @param deserializeFn - deserialize function to convert Rest response to modular output - * @returns - An LRO response that the LRO implementation understands - */ -function getLroResponse( - response: TResponse, -): OperationResponse { - if (isUnexpected(response as PathUncheckedResponse)) { - throw createRestError(response); - } - return { - flatResponse: response, - rawResponse: { - ...response, - statusCode: Number.parseInt(response.status), - body: response.body, - }, - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts deleted file mode 100644 index 85b0f58cb57..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; -import { DataProduct, DataProductUpdate, AccountSas, AccountSasToken, KeyVaultInfo, RoleAssignmentCommonProperties, RoleAssignmentDetail, ListRoleAssignments } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { PollerLike, OperationState } from "@azure/core-lro"; -import { DataProductsCreateOptionalParams, DataProductsGetOptionalParams, DataProductsUpdateOptionalParams, DataProductsDeleteOptionalParams, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsRotateKeyOptionalParams, DataProductsAddUserRoleOptionalParams, DataProductsRemoveUserRoleOptionalParams, DataProductsListRolesAssignmentsOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsListBySubscriptionOptionalParams } from "../../models/options.js"; -export interface DataProductsOperations { - create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams) => PollerLike, DataProduct>; - get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams) => Promise; - update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams) => PollerLike, DataProduct>; - delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams) => PollerLike, void>; - generateStorageAccountSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams) => Promise; - rotateKey: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams) => Promise; - addUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams) => Promise; - removeUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams) => Promise; - listRolesAssignments: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams) => Promise; - listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; - listBySubscription: (subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; -} -export declare function getDataProducts(context: NetworkAnalyticsContext): { - create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, resource: DataProduct, options?: DataProductsCreateOptionalParams) => PollerLike, DataProduct>; - get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsGetOptionalParams) => Promise; - update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, properties: DataProductUpdate, options?: DataProductsUpdateOptionalParams) => PollerLike, DataProduct>; - delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataProductsDeleteOptionalParams) => PollerLike, void>; - generateStorageAccountSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: AccountSas, options?: DataProductsGenerateStorageAccountSasTokenOptionalParams) => Promise; - rotateKey: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: KeyVaultInfo, options?: DataProductsRotateKeyOptionalParams) => Promise; - addUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentCommonProperties, options?: DataProductsAddUserRoleOptionalParams) => Promise; - removeUserRole: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: RoleAssignmentDetail, options?: DataProductsRemoveUserRoleOptionalParams) => Promise; - listRolesAssignments: (subscriptionId: string, resourceGroupName: string, dataProductName: string, body: Record, options?: DataProductsListRolesAssignmentsOptionalParams) => Promise; - listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; - listBySubscription: (subscriptionId: string, options?: DataProductsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; -}; -export declare function getDataProductsOperations(context: NetworkAnalyticsContext): DataProductsOperations; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts.map deleted file mode 100644 index 23f5653cc5e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,8BAA8B,EAC9B,oBAA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;6BAG1C,MAAM,qBACH,MAAM,mBACR,MAAM,YACb,WAAW,YACX,gCAAgC;0BAW1B,MAAM,qBACH,MAAM,mBACR,MAAM,YACb,6BAA6B;6BAIvB,MAAM,qBACH,MAAM,mBACR,MAAM,cACX,iBAAiB,YACnB,gCAAgC;6BAW1B,MAAM,qBACH,MAAM,mBACR,MAAM,YACb,gCAAgC;qDAU1B,MAAM,qBACH,MAAM,mBACR,MAAM,QACjB,UAAU,YACN,wDAAwD;gCAWlD,MAAM,qBACH,MAAM,mBACR,MAAM,QACjB,YAAY,YACR,mCAAmC;kCAW7B,MAAM,qBACH,MAAM,mBACR,MAAM,QACjB,8BAA8B,YAC1B,qCAAqC;qCAW/B,MAAM,qBACH,MAAM,mBACR,MAAM,QACjB,oBAAoB,YAChB,wCAAwC;2CAWlC,MAAM,qBACH,MAAM,mBACR,MAAM,QACjB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YACf,8CAA8C;0CAWxC,MAAM,qBACH,MAAM,YACf,6CAA6C;yCAIvC,MAAM,YACZ,4CAA4C;EAG3D;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,uBAAuB,GAC/B,sBAAsB,CAIxB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js deleted file mode 100644 index 4fd837612af..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { create, get, update, $delete, generateStorageAccountSasToken, rotateKey, addUserRole, removeUserRole, listRolesAssignments, listByResourceGroup, listBySubscription, } from "../../api/dataProducts/index.js"; -export function getDataProducts(context) { - return { - create: (subscriptionId, resourceGroupName, dataProductName, resource, options) => create(context, subscriptionId, resourceGroupName, dataProductName, resource, options), - get: (subscriptionId, resourceGroupName, dataProductName, options) => get(context, subscriptionId, resourceGroupName, dataProductName, options), - update: (subscriptionId, resourceGroupName, dataProductName, properties, options) => update(context, subscriptionId, resourceGroupName, dataProductName, properties, options), - delete: (subscriptionId, resourceGroupName, dataProductName, options) => $delete(context, subscriptionId, resourceGroupName, dataProductName, options), - generateStorageAccountSasToken: (subscriptionId, resourceGroupName, dataProductName, body, options) => generateStorageAccountSasToken(context, subscriptionId, resourceGroupName, dataProductName, body, options), - rotateKey: (subscriptionId, resourceGroupName, dataProductName, body, options) => rotateKey(context, subscriptionId, resourceGroupName, dataProductName, body, options), - addUserRole: (subscriptionId, resourceGroupName, dataProductName, body, options) => addUserRole(context, subscriptionId, resourceGroupName, dataProductName, body, options), - removeUserRole: (subscriptionId, resourceGroupName, dataProductName, body, options) => removeUserRole(context, subscriptionId, resourceGroupName, dataProductName, body, options), - listRolesAssignments: (subscriptionId, resourceGroupName, dataProductName, body, options) => listRolesAssignments(context, subscriptionId, resourceGroupName, dataProductName, body, options), - listByResourceGroup: (subscriptionId, resourceGroupName, options) => listByResourceGroup(context, subscriptionId, resourceGroupName, options), - listBySubscription: (subscriptionId, options) => listBySubscription(context, subscriptionId, options), - }; -} -export function getDataProductsOperations(context) { - return { - ...getDataProducts(context), - }; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js.map deleted file mode 100644 index 77cc82c88d7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAalC,OAAO,EACL,MAAM,EACN,GAAG,EACH,MAAM,EACN,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AA0FzC,MAAM,UAAU,eAAe,CAAC,OAAgC;IAC9D,OAAO;QACL,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,QAAqB,EACrB,OAA0C,EAC1C,EAAE,CACF,MAAM,CACJ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,OAAO,CACR;QACH,GAAG,EAAE,CACH,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,OAAuC,EACvC,EAAE,CACF,GAAG,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;QAC3E,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAA6B,EAC7B,OAA0C,EAC1C,EAAE,CACF,MAAM,CACJ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,OAAO,CACR;QACH,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,OAA0C,EAC1C,EAAE,CACF,OAAO,CACL,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;QACH,8BAA8B,EAAE,CAC9B,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,IAAgB,EAChB,OAAkE,EAClE,EAAE,CACF,8BAA8B,CAC5B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,OAAO,CACR;QACH,SAAS,EAAE,CACT,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,IAAkB,EAClB,OAA6C,EAC7C,EAAE,CACF,SAAS,CACP,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,OAAO,CACR;QACH,WAAW,EAAE,CACX,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,IAAoC,EACpC,OAA+C,EAC/C,EAAE,CACF,WAAW,CACT,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,OAAO,CACR;QACH,cAAc,EAAE,CACd,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,IAA0B,EAC1B,OAAkD,EAClD,EAAE,CACF,cAAc,CACZ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,OAAO,CACR;QACH,oBAAoB,EAAE,CACpB,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,IAAyB,EACzB,OAAwD,EACxD,EAAE,CACF,oBAAoB,CAClB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,OAAO,CACR;QACH,mBAAmB,EAAE,CACnB,cAAsB,EACtB,iBAAyB,EACzB,OAAuD,EACvD,EAAE,CACF,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC1E,kBAAkB,EAAE,CAClB,cAAsB,EACtB,OAAsD,EACtD,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,OAAgC;IAEhC,OAAO;QACL,GAAG,eAAe,CAAC,OAAO,CAAC;KAC5B,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.ts deleted file mode 100644 index c6780397e84..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProducts/index.ts +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; -import { - DataProduct, - DataProductUpdate, - AccountSas, - AccountSasToken, - KeyVaultInfo, - RoleAssignmentCommonProperties, - RoleAssignmentDetail, - ListRoleAssignments, -} from "../../models/models.js"; -import { - create, - get, - update, - $delete, - generateStorageAccountSasToken, - rotateKey, - addUserRole, - removeUserRole, - listRolesAssignments, - listByResourceGroup, - listBySubscription, -} from "../../api/dataProducts/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { PollerLike, OperationState } from "@azure/core-lro"; -import { - DataProductsCreateOptionalParams, - DataProductsGetOptionalParams, - DataProductsUpdateOptionalParams, - DataProductsDeleteOptionalParams, - DataProductsGenerateStorageAccountSasTokenOptionalParams, - DataProductsRotateKeyOptionalParams, - DataProductsAddUserRoleOptionalParams, - DataProductsRemoveUserRoleOptionalParams, - DataProductsListRolesAssignmentsOptionalParams, - DataProductsListByResourceGroupOptionalParams, - DataProductsListBySubscriptionOptionalParams, -} from "../../models/options.js"; - -export interface DataProductsOperations { - create: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - resource: DataProduct, - options?: DataProductsCreateOptionalParams, - ) => PollerLike, DataProduct>; - get: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options?: DataProductsGetOptionalParams, - ) => Promise; - update: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - properties: DataProductUpdate, - options?: DataProductsUpdateOptionalParams, - ) => PollerLike, DataProduct>; - delete: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options?: DataProductsDeleteOptionalParams, - ) => PollerLike, void>; - generateStorageAccountSasToken: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: AccountSas, - options?: DataProductsGenerateStorageAccountSasTokenOptionalParams, - ) => Promise; - rotateKey: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: KeyVaultInfo, - options?: DataProductsRotateKeyOptionalParams, - ) => Promise; - addUserRole: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentCommonProperties, - options?: DataProductsAddUserRoleOptionalParams, - ) => Promise; - removeUserRole: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentDetail, - options?: DataProductsRemoveUserRoleOptionalParams, - ) => Promise; - listRolesAssignments: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: Record, - options?: DataProductsListRolesAssignmentsOptionalParams, - ) => Promise; - listByResourceGroup: ( - subscriptionId: string, - resourceGroupName: string, - options?: DataProductsListByResourceGroupOptionalParams, - ) => PagedAsyncIterableIterator; - listBySubscription: ( - subscriptionId: string, - options?: DataProductsListBySubscriptionOptionalParams, - ) => PagedAsyncIterableIterator; -} - -export function getDataProducts(context: NetworkAnalyticsContext) { - return { - create: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - resource: DataProduct, - options?: DataProductsCreateOptionalParams, - ) => - create( - context, - subscriptionId, - resourceGroupName, - dataProductName, - resource, - options, - ), - get: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options?: DataProductsGetOptionalParams, - ) => - get(context, subscriptionId, resourceGroupName, dataProductName, options), - update: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - properties: DataProductUpdate, - options?: DataProductsUpdateOptionalParams, - ) => - update( - context, - subscriptionId, - resourceGroupName, - dataProductName, - properties, - options, - ), - delete: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options?: DataProductsDeleteOptionalParams, - ) => - $delete( - context, - subscriptionId, - resourceGroupName, - dataProductName, - options, - ), - generateStorageAccountSasToken: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: AccountSas, - options?: DataProductsGenerateStorageAccountSasTokenOptionalParams, - ) => - generateStorageAccountSasToken( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ), - rotateKey: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: KeyVaultInfo, - options?: DataProductsRotateKeyOptionalParams, - ) => - rotateKey( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ), - addUserRole: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentCommonProperties, - options?: DataProductsAddUserRoleOptionalParams, - ) => - addUserRole( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ), - removeUserRole: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: RoleAssignmentDetail, - options?: DataProductsRemoveUserRoleOptionalParams, - ) => - removeUserRole( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ), - listRolesAssignments: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - body: Record, - options?: DataProductsListRolesAssignmentsOptionalParams, - ) => - listRolesAssignments( - context, - subscriptionId, - resourceGroupName, - dataProductName, - body, - options, - ), - listByResourceGroup: ( - subscriptionId: string, - resourceGroupName: string, - options?: DataProductsListByResourceGroupOptionalParams, - ) => - listByResourceGroup(context, subscriptionId, resourceGroupName, options), - listBySubscription: ( - subscriptionId: string, - options?: DataProductsListBySubscriptionOptionalParams, - ) => listBySubscription(context, subscriptionId, options), - }; -} - -export function getDataProductsOperations( - context: NetworkAnalyticsContext, -): DataProductsOperations { - return { - ...getDataProducts(context), - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts deleted file mode 100644 index 80fec841a10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; -import { DataProductsCatalog } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { DataProductsCatalogsGetOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsListBySubscriptionOptionalParams } from "../../models/options.js"; -export interface DataProductsCatalogsOperations { - get: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams) => Promise; - listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; - listBySubscription: (subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; -} -export declare function getDataProductsCatalogs(context: NetworkAnalyticsContext): { - get: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsGetOptionalParams) => Promise; - listByResourceGroup: (subscriptionId: string, resourceGroupName: string, options?: DataProductsCatalogsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; - listBySubscription: (subscriptionId: string, options?: DataProductsCatalogsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; -}; -export declare function getDataProductsCatalogsOperations(context: NetworkAnalyticsContext): DataProductsCatalogsOperations; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts.map deleted file mode 100644 index ba129653e66..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAM7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EACL,qCAAqC,EACrC,qDAAqD,EACrD,oDAAoD,EACrD,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,8BAA8B;IAC7C,GAAG,EAAE,CACH,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,KAC5C,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClC,mBAAmB,EAAE,CACnB,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,KAC5D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACrD,kBAAkB,EAAE,CAClB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,oDAAoD,KAC3D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;CACtD;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,uBAAuB;0BAGlD,MAAM,qBACH,MAAM,YACf,qCAAqC;0CAG/B,MAAM,qBACH,MAAM,YACf,qDAAqD;yCAI/C,MAAM,YACZ,oDAAoD;EAGnE;AAED,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,uBAAuB,GAC/B,8BAA8B,CAIhC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js deleted file mode 100644 index 31793e82165..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { get, listByResourceGroup, listBySubscription, } from "../../api/dataProductsCatalogs/index.js"; -export function getDataProductsCatalogs(context) { - return { - get: (subscriptionId, resourceGroupName, options) => get(context, subscriptionId, resourceGroupName, options), - listByResourceGroup: (subscriptionId, resourceGroupName, options) => listByResourceGroup(context, subscriptionId, resourceGroupName, options), - listBySubscription: (subscriptionId, options) => listBySubscription(context, subscriptionId, options), - }; -} -export function getDataProductsCatalogsOperations(context) { - return { - ...getDataProductsCatalogs(context), - }; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js.map deleted file mode 100644 index 0b29ce3582c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,GAAG,EACH,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,yCAAyC,CAAC;AAyBjD,MAAM,UAAU,uBAAuB,CAAC,OAAgC;IACtE,OAAO;QACL,GAAG,EAAE,CACH,cAAsB,EACtB,iBAAyB,EACzB,OAA+C,EAC/C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,mBAAmB,EAAE,CACnB,cAAsB,EACtB,iBAAyB,EACzB,OAA+D,EAC/D,EAAE,CACF,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC1E,kBAAkB,EAAE,CAClB,cAAsB,EACtB,OAA8D,EAC9D,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAAgC;IAEhC,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.ts deleted file mode 100644 index 017a35e7fd8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataProductsCatalogs/index.ts +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; -import { DataProductsCatalog } from "../../models/models.js"; -import { - get, - listByResourceGroup, - listBySubscription, -} from "../../api/dataProductsCatalogs/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { - DataProductsCatalogsGetOptionalParams, - DataProductsCatalogsListByResourceGroupOptionalParams, - DataProductsCatalogsListBySubscriptionOptionalParams, -} from "../../models/options.js"; - -export interface DataProductsCatalogsOperations { - get: ( - subscriptionId: string, - resourceGroupName: string, - options?: DataProductsCatalogsGetOptionalParams, - ) => Promise; - listByResourceGroup: ( - subscriptionId: string, - resourceGroupName: string, - options?: DataProductsCatalogsListByResourceGroupOptionalParams, - ) => PagedAsyncIterableIterator; - listBySubscription: ( - subscriptionId: string, - options?: DataProductsCatalogsListBySubscriptionOptionalParams, - ) => PagedAsyncIterableIterator; -} - -export function getDataProductsCatalogs(context: NetworkAnalyticsContext) { - return { - get: ( - subscriptionId: string, - resourceGroupName: string, - options?: DataProductsCatalogsGetOptionalParams, - ) => get(context, subscriptionId, resourceGroupName, options), - listByResourceGroup: ( - subscriptionId: string, - resourceGroupName: string, - options?: DataProductsCatalogsListByResourceGroupOptionalParams, - ) => - listByResourceGroup(context, subscriptionId, resourceGroupName, options), - listBySubscription: ( - subscriptionId: string, - options?: DataProductsCatalogsListBySubscriptionOptionalParams, - ) => listBySubscription(context, subscriptionId, options), - }; -} - -export function getDataProductsCatalogsOperations( - context: NetworkAnalyticsContext, -): DataProductsCatalogsOperations { - return { - ...getDataProductsCatalogs(context), - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts deleted file mode 100644 index fdc341f0f99..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; -import { DataType, DataTypeUpdate, ContainerSaS, ContainerSasToken } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { PollerLike, OperationState } from "@azure/core-lro"; -import { DataTypesCreateOptionalParams, DataTypesGetOptionalParams, DataTypesUpdateOptionalParams, DataTypesDeleteOptionalParams, DataTypesDeleteDataOptionalParams, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesListByDataProductOptionalParams } from "../../models/options.js"; -export interface DataTypesOperations { - create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams) => PollerLike, DataType>; - get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams) => Promise; - update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams) => PollerLike, DataType>; - delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams) => PollerLike, void>; - deleteData: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams) => PollerLike, void>; - generateStorageContainerSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams) => Promise; - listByDataProduct: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams) => PagedAsyncIterableIterator; -} -export declare function getDataTypes(context: NetworkAnalyticsContext): { - create: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, resource: DataType, options?: DataTypesCreateOptionalParams) => PollerLike, DataType>; - get: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesGetOptionalParams) => Promise; - update: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, properties: DataTypeUpdate, options?: DataTypesUpdateOptionalParams) => PollerLike, DataType>; - delete: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, options?: DataTypesDeleteOptionalParams) => PollerLike, void>; - deleteData: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: Record, options?: DataTypesDeleteDataOptionalParams) => PollerLike, void>; - generateStorageContainerSasToken: (subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string, body: ContainerSaS, options?: DataTypesGenerateStorageContainerSasTokenOptionalParams) => Promise; - listByDataProduct: (subscriptionId: string, resourceGroupName: string, dataProductName: string, options?: DataTypesListByDataProductOptionalParams) => PagedAsyncIterableIterator; -}; -export declare function getDataTypesOperations(context: NetworkAnalyticsContext): DataTypesOperations; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts.map deleted file mode 100644 index 05a73dc8e71..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EACL,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,6BA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AAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAC5C,gCAAgC,EAAE,CAChC,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,uDAAuD,KAC9D,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChC,iBAAiB,EAAE,CACjB,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,wCAAwC,KAC/C,0BAA0B,CAAC,QAAQ,CAAC,CAAC;CAC3C;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,uBAAuB;6BAGvC,MAAM,qBACH,MAAM,mBACR,MAAM,gBACT,MAAM,YACV,QAAQ,YACR,6BAA6B;0BAYvB,MAAM,qBACH,MAAM,mBACR,MAAM,gBACT,MAAM,YACV,0BAA0B;6BAWpB,MAAM,qBACH,MAAM,mBACR,MAAM,gBACT,MAAM,cACR,cAAc,YAChB,6BAA6B;6BAYvB,MAAM,qBACH,MAAM,mBACR,MAAM,gBACT,MAAM,YACV,6BAA6B;iCAWvB,MAAM,qBACH,MAAM,mBACR,MAAM,gBACT,MAAM,QACd,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YACf,iCAAiC;uDAY3B,MAAM,qBACH,MAAM,mBACR,MAAM,gBACT,MAAM,QACd,YAAY,YACR,uDAAuD;wCAYjD,MAAM,qBACH,MAAM,mBACR,MAAM,YACb,wCAAwC;EAUvD;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,mBAAmB,CAIrB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js deleted file mode 100644 index 4cdc21479c5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { create, get, update, $delete, deleteData, generateStorageContainerSasToken, listByDataProduct, } from "../../api/dataTypes/index.js"; -export function getDataTypes(context) { - return { - create: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options) => create(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, resource, options), - get: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, options) => get(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options), - update: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options) => update(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, properties, options), - delete: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, options) => $delete(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, options), - deleteData: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options) => deleteData(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options), - generateStorageContainerSasToken: (subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options) => generateStorageContainerSasToken(context, subscriptionId, resourceGroupName, dataProductName, dataTypeName, body, options), - listByDataProduct: (subscriptionId, resourceGroupName, dataProductName, options) => listByDataProduct(context, subscriptionId, resourceGroupName, dataProductName, options), - }; -} -export function getDataTypesOperations(context) { - return { - ...getDataTypes(context), - }; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js.map deleted file mode 100644 index e525c90f7a5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,MAAM,EACN,GAAG,EACH,MAAM,EACN,OAAO,EACP,UAAU,EACV,gCAAgC,EAChC,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAoEtC,MAAM,UAAU,YAAY,CAAC,OAAgC;IAC3D,OAAO;QACL,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,QAAkB,EAClB,OAAuC,EACvC,EAAE,CACF,MAAM,CACJ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,OAAO,CACR;QACH,GAAG,EAAE,CACH,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,OAAoC,EACpC,EAAE,CACF,GAAG,CACD,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,OAAO,CACR;QACH,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,UAA0B,EAC1B,OAAuC,EACvC,EAAE,CACF,MAAM,CACJ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,UAAU,EACV,OAAO,CACR;QACH,MAAM,EAAE,CACN,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,OAAuC,EACvC,EAAE,CACF,OAAO,CACL,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,OAAO,CACR;QACH,UAAU,EAAE,CACV,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,IAAyB,EACzB,OAA2C,EAC3C,EAAE,CACF,UAAU,CACR,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,OAAO,CACR;QACH,gCAAgC,EAAE,CAChC,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,IAAkB,EAClB,OAAiE,EACjE,EAAE,CACF,gCAAgC,CAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,OAAO,CACR;QACH,iBAAiB,EAAE,CACjB,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,OAAkD,EAClD,EAAE,CACF,iBAAiB,CACf,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,OAAgC;IAEhC,OAAO;QACL,GAAG,YAAY,CAAC,OAAO,CAAC;KACzB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.ts deleted file mode 100644 index 7a5bed98f51..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/dataTypes/index.ts +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; -import { - DataType, - DataTypeUpdate, - ContainerSaS, - ContainerSasToken, -} from "../../models/models.js"; -import { - create, - get, - update, - $delete, - deleteData, - generateStorageContainerSasToken, - listByDataProduct, -} from "../../api/dataTypes/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { PollerLike, OperationState } from "@azure/core-lro"; -import { - DataTypesCreateOptionalParams, - DataTypesGetOptionalParams, - DataTypesUpdateOptionalParams, - DataTypesDeleteOptionalParams, - DataTypesDeleteDataOptionalParams, - DataTypesGenerateStorageContainerSasTokenOptionalParams, - DataTypesListByDataProductOptionalParams, -} from "../../models/options.js"; - -export interface DataTypesOperations { - create: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - resource: DataType, - options?: DataTypesCreateOptionalParams, - ) => PollerLike, DataType>; - get: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesGetOptionalParams, - ) => Promise; - update: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - properties: DataTypeUpdate, - options?: DataTypesUpdateOptionalParams, - ) => PollerLike, DataType>; - delete: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesDeleteOptionalParams, - ) => PollerLike, void>; - deleteData: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: Record, - options?: DataTypesDeleteDataOptionalParams, - ) => PollerLike, void>; - generateStorageContainerSasToken: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: ContainerSaS, - options?: DataTypesGenerateStorageContainerSasTokenOptionalParams, - ) => Promise; - listByDataProduct: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options?: DataTypesListByDataProductOptionalParams, - ) => PagedAsyncIterableIterator; -} - -export function getDataTypes(context: NetworkAnalyticsContext) { - return { - create: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - resource: DataType, - options?: DataTypesCreateOptionalParams, - ) => - create( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - resource, - options, - ), - get: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesGetOptionalParams, - ) => - get( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - options, - ), - update: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - properties: DataTypeUpdate, - options?: DataTypesUpdateOptionalParams, - ) => - update( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - properties, - options, - ), - delete: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - options?: DataTypesDeleteOptionalParams, - ) => - $delete( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - options, - ), - deleteData: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: Record, - options?: DataTypesDeleteDataOptionalParams, - ) => - deleteData( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - body, - options, - ), - generateStorageContainerSasToken: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - body: ContainerSaS, - options?: DataTypesGenerateStorageContainerSasTokenOptionalParams, - ) => - generateStorageContainerSasToken( - context, - subscriptionId, - resourceGroupName, - dataProductName, - dataTypeName, - body, - options, - ), - listByDataProduct: ( - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - options?: DataTypesListByDataProductOptionalParams, - ) => - listByDataProduct( - context, - subscriptionId, - resourceGroupName, - dataProductName, - options, - ), - }; -} - -export function getDataTypesOperations( - context: NetworkAnalyticsContext, -): DataTypesOperations { - return { - ...getDataTypes(context), - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts deleted file mode 100644 index f9cd341826b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { DataProductsOperations } from "./dataProducts/index.js"; -export { DataProductsCatalogsOperations } from "./dataProductsCatalogs/index.js"; -export { DataTypesOperations } from "./dataTypes/index.js"; -export { OperationsOperations } from "./operations/index.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts.map deleted file mode 100644 index 35e891fe6a4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js deleted file mode 100644 index f24ddb28ec4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js.map deleted file mode 100644 index cc9128b8ecc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.ts deleted file mode 100644 index c3085aa6f3a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -export { DataProductsOperations } from "./dataProducts/index.js"; -export { DataProductsCatalogsOperations } from "./dataProductsCatalogs/index.js"; -export { DataTypesOperations } from "./dataTypes/index.js"; -export { OperationsOperations } from "./operations/index.js"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts deleted file mode 100644 index 003c5840f1a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; -import { Operation } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { OperationsListOptionalParams } from "../../models/options.js"; -export interface OperationsOperations { - list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; -} -export declare function getOperations(context: NetworkAnalyticsContext): { - list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; -}; -export declare function getOperationsOperations(context: NetworkAnalyticsContext): OperationsOperations; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts.map deleted file mode 100644 index ed908a9c8a9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,CACJ,OAAO,CAAC,EAAE,4BAA4B,KACnC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC5C;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,uBAAuB;qBAEzC,4BAA4B;EAEhD;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,uBAAuB,GAC/B,oBAAoB,CAItB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js deleted file mode 100644 index 61237580d5e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { list } from "../../api/operations/index.js"; -export function getOperations(context) { - return { - list: (options) => list(context, options), - }; -} -export function getOperationsOperations(context) { - return { - ...getOperations(context), - }; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js.map deleted file mode 100644 index 82caada12cf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,aAAa,CAAC,OAAgC;IAC5D,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,OAAgC;IAEhC,OAAO;QACL,GAAG,aAAa,CAAC,OAAO,CAAC;KAC1B,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.ts deleted file mode 100644 index 2ea697a9d67..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/classic/operations/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { NetworkAnalyticsContext } from "../../api/networkAnalyticsContext.js"; -import { Operation } from "../../models/models.js"; -import { list } from "../../api/operations/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { OperationsListOptionalParams } from "../../models/options.js"; - -export interface OperationsOperations { - list: ( - options?: OperationsListOptionalParams, - ) => PagedAsyncIterableIterator; -} - -export function getOperations(context: NetworkAnalyticsContext) { - return { - list: (options?: OperationsListOptionalParams) => list(context, options), - }; -} - -export function getOperationsOperations( - context: NetworkAnalyticsContext, -): OperationsOperations { - return { - ...getOperations(context), - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts deleted file mode 100644 index 5e6832eb6ef..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { NetworkAnalyticsClient, NetworkAnalyticsClientOptions, } from "./networkAnalyticsClient.js"; -export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; -export { Resource, SystemData, CreatedByType, TrackedResource, DataProduct, DataProductProperties, ProvisioningState, ControlState, EncryptionKeyDetails, DataProductNetworkAcls, VirtualNetworkRule, IPRules, DefaultAction, ManagedResourceGroupConfiguration, ConsumptionEndpointsProperties, ManagedServiceIdentity, ManagedServiceIdentityType, UserAssignedIdentity, UserAssignedIdentities, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, DataProductUpdate, DataProductUpdateProperties, ArmOperationStatus, ResourceProvisioningState, AccountSas, AccountSasToken, KeyVaultInfo, RoleAssignmentCommonProperties, DataProductUserRole, RoleAssignmentDetail, ListRoleAssignments, DataProductListResult, ProxyResource, DataType, DataTypeProperties, DataTypeState, DataTypeUpdate, DataTypeUpdateProperties, ContainerSaS, ContainerSasToken, DataTypeListResult, DataProductsCatalog, DataProductsCatalogProperties, PublisherInformation, DataProductInformation, DataProductVersion, DataProductsCatalogListResult, PagedOperation, Operation, OperationDisplay, Origin, ActionType, Versions, OperationsListOptionalParams, DataProductsCatalogsGetOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsListBySubscriptionOptionalParams, DataTypesCreateOptionalParams, DataTypesGetOptionalParams, DataTypesUpdateOptionalParams, DataTypesDeleteOptionalParams, DataTypesDeleteDataOptionalParams, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesListByDataProductOptionalParams, DataProductsCreateOptionalParams, DataProductsGetOptionalParams, DataProductsUpdateOptionalParams, DataProductsDeleteOptionalParams, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsRotateKeyOptionalParams, DataProductsAddUserRoleOptionalParams, DataProductsRemoveUserRoleOptionalParams, DataProductsListRolesAssignmentsOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsListBySubscriptionOptionalParams, PageSettings, ContinuablePage, PagedAsyncIterableIterator, } from "./models/index.js"; -export { DataProductsOperations, DataProductsCatalogsOperations, DataTypesOperations, OperationsOperations, } from "./classic/index.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts.map deleted file mode 100644 index 3c01338a43c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,OAAO,EACP,aAAa,EACb,iCAAiC,EACjC,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,4BAA4B,EAC5B,qCAAqC,EACrC,qDAAqD,EACrD,oDAAoD,EACpD,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,uDAAuD,EACvD,wCAAwC,EACxC,gCAAgC,EAChC,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,wDAAwD,EACxD,mCAAmC,EACnC,qCAAqC,EACrC,wCAAwC,EACxC,8CAA8C,EAC9C,6CAA6C,EAC7C,4CAA4C,EAC5C,YAAY,EACZ,eAAe,EACf,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js deleted file mode 100644 index cc4bab0020e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export { NetworkAnalyticsClient, } from "./networkAnalyticsClient.js"; -export { restorePoller } from "./restorePollerHelpers.js"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js.map deleted file mode 100644 index 14ef5812bd0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sBAAsB,GAEvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAwB,MAAM,2BAA2B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.ts deleted file mode 100644 index 582a7364da6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/index.ts +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -export { - NetworkAnalyticsClient, - NetworkAnalyticsClientOptions, -} from "./networkAnalyticsClient.js"; -export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; -export { - Resource, - SystemData, - CreatedByType, - TrackedResource, - DataProduct, - DataProductProperties, - ProvisioningState, - ControlState, - EncryptionKeyDetails, - DataProductNetworkAcls, - VirtualNetworkRule, - IPRules, - DefaultAction, - ManagedResourceGroupConfiguration, - ConsumptionEndpointsProperties, - ManagedServiceIdentity, - ManagedServiceIdentityType, - UserAssignedIdentity, - UserAssignedIdentities, - ErrorResponse, - ErrorDetail, - ErrorAdditionalInfo, - DataProductUpdate, - DataProductUpdateProperties, - ArmOperationStatus, - ResourceProvisioningState, - AccountSas, - AccountSasToken, - KeyVaultInfo, - RoleAssignmentCommonProperties, - DataProductUserRole, - RoleAssignmentDetail, - ListRoleAssignments, - DataProductListResult, - ProxyResource, - DataType, - DataTypeProperties, - DataTypeState, - DataTypeUpdate, - DataTypeUpdateProperties, - ContainerSaS, - ContainerSasToken, - DataTypeListResult, - DataProductsCatalog, - DataProductsCatalogProperties, - PublisherInformation, - DataProductInformation, - DataProductVersion, - DataProductsCatalogListResult, - PagedOperation, - Operation, - OperationDisplay, - Origin, - ActionType, - Versions, - OperationsListOptionalParams, - DataProductsCatalogsGetOptionalParams, - DataProductsCatalogsListByResourceGroupOptionalParams, - DataProductsCatalogsListBySubscriptionOptionalParams, - DataTypesCreateOptionalParams, - DataTypesGetOptionalParams, - DataTypesUpdateOptionalParams, - DataTypesDeleteOptionalParams, - DataTypesDeleteDataOptionalParams, - DataTypesGenerateStorageContainerSasTokenOptionalParams, - DataTypesListByDataProductOptionalParams, - DataProductsCreateOptionalParams, - DataProductsGetOptionalParams, - DataProductsUpdateOptionalParams, - DataProductsDeleteOptionalParams, - DataProductsGenerateStorageAccountSasTokenOptionalParams, - DataProductsRotateKeyOptionalParams, - DataProductsAddUserRoleOptionalParams, - DataProductsRemoveUserRoleOptionalParams, - DataProductsListRolesAssignmentsOptionalParams, - DataProductsListByResourceGroupOptionalParams, - DataProductsListBySubscriptionOptionalParams, - PageSettings, - ContinuablePage, - PagedAsyncIterableIterator, -} from "./models/index.js"; -export { - DataProductsOperations, - DataProductsCatalogsOperations, - DataTypesOperations, - OperationsOperations, -} from "./classic/index.js"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts deleted file mode 100644 index 66ece8e69dd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const logger: any; -//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts.map deleted file mode 100644 index 99272a543b1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,KAA6C,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js deleted file mode 100644 index 7e939bf5277..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { createClientLogger } from "@azure/logger"; -export const logger = createClientLogger("arm-networkanalytics"); -//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js.map deleted file mode 100644 index c3ee896dfb4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.js","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.ts deleted file mode 100644 index 409e00e83f7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/logger.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { createClientLogger } from "@azure/logger"; -export const logger = createClientLogger("arm-networkanalytics"); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts deleted file mode 100644 index 11275b61c53..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { Resource, SystemData, CreatedByType, TrackedResource, DataProduct, DataProductProperties, ProvisioningState, ControlState, EncryptionKeyDetails, DataProductNetworkAcls, VirtualNetworkRule, IPRules, DefaultAction, ManagedResourceGroupConfiguration, ConsumptionEndpointsProperties, ManagedServiceIdentity, ManagedServiceIdentityType, UserAssignedIdentity, UserAssignedIdentities, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, DataProductUpdate, DataProductUpdateProperties, ArmOperationStatus, ResourceProvisioningState, AccountSas, AccountSasToken, KeyVaultInfo, RoleAssignmentCommonProperties, DataProductUserRole, RoleAssignmentDetail, ListRoleAssignments, DataProductListResult, ProxyResource, DataType, DataTypeProperties, DataTypeState, DataTypeUpdate, DataTypeUpdateProperties, ContainerSaS, ContainerSasToken, DataTypeListResult, DataProductsCatalog, DataProductsCatalogProperties, PublisherInformation, DataProductInformation, DataProductVersion, DataProductsCatalogListResult, PagedOperation, Operation, OperationDisplay, Origin, ActionType, Versions, } from "./models.js"; -export { OperationsListOptionalParams, DataProductsCatalogsGetOptionalParams, DataProductsCatalogsListByResourceGroupOptionalParams, DataProductsCatalogsListBySubscriptionOptionalParams, DataTypesCreateOptionalParams, DataTypesGetOptionalParams, DataTypesUpdateOptionalParams, DataTypesDeleteOptionalParams, DataTypesDeleteDataOptionalParams, DataTypesGenerateStorageContainerSasTokenOptionalParams, DataTypesListByDataProductOptionalParams, DataProductsCreateOptionalParams, DataProductsGetOptionalParams, DataProductsUpdateOptionalParams, DataProductsDeleteOptionalParams, DataProductsGenerateStorageAccountSasTokenOptionalParams, DataProductsRotateKeyOptionalParams, DataProductsAddUserRoleOptionalParams, DataProductsRemoveUserRoleOptionalParams, DataProductsListRolesAssignmentsOptionalParams, DataProductsListByResourceGroupOptionalParams, DataProductsListBySubscriptionOptionalParams, } from "./options.js"; -export { PageSettings, ContinuablePage, PagedAsyncIterableIterator, } from "./pagingTypes.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts.map deleted file mode 100644 index 32ad0ed7c46..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,OAAO,EACP,aAAa,EACb,iCAAiC,EACjC,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,QAAQ,GACT,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EACrC,qDAAqD,EACrD,oDAAoD,EACpD,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,uDAAuD,EACvD,wCAAwC,EACxC,gCAAgC,EAChC,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,wDAAwD,EACxD,mCAAmC,EACnC,qCAAqC,EACrC,wCAAwC,EACxC,8CAA8C,EAC9C,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,YAAY,EACZ,eAAe,EACf,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js deleted file mode 100644 index f24ddb28ec4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js.map deleted file mode 100644 index cc9128b8ecc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.ts deleted file mode 100644 index 55b6b705ea9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/index.ts +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -export { - Resource, - SystemData, - CreatedByType, - TrackedResource, - DataProduct, - DataProductProperties, - ProvisioningState, - ControlState, - EncryptionKeyDetails, - DataProductNetworkAcls, - VirtualNetworkRule, - IPRules, - DefaultAction, - ManagedResourceGroupConfiguration, - ConsumptionEndpointsProperties, - ManagedServiceIdentity, - ManagedServiceIdentityType, - UserAssignedIdentity, - UserAssignedIdentities, - ErrorResponse, - ErrorDetail, - ErrorAdditionalInfo, - DataProductUpdate, - DataProductUpdateProperties, - ArmOperationStatus, - ResourceProvisioningState, - AccountSas, - AccountSasToken, - KeyVaultInfo, - RoleAssignmentCommonProperties, - DataProductUserRole, - RoleAssignmentDetail, - ListRoleAssignments, - DataProductListResult, - ProxyResource, - DataType, - DataTypeProperties, - DataTypeState, - DataTypeUpdate, - DataTypeUpdateProperties, - ContainerSaS, - ContainerSasToken, - DataTypeListResult, - DataProductsCatalog, - DataProductsCatalogProperties, - PublisherInformation, - DataProductInformation, - DataProductVersion, - DataProductsCatalogListResult, - PagedOperation, - Operation, - OperationDisplay, - Origin, - ActionType, - Versions, -} from "./models.js"; -export { - OperationsListOptionalParams, - DataProductsCatalogsGetOptionalParams, - DataProductsCatalogsListByResourceGroupOptionalParams, - DataProductsCatalogsListBySubscriptionOptionalParams, - DataTypesCreateOptionalParams, - DataTypesGetOptionalParams, - DataTypesUpdateOptionalParams, - DataTypesDeleteOptionalParams, - DataTypesDeleteDataOptionalParams, - DataTypesGenerateStorageContainerSasTokenOptionalParams, - DataTypesListByDataProductOptionalParams, - DataProductsCreateOptionalParams, - DataProductsGetOptionalParams, - DataProductsUpdateOptionalParams, - DataProductsDeleteOptionalParams, - DataProductsGenerateStorageAccountSasTokenOptionalParams, - DataProductsRotateKeyOptionalParams, - DataProductsAddUserRoleOptionalParams, - DataProductsRemoveUserRoleOptionalParams, - DataProductsListRolesAssignmentsOptionalParams, - DataProductsListByResourceGroupOptionalParams, - DataProductsListBySubscriptionOptionalParams, -} from "./options.js"; -export { - PageSettings, - ContinuablePage, - PagedAsyncIterableIterator, -} from "./pagingTypes.js"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts deleted file mode 100644 index 12fb0e2b925..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts +++ /dev/null @@ -1,454 +0,0 @@ -/** Common properties for all Azure Resource Manager resources. */ -export interface Resource { - /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - readonly id?: string; - /** The name of the resource */ - readonly name?: string; - /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - readonly type?: string; - /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - readonly systemData?: SystemData; -} -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - readonly createdBy?: string; - /** The type of identity that created the resource. */ - readonly createdByType?: CreatedByType; - /** The type of identity that created the resource. */ - readonly createdAt?: Date; - /** The identity that last modified the resource. */ - readonly lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - readonly lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - readonly lastModifiedAt?: Date; -} -/** The kind of entity that created the resource. */ -/** "User", "Application", "ManagedIdentity", "Key" */ -export type CreatedByType = string; -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** The geo-location where the resource lives */ - location: string; - /** Resource tags. */ - tags?: Record; -} -/** The data product resource. */ -export interface DataProduct extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} -/** The data product properties. */ -export interface DataProductProperties { - /** The resource GUID property of the data product resource. */ - readonly resourceGuid?: string; - /** Latest provisioning state of data product. */ - readonly provisioningState?: ProvisioningState; - /** Data product publisher name. */ - publisher: string; - /** Product name of data product. */ - product: string; - /** Major version of data product. */ - majorVersion: string; - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Flag to enable or disable redundancy for data product. */ - redundancy?: ControlState; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Flag to enable or disable public access of data product resource. */ - publicNetworkAccess?: ControlState; - /** Flag to enable customer managed key encryption for data product. */ - customerManagedKeyEncryptionEnabled?: ControlState; - /** Customer managed encryption key details for data product. */ - customerEncryptionKey?: EncryptionKeyDetails; - /** Network rule set for data product. */ - networkacls?: DataProductNetworkAcls; - /** Managed resource group configuration. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - /** List of available minor versions of the data product resource. */ - readonly availableMinorVersions?: string[]; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; - /** Documentation link for the data product based on definition file. */ - readonly documentation?: string; - /** Resource links which exposed to the customer to query the data. */ - readonly consumptionEndpoints?: ConsumptionEndpointsProperties; - /** Key vault url. */ - readonly keyVaultUrl?: string; -} -/** The status of the current operation. */ -/** "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted" */ -export type ProvisioningState = string; -/** The data type state */ -/** "Enabled", "Disabled" */ -export type ControlState = string; -/** Encryption key details. */ -export interface EncryptionKeyDetails { - /** The Uri of the key vault. */ - keyVaultUri: string; - /** The name of the key vault key. */ - keyName: string; - /** The version of the key vault key. */ - keyVersion: string; -} -/** Data Product Network rule set */ -export interface DataProductNetworkAcls { - /** Virtual Network Rule */ - virtualNetworkRule: VirtualNetworkRule[]; - /** IP rule with specific IP or IP range in CIDR format. */ - ipRules: IPRules[]; - /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ - allowedQueryIpRangeList: string[]; - /** Default Action */ - defaultAction: DefaultAction; -} -/** Virtual Network Rule */ -export interface VirtualNetworkRule { - /** Resource ID of a subnet */ - id: string; - /** The action of virtual network rule. */ - action?: string; - /** Gets the state of virtual network rule. */ - state?: string; -} -/** IP rule with specific IP or IP range in CIDR format. */ -export interface IPRules { - /** IP Rules Value */ - value?: string; - /** The action of virtual network rule. */ - action: string; -} -/** Specifies the default action of allow or deny when no other rules match. */ -/** "Allow", "Deny" */ -export type DefaultAction = string; -/** ManagedResourceGroup related properties */ -export interface ManagedResourceGroupConfiguration { - /** Name of managed resource group */ - name: string; - /** Managed Resource Group location */ - location: string; -} -/** Details of Consumption Properties */ -export interface ConsumptionEndpointsProperties { - /** Ingestion url to upload the data. */ - readonly ingestionUrl?: string; - /** Resource Id of ingestion endpoint. */ - readonly ingestionResourceId?: string; - /** Url to consume file type. */ - readonly fileAccessUrl?: string; - /** Resource Id of file access endpoint. */ - readonly fileAccessResourceId?: string; - /** Url to consume the processed data. */ - readonly queryUrl?: string; - /** Resource Id of query endpoint. */ - readonly queryResourceId?: string; -} -/** The properties of the managed service identities assigned to this resource. */ -export interface ManagedServiceIdentity { - /** The Active Directory tenant id of the principal. */ - readonly tenantId?: string; - /** The active directory identifier of this principal. */ - readonly principalId?: string; - /** The type of managed identity assigned to this resource. */ - type: ManagedServiceIdentityType; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: UserAssignedIdentities; -} -/** The kind of managed identity assigned to this resource. */ -/** "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" */ -export type ManagedServiceIdentityType = string; -/** A managed identity assigned by the user. */ -export interface UserAssignedIdentity { - /** The active directory client identifier for this principal. */ - clientId?: string; - /** The active directory identifier for this principal. */ - principalId?: string; -} -/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ -export interface UserAssignedIdentities extends Record { -} -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} -/** The error detail. */ -export interface ErrorDetail { - /** The error code. */ - readonly code?: string; - /** The error message. */ - readonly message?: string; - /** The error target. */ - readonly target?: string; - /** The error details. */ - readonly details?: ErrorDetail[]; - /** The error additional info. */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** The additional info type. */ - readonly type?: string; - /** The additional info. */ - readonly info?: Record; -} -/** The type used for update operations of the DataProduct. */ -export interface DataProductUpdate { - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; - /** Resource tags. */ - tags?: Record; - properties?: DataProductUpdateProperties; -} -/** The updatable properties of the DataProduct. */ -export interface DataProductUpdateProperties { - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; -} -/** Standard Azure Resource Manager operation status response */ -export interface ArmOperationStatus { - /** The operation status */ - status: ResourceProvisioningState; - /** The name of the operationStatus resource */ - readonly name?: string; - /** Operation start time */ - readonly startTime?: Date; - /** Operation complete time */ - readonly endTime?: Date; - /** The progress made toward completing the operation */ - readonly percentComplete?: number; - /** Errors that occurred if the operation ended with Canceled or Failed status */ - readonly error?: ErrorDetail; -} -/** The provisioning state of a resource type. */ -/** "Succeeded", "Failed", "Canceled" */ -export type ResourceProvisioningState = string; -/** The details for storage account sas creation. */ -export interface AccountSas { - /** Sas token start timestamp. */ - startTimeStamp: Date; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date; - /** Ip Address */ - ipAddress: string; -} -/** Details of storage account sas token . */ -export interface AccountSasToken { - /** Field to specify storage account sas token. */ - storageAccountSasToken: string; -} -/** Details for KeyVault. */ -export interface KeyVaultInfo { - /** key vault url. */ - keyVaultUrl: string; -} -/** The details for role assignment common properties. */ -export interface RoleAssignmentCommonProperties { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; -} -/** The data type state */ -/** "Reader", "SensitiveReader" */ -export type DataProductUserRole = string; -/** The details for role assignment response. */ -export interface RoleAssignmentDetail { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; - /** Id of role assignment request */ - roleAssignmentId: string; -} -/** list role assignments. */ -export interface ListRoleAssignments { - /** Count of role assignments. */ - count: number; - /** list of role assignments */ - roleAssignmentResponse: RoleAssignmentDetail[]; -} -/** The response of a DataProduct list operation. */ -export interface DataProductListResult { - /** The DataProduct items on this page */ - value: DataProduct[]; - /** The link to the next page of items */ - nextLink?: string; -} -/** The base proxy resource. */ -export interface ProxyResource extends Resource { -} -/** The data type resource. */ -export interface DataType extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataTypeProperties; -} -/** The data type properties */ -export interface DataTypeProperties { - /** Latest provisioning state of data product. */ - readonly provisioningState?: ProvisioningState; - /** State of data type. */ - state?: DataTypeState; - /** Reason for the state of data type. */ - readonly stateReason?: string; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; - /** Url for data visualization. */ - readonly visualizationUrl?: string; -} -/** The data type state */ -/** "Stopped", "Running" */ -export type DataTypeState = string; -/** The type used for update operations of the DataType. */ -export interface DataTypeUpdate { - properties?: DataTypeUpdateProperties; -} -/** The updatable properties of the DataType. */ -export interface DataTypeUpdateProperties { - /** State of data type. */ - state?: DataTypeState; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; -} -/** The details for container sas creation. */ -export interface ContainerSaS { - /** Sas token start timestamp. */ - startTimeStamp: Date; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date; - /** Ip Address */ - ipAddress: string; -} -/** Details of storage container account sas token . */ -export interface ContainerSasToken { - /** Field to specify storage container sas token. */ - storageContainerSasToken: string; -} -/** The response of a DataType list operation. */ -export interface DataTypeListResult { - /** The DataType items on this page */ - value: DataType[]; - /** The link to the next page of items */ - nextLink?: string; -} -/** The data catalog resource. */ -export interface DataProductsCatalog extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductsCatalogProperties; -} -/** Details for data catalog properties. */ -export interface DataProductsCatalogProperties { - /** The data catalog provisioning state. */ - readonly provisioningState?: ProvisioningState; - /** The data product publisher information. */ - publishers: PublisherInformation[]; -} -/** Details for Publisher Information. */ -export interface PublisherInformation { - /** Name of the publisher. */ - publisherName: string; - /** Data product information. */ - dataProducts: DataProductInformation[]; -} -/** Data Product Information */ -export interface DataProductInformation { - /** Name of data product. */ - dataProductName: string; - /** Description about data product. */ - description: string; - /** Version information of data product. */ - dataProductVersions: DataProductVersion[]; -} -/** Data Product Version. */ -export interface DataProductVersion { - /** Version of data product */ - version: string; -} -/** The response of a DataProductsCatalog list operation. */ -export interface DataProductsCatalogListResult { - /** The DataProductsCatalog items on this page */ - value: DataProductsCatalog[]; - /** The link to the next page of items */ - nextLink?: string; -} -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface PagedOperation { - /** The Operation items on this page */ - value: Operation[]; - /** The link to the next page of items */ - nextLink?: string; -} -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ - readonly name?: string; - /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; - /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ - readonly origin?: Origin; - /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ - actionType?: ActionType; -} -/** Localized display information for and operation. */ -export interface OperationDisplay { - /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ - provider?: string; - /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ - resource?: string; - /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ - operation?: string; - /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ - description?: string; -} -/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ -/** "user", "system", "user,system" */ -export type Origin = string; -/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ -/** "Internal" */ -export type ActionType = string; -/** The available API versions for the Microsoft.NetworkAnalytics RP. */ -/** */ -export type Versions = "2023-11-15"; -//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts.map deleted file mode 100644 index 108cd8f61bc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAGA,kEAAkE;AAClE,MAAM,WAAW,QAAQ;IACvB,gMAAgM;IAChM,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,gHAAgH;IAChH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,uFAAuF;IACvF,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;CAClC;AAED,6EAA6E;AAC7E,MAAM,WAAW,UAAU;IACzB,8CAA8C;IAC9C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,sDAAsD;IACtD,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IACvC,sDAAsD;IACtD,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC1B,oDAAoD;IACpD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,4DAA4D;IAC5D,QAAQ,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC;IAC5C,wDAAwD;IACxD,QAAQ,CAAC,cAAc,CAAC,E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AM,CAAC;IAClB,yIAAyI;IACzI,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0JAA0J;IAC1J,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6GAA6G;IAC7G,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,2IAA2I;AAC3I,sCAAsC;AACtC,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAC5B,gHAAgH;AAChH,iBAAiB;AACjB,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,wEAAwE;AACxE,MAAM;AACN,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js deleted file mode 100644 index 63155a9f043..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js.map deleted file mode 100644 index f38b51ae9e8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"models.js","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.ts deleted file mode 100644 index 5af6ebdf459..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/models.ts +++ /dev/null @@ -1,506 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** Common properties for all Azure Resource Manager resources. */ -export interface Resource { - /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - readonly id?: string; - /** The name of the resource */ - readonly name?: string; - /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - readonly type?: string; - /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - readonly createdBy?: string; - /** The type of identity that created the resource. */ - readonly createdByType?: CreatedByType; - /** The type of identity that created the resource. */ - readonly createdAt?: Date; - /** The identity that last modified the resource. */ - readonly lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - readonly lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - readonly lastModifiedAt?: Date; -} - -/** The kind of entity that created the resource. */ -/** "User", "Application", "ManagedIdentity", "Key" */ -export type CreatedByType = string; - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** The geo-location where the resource lives */ - location: string; - /** Resource tags. */ - tags?: Record; -} - -/** The data product resource. */ -export interface DataProduct extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} - -/** The data product properties. */ -export interface DataProductProperties { - /** The resource GUID property of the data product resource. */ - readonly resourceGuid?: string; - /** Latest provisioning state of data product. */ - readonly provisioningState?: ProvisioningState; - /** Data product publisher name. */ - publisher: string; - /** Product name of data product. */ - product: string; - /** Major version of data product. */ - majorVersion: string; - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Flag to enable or disable redundancy for data product. */ - redundancy?: ControlState; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Flag to enable or disable public access of data product resource. */ - publicNetworkAccess?: ControlState; - /** Flag to enable customer managed key encryption for data product. */ - customerManagedKeyEncryptionEnabled?: ControlState; - /** Customer managed encryption key details for data product. */ - customerEncryptionKey?: EncryptionKeyDetails; - /** Network rule set for data product. */ - networkacls?: DataProductNetworkAcls; - /** Managed resource group configuration. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - /** List of available minor versions of the data product resource. */ - readonly availableMinorVersions?: string[]; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; - /** Documentation link for the data product based on definition file. */ - readonly documentation?: string; - /** Resource links which exposed to the customer to query the data. */ - readonly consumptionEndpoints?: ConsumptionEndpointsProperties; - /** Key vault url. */ - readonly keyVaultUrl?: string; -} - -/** The status of the current operation. */ -/** "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted" */ -export type ProvisioningState = string; -/** The data type state */ -/** "Enabled", "Disabled" */ -export type ControlState = string; - -/** Encryption key details. */ -export interface EncryptionKeyDetails { - /** The Uri of the key vault. */ - keyVaultUri: string; - /** The name of the key vault key. */ - keyName: string; - /** The version of the key vault key. */ - keyVersion: string; -} - -/** Data Product Network rule set */ -export interface DataProductNetworkAcls { - /** Virtual Network Rule */ - virtualNetworkRule: VirtualNetworkRule[]; - /** IP rule with specific IP or IP range in CIDR format. */ - ipRules: IPRules[]; - /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ - allowedQueryIpRangeList: string[]; - /** Default Action */ - defaultAction: DefaultAction; -} - -/** Virtual Network Rule */ -export interface VirtualNetworkRule { - /** Resource ID of a subnet */ - id: string; - /** The action of virtual network rule. */ - action?: string; - /** Gets the state of virtual network rule. */ - state?: string; -} - -/** IP rule with specific IP or IP range in CIDR format. */ -export interface IPRules { - /** IP Rules Value */ - value?: string; - /** The action of virtual network rule. */ - action: string; -} - -/** Specifies the default action of allow or deny when no other rules match. */ -/** "Allow", "Deny" */ -export type DefaultAction = string; - -/** ManagedResourceGroup related properties */ -export interface ManagedResourceGroupConfiguration { - /** Name of managed resource group */ - name: string; - /** Managed Resource Group location */ - location: string; -} - -/** Details of Consumption Properties */ -export interface ConsumptionEndpointsProperties { - /** Ingestion url to upload the data. */ - readonly ingestionUrl?: string; - /** Resource Id of ingestion endpoint. */ - readonly ingestionResourceId?: string; - /** Url to consume file type. */ - readonly fileAccessUrl?: string; - /** Resource Id of file access endpoint. */ - readonly fileAccessResourceId?: string; - /** Url to consume the processed data. */ - readonly queryUrl?: string; - /** Resource Id of query endpoint. */ - readonly queryResourceId?: string; -} - -/** The properties of the managed service identities assigned to this resource. */ -export interface ManagedServiceIdentity { - /** The Active Directory tenant id of the principal. */ - readonly tenantId?: string; - /** The active directory identifier of this principal. */ - readonly principalId?: string; - /** The type of managed identity assigned to this resource. */ - type: ManagedServiceIdentityType; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: UserAssignedIdentities; -} - -/** The kind of managed identity assigned to this resource. */ -/** "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" */ -export type ManagedServiceIdentityType = string; - -/** A managed identity assigned by the user. */ -export interface UserAssignedIdentity { - /** The active directory client identifier for this principal. */ - clientId?: string; - /** The active directory identifier for this principal. */ - principalId?: string; -} - -/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ -export interface UserAssignedIdentities - extends Record {} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** The error code. */ - readonly code?: string; - /** The error message. */ - readonly message?: string; - /** The error target. */ - readonly target?: string; - /** The error details. */ - readonly details?: ErrorDetail[]; - /** The error additional info. */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** The additional info type. */ - readonly type?: string; - /** The additional info. */ - readonly info?: Record; -} - -/** The type used for update operations of the DataProduct. */ -export interface DataProductUpdate { - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; - /** Resource tags. */ - tags?: Record; - properties?: DataProductUpdateProperties; -} - -/** The updatable properties of the DataProduct. */ -export interface DataProductUpdateProperties { - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; -} - -/** Standard Azure Resource Manager operation status response */ -export interface ArmOperationStatus { - /** The operation status */ - status: ResourceProvisioningState; - /** The name of the operationStatus resource */ - readonly name?: string; - /** Operation start time */ - readonly startTime?: Date; - /** Operation complete time */ - readonly endTime?: Date; - /** The progress made toward completing the operation */ - readonly percentComplete?: number; - /** Errors that occurred if the operation ended with Canceled or Failed status */ - readonly error?: ErrorDetail; -} - -/** The provisioning state of a resource type. */ -/** "Succeeded", "Failed", "Canceled" */ -export type ResourceProvisioningState = string; - -/** The details for storage account sas creation. */ -export interface AccountSas { - /** Sas token start timestamp. */ - startTimeStamp: Date; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date; - /** Ip Address */ - ipAddress: string; -} - -/** Details of storage account sas token . */ -export interface AccountSasToken { - /** Field to specify storage account sas token. */ - storageAccountSasToken: string; -} - -/** Details for KeyVault. */ -export interface KeyVaultInfo { - /** key vault url. */ - keyVaultUrl: string; -} - -/** The details for role assignment common properties. */ -export interface RoleAssignmentCommonProperties { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; -} - -/** The data type state */ -/** "Reader", "SensitiveReader" */ -export type DataProductUserRole = string; - -/** The details for role assignment response. */ -export interface RoleAssignmentDetail { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; - /** Id of role assignment request */ - roleAssignmentId: string; -} - -/** list role assignments. */ -export interface ListRoleAssignments { - /** Count of role assignments. */ - count: number; - /** list of role assignments */ - roleAssignmentResponse: RoleAssignmentDetail[]; -} - -/** The response of a DataProduct list operation. */ -export interface DataProductListResult { - /** The DataProduct items on this page */ - value: DataProduct[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** The base proxy resource. */ -export interface ProxyResource extends Resource {} - -/** The data type resource. */ -export interface DataType extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataTypeProperties; -} - -/** The data type properties */ -export interface DataTypeProperties { - /** Latest provisioning state of data product. */ - readonly provisioningState?: ProvisioningState; - /** State of data type. */ - state?: DataTypeState; - /** Reason for the state of data type. */ - readonly stateReason?: string; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; - /** Url for data visualization. */ - readonly visualizationUrl?: string; -} - -/** The data type state */ -/** "Stopped", "Running" */ -export type DataTypeState = string; - -/** The type used for update operations of the DataType. */ -export interface DataTypeUpdate { - properties?: DataTypeUpdateProperties; -} - -/** The updatable properties of the DataType. */ -export interface DataTypeUpdateProperties { - /** State of data type. */ - state?: DataTypeState; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; -} - -/** The details for container sas creation. */ -export interface ContainerSaS { - /** Sas token start timestamp. */ - startTimeStamp: Date; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date; - /** Ip Address */ - ipAddress: string; -} - -/** Details of storage container account sas token . */ -export interface ContainerSasToken { - /** Field to specify storage container sas token. */ - storageContainerSasToken: string; -} - -/** The response of a DataType list operation. */ -export interface DataTypeListResult { - /** The DataType items on this page */ - value: DataType[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** The data catalog resource. */ -export interface DataProductsCatalog extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductsCatalogProperties; -} - -/** Details for data catalog properties. */ -export interface DataProductsCatalogProperties { - /** The data catalog provisioning state. */ - readonly provisioningState?: ProvisioningState; - /** The data product publisher information. */ - publishers: PublisherInformation[]; -} - -/** Details for Publisher Information. */ -export interface PublisherInformation { - /** Name of the publisher. */ - publisherName: string; - /** Data product information. */ - dataProducts: DataProductInformation[]; -} - -/** Data Product Information */ -export interface DataProductInformation { - /** Name of data product. */ - dataProductName: string; - /** Description about data product. */ - description: string; - /** Version information of data product. */ - dataProductVersions: DataProductVersion[]; -} - -/** Data Product Version. */ -export interface DataProductVersion { - /** Version of data product */ - version: string; -} - -/** The response of a DataProductsCatalog list operation. */ -export interface DataProductsCatalogListResult { - /** The DataProductsCatalog items on this page */ - value: DataProductsCatalog[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface PagedOperation { - /** The Operation items on this page */ - value: Operation[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ - readonly name?: string; - /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; - /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ - readonly origin?: Origin; - /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ - actionType?: ActionType; -} - -/** Localized display information for and operation. */ -export interface OperationDisplay { - /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ - provider?: string; - /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ - resource?: string; - /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ - operation?: string; - /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ - description?: string; -} - -/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ -/** "user", "system", "user,system" */ -export type Origin = string; -/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ -/** "Internal" */ -export type ActionType = string; -/** The available API versions for the Microsoft.NetworkAnalytics RP. */ -/** */ -export type Versions = "2023-11-15"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts deleted file mode 100644 index a50cc9224a1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { OperationOptions } from "@azure-rest/core-client"; -export interface OperationsListOptionalParams extends OperationOptions { -} -export interface DataProductsCatalogsGetOptionalParams extends OperationOptions { -} -export interface DataProductsCatalogsListByResourceGroupOptionalParams extends OperationOptions { -} -export interface DataProductsCatalogsListBySubscriptionOptionalParams extends OperationOptions { -} -export interface DataTypesCreateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} -export interface DataTypesGetOptionalParams extends OperationOptions { -} -export interface DataTypesUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} -export interface DataTypesDeleteOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} -export interface DataTypesDeleteDataOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} -export interface DataTypesGenerateStorageContainerSasTokenOptionalParams extends OperationOptions { -} -export interface DataTypesListByDataProductOptionalParams extends OperationOptions { -} -export interface DataProductsCreateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} -export interface DataProductsGetOptionalParams extends OperationOptions { -} -export interface DataProductsUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} -export interface DataProductsDeleteOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} -export interface DataProductsGenerateStorageAccountSasTokenOptionalParams extends OperationOptions { -} -export interface DataProductsRotateKeyOptionalParams extends OperationOptions { -} -export interface DataProductsAddUserRoleOptionalParams extends OperationOptions { -} -export interface DataProductsRemoveUserRoleOptionalParams extends OperationOptions { -} -export interface DataProductsListRolesAssignmentsOptionalParams extends OperationOptions { -} -export interface DataProductsListByResourceGroupOptionalParams extends OperationOptions { -} -export interface DataProductsListBySubscriptionOptionalParams extends OperationOptions { -} -//# sourceMappingURL=options.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts.map deleted file mode 100644 index a1490b4c2e1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE,MAAM,WAAW,qCACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,qDACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,oDACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;CAAG;AAEvE,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,iCAAkC,SAAQ,gBAAgB;IACzE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,uDACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,wCACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACxE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;CAAG;AAE1E,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACxE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACxE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,wDACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,mCAAoC,SAAQ,gBAAgB;CAAG;AAEhF,MAAM,WAAW,qCACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,wCACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,8CACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,6CACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,4CACf,SAAQ,gBAAgB;CAAG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js deleted file mode 100644 index 8d614ef9cdd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=options.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js.map deleted file mode 100644 index 4e4484b0a85..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"options.js","sourceRoot":"","sources":["options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.ts deleted file mode 100644 index b9822bea3da..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/options.ts +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { OperationOptions } from "@azure-rest/core-client"; - -export interface OperationsListOptionalParams extends OperationOptions {} - -export interface DataProductsCatalogsGetOptionalParams - extends OperationOptions {} - -export interface DataProductsCatalogsListByResourceGroupOptionalParams - extends OperationOptions {} - -export interface DataProductsCatalogsListBySubscriptionOptionalParams - extends OperationOptions {} - -export interface DataTypesCreateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -export interface DataTypesGetOptionalParams extends OperationOptions {} - -export interface DataTypesUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -export interface DataTypesDeleteOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -export interface DataTypesDeleteDataOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -export interface DataTypesGenerateStorageContainerSasTokenOptionalParams - extends OperationOptions {} - -export interface DataTypesListByDataProductOptionalParams - extends OperationOptions {} - -export interface DataProductsCreateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -export interface DataProductsGetOptionalParams extends OperationOptions {} - -export interface DataProductsUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -export interface DataProductsDeleteOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -export interface DataProductsGenerateStorageAccountSasTokenOptionalParams - extends OperationOptions {} - -export interface DataProductsRotateKeyOptionalParams extends OperationOptions {} - -export interface DataProductsAddUserRoleOptionalParams - extends OperationOptions {} - -export interface DataProductsRemoveUserRoleOptionalParams - extends OperationOptions {} - -export interface DataProductsListRolesAssignmentsOptionalParams - extends OperationOptions {} - -export interface DataProductsListByResourceGroupOptionalParams - extends OperationOptions {} - -export interface DataProductsListBySubscriptionOptionalParams - extends OperationOptions {} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts deleted file mode 100644 index 7e2656a3f22..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Options for the byPage method - */ -export interface PageSettings { - /** - * A reference to a specific page to start iterating from. - */ - continuationToken?: string; -} -/** - * An interface that describes a page of results. - */ -export type ContinuablePage = TPage & { - /** - * The token that keeps track of where to continue the iterator - */ - continuationToken?: string; -}; -/** - * An interface that allows async iterable iteration both to completion and by page. - */ -export interface PagedAsyncIterableIterator { - /** - * The next method, part of the iteration protocol - */ - next(): Promise>; - /** - * The connection to the async iterator, part of the iteration protocol - */ - [Symbol.asyncIterator](): PagedAsyncIterableIterator; - /** - * Return an AsyncIterableIterator that works a page at a time - */ - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; -} -/** - * An interface that describes how to communicate with the service. - */ -export interface PagedResult { - /** - * Link to the first page of results. - */ - firstPageLink?: string; - /** - * A method that returns a page of results. - */ - getPage: (pageLink?: string) => Promise<{ - page: TPage; - nextPageLink?: string; - } | undefined>; - /** - * a function to implement the `byPage` method on the paged async iterator. - */ - byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; - /** - * A function to extract elements from a page. - */ - toElements?: (page: TPage) => TElement[]; -} -/** - * Options for the paging helper - */ -export interface BuildPagedAsyncIteratorOptions { - itemName?: string; - nextLinkName?: string; -} -//# sourceMappingURL=pagingTypes.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts.map deleted file mode 100644 index 4dfc54e59e2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pagingTypes.d.ts","sourceRoot":"","sources":["pagingTypes.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IAC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MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js deleted file mode 100644 index 30e0a4c4de7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=pagingTypes.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js.map deleted file mode 100644 index 45b49108fd6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pagingTypes.js","sourceRoot":"","sources":["pagingTypes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.ts deleted file mode 100644 index f734b48e62f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/models/pagingTypes.ts +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** - * Options for the byPage method - */ -export interface PageSettings { - /** - * A reference to a specific page to start iterating from. - */ - continuationToken?: string; -} - -/** - * An interface that describes a page of results. - */ -export type ContinuablePage = TPage & { - /** - * The token that keeps track of where to continue the iterator - */ - continuationToken?: string; -}; - -/** - * An interface that allows async iterable iteration both to completion and by page. - */ -export interface PagedAsyncIterableIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, -> { - /** - * The next method, part of the iteration protocol - */ - next(): Promise>; - /** - * The connection to the async iterator, part of the iteration protocol - */ - [Symbol.asyncIterator](): PagedAsyncIterableIterator< - TElement, - TPage, - TPageSettings - >; - /** - * Return an AsyncIterableIterator that works a page at a time - */ - byPage: ( - settings?: TPageSettings, - ) => AsyncIterableIterator>; -} - -/** - * An interface that describes how to communicate with the service. - */ -export interface PagedResult< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, -> { - /** - * Link to the first page of results. - */ - firstPageLink?: string; - /** - * A method that returns a page of results. - */ - getPage: ( - pageLink?: string, - ) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; - /** - * a function to implement the `byPage` method on the paged async iterator. - */ - byPage?: ( - settings?: TPageSettings, - ) => AsyncIterableIterator>; - - /** - * A function to extract elements from a page. - */ - toElements?: (page: TPage) => TElement[]; -} - -/** - * Options for the paging helper - */ -export interface BuildPagedAsyncIteratorOptions { - itemName?: string; - nextLinkName?: string; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts deleted file mode 100644 index b311cddd45f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { TokenCredential } from "@azure/core-auth"; -import { Pipeline } from "@azure/core-rest-pipeline"; -import { OperationsOperations } from "./classic/operations/index.js"; -import { DataProductsCatalogsOperations } from "./classic/dataProductsCatalogs/index.js"; -import { DataTypesOperations } from "./classic/dataTypes/index.js"; -import { DataProductsOperations } from "./classic/dataProducts/index.js"; -import { NetworkAnalyticsClientOptions } from "./api/index.js"; -export { NetworkAnalyticsClientOptions } from "./api/networkAnalyticsContext.js"; -export declare class NetworkAnalyticsClient { - private _client; - /** The pipeline used by this client to make requests */ - readonly pipeline: Pipeline; - constructor(credential: TokenCredential, options?: NetworkAnalyticsClientOptions); - /** The operation groups for Operations */ - readonly operations: OperationsOperations; - /** The operation groups for DataProductsCatalogs */ - readonly dataProductsCatalogs: DataProductsCatalogsOperations; - /** The operation groups for DataTypes */ - readonly dataTypes: DataTypesOperations; - /** The operation groups for DataProducts */ - readonly dataProducts: DataProductsOperations; -} -//# sourceMappingURL=networkAnalyticsClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts.map deleted file mode 100644 index 2291266930b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkAnalyticsClient.d.ts","sourceRoot":"","sources":["networkAnalyticsClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAEL,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,6BAA6B,EAE9B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAEjF,qBAAa,sBAAsB;IACjC,OAAO,CAAC,OAAO,CAA0B;IACzC,wDAAwD;IACxD,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC;IAU7C,0CAA0C;IAC1C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;IACjD,oDAAoD;IACpD,SAAgB,oBAAoB,EAAE,8BAA8B,CAAC;IACrE,yCAAyC;IACzC,SAAgB,SAAS,EAAE,mBAAmB,CAAC;IAC/C,4CAA4C;IAC5C,SAAgB,YAAY,EAAE,sBAAsB,CAAC;CACtD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js deleted file mode 100644 index 5d4eeb60476..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { getOperationsOperations, } from "./classic/operations/index.js"; -import { getDataProductsCatalogsOperations, } from "./classic/dataProductsCatalogs/index.js"; -import { getDataTypesOperations, } from "./classic/dataTypes/index.js"; -import { getDataProductsOperations, } from "./classic/dataProducts/index.js"; -import { createNetworkAnalytics, } from "./api/index.js"; -export class NetworkAnalyticsClient { - _client; - /** The pipeline used by this client to make requests */ - pipeline; - constructor(credential, options = {}) { - this._client = createNetworkAnalytics(credential, options); - this.pipeline = this._client.pipeline; - this.operations = getOperationsOperations(this._client); - this.dataProductsCatalogs = getDataProductsCatalogsOperations(this._client); - this.dataTypes = getDataTypesOperations(this._client); - this.dataProducts = getDataProductsOperations(this._client); - } - /** The operation groups for Operations */ - operations; - /** The operation groups for DataProductsCatalogs */ - dataProductsCatalogs; - /** The operation groups for DataTypes */ - dataTypes; - /** The operation groups for DataProducts */ - dataProducts; -} -//# sourceMappingURL=networkAnalyticsClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js.map deleted file mode 100644 index 701f74d643d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkAnalyticsClient.js","sourceRoot":"","sources":["networkAnalyticsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,uBAAuB,GAExB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,iCAAiC,GAElC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,sBAAsB,GAEvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,yBAAyB,GAE1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,sBAAsB,GAGvB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,OAAO,sBAAsB;IACzB,OAAO,CAA0B;IACzC,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,YACE,UAA2B,EAC3B,UAAyC,EAAE;QAE3C,IAAI,CAAC,OAAO,GAAG,sBAAsB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,oBAAoB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5E,IAAI,CAAC,SAAS,GAAG,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,IAAI,CAAC,YAAY,GAAG,yBAAyB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,0CAA0C;IAC1B,UAAU,CAAuB;IACjD,oDAAoD;IACpC,oBAAoB,CAAiC;IACrE,yCAAyC;IACzB,SAAS,CAAsB;IAC/C,4CAA4C;IAC5B,YAAY,CAAyB;CACtD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.ts deleted file mode 100644 index d8b59e13404..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/networkAnalyticsClient.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { TokenCredential } from "@azure/core-auth"; -import { Pipeline } from "@azure/core-rest-pipeline"; -import { - getOperationsOperations, - OperationsOperations, -} from "./classic/operations/index.js"; -import { - getDataProductsCatalogsOperations, - DataProductsCatalogsOperations, -} from "./classic/dataProductsCatalogs/index.js"; -import { - getDataTypesOperations, - DataTypesOperations, -} from "./classic/dataTypes/index.js"; -import { - getDataProductsOperations, - DataProductsOperations, -} from "./classic/dataProducts/index.js"; -import { - createNetworkAnalytics, - NetworkAnalyticsClientOptions, - NetworkAnalyticsContext, -} from "./api/index.js"; - -export { NetworkAnalyticsClientOptions } from "./api/networkAnalyticsContext.js"; - -export class NetworkAnalyticsClient { - private _client: NetworkAnalyticsContext; - /** The pipeline used by this client to make requests */ - public readonly pipeline: Pipeline; - - constructor( - credential: TokenCredential, - options: NetworkAnalyticsClientOptions = {}, - ) { - this._client = createNetworkAnalytics(credential, options); - this.pipeline = this._client.pipeline; - this.operations = getOperationsOperations(this._client); - this.dataProductsCatalogs = getDataProductsCatalogsOperations(this._client); - this.dataTypes = getDataTypesOperations(this._client); - this.dataProducts = getDataProductsOperations(this._client); - } - - /** The operation groups for Operations */ - public readonly operations: OperationsOperations; - /** The operation groups for DataProductsCatalogs */ - public readonly dataProductsCatalogs: DataProductsCatalogsOperations; - /** The operation groups for DataTypes */ - public readonly dataTypes: DataTypesOperations; - /** The operation groups for DataProducts */ - public readonly dataProducts: DataProductsOperations; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts deleted file mode 100644 index b191b96ca7b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { OperationsListParameters, DataProductsCatalogsGetParameters, DataProductsCatalogsListByResourceGroupParameters, DataProductsCatalogsListBySubscriptionParameters, DataTypesCreateParameters, DataTypesGetParameters, DataTypesUpdateParameters, DataTypesDeleteParameters, DataTypesDeleteDataParameters, DataTypesGenerateStorageContainerSasTokenParameters, DataTypesListByDataProductParameters, DataProductsCreateParameters, DataProductsGetParameters, DataProductsUpdateParameters, DataProductsDeleteParameters, DataProductsGenerateStorageAccountSasTokenParameters, DataProductsRotateKeyParameters, DataProductsAddUserRoleParameters, DataProductsRemoveUserRoleParameters, DataProductsListRolesAssignmentsParameters, DataProductsListByResourceGroupParameters, DataProductsListBySubscriptionParameters } from "./parameters.js"; -import { OperationsList200Response, OperationsListDefaultResponse, DataProductsCatalogsGet200Response, DataProductsCatalogsGetDefaultResponse, DataProductsCatalogsListByResourceGroup200Response, DataProductsCatalogsListByResourceGroupDefaultResponse, DataProductsCatalogsListBySubscription200Response, DataProductsCatalogsListBySubscriptionDefaultResponse, DataTypesCreate200Response, DataTypesCreate201Response, DataTypesCreateDefaultResponse, DataTypesGet200Response, DataTypesGetDefaultResponse, DataTypesUpdate200Response, DataTypesUpdate202Response, DataTypesUpdateDefaultResponse, DataTypesDelete202Response, DataTypesDelete204Response, DataTypesDeleteDefaultResponse, DataTypesDeleteData202Response, DataTypesDeleteData204Response, DataTypesDeleteDataDefaultResponse, DataTypesGenerateStorageContainerSasToken200Response, DataTypesGenerateStorageContainerSasTokenDefaultResponse, DataTypesListByDataProduct200Response, DataTypesListByDataProductDefaultResponse, DataProductsCreate200Response, DataProductsCreate201Response, DataProductsCreateDefaultResponse, DataProductsGet200Response, DataProductsGetDefaultResponse, DataProductsUpdate200Response, DataProductsUpdate202Response, DataProductsUpdateDefaultResponse, DataProductsDelete202Response, DataProductsDelete204Response, DataProductsDeleteDefaultResponse, DataProductsGenerateStorageAccountSasToken200Response, DataProductsGenerateStorageAccountSasTokenDefaultResponse, DataProductsRotateKey204Response, DataProductsRotateKeyDefaultResponse, DataProductsAddUserRole200Response, DataProductsAddUserRoleDefaultResponse, DataProductsRemoveUserRole204Response, DataProductsRemoveUserRoleDefaultResponse, DataProductsListRolesAssignments200Response, DataProductsListRolesAssignmentsDefaultResponse, DataProductsListByResourceGroup200Response, DataProductsListByResourceGroupDefaultResponse, DataProductsListBySubscription200Response, DataProductsListBySubscriptionDefaultResponse } from "./responses.js"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; -export interface OperationsList { - /** List the operations for the provider */ - get(options?: OperationsListParameters): StreamableMethod; -} -export interface DataProductsCatalogsGet { - /** Retrieve data type resource. */ - get(options?: DataProductsCatalogsGetParameters): StreamableMethod; -} -export interface DataProductsCatalogsListByResourceGroup { - /** List data catalog by resource group. */ - get(options?: DataProductsCatalogsListByResourceGroupParameters): StreamableMethod; -} -export interface DataProductsCatalogsListBySubscription { - /** List data catalog by subscription. */ - get(options?: DataProductsCatalogsListBySubscriptionParameters): StreamableMethod; -} -export interface DataTypesCreate { - /** Create data type resource. */ - put(options: DataTypesCreateParameters): StreamableMethod; - /** Retrieve data type resource. */ - get(options?: DataTypesGetParameters): StreamableMethod; - /** Update data type resource. */ - patch(options: DataTypesUpdateParameters): StreamableMethod; - /** Delete data type resource. */ - delete(options?: DataTypesDeleteParameters): StreamableMethod; -} -export interface DataTypesDeleteData { - /** Delete data for data type. */ - post(options: DataTypesDeleteDataParameters): StreamableMethod; -} -export interface DataTypesGenerateStorageContainerSasToken { - /** Generate sas token for storage container. */ - post(options: DataTypesGenerateStorageContainerSasTokenParameters): StreamableMethod; -} -export interface DataTypesListByDataProduct { - /** List data type by parent resource. */ - get(options?: DataTypesListByDataProductParameters): StreamableMethod; -} -export interface DataProductsCreate { - /** Create data product resource. */ - put(options: DataProductsCreateParameters): StreamableMethod; - /** Retrieve data product resource. */ - get(options?: DataProductsGetParameters): StreamableMethod; - /** Update data product resource. */ - patch(options: DataProductsUpdateParameters): StreamableMethod; - /** Delete data product resource. */ - delete(options?: DataProductsDeleteParameters): StreamableMethod; -} -export interface DataProductsGenerateStorageAccountSasToken { - /** Generate sas token for storage account. */ - post(options: DataProductsGenerateStorageAccountSasTokenParameters): StreamableMethod; -} -export interface DataProductsRotateKey { - /** Initiate key rotation on Data Product. */ - post(options: DataProductsRotateKeyParameters): StreamableMethod; -} -export interface DataProductsAddUserRole { - /** Assign role to the data product. */ - post(options: DataProductsAddUserRoleParameters): StreamableMethod; -} -export interface DataProductsRemoveUserRole { - /** Remove role from the data product. */ - post(options: DataProductsRemoveUserRoleParameters): StreamableMethod; -} -export interface DataProductsListRolesAssignments { - /** List user roles associated with the data product. */ - post(options: DataProductsListRolesAssignmentsParameters): StreamableMethod; -} -export interface DataProductsListByResourceGroup { - /** List data products by resource group. */ - get(options?: DataProductsListByResourceGroupParameters): StreamableMethod; -} -export interface DataProductsListBySubscription { - /** List data products by subscription. */ - get(options?: DataProductsListBySubscriptionParameters): StreamableMethod; -} -export interface Routes { - /** Resource for '/providers/Microsoft.NetworkAnalytics/operations' has methods for the following verbs: get */ - (path: "/providers/Microsoft.NetworkAnalytics/operations"): OperationsList; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default' has methods for the following verbs: get */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", subscriptionId: string, resourceGroupName: string): DataProductsCatalogsGet; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs' has methods for the following verbs: get */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", subscriptionId: string, resourceGroupName: string): DataProductsCatalogsListByResourceGroup; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs' has methods for the following verbs: get */ - (path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", subscriptionId: string): DataProductsCatalogsListBySubscription; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}' has methods for the following verbs: put, get, patch, delete */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string): DataTypesCreate; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}/deleteData' has methods for the following verbs: post */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string): DataTypesDeleteData; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}/generateStorageContainerSasToken' has methods for the following verbs: post */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", subscriptionId: string, resourceGroupName: string, dataProductName: string, dataTypeName: string): DataTypesGenerateStorageContainerSasToken; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes' has methods for the following verbs: get */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataTypesListByDataProduct; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}' has methods for the following verbs: put, get, patch, delete */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsCreate; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/generateStorageAccountSasToken' has methods for the following verbs: post */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsGenerateStorageAccountSasToken; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/rotateKey' has methods for the following verbs: post */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsRotateKey; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/addUserRole' has methods for the following verbs: post */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsAddUserRole; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/removeUserRole' has methods for the following verbs: post */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsRemoveUserRole; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/listRolesAssignments' has methods for the following verbs: post */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", subscriptionId: string, resourceGroupName: string, dataProductName: string): DataProductsListRolesAssignments; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts' has methods for the following verbs: get */ - (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", subscriptionId: string, resourceGroupName: string): DataProductsListByResourceGroup; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.NetworkAnalytics/dataProducts' has methods for the following verbs: get */ - (path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", subscriptionId: string): DataProductsListBySubscription; -} -export type NetworkAnalyticsContext = Client & { - path: Routes; -}; -//# sourceMappingURL=clientDefinitions.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts.map deleted file mode 100644 index a7e053e98f8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":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Ac,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACtB,gCAAgC,CAAC;IACpC,uLAAuL;IACvL,CACE,IAAI,EAAE,sHAAsH,EAC5H,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,GACxB,+BAA+B,CAAC;IACnC,kJAAkJ;IAClJ,CACE,IAAI,EAAE,mFAAmF,EACzF,cAAc,EAAE,MAAM,GACrB,8BAA8B,CAAC;CACnC;AAED,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js deleted file mode 100644 index b71417cf8e6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=clientDefinitions.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js.map deleted file mode 100644 index ec834a878d5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.ts deleted file mode 100644 index a4af4bdf0f0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/clientDefinitions.ts +++ /dev/null @@ -1,392 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - OperationsListParameters, - DataProductsCatalogsGetParameters, - DataProductsCatalogsListByResourceGroupParameters, - DataProductsCatalogsListBySubscriptionParameters, - DataTypesCreateParameters, - DataTypesGetParameters, - DataTypesUpdateParameters, - DataTypesDeleteParameters, - DataTypesDeleteDataParameters, - DataTypesGenerateStorageContainerSasTokenParameters, - DataTypesListByDataProductParameters, - DataProductsCreateParameters, - DataProductsGetParameters, - DataProductsUpdateParameters, - DataProductsDeleteParameters, - DataProductsGenerateStorageAccountSasTokenParameters, - DataProductsRotateKeyParameters, - DataProductsAddUserRoleParameters, - DataProductsRemoveUserRoleParameters, - DataProductsListRolesAssignmentsParameters, - DataProductsListByResourceGroupParameters, - DataProductsListBySubscriptionParameters, -} from "./parameters.js"; -import { - OperationsList200Response, - OperationsListDefaultResponse, - DataProductsCatalogsGet200Response, - DataProductsCatalogsGetDefaultResponse, - DataProductsCatalogsListByResourceGroup200Response, - DataProductsCatalogsListByResourceGroupDefaultResponse, - DataProductsCatalogsListBySubscription200Response, - DataProductsCatalogsListBySubscriptionDefaultResponse, - DataTypesCreate200Response, - DataTypesCreate201Response, - DataTypesCreateDefaultResponse, - DataTypesGet200Response, - DataTypesGetDefaultResponse, - DataTypesUpdate200Response, - DataTypesUpdate202Response, - DataTypesUpdateDefaultResponse, - DataTypesDelete202Response, - DataTypesDelete204Response, - DataTypesDeleteDefaultResponse, - DataTypesDeleteData202Response, - DataTypesDeleteData204Response, - DataTypesDeleteDataDefaultResponse, - DataTypesGenerateStorageContainerSasToken200Response, - DataTypesGenerateStorageContainerSasTokenDefaultResponse, - DataTypesListByDataProduct200Response, - DataTypesListByDataProductDefaultResponse, - DataProductsCreate200Response, - DataProductsCreate201Response, - DataProductsCreateDefaultResponse, - DataProductsGet200Response, - DataProductsGetDefaultResponse, - DataProductsUpdate200Response, - DataProductsUpdate202Response, - DataProductsUpdateDefaultResponse, - DataProductsDelete202Response, - DataProductsDelete204Response, - DataProductsDeleteDefaultResponse, - DataProductsGenerateStorageAccountSasToken200Response, - DataProductsGenerateStorageAccountSasTokenDefaultResponse, - DataProductsRotateKey204Response, - DataProductsRotateKeyDefaultResponse, - DataProductsAddUserRole200Response, - DataProductsAddUserRoleDefaultResponse, - DataProductsRemoveUserRole204Response, - DataProductsRemoveUserRoleDefaultResponse, - DataProductsListRolesAssignments200Response, - DataProductsListRolesAssignmentsDefaultResponse, - DataProductsListByResourceGroup200Response, - DataProductsListByResourceGroupDefaultResponse, - DataProductsListBySubscription200Response, - DataProductsListBySubscriptionDefaultResponse, -} from "./responses.js"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; - -export interface OperationsList { - /** List the operations for the provider */ - get( - options?: OperationsListParameters, - ): StreamableMethod< - OperationsList200Response | OperationsListDefaultResponse - >; -} - -export interface DataProductsCatalogsGet { - /** Retrieve data type resource. */ - get( - options?: DataProductsCatalogsGetParameters, - ): StreamableMethod< - DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse - >; -} - -export interface DataProductsCatalogsListByResourceGroup { - /** List data catalog by resource group. */ - get( - options?: DataProductsCatalogsListByResourceGroupParameters, - ): StreamableMethod< - | DataProductsCatalogsListByResourceGroup200Response - | DataProductsCatalogsListByResourceGroupDefaultResponse - >; -} - -export interface DataProductsCatalogsListBySubscription { - /** List data catalog by subscription. */ - get( - options?: DataProductsCatalogsListBySubscriptionParameters, - ): StreamableMethod< - | DataProductsCatalogsListBySubscription200Response - | DataProductsCatalogsListBySubscriptionDefaultResponse - >; -} - -export interface DataTypesCreate { - /** Create data type resource. */ - put( - options: DataTypesCreateParameters, - ): StreamableMethod< - | DataTypesCreate200Response - | DataTypesCreate201Response - | DataTypesCreateDefaultResponse - >; - /** Retrieve data type resource. */ - get( - options?: DataTypesGetParameters, - ): StreamableMethod; - /** Update data type resource. */ - patch( - options: DataTypesUpdateParameters, - ): StreamableMethod< - | DataTypesUpdate200Response - | DataTypesUpdate202Response - | DataTypesUpdateDefaultResponse - >; - /** Delete data type resource. */ - delete( - options?: DataTypesDeleteParameters, - ): StreamableMethod< - | DataTypesDelete202Response - | DataTypesDelete204Response - | DataTypesDeleteDefaultResponse - >; -} - -export interface DataTypesDeleteData { - /** Delete data for data type. */ - post( - options: DataTypesDeleteDataParameters, - ): StreamableMethod< - | DataTypesDeleteData202Response - | DataTypesDeleteData204Response - | DataTypesDeleteDataDefaultResponse - >; -} - -export interface DataTypesGenerateStorageContainerSasToken { - /** Generate sas token for storage container. */ - post( - options: DataTypesGenerateStorageContainerSasTokenParameters, - ): StreamableMethod< - | DataTypesGenerateStorageContainerSasToken200Response - | DataTypesGenerateStorageContainerSasTokenDefaultResponse - >; -} - -export interface DataTypesListByDataProduct { - /** List data type by parent resource. */ - get( - options?: DataTypesListByDataProductParameters, - ): StreamableMethod< - | DataTypesListByDataProduct200Response - | DataTypesListByDataProductDefaultResponse - >; -} - -export interface DataProductsCreate { - /** Create data product resource. */ - put( - options: DataProductsCreateParameters, - ): StreamableMethod< - | DataProductsCreate200Response - | DataProductsCreate201Response - | DataProductsCreateDefaultResponse - >; - /** Retrieve data product resource. */ - get( - options?: DataProductsGetParameters, - ): StreamableMethod< - DataProductsGet200Response | DataProductsGetDefaultResponse - >; - /** Update data product resource. */ - patch( - options: DataProductsUpdateParameters, - ): StreamableMethod< - | DataProductsUpdate200Response - | DataProductsUpdate202Response - | DataProductsUpdateDefaultResponse - >; - /** Delete data product resource. */ - delete( - options?: DataProductsDeleteParameters, - ): StreamableMethod< - | DataProductsDelete202Response - | DataProductsDelete204Response - | DataProductsDeleteDefaultResponse - >; -} - -export interface DataProductsGenerateStorageAccountSasToken { - /** Generate sas token for storage account. */ - post( - options: DataProductsGenerateStorageAccountSasTokenParameters, - ): StreamableMethod< - | DataProductsGenerateStorageAccountSasToken200Response - | DataProductsGenerateStorageAccountSasTokenDefaultResponse - >; -} - -export interface DataProductsRotateKey { - /** Initiate key rotation on Data Product. */ - post( - options: DataProductsRotateKeyParameters, - ): StreamableMethod< - DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse - >; -} - -export interface DataProductsAddUserRole { - /** Assign role to the data product. */ - post( - options: DataProductsAddUserRoleParameters, - ): StreamableMethod< - DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse - >; -} - -export interface DataProductsRemoveUserRole { - /** Remove role from the data product. */ - post( - options: DataProductsRemoveUserRoleParameters, - ): StreamableMethod< - | DataProductsRemoveUserRole204Response - | DataProductsRemoveUserRoleDefaultResponse - >; -} - -export interface DataProductsListRolesAssignments { - /** List user roles associated with the data product. */ - post( - options: DataProductsListRolesAssignmentsParameters, - ): StreamableMethod< - | DataProductsListRolesAssignments200Response - | DataProductsListRolesAssignmentsDefaultResponse - >; -} - -export interface DataProductsListByResourceGroup { - /** List data products by resource group. */ - get( - options?: DataProductsListByResourceGroupParameters, - ): StreamableMethod< - | DataProductsListByResourceGroup200Response - | DataProductsListByResourceGroupDefaultResponse - >; -} - -export interface DataProductsListBySubscription { - /** List data products by subscription. */ - get( - options?: DataProductsListBySubscriptionParameters, - ): StreamableMethod< - | DataProductsListBySubscription200Response - | DataProductsListBySubscriptionDefaultResponse - >; -} - -export interface Routes { - /** Resource for '/providers/Microsoft.NetworkAnalytics/operations' has methods for the following verbs: get */ - (path: "/providers/Microsoft.NetworkAnalytics/operations"): OperationsList; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", - subscriptionId: string, - resourceGroupName: string, - ): DataProductsCatalogsGet; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - subscriptionId: string, - resourceGroupName: string, - ): DataProductsCatalogsListByResourceGroup; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - subscriptionId: string, - ): DataProductsCatalogsListBySubscription; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}' has methods for the following verbs: put, get, patch, delete */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - ): DataTypesCreate; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}/deleteData' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - ): DataTypesDeleteData; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes/\{dataTypeName\}/generateStorageContainerSasToken' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - dataTypeName: string, - ): DataTypesGenerateStorageContainerSasToken; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/dataTypes' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - ): DataTypesListByDataProduct; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}' has methods for the following verbs: put, get, patch, delete */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - ): DataProductsCreate; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/generateStorageAccountSasToken' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - ): DataProductsGenerateStorageAccountSasToken; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/rotateKey' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - ): DataProductsRotateKey; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/addUserRole' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - ): DataProductsAddUserRole; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/removeUserRole' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - ): DataProductsRemoveUserRole; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts/\{dataProductName\}/listRolesAssignments' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", - subscriptionId: string, - resourceGroupName: string, - dataProductName: string, - ): DataProductsListRolesAssignments; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.NetworkAnalytics/dataProducts' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", - subscriptionId: string, - resourceGroupName: string, - ): DataProductsListByResourceGroup; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.NetworkAnalytics/dataProducts' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", - subscriptionId: string, - ): DataProductsListBySubscription; -} - -export type NetworkAnalyticsContext = Client & { - path: Routes; -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts deleted file mode 100644 index aad040ed027..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import NetworkAnalyticsClient from "./networkAnalyticsClient.js"; -export * from "./networkAnalyticsClient.js"; -export * from "./parameters.js"; -export * from "./responses.js"; -export * from "./clientDefinitions.js"; -export * from "./isUnexpected.js"; -export * from "./models.js"; -export * from "./outputModels.js"; -export * from "./paginateHelper.js"; -export * from "./pollingHelper.js"; -export default NetworkAnalyticsClient; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts.map deleted file mode 100644 index ce519f11b93..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AAEjE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAEnC,eAAe,sBAAsB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js deleted file mode 100644 index a38f0b18308..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import NetworkAnalyticsClient from "./networkAnalyticsClient.js"; -export * from "./networkAnalyticsClient.js"; -export * from "./parameters.js"; -export * from "./responses.js"; -export * from "./clientDefinitions.js"; -export * from "./isUnexpected.js"; -export * from "./models.js"; -export * from "./outputModels.js"; -export * from "./paginateHelper.js"; -export * from "./pollingHelper.js"; -export default NetworkAnalyticsClient; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js.map deleted file mode 100644 index c777c52cedd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AAEjE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAEnC,eAAe,sBAAsB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.ts deleted file mode 100644 index 4d65fa19423..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import NetworkAnalyticsClient from "./networkAnalyticsClient.js"; - -export * from "./networkAnalyticsClient.js"; -export * from "./parameters.js"; -export * from "./responses.js"; -export * from "./clientDefinitions.js"; -export * from "./isUnexpected.js"; -export * from "./models.js"; -export * from "./outputModels.js"; -export * from "./paginateHelper.js"; -export * from "./pollingHelper.js"; - -export default NetworkAnalyticsClient; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts deleted file mode 100644 index c1860aa7517..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { OperationsList200Response, OperationsListDefaultResponse, DataProductsCatalogsGet200Response, DataProductsCatalogsGetDefaultResponse, DataProductsCatalogsListByResourceGroup200Response, DataProductsCatalogsListByResourceGroupDefaultResponse, DataProductsCatalogsListBySubscription200Response, DataProductsCatalogsListBySubscriptionDefaultResponse, DataTypesCreate200Response, DataTypesCreate201Response, DataTypesCreateLogicalResponse, DataTypesCreateDefaultResponse, DataTypesGet200Response, DataTypesGetDefaultResponse, DataTypesUpdate200Response, DataTypesUpdate202Response, DataTypesUpdateLogicalResponse, DataTypesUpdateDefaultResponse, DataTypesDelete202Response, DataTypesDelete204Response, DataTypesDeleteLogicalResponse, DataTypesDeleteDefaultResponse, DataTypesDeleteData202Response, DataTypesDeleteData204Response, DataTypesDeleteDataLogicalResponse, DataTypesDeleteDataDefaultResponse, DataTypesGenerateStorageContainerSasToken200Response, DataTypesGenerateStorageContainerSasTokenDefaultResponse, DataTypesListByDataProduct200Response, DataTypesListByDataProductDefaultResponse, DataProductsCreate200Response, DataProductsCreate201Response, DataProductsCreateLogicalResponse, DataProductsCreateDefaultResponse, DataProductsGet200Response, DataProductsGetDefaultResponse, DataProductsUpdate200Response, DataProductsUpdate202Response, DataProductsUpdateLogicalResponse, DataProductsUpdateDefaultResponse, DataProductsDelete202Response, DataProductsDelete204Response, DataProductsDeleteLogicalResponse, DataProductsDeleteDefaultResponse, DataProductsGenerateStorageAccountSasToken200Response, DataProductsGenerateStorageAccountSasTokenDefaultResponse, DataProductsRotateKey204Response, DataProductsRotateKeyDefaultResponse, DataProductsAddUserRole200Response, DataProductsAddUserRoleDefaultResponse, DataProductsRemoveUserRole204Response, DataProductsRemoveUserRoleDefaultResponse, DataProductsListRolesAssignments200Response, DataProductsListRolesAssignmentsDefaultResponse, DataProductsListByResourceGroup200Response, DataProductsListByResourceGroupDefaultResponse, DataProductsListBySubscription200Response, DataProductsListBySubscriptionDefaultResponse } from "./responses.js"; -export declare function isUnexpected(response: OperationsList200Response | OperationsListDefaultResponse): response is OperationsListDefaultResponse; -export declare function isUnexpected(response: DataProductsCatalogsGet200Response | DataProductsCatalogsGetDefaultResponse): response is DataProductsCatalogsGetDefaultResponse; -export declare function isUnexpected(response: DataProductsCatalogsListByResourceGroup200Response | DataProductsCatalogsListByResourceGroupDefaultResponse): response is DataProductsCatalogsListByResourceGroupDefaultResponse; -export declare function isUnexpected(response: DataProductsCatalogsListBySubscription200Response | DataProductsCatalogsListBySubscriptionDefaultResponse): response is DataProductsCatalogsListBySubscriptionDefaultResponse; -export declare function isUnexpected(response: DataTypesCreate200Response | DataTypesCreate201Response | DataTypesCreateLogicalResponse | DataTypesCreateDefaultResponse): response is DataTypesCreateDefaultResponse; -export declare function isUnexpected(response: DataTypesGet200Response | DataTypesGetDefaultResponse): response is DataTypesGetDefaultResponse; -export declare function isUnexpected(response: DataTypesUpdate200Response | DataTypesUpdate202Response | DataTypesUpdateLogicalResponse | DataTypesUpdateDefaultResponse): response is DataTypesUpdateDefaultResponse; -export declare function isUnexpected(response: DataTypesDelete202Response | DataTypesDelete204Response | DataTypesDeleteLogicalResponse | DataTypesDeleteDefaultResponse): response is DataTypesDeleteDefaultResponse; -export declare function isUnexpected(response: DataTypesDeleteData202Response | DataTypesDeleteData204Response | DataTypesDeleteDataLogicalResponse | DataTypesDeleteDataDefaultResponse): response is DataTypesDeleteDataDefaultResponse; -export declare function isUnexpected(response: DataTypesGenerateStorageContainerSasToken200Response | DataTypesGenerateStorageContainerSasTokenDefaultResponse): response is DataTypesGenerateStorageContainerSasTokenDefaultResponse; -export declare function isUnexpected(response: DataTypesListByDataProduct200Response | DataTypesListByDataProductDefaultResponse): response is DataTypesListByDataProductDefaultResponse; -export declare function isUnexpected(response: DataProductsCreate200Response | DataProductsCreate201Response | DataProductsCreateLogicalResponse | DataProductsCreateDefaultResponse): response is DataProductsCreateDefaultResponse; -export declare function isUnexpected(response: DataProductsGet200Response | DataProductsGetDefaultResponse): response is DataProductsGetDefaultResponse; -export declare function isUnexpected(response: DataProductsUpdate200Response | DataProductsUpdate202Response | DataProductsUpdateLogicalResponse | DataProductsUpdateDefaultResponse): response is DataProductsUpdateDefaultResponse; -export declare function isUnexpected(response: DataProductsDelete202Response | DataProductsDelete204Response | DataProductsDeleteLogicalResponse | DataProductsDeleteDefaultResponse): response is DataProductsDeleteDefaultResponse; -export declare function isUnexpected(response: DataProductsGenerateStorageAccountSasToken200Response | DataProductsGenerateStorageAccountSasTokenDefaultResponse): response is DataProductsGenerateStorageAccountSasTokenDefaultResponse; -export declare function isUnexpected(response: DataProductsRotateKey204Response | DataProductsRotateKeyDefaultResponse): response is DataProductsRotateKeyDefaultResponse; -export declare function isUnexpected(response: DataProductsAddUserRole200Response | DataProductsAddUserRoleDefaultResponse): response is DataProductsAddUserRoleDefaultResponse; -export declare function isUnexpected(response: DataProductsRemoveUserRole204Response | DataProductsRemoveUserRoleDefaultResponse): response is DataProductsRemoveUserRoleDefaultResponse; -export declare function isUnexpected(response: DataProductsListRolesAssignments200Response | DataProductsListRolesAssignmentsDefaultResponse): response is DataProductsListRolesAssignmentsDefaultResponse; -export declare function isUnexpected(response: DataProductsListByResourceGroup200Response | DataProductsListByResourceGroupDefaultResponse): response is DataProductsListByResourceGroupDefaultResponse; -export declare function isUnexpected(response: DataProductsListBySubscription200Response | DataProductsListBySubscriptionDefaultResponse): response is DataProductsListBySubscriptionDefaultResponse; -//# sourceMappingURL=isUnexpected.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts.map deleted file mode 100644 index 303aca6d808..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,kCAAkC,EAClC,sCAAsC,EACtC,kDAAkD,EAClD,sDAAsD,EACtD,iDAAiD,EACjD,qDAAqD,EACrD,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,oDAAoD,EACpD,wDAAwD,EACxD,qCAAqC,EACrC,yCAAyC,EACzC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,qDAAqD,EACrD,yDAAyD,EACzD,gCAAgC,EAChC,oCAAoC,EACpC,kCAAkC,EAClC,sCAAsC,EACtC,qCAAqC,EACrC,yCAAyC,EACzC,2CAA2C,EAC3C,+CAA+C,EAC/C,0CAA0C,EAC1C,8CAA8C,EAC9C,yCAAyC,EACzC,6CAA6C,EAC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aking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js deleted file mode 100644 index a48860f2a73..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -const responseMap = { - "GET /providers/Microsoft.NetworkAnalytics/operations": ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default": ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs": ["200"], - "GET /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs": ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": ["200"], - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": ["200", "201"], - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": ["200", "202"], - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": ["202", "204"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": ["200", "202", "204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": ["202", "204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken": ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes": ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": ["200"], - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": ["200", "201"], - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": ["200", "202"], - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": ["202", "204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken": ["200"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey": ["204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole": ["200"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole": ["204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments": ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts": ["200"], - "GET /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts": ["200"], -}; -export function isUnexpected(response) { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} -function getParametrizedPathSuccess(method, path) { - const pathParts = path.split("/"); - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, matchedValue = []; - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - // track if we have found a match to return the values found. - let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && - candidateParts[i]?.indexOf("}") !== -1) { - const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); - if (!isMatched) { - found = false; - break; - } - continue; - } - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - return matchedValue; -} -function getPathFromMapKey(mapKey) { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} -//# sourceMappingURL=isUnexpected.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js.map deleted file mode 100644 index 053359448b0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA+DlC,MAAM,WAAW,GAA6B;IAC5C,sDAAsD,EAAE,CAAC,KAAK,CAAC;IAC/D,0IAA0I,EACxI,CAAC,KAAK,CAAC;IACT,kIAAkI,EAChI,CAAC,KAAK,CAAC;IACT,+FAA+F,EAC7F,CAAC,KAAK,CAAC;IACT,qKAAqK,EACnK,CAAC,KAAK,CAAC;IACT,qKAAqK,EACnK,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,uKAAuK,EACrK,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,wKAAwK,EACtK,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,gLAAgL,EAC9K,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IACvB,iLAAiL,EAC/K,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,uMAAuM,EACrM,CAAC,KAAK,CAAC;IACT,sJAAsJ,EACpJ,CAAC,KAAK,CAAC;IACT,4IAA4I,EAC1I,CAAC,KAAK,CAAC;IACT,4IAA4I,EAC1I,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,8IAA8I,EAC5I,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,+IAA+I,EAC7I,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,4KAA4K,EAC1K,CAAC,KA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C,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.ts deleted file mode 100644 index ed504bc78ad..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/isUnexpected.ts +++ /dev/null @@ -1,395 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - OperationsList200Response, - OperationsListDefaultResponse, - DataProductsCatalogsGet200Response, - DataProductsCatalogsGetDefaultResponse, - DataProductsCatalogsListByResourceGroup200Response, - DataProductsCatalogsListByResourceGroupDefaultResponse, - DataProductsCatalogsListBySubscription200Response, - DataProductsCatalogsListBySubscriptionDefaultResponse, - DataTypesCreate200Response, - DataTypesCreate201Response, - DataTypesCreateLogicalResponse, - DataTypesCreateDefaultResponse, - DataTypesGet200Response, - DataTypesGetDefaultResponse, - DataTypesUpdate200Response, - DataTypesUpdate202Response, - DataTypesUpdateLogicalResponse, - DataTypesUpdateDefaultResponse, - DataTypesDelete202Response, - DataTypesDelete204Response, - DataTypesDeleteLogicalResponse, - DataTypesDeleteDefaultResponse, - DataTypesDeleteData202Response, - DataTypesDeleteData204Response, - DataTypesDeleteDataLogicalResponse, - DataTypesDeleteDataDefaultResponse, - DataTypesGenerateStorageContainerSasToken200Response, - DataTypesGenerateStorageContainerSasTokenDefaultResponse, - DataTypesListByDataProduct200Response, - DataTypesListByDataProductDefaultResponse, - DataProductsCreate200Response, - DataProductsCreate201Response, - DataProductsCreateLogicalResponse, - DataProductsCreateDefaultResponse, - DataProductsGet200Response, - DataProductsGetDefaultResponse, - DataProductsUpdate200Response, - DataProductsUpdate202Response, - DataProductsUpdateLogicalResponse, - DataProductsUpdateDefaultResponse, - DataProductsDelete202Response, - DataProductsDelete204Response, - DataProductsDeleteLogicalResponse, - DataProductsDeleteDefaultResponse, - DataProductsGenerateStorageAccountSasToken200Response, - DataProductsGenerateStorageAccountSasTokenDefaultResponse, - DataProductsRotateKey204Response, - DataProductsRotateKeyDefaultResponse, - DataProductsAddUserRole200Response, - DataProductsAddUserRoleDefaultResponse, - DataProductsRemoveUserRole204Response, - DataProductsRemoveUserRoleDefaultResponse, - DataProductsListRolesAssignments200Response, - DataProductsListRolesAssignmentsDefaultResponse, - DataProductsListByResourceGroup200Response, - DataProductsListByResourceGroupDefaultResponse, - DataProductsListBySubscription200Response, - DataProductsListBySubscriptionDefaultResponse, -} from "./responses.js"; - -const responseMap: Record = { - "GET /providers/Microsoft.NetworkAnalytics/operations": ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default": - ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs": - ["200"], - "GET /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs": - ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": - ["200"], - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": - ["200", "201"], - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": - ["200", "202"], - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": - ["202", "204"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": - ["200", "202", "204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": - ["202", "204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken": - ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes": - ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": - ["200"], - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": - ["200", "201"], - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": - ["200", "202"], - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": - ["202", "204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken": - ["200"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey": - ["204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole": - ["200"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole": - ["204"], - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments": - ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts": - ["200"], - "GET /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts": - ["200"], -}; - -export function isUnexpected( - response: OperationsList200Response | OperationsListDefaultResponse, -): response is OperationsListDefaultResponse; -export function isUnexpected( - response: - | DataProductsCatalogsGet200Response - | DataProductsCatalogsGetDefaultResponse, -): response is DataProductsCatalogsGetDefaultResponse; -export function isUnexpected( - response: - | DataProductsCatalogsListByResourceGroup200Response - | DataProductsCatalogsListByResourceGroupDefaultResponse, -): response is DataProductsCatalogsListByResourceGroupDefaultResponse; -export function isUnexpected( - response: - | DataProductsCatalogsListBySubscription200Response - | DataProductsCatalogsListBySubscriptionDefaultResponse, -): response is DataProductsCatalogsListBySubscriptionDefaultResponse; -export function isUnexpected( - response: - | DataTypesCreate200Response - | DataTypesCreate201Response - | DataTypesCreateLogicalResponse - | DataTypesCreateDefaultResponse, -): response is DataTypesCreateDefaultResponse; -export function isUnexpected( - response: DataTypesGet200Response | DataTypesGetDefaultResponse, -): response is DataTypesGetDefaultResponse; -export function isUnexpected( - response: - | DataTypesUpdate200Response - | DataTypesUpdate202Response - | DataTypesUpdateLogicalResponse - | DataTypesUpdateDefaultResponse, -): response is DataTypesUpdateDefaultResponse; -export function isUnexpected( - response: - | DataTypesDelete202Response - | DataTypesDelete204Response - | DataTypesDeleteLogicalResponse - | DataTypesDeleteDefaultResponse, -): response is DataTypesDeleteDefaultResponse; -export function isUnexpected( - response: - | DataTypesDeleteData202Response - | DataTypesDeleteData204Response - | DataTypesDeleteDataLogicalResponse - | DataTypesDeleteDataDefaultResponse, -): response is DataTypesDeleteDataDefaultResponse; -export function isUnexpected( - response: - | DataTypesGenerateStorageContainerSasToken200Response - | DataTypesGenerateStorageContainerSasTokenDefaultResponse, -): response is DataTypesGenerateStorageContainerSasTokenDefaultResponse; -export function isUnexpected( - response: - | DataTypesListByDataProduct200Response - | DataTypesListByDataProductDefaultResponse, -): response is DataTypesListByDataProductDefaultResponse; -export function isUnexpected( - response: - | DataProductsCreate200Response - | DataProductsCreate201Response - | DataProductsCreateLogicalResponse - | DataProductsCreateDefaultResponse, -): response is DataProductsCreateDefaultResponse; -export function isUnexpected( - response: DataProductsGet200Response | DataProductsGetDefaultResponse, -): response is DataProductsGetDefaultResponse; -export function isUnexpected( - response: - | DataProductsUpdate200Response - | DataProductsUpdate202Response - | DataProductsUpdateLogicalResponse - | DataProductsUpdateDefaultResponse, -): response is DataProductsUpdateDefaultResponse; -export function isUnexpected( - response: - | DataProductsDelete202Response - | DataProductsDelete204Response - | DataProductsDeleteLogicalResponse - | DataProductsDeleteDefaultResponse, -): response is DataProductsDeleteDefaultResponse; -export function isUnexpected( - response: - | DataProductsGenerateStorageAccountSasToken200Response - | DataProductsGenerateStorageAccountSasTokenDefaultResponse, -): response is DataProductsGenerateStorageAccountSasTokenDefaultResponse; -export function isUnexpected( - response: - | DataProductsRotateKey204Response - | DataProductsRotateKeyDefaultResponse, -): response is DataProductsRotateKeyDefaultResponse; -export function isUnexpected( - response: - | DataProductsAddUserRole200Response - | DataProductsAddUserRoleDefaultResponse, -): response is DataProductsAddUserRoleDefaultResponse; -export function isUnexpected( - response: - | DataProductsRemoveUserRole204Response - | DataProductsRemoveUserRoleDefaultResponse, -): response is DataProductsRemoveUserRoleDefaultResponse; -export function isUnexpected( - response: - | DataProductsListRolesAssignments200Response - | DataProductsListRolesAssignmentsDefaultResponse, -): response is DataProductsListRolesAssignmentsDefaultResponse; -export function isUnexpected( - response: - | DataProductsListByResourceGroup200Response - | DataProductsListByResourceGroupDefaultResponse, -): response is DataProductsListByResourceGroupDefaultResponse; -export function isUnexpected( - response: - | DataProductsListBySubscription200Response - | DataProductsListBySubscriptionDefaultResponse, -): response is DataProductsListBySubscriptionDefaultResponse; -export function isUnexpected( - response: - | OperationsList200Response - | OperationsListDefaultResponse - | DataProductsCatalogsGet200Response - | DataProductsCatalogsGetDefaultResponse - | DataProductsCatalogsListByResourceGroup200Response - | DataProductsCatalogsListByResourceGroupDefaultResponse - | DataProductsCatalogsListBySubscription200Response - | DataProductsCatalogsListBySubscriptionDefaultResponse - | DataTypesCreate200Response - | DataTypesCreate201Response - | DataTypesCreateLogicalResponse - | DataTypesCreateDefaultResponse - | DataTypesGet200Response - | DataTypesGetDefaultResponse - | DataTypesUpdate200Response - | DataTypesUpdate202Response - | DataTypesUpdateLogicalResponse - | DataTypesUpdateDefaultResponse - | DataTypesDelete202Response - | DataTypesDelete204Response - | DataTypesDeleteLogicalResponse - | DataTypesDeleteDefaultResponse - | DataTypesDeleteData202Response - | DataTypesDeleteData204Response - | DataTypesDeleteDataLogicalResponse - | DataTypesDeleteDataDefaultResponse - | DataTypesGenerateStorageContainerSasToken200Response - | DataTypesGenerateStorageContainerSasTokenDefaultResponse - | DataTypesListByDataProduct200Response - | DataTypesListByDataProductDefaultResponse - | DataProductsCreate200Response - | DataProductsCreate201Response - | DataProductsCreateLogicalResponse - | DataProductsCreateDefaultResponse - | DataProductsGet200Response - | DataProductsGetDefaultResponse - | DataProductsUpdate200Response - | DataProductsUpdate202Response - | DataProductsUpdateLogicalResponse - | DataProductsUpdateDefaultResponse - | DataProductsDelete202Response - | DataProductsDelete204Response - | DataProductsDeleteLogicalResponse - | DataProductsDeleteDefaultResponse - | DataProductsGenerateStorageAccountSasToken200Response - | DataProductsGenerateStorageAccountSasTokenDefaultResponse - | DataProductsRotateKey204Response - | DataProductsRotateKeyDefaultResponse - | DataProductsAddUserRole200Response - | DataProductsAddUserRoleDefaultResponse - | DataProductsRemoveUserRole204Response - | DataProductsRemoveUserRoleDefaultResponse - | DataProductsListRolesAssignments200Response - | DataProductsListRolesAssignmentsDefaultResponse - | DataProductsListByResourceGroup200Response - | DataProductsListByResourceGroupDefaultResponse - | DataProductsListBySubscription200Response - | DataProductsListBySubscriptionDefaultResponse, -): response is - | OperationsListDefaultResponse - | DataProductsCatalogsGetDefaultResponse - | DataProductsCatalogsListByResourceGroupDefaultResponse - | DataProductsCatalogsListBySubscriptionDefaultResponse - | DataTypesCreateDefaultResponse - | DataTypesGetDefaultResponse - | DataTypesUpdateDefaultResponse - | DataTypesDeleteDefaultResponse - | DataTypesDeleteDataDefaultResponse - | DataTypesGenerateStorageContainerSasTokenDefaultResponse - | DataTypesListByDataProductDefaultResponse - | DataProductsCreateDefaultResponse - | DataProductsGetDefaultResponse - | DataProductsUpdateDefaultResponse - | DataProductsDeleteDefaultResponse - | DataProductsGenerateStorageAccountSasTokenDefaultResponse - | DataProductsRotateKeyDefaultResponse - | DataProductsAddUserRoleDefaultResponse - | DataProductsRemoveUserRoleDefaultResponse - | DataProductsListRolesAssignmentsDefaultResponse - | DataProductsListByResourceGroupDefaultResponse - | DataProductsListBySubscriptionDefaultResponse { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} - -function getParametrizedPathSuccess(method: string, path: string): string[] { - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: string[] = []; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for ( - let i = candidateParts.length - 1, j = pathParts.length - 1; - i >= 1 && j >= 1; - i--, j-- - ) { - if ( - candidateParts[i]?.startsWith("{") && - candidateParts[i]?.indexOf("}") !== -1 - ) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp( - `${candidateParts[i]?.slice(start, end)}`, - ).test(pathParts[j] || ""); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts deleted file mode 100644 index c8b01d25f17..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts +++ /dev/null @@ -1,319 +0,0 @@ -/** The data catalog resource. */ -export interface DataProductsCatalog extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductsCatalogProperties; -} -/** Details for data catalog properties. */ -export interface DataProductsCatalogProperties { - /** The data product publisher information. */ - publishers: Array; -} -/** Details for Publisher Information. */ -export interface PublisherInformation { - /** Name of the publisher. */ - publisherName: string; - /** Data product information. */ - dataProducts: Array; -} -/** Data Product Information */ -export interface DataProductInformation { - /** Name of data product. */ - dataProductName: string; - /** Description about data product. */ - description: string; - /** Version information of data product. */ - dataProductVersions: Array; -} -/** Data Product Version. */ -export interface DataProductVersion { - /** Version of data product */ - version: string; -} -/** The base proxy resource. */ -export interface ProxyResource extends Resource { -} -/** Common properties for all Azure Resource Manager resources. */ -export interface Resource { -} -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { -} -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** The geo-location where the resource lives */ - location: string; - /** Resource tags. */ - tags?: Record; -} -/** The data product resource. */ -export interface DataProduct extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} -/** The data product properties. */ -export interface DataProductProperties { - /** Data product publisher name. */ - publisher: string; - /** Product name of data product. */ - product: string; - /** Major version of data product. */ - majorVersion: string; - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Flag to enable or disable redundancy for data product. */ - redundancy?: ControlState; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Flag to enable or disable public access of data product resource. */ - publicNetworkAccess?: ControlState; - /** Flag to enable customer managed key encryption for data product. */ - customerManagedKeyEncryptionEnabled?: ControlState; - /** Customer managed encryption key details for data product. */ - customerEncryptionKey?: EncryptionKeyDetails; - /** Network rule set for data product. */ - networkacls?: DataProductNetworkAcls; - /** Managed resource group configuration. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; -} -/** Encryption key details. */ -export interface EncryptionKeyDetails { - /** The Uri of the key vault. */ - keyVaultUri: string; - /** The name of the key vault key. */ - keyName: string; - /** The version of the key vault key. */ - keyVersion: string; -} -/** Data Product Network rule set */ -export interface DataProductNetworkAcls { - /** Virtual Network Rule */ - virtualNetworkRule: Array; - /** IP rule with specific IP or IP range in CIDR format. */ - ipRules: Array; - /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ - allowedQueryIpRangeList: string[]; - /** Default Action */ - defaultAction: DefaultAction; -} -/** Virtual Network Rule */ -export interface VirtualNetworkRule { - /** Resource ID of a subnet */ - id: string; - /** The action of virtual network rule. */ - action?: string; - /** Gets the state of virtual network rule. */ - state?: string; -} -/** IP rule with specific IP or IP range in CIDR format. */ -export interface IPRules { - /** IP Rules Value */ - value?: string; - /** The action of virtual network rule. */ - action: string; -} -/** ManagedResourceGroup related properties */ -export interface ManagedResourceGroupConfiguration { - /** Name of managed resource group */ - name: string; - /** Managed Resource Group location */ - location: string; -} -/** Details of Consumption Properties */ -export interface ConsumptionEndpointsProperties { -} -/** The properties of the managed service identities assigned to this resource. */ -export interface ManagedServiceIdentity { - /** The type of managed identity assigned to this resource. */ - type: ManagedServiceIdentityType; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: UserAssignedIdentities; -} -/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ -export interface UserAssignedIdentities extends Record { -} -/** A managed identity assigned by the user. */ -export interface UserAssignedIdentity { - /** The active directory client identifier for this principal. */ - clientId?: string; - /** The active directory identifier for this principal. */ - principalId?: string; -} -/** The base extension resource. */ -export interface ExtensionResource extends Resource { -} -/** The resource model definition for an Azure Resource Manager resource with an etag. */ -export interface AzureEntityResource extends Resource { -} -/** The private endpoint connection resource */ -export interface PrivateEndpointConnection extends ProxyResource { - /** The private endpoint connection properties */ - properties?: PrivateEndpointConnectionProperties; -} -/** Properties of he private endpoint connection resource */ -export interface PrivateEndpointConnectionProperties { - /** The private endpoint resource */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; - /** The provisioning state of the private endpoint connection resource. */ - provisioningState?: PrivateEndpointConnectionProvisioningState; -} -/** The private endpoint resource */ -export interface PrivateEndpoint { - /** The resource identifier for private endpoint */ - id?: string; -} -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} -export interface PrivateLinkResource extends ProxyResource { - /** Properties of the private link resource. */ - properties?: PrivateLinkResourceProperties; -} -/** Properties of a private link resource. */ -export interface PrivateLinkResourceProperties { - /** The private link resource private link DNS zone name. */ - requiredZoneNames?: string[]; -} -/** The data type resource. */ -export interface DataType extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataTypeProperties; -} -/** The data type properties */ -export interface DataTypeProperties { - /** State of data type. */ - state?: DataTypeState; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; -} -/** The type used for update operations of the DataType. */ -export interface DataTypeUpdate { - properties?: DataTypeUpdateProperties; -} -/** The updatable properties of the DataType. */ -export interface DataTypeUpdateProperties { - /** State of data type. */ - state?: DataTypeState; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; -} -/** The details for container sas creation. */ -export interface ContainerSaS { - /** Sas token start timestamp. */ - startTimeStamp: Date | string; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date | string; - /** Ip Address */ - ipAddress: string; -} -/** The type used for update operations of the DataProduct. */ -export interface DataProductUpdate { - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; - /** Resource tags. */ - tags?: Record; - properties?: DataProductUpdateProperties; -} -/** The updatable properties of the DataProduct. */ -export interface DataProductUpdateProperties { - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; -} -/** The details for storage account sas creation. */ -export interface AccountSas { - /** Sas token start timestamp. */ - startTimeStamp: Date | string; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date | string; - /** Ip Address */ - ipAddress: string; -} -/** Details for KeyVault. */ -export interface KeyVaultInfo { - /** key vault url. */ - keyVaultUrl: string; -} -/** The details for role assignment common properties. */ -export interface RoleAssignmentCommonProperties { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; -} -/** The details for role assignment response. */ -export interface RoleAssignmentDetail { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; - /** Id of role assignment request */ - roleAssignmentId: string; -} -/** Alias for ProvisioningState */ -export type ProvisioningState = string | "Succeeded" | "Failed" | "Canceled" | "Provisioning" | "Updating" | "Deleting" | "Accepted"; -/** Alias for CreatedByType */ -export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key" | string; -/** Alias for ControlState */ -export type ControlState = string | "Enabled" | "Disabled"; -/** Alias for DefaultAction */ -export type DefaultAction = string | "Allow" | "Deny"; -/** Alias for ManagedServiceIdentityType */ -export type ManagedServiceIdentityType = "None" | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | string; -/** Alias for PrivateEndpointServiceConnectionStatus */ -export type PrivateEndpointServiceConnectionStatus = "Pending" | "Approved" | "Rejected" | string; -/** Alias for ResourceProvisioningState */ -export type ResourceProvisioningState = "Succeeded" | "Failed" | "Canceled" | string; -/** Alias for PrivateEndpointConnectionProvisioningState */ -export type PrivateEndpointConnectionProvisioningState = ResourceProvisioningState | "Creating" | "Deleting"; -/** Alias for DataTypeState */ -export type DataTypeState = string | "Stopped" | "Running"; -/** Alias for DataProductUserRole */ -export type DataProductUserRole = string | "Reader" | "SensitiveReader"; -//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts.map deleted file mode 100644 index 72c1003416f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAGA,iCAAiC;AACjC,MAAM,WAAW,mBAAoB,SA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AACX,2DAA2D;AAC3D,MAAM,MAAM,0CAA0C,GAClD,yBAAyB,GACzB,UAAU,GACV,UAAU,CAAC;AACf,8BAA8B;AAC9B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAC3D,oCAAoC;AACpC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,iBAAiB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js deleted file mode 100644 index 63155a9f043..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js.map deleted file mode 100644 index f38b51ae9e8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"models.js","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.ts deleted file mode 100644 index 570b5f0aa63..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/models.ts +++ /dev/null @@ -1,383 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** The data catalog resource. */ -export interface DataProductsCatalog extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductsCatalogProperties; -} - -/** Details for data catalog properties. */ -export interface DataProductsCatalogProperties { - /** The data product publisher information. */ - publishers: Array; -} - -/** Details for Publisher Information. */ -export interface PublisherInformation { - /** Name of the publisher. */ - publisherName: string; - /** Data product information. */ - dataProducts: Array; -} - -/** Data Product Information */ -export interface DataProductInformation { - /** Name of data product. */ - dataProductName: string; - /** Description about data product. */ - description: string; - /** Version information of data product. */ - dataProductVersions: Array; -} - -/** Data Product Version. */ -export interface DataProductVersion { - /** Version of data product */ - version: string; -} - -/** The base proxy resource. */ -export interface ProxyResource extends Resource {} - -/** Common properties for all Azure Resource Manager resources. */ -export interface Resource {} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData {} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** The geo-location where the resource lives */ - location: string; - /** Resource tags. */ - tags?: Record; -} - -/** The data product resource. */ -export interface DataProduct extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: DataProductProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} - -/** The data product properties. */ -export interface DataProductProperties { - /** Data product publisher name. */ - publisher: string; - /** Product name of data product. */ - product: string; - /** Major version of data product. */ - majorVersion: string; - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Flag to enable or disable redundancy for data product. */ - redundancy?: ControlState; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Flag to enable or disable public access of data product resource. */ - publicNetworkAccess?: ControlState; - /** Flag to enable customer managed key encryption for data product. */ - customerManagedKeyEncryptionEnabled?: ControlState; - /** Customer managed encryption key details for data product. */ - customerEncryptionKey?: EncryptionKeyDetails; - /** Network rule set for data product. */ - networkacls?: DataProductNetworkAcls; - /** Managed resource group configuration. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; -} - -/** Encryption key details. */ -export interface EncryptionKeyDetails { - /** The Uri of the key vault. */ - keyVaultUri: string; - /** The name of the key vault key. */ - keyName: string; - /** The version of the key vault key. */ - keyVersion: string; -} - -/** Data Product Network rule set */ -export interface DataProductNetworkAcls { - /** Virtual Network Rule */ - virtualNetworkRule: Array; - /** IP rule with specific IP or IP range in CIDR format. */ - ipRules: Array; - /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ - allowedQueryIpRangeList: string[]; - /** Default Action */ - defaultAction: DefaultAction; -} - -/** Virtual Network Rule */ -export interface VirtualNetworkRule { - /** Resource ID of a subnet */ - id: string; - /** The action of virtual network rule. */ - action?: string; - /** Gets the state of virtual network rule. */ - state?: string; -} - -/** IP rule with specific IP or IP range in CIDR format. */ -export interface IPRules { - /** IP Rules Value */ - value?: string; - /** The action of virtual network rule. */ - action: string; -} - -/** ManagedResourceGroup related properties */ -export interface ManagedResourceGroupConfiguration { - /** Name of managed resource group */ - name: string; - /** Managed Resource Group location */ - location: string; -} - -/** Details of Consumption Properties */ -export interface ConsumptionEndpointsProperties {} - -/** The properties of the managed service identities assigned to this resource. */ -export interface ManagedServiceIdentity { - /** The type of managed identity assigned to this resource. */ - type: ManagedServiceIdentityType; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: UserAssignedIdentities; -} - -/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ -export interface UserAssignedIdentities - extends Record {} - -/** A managed identity assigned by the user. */ -export interface UserAssignedIdentity { - /** The active directory client identifier for this principal. */ - clientId?: string; - /** The active directory identifier for this principal. */ - principalId?: string; -} - -/** The base extension resource. */ -export interface ExtensionResource extends Resource {} - -/** The resource model definition for an Azure Resource Manager resource with an etag. */ -export interface AzureEntityResource extends Resource {} - -/** The private endpoint connection resource */ -export interface PrivateEndpointConnection extends ProxyResource { - /** The private endpoint connection properties */ - properties?: PrivateEndpointConnectionProperties; -} - -/** Properties of he private endpoint connection resource */ -export interface PrivateEndpointConnectionProperties { - /** The private endpoint resource */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; - /** The provisioning state of the private endpoint connection resource. */ - provisioningState?: PrivateEndpointConnectionProvisioningState; -} - -/** The private endpoint resource */ -export interface PrivateEndpoint { - /** The resource identifier for private endpoint */ - id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -export interface PrivateLinkResource extends ProxyResource { - /** Properties of the private link resource. */ - properties?: PrivateLinkResourceProperties; -} - -/** Properties of a private link resource. */ -export interface PrivateLinkResourceProperties { - /** The private link resource private link DNS zone name. */ - requiredZoneNames?: string[]; -} - -/** The data type resource. */ -export interface DataType extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DataTypeProperties; -} - -/** The data type properties */ -export interface DataTypeProperties { - /** State of data type. */ - state?: DataTypeState; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; -} - -/** The type used for update operations of the DataType. */ -export interface DataTypeUpdate { - properties?: DataTypeUpdateProperties; -} - -/** The updatable properties of the DataType. */ -export interface DataTypeUpdateProperties { - /** State of data type. */ - state?: DataTypeState; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; -} - -/** The details for container sas creation. */ -export interface ContainerSaS { - /** Sas token start timestamp. */ - startTimeStamp: Date | string; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date | string; - /** Ip Address */ - ipAddress: string; -} - -/** The type used for update operations of the DataProduct. */ -export interface DataProductUpdate { - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; - /** Resource tags. */ - tags?: Record; - properties?: DataProductUpdateProperties; -} - -/** The updatable properties of the DataProduct. */ -export interface DataProductUpdateProperties { - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlState; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; -} - -/** The details for storage account sas creation. */ -export interface AccountSas { - /** Sas token start timestamp. */ - startTimeStamp: Date | string; - /** Sas token expiry timestamp. */ - expiryTimeStamp: Date | string; - /** Ip Address */ - ipAddress: string; -} - -/** Details for KeyVault. */ -export interface KeyVaultInfo { - /** key vault url. */ - keyVaultUrl: string; -} - -/** The details for role assignment common properties. */ -export interface RoleAssignmentCommonProperties { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; -} - -/** The details for role assignment response. */ -export interface RoleAssignmentDetail { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRole; - /** Id of role assignment request */ - roleAssignmentId: string; -} - -/** Alias for ProvisioningState */ -export type ProvisioningState = - | string - | "Succeeded" - | "Failed" - | "Canceled" - | "Provisioning" - | "Updating" - | "Deleting" - | "Accepted"; -/** Alias for CreatedByType */ -export type CreatedByType = - | "User" - | "Application" - | "ManagedIdentity" - | "Key" - | string; -/** Alias for ControlState */ -export type ControlState = string | "Enabled" | "Disabled"; -/** Alias for DefaultAction */ -export type DefaultAction = string | "Allow" | "Deny"; -/** Alias for ManagedServiceIdentityType */ -export type ManagedServiceIdentityType = - | "None" - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | string; -/** Alias for PrivateEndpointServiceConnectionStatus */ -export type PrivateEndpointServiceConnectionStatus = - | "Pending" - | "Approved" - | "Rejected" - | string; -/** Alias for ResourceProvisioningState */ -export type ResourceProvisioningState = - | "Succeeded" - | "Failed" - | "Canceled" - | string; -/** Alias for PrivateEndpointConnectionProvisioningState */ -export type PrivateEndpointConnectionProvisioningState = - | ResourceProvisioningState - | "Creating" - | "Deleting"; -/** Alias for DataTypeState */ -export type DataTypeState = string | "Stopped" | "Running"; -/** Alias for DataProductUserRole */ -export type DataProductUserRole = string | "Reader" | "SensitiveReader"; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts deleted file mode 100644 index 5b0ed1183c7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ClientOptions } from "@azure-rest/core-client"; -import { TokenCredential } from "@azure/core-auth"; -import { NetworkAnalyticsContext } from "./clientDefinitions.js"; -/** - * Initialize a new instance of `NetworkAnalyticsContext` - * @param credentials - uniquely identify client credential - * @param options - the parameter for all optional parameters - */ -export default function createClient(credentials: TokenCredential, options?: ClientOptions): NetworkAnalyticsContext; -//# sourceMappingURL=networkAnalyticsClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts.map deleted file mode 100644 index fdb073854fd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkAnalyticsClient.d.ts","sourceRoot":"","sources":["networkAnalyticsClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAAW,EAAE,eAAe,EAC5B,OAAO,GAAE,aAAkB,GAC1B,uBAAuB,CA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js deleted file mode 100644 index 68dccfe6ead..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { getClient } from "@azure-rest/core-client"; -import { logger } from "../logger.js"; -/** - * Initialize a new instance of `NetworkAnalyticsContext` - * @param credentials - uniquely identify client credential - * @param options - the parameter for all optional parameters - */ -export default function createClient(credentials, options = {}) { - const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; - options.apiVersion = options.apiVersion ?? "2023-11-15"; - const userAgentInfo = `azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1`; - const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` - : `${userAgentInfo}`; - options = { - ...options, - userAgentOptions: { - userAgentPrefix, - }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger.info, - }, - credentials: { - scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], - }, - }; - const client = getClient(endpointUrl, credentials, options); - return client; -} -//# sourceMappingURL=networkAnalyticsClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js.map deleted file mode 100644 index b0ebf7efa61..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkAnalyticsClient.js","sourceRoot":"","sources":["networkAnalyticsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAiB,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAA4B,EAC5B,UAAyB,EAAE;IAE3B,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IACxE,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACxD,MAAM,aAAa,GAAG,iDAAiD,CAAC;IACxE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,GAAG;QACR,GAAG,OAAO;QACV,gBAAgB,EAAE;YAChB,eAAe;SAChB;QACD,cAAc,EAAE;YACd,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI;SACtD;QACD,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CACtB,WAAW,EACX,WAAW,EACX,OAAO,CACmB,CAAC;IAE7B,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.ts deleted file mode 100644 index 18f17548d5f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/networkAnalyticsClient.ts +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "../logger.js"; -import { TokenCredential } from "@azure/core-auth"; -import { NetworkAnalyticsContext } from "./clientDefinitions.js"; - -/** - * Initialize a new instance of `NetworkAnalyticsContext` - * @param credentials - uniquely identify client credential - * @param options - the parameter for all optional parameters - */ -export default function createClient( - credentials: TokenCredential, - options: ClientOptions = {}, -): NetworkAnalyticsContext { - const endpointUrl = - options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; - options.apiVersion = options.apiVersion ?? "2023-11-15"; - const userAgentInfo = `azsdk-js-arm-networkanalytics-rest/1.0.0-beta.1`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` - : `${userAgentInfo}`; - options = { - ...options, - userAgentOptions: { - userAgentPrefix, - }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger.info, - }, - credentials: { - scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], - }, - }; - - const client = getClient( - endpointUrl, - credentials, - options, - ) as NetworkAnalyticsContext; - - return client; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts deleted file mode 100644 index 97cd4b0028c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts +++ /dev/null @@ -1,388 +0,0 @@ -import { Paged } from "@azure/core-paging"; -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface OperationOutput { - /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ - readonly name?: string; - /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplayOutput; - /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ - readonly origin?: OriginOutput; - /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ - actionType?: ActionTypeOutput; -} -/** Localized display information for and operation. */ -export interface OperationDisplayOutput { - /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ - provider?: string; - /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ - resource?: string; - /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ - operation?: string; - /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ - description?: string; -} -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ -export interface ErrorResponseOutput { - /** The error object. */ - error?: ErrorDetailOutput; -} -/** The error detail. */ -export interface ErrorDetailOutput { - /** The error code. */ - readonly code?: string; - /** The error message. */ - readonly message?: string; - /** The error target. */ - readonly target?: string; - /** The error details. */ - readonly details?: Array; - /** The error additional info. */ - readonly additionalInfo?: Array; -} -/** The resource management error additional info. */ -export interface ErrorAdditionalInfoOutput { - /** The additional info type. */ - readonly type?: string; - /** The additional info. */ - readonly info?: Record; -} -/** The data catalog resource. */ -export interface DataProductsCatalogOutput extends ProxyResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: DataProductsCatalogPropertiesOutput; -} -/** Details for data catalog properties. */ -export interface DataProductsCatalogPropertiesOutput { - /** The data catalog provisioning state. */ - readonly provisioningState?: ProvisioningStateOutput; - /** The data product publisher information. */ - publishers: Array; -} -/** Details for Publisher Information. */ -export interface PublisherInformationOutput { - /** Name of the publisher. */ - publisherName: string; - /** Data product information. */ - dataProducts: Array; -} -/** Data Product Information */ -export interface DataProductInformationOutput { - /** Name of data product. */ - dataProductName: string; - /** Description about data product. */ - description: string; - /** Version information of data product. */ - dataProductVersions: Array; -} -/** Data Product Version. */ -export interface DataProductVersionOutput { - /** Version of data product */ - version: string; -} -/** The base proxy resource. */ -export interface ProxyResourceOutput extends ResourceOutput { -} -/** Common properties for all Azure Resource Manager resources. */ -export interface ResourceOutput { - /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - readonly id?: string; - /** The name of the resource */ - readonly name?: string; - /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - readonly type?: string; - /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - readonly systemData?: SystemDataOutput; -} -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemDataOutput { - /** The identity that created the resource. */ - readonly createdBy?: string; - /** The type of identity that created the resource. */ - readonly createdByType?: CreatedByTypeOutput; - /** The type of identity that created the resource. */ - readonly createdAt?: string; - /** The identity that last modified the resource. */ - readonly lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - readonly lastModifiedByType?: CreatedByTypeOutput; - /** The timestamp of resource last modification (UTC) */ - readonly lastModifiedAt?: string; -} -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResourceOutput extends ResourceOutput { - /** The geo-location where the resource lives */ - location: string; - /** Resource tags. */ - tags?: Record; -} -/** The data product resource. */ -export interface DataProductOutput extends TrackedResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: DataProductPropertiesOutput; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentityOutput; -} -/** The data product properties. */ -export interface DataProductPropertiesOutput { - /** The resource GUID property of the data product resource. */ - readonly resourceGuid?: string; - /** Latest provisioning state of data product. */ - readonly provisioningState?: ProvisioningStateOutput; - /** Data product publisher name. */ - publisher: string; - /** Product name of data product. */ - product: string; - /** Major version of data product. */ - majorVersion: string; - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Flag to enable or disable redundancy for data product. */ - redundancy?: ControlStateOutput; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlStateOutput; - /** Flag to enable or disable public access of data product resource. */ - publicNetworkAccess?: ControlStateOutput; - /** Flag to enable customer managed key encryption for data product. */ - customerManagedKeyEncryptionEnabled?: ControlStateOutput; - /** Customer managed encryption key details for data product. */ - customerEncryptionKey?: EncryptionKeyDetailsOutput; - /** Network rule set for data product. */ - networkacls?: DataProductNetworkAclsOutput; - /** Managed resource group configuration. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfigurationOutput; - /** List of available minor versions of the data product resource. */ - readonly availableMinorVersions?: string[]; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; - /** Documentation link for the data product based on definition file. */ - readonly documentation?: string; - /** Resource links which exposed to the customer to query the data. */ - readonly consumptionEndpoints?: ConsumptionEndpointsPropertiesOutput; - /** Key vault url. */ - readonly keyVaultUrl?: string; -} -/** Encryption key details. */ -export interface EncryptionKeyDetailsOutput { - /** The Uri of the key vault. */ - keyVaultUri: string; - /** The name of the key vault key. */ - keyName: string; - /** The version of the key vault key. */ - keyVersion: string; -} -/** Data Product Network rule set */ -export interface DataProductNetworkAclsOutput { - /** Virtual Network Rule */ - virtualNetworkRule: Array; - /** IP rule with specific IP or IP range in CIDR format. */ - ipRules: Array; - /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ - allowedQueryIpRangeList: string[]; - /** Default Action */ - defaultAction: DefaultActionOutput; -} -/** Virtual Network Rule */ -export interface VirtualNetworkRuleOutput { - /** Resource ID of a subnet */ - id: string; - /** The action of virtual network rule. */ - action?: string; - /** Gets the state of virtual network rule. */ - state?: string; -} -/** IP rule with specific IP or IP range in CIDR format. */ -export interface IPRulesOutput { - /** IP Rules Value */ - value?: string; - /** The action of virtual network rule. */ - action: string; -} -/** ManagedResourceGroup related properties */ -export interface ManagedResourceGroupConfigurationOutput { - /** Name of managed resource group */ - name: string; - /** Managed Resource Group location */ - location: string; -} -/** Details of Consumption Properties */ -export interface ConsumptionEndpointsPropertiesOutput { - /** Ingestion url to upload the data. */ - readonly ingestionUrl?: string; - /** Resource Id of ingestion endpoint. */ - readonly ingestionResourceId?: string; - /** Url to consume file type. */ - readonly fileAccessUrl?: string; - /** Resource Id of file access endpoint. */ - readonly fileAccessResourceId?: string; - /** Url to consume the processed data. */ - readonly queryUrl?: string; - /** Resource Id of query endpoint. */ - readonly queryResourceId?: string; -} -/** The properties of the managed service identities assigned to this resource. */ -export interface ManagedServiceIdentityOutput { - /** The Active Directory tenant id of the principal. */ - readonly tenantId?: string; - /** The active directory identifier of this principal. */ - readonly principalId?: string; - /** The type of managed identity assigned to this resource. */ - type: ManagedServiceIdentityTypeOutput; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: UserAssignedIdentitiesOutput; -} -/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ -export interface UserAssignedIdentitiesOutput extends Record { -} -/** A managed identity assigned by the user. */ -export interface UserAssignedIdentityOutput { - /** The active directory client identifier for this principal. */ - clientId?: string; - /** The active directory identifier for this principal. */ - principalId?: string; -} -/** The base extension resource. */ -export interface ExtensionResourceOutput extends ResourceOutput { -} -/** The resource model definition for an Azure Resource Manager resource with an etag. */ -export interface AzureEntityResourceOutput extends ResourceOutput { - /** Resource Etag. */ - readonly etag: string; -} -/** The private endpoint connection resource */ -export interface PrivateEndpointConnectionOutput extends ProxyResourceOutput { - /** The private endpoint connection properties */ - properties?: PrivateEndpointConnectionPropertiesOutput; -} -/** Properties of he private endpoint connection resource */ -export interface PrivateEndpointConnectionPropertiesOutput { - /** The group identifiers for the private endpoint resource */ - readonly groupIds?: string[]; - /** The private endpoint resource */ - privateEndpoint?: PrivateEndpointOutput; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput; - /** The provisioning state of the private endpoint connection resource. */ - provisioningState?: PrivateEndpointConnectionProvisioningStateOutput; -} -/** The private endpoint resource */ -export interface PrivateEndpointOutput { - /** The resource identifier for private endpoint */ - id?: string; -} -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionStateOutput { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatusOutput; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} -export interface PrivateLinkResourceOutput extends ProxyResourceOutput { - /** Properties of the private link resource. */ - properties?: PrivateLinkResourcePropertiesOutput; -} -/** Properties of a private link resource. */ -export interface PrivateLinkResourcePropertiesOutput { - /** The private link resource group id. */ - readonly groupId?: string; - /** The private link resource required member names. */ - readonly requiredMembers?: string[]; - /** The private link resource private link DNS zone name. */ - requiredZoneNames?: string[]; -} -/** The data type resource. */ -export interface DataTypeOutput extends ProxyResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: DataTypePropertiesOutput; -} -/** The data type properties */ -export interface DataTypePropertiesOutput { - /** Latest provisioning state of data product. */ - readonly provisioningState?: ProvisioningStateOutput; - /** State of data type. */ - state?: DataTypeStateOutput; - /** Reason for the state of data type. */ - readonly stateReason?: string; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; - /** Url for data visualization. */ - readonly visualizationUrl?: string; -} -/** Details of storage container account sas token . */ -export interface ContainerSasTokenOutput { - /** Field to specify storage container sas token. */ - storageContainerSasToken: string; -} -/** Details of storage account sas token . */ -export interface AccountSasTokenOutput { - /** Field to specify storage account sas token. */ - storageAccountSasToken: string; -} -/** The details for role assignment response. */ -export interface RoleAssignmentDetailOutput { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRoleOutput; - /** Id of role assignment request */ - roleAssignmentId: string; -} -/** list role assignments. */ -export interface ListRoleAssignmentsOutput { - /** Count of role assignments. */ - count: number; - /** list of role assignments */ - roleAssignmentResponse: Array; -} -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export type PagedOperationOutput = Paged; -/** Alias for OriginOutput */ -export type OriginOutput = "user" | "system" | "user,system" | string; -/** Alias for ActionTypeOutput */ -export type ActionTypeOutput = "Internal" | string; -/** Alias for ProvisioningStateOutput */ -export type ProvisioningStateOutput = string | "Succeeded" | "Failed" | "Canceled" | "Provisioning" | "Updating" | "Deleting" | "Accepted"; -/** Alias for CreatedByTypeOutput */ -export type CreatedByTypeOutput = "User" | "Application" | "ManagedIdentity" | "Key" | string; -/** Alias for ControlStateOutput */ -export type ControlStateOutput = string | "Enabled" | "Disabled"; -/** Alias for DefaultActionOutput */ -export type DefaultActionOutput = string | "Allow" | "Deny"; -/** Alias for ManagedServiceIdentityTypeOutput */ -export type ManagedServiceIdentityTypeOutput = "None" | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | string; -/** Alias for PrivateEndpointServiceConnectionStatusOutput */ -export type PrivateEndpointServiceConnectionStatusOutput = "Pending" | "Approved" | "Rejected" | string; -/** Alias for ResourceProvisioningStateOutput */ -export type ResourceProvisioningStateOutput = "Succeeded" | "Failed" | "Canceled" | string; -/** Alias for PrivateEndpointConnectionProvisioningStateOutput */ -export type PrivateEndpointConnectionProvisioningStateOutput = ResourceProvisioningStateOutput | "Creating" | "Deleting"; -/** Alias for DataTypeStateOutput */ -export type DataTypeStateOutput = string | "Stopped" | "Running"; -/** The response of a DataProductsCatalog list operation. */ -export type DataProductsCatalogListResultOutput = Paged; -/** The response of a DataType list operation. */ -export type DataTypeListResultOutput = Paged; -/** Alias for DataProductUserRoleOutput */ -export type DataProductUserRoleOutput = string | "Reader" | "SensitiveReader"; -/** The response of a DataProduct list operation. */ -export type DataProductListResultOutput = Paged; -//# sourceMappingURL=outputModels.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts.map deleted file mode 100644 index 5ee89e81961..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,sLAAsL;IACtL,QAAQ,CAAC,IAA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S,GAAG,SAAS,CAAC;AACjE,4DAA4D;AAC5D,MAAM,MAAM,mCAAmC,GAC7C,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnC,iDAAiD;AACjD,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAC7D,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,QAAQ,GAAG,iBAAiB,CAAC;AAC9E,oDAAoD;AACpD,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js deleted file mode 100644 index c83a68646c8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=outputModels.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js.map deleted file mode 100644 index 61942e37630..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.ts deleted file mode 100644 index c63010bf15a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/outputModels.ts +++ /dev/null @@ -1,458 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Paged } from "@azure/core-paging"; - -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface OperationOutput { - /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ - readonly name?: string; - /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplayOutput; - /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ - readonly origin?: OriginOutput; - /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ - actionType?: ActionTypeOutput; -} - -/** Localized display information for and operation. */ -export interface OperationDisplayOutput { - /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ - provider?: string; - /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ - resource?: string; - /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ - operation?: string; - /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ - description?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ -export interface ErrorResponseOutput { - /** The error object. */ - error?: ErrorDetailOutput; -} - -/** The error detail. */ -export interface ErrorDetailOutput { - /** The error code. */ - readonly code?: string; - /** The error message. */ - readonly message?: string; - /** The error target. */ - readonly target?: string; - /** The error details. */ - readonly details?: Array; - /** The error additional info. */ - readonly additionalInfo?: Array; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfoOutput { - /** The additional info type. */ - readonly type?: string; - /** The additional info. */ - readonly info?: Record; -} - -/** The data catalog resource. */ -export interface DataProductsCatalogOutput extends ProxyResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: DataProductsCatalogPropertiesOutput; -} - -/** Details for data catalog properties. */ -export interface DataProductsCatalogPropertiesOutput { - /** The data catalog provisioning state. */ - readonly provisioningState?: ProvisioningStateOutput; - /** The data product publisher information. */ - publishers: Array; -} - -/** Details for Publisher Information. */ -export interface PublisherInformationOutput { - /** Name of the publisher. */ - publisherName: string; - /** Data product information. */ - dataProducts: Array; -} - -/** Data Product Information */ -export interface DataProductInformationOutput { - /** Name of data product. */ - dataProductName: string; - /** Description about data product. */ - description: string; - /** Version information of data product. */ - dataProductVersions: Array; -} - -/** Data Product Version. */ -export interface DataProductVersionOutput { - /** Version of data product */ - version: string; -} - -/** The base proxy resource. */ -export interface ProxyResourceOutput extends ResourceOutput {} - -/** Common properties for all Azure Resource Manager resources. */ -export interface ResourceOutput { - /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - readonly id?: string; - /** The name of the resource */ - readonly name?: string; - /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - readonly type?: string; - /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - readonly systemData?: SystemDataOutput; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemDataOutput { - /** The identity that created the resource. */ - readonly createdBy?: string; - /** The type of identity that created the resource. */ - readonly createdByType?: CreatedByTypeOutput; - /** The type of identity that created the resource. */ - readonly createdAt?: string; - /** The identity that last modified the resource. */ - readonly lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - readonly lastModifiedByType?: CreatedByTypeOutput; - /** The timestamp of resource last modification (UTC) */ - readonly lastModifiedAt?: string; -} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResourceOutput extends ResourceOutput { - /** The geo-location where the resource lives */ - location: string; - /** Resource tags. */ - tags?: Record; -} - -/** The data product resource. */ -export interface DataProductOutput extends TrackedResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: DataProductPropertiesOutput; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentityOutput; -} - -/** The data product properties. */ -export interface DataProductPropertiesOutput { - /** The resource GUID property of the data product resource. */ - readonly resourceGuid?: string; - /** Latest provisioning state of data product. */ - readonly provisioningState?: ProvisioningStateOutput; - /** Data product publisher name. */ - publisher: string; - /** Product name of data product. */ - product: string; - /** Major version of data product. */ - majorVersion: string; - /** List of name or email associated with data product resource deployment. */ - owners?: string[]; - /** Flag to enable or disable redundancy for data product. */ - redundancy?: ControlStateOutput; - /** Purview account url for data product to connect to. */ - purviewAccount?: string; - /** Purview collection url for data product to connect to. */ - purviewCollection?: string; - /** Flag to enable or disable private link for data product resource. */ - privateLinksEnabled?: ControlStateOutput; - /** Flag to enable or disable public access of data product resource. */ - publicNetworkAccess?: ControlStateOutput; - /** Flag to enable customer managed key encryption for data product. */ - customerManagedKeyEncryptionEnabled?: ControlStateOutput; - /** Customer managed encryption key details for data product. */ - customerEncryptionKey?: EncryptionKeyDetailsOutput; - /** Network rule set for data product. */ - networkacls?: DataProductNetworkAclsOutput; - /** Managed resource group configuration. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfigurationOutput; - /** List of available minor versions of the data product resource. */ - readonly availableMinorVersions?: string[]; - /** Current configured minor version of the data product resource. */ - currentMinorVersion?: string; - /** Documentation link for the data product based on definition file. */ - readonly documentation?: string; - /** Resource links which exposed to the customer to query the data. */ - readonly consumptionEndpoints?: ConsumptionEndpointsPropertiesOutput; - /** Key vault url. */ - readonly keyVaultUrl?: string; -} - -/** Encryption key details. */ -export interface EncryptionKeyDetailsOutput { - /** The Uri of the key vault. */ - keyVaultUri: string; - /** The name of the key vault key. */ - keyName: string; - /** The version of the key vault key. */ - keyVersion: string; -} - -/** Data Product Network rule set */ -export interface DataProductNetworkAclsOutput { - /** Virtual Network Rule */ - virtualNetworkRule: Array; - /** IP rule with specific IP or IP range in CIDR format. */ - ipRules: Array; - /** The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint. */ - allowedQueryIpRangeList: string[]; - /** Default Action */ - defaultAction: DefaultActionOutput; -} - -/** Virtual Network Rule */ -export interface VirtualNetworkRuleOutput { - /** Resource ID of a subnet */ - id: string; - /** The action of virtual network rule. */ - action?: string; - /** Gets the state of virtual network rule. */ - state?: string; -} - -/** IP rule with specific IP or IP range in CIDR format. */ -export interface IPRulesOutput { - /** IP Rules Value */ - value?: string; - /** The action of virtual network rule. */ - action: string; -} - -/** ManagedResourceGroup related properties */ -export interface ManagedResourceGroupConfigurationOutput { - /** Name of managed resource group */ - name: string; - /** Managed Resource Group location */ - location: string; -} - -/** Details of Consumption Properties */ -export interface ConsumptionEndpointsPropertiesOutput { - /** Ingestion url to upload the data. */ - readonly ingestionUrl?: string; - /** Resource Id of ingestion endpoint. */ - readonly ingestionResourceId?: string; - /** Url to consume file type. */ - readonly fileAccessUrl?: string; - /** Resource Id of file access endpoint. */ - readonly fileAccessResourceId?: string; - /** Url to consume the processed data. */ - readonly queryUrl?: string; - /** Resource Id of query endpoint. */ - readonly queryResourceId?: string; -} - -/** The properties of the managed service identities assigned to this resource. */ -export interface ManagedServiceIdentityOutput { - /** The Active Directory tenant id of the principal. */ - readonly tenantId?: string; - /** The active directory identifier of this principal. */ - readonly principalId?: string; - /** The type of managed identity assigned to this resource. */ - type: ManagedServiceIdentityTypeOutput; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: UserAssignedIdentitiesOutput; -} - -/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */ -export interface UserAssignedIdentitiesOutput - extends Record {} - -/** A managed identity assigned by the user. */ -export interface UserAssignedIdentityOutput { - /** The active directory client identifier for this principal. */ - clientId?: string; - /** The active directory identifier for this principal. */ - principalId?: string; -} - -/** The base extension resource. */ -export interface ExtensionResourceOutput extends ResourceOutput {} - -/** The resource model definition for an Azure Resource Manager resource with an etag. */ -export interface AzureEntityResourceOutput extends ResourceOutput { - /** Resource Etag. */ - readonly etag: string; -} - -/** The private endpoint connection resource */ -export interface PrivateEndpointConnectionOutput extends ProxyResourceOutput { - /** The private endpoint connection properties */ - properties?: PrivateEndpointConnectionPropertiesOutput; -} - -/** Properties of he private endpoint connection resource */ -export interface PrivateEndpointConnectionPropertiesOutput { - /** The group identifiers for the private endpoint resource */ - readonly groupIds?: string[]; - /** The private endpoint resource */ - privateEndpoint?: PrivateEndpointOutput; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput; - /** The provisioning state of the private endpoint connection resource. */ - provisioningState?: PrivateEndpointConnectionProvisioningStateOutput; -} - -/** The private endpoint resource */ -export interface PrivateEndpointOutput { - /** The resource identifier for private endpoint */ - id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionStateOutput { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatusOutput; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -export interface PrivateLinkResourceOutput extends ProxyResourceOutput { - /** Properties of the private link resource. */ - properties?: PrivateLinkResourcePropertiesOutput; -} - -/** Properties of a private link resource. */ -export interface PrivateLinkResourcePropertiesOutput { - /** The private link resource group id. */ - readonly groupId?: string; - /** The private link resource required member names. */ - readonly requiredMembers?: string[]; - /** The private link resource private link DNS zone name. */ - requiredZoneNames?: string[]; -} - -/** The data type resource. */ -export interface DataTypeOutput extends ProxyResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: DataTypePropertiesOutput; -} - -/** The data type properties */ -export interface DataTypePropertiesOutput { - /** Latest provisioning state of data product. */ - readonly provisioningState?: ProvisioningStateOutput; - /** State of data type. */ - state?: DataTypeStateOutput; - /** Reason for the state of data type. */ - readonly stateReason?: string; - /** Field for storage output retention in days. */ - storageOutputRetention?: number; - /** Field for database cache retention in days. */ - databaseCacheRetention?: number; - /** Field for database data retention in days. */ - databaseRetention?: number; - /** Url for data visualization. */ - readonly visualizationUrl?: string; -} - -/** Details of storage container account sas token . */ -export interface ContainerSasTokenOutput { - /** Field to specify storage container sas token. */ - storageContainerSasToken: string; -} - -/** Details of storage account sas token . */ -export interface AccountSasTokenOutput { - /** Field to specify storage account sas token. */ - storageAccountSasToken: string; -} - -/** The details for role assignment response. */ -export interface RoleAssignmentDetailOutput { - /** Role Id of the Built-In Role */ - roleId: string; - /** Object ID of the AAD principal or security-group. */ - principalId: string; - /** User name. */ - userName: string; - /** Data Type Scope at which the role assignment is created. */ - dataTypeScope: string[]; - /** Type of the principal Id: User, Group or ServicePrincipal */ - principalType: string; - /** Data Product role to be assigned to a user. */ - role: DataProductUserRoleOutput; - /** Id of role assignment request */ - roleAssignmentId: string; -} - -/** list role assignments. */ -export interface ListRoleAssignmentsOutput { - /** Count of role assignments. */ - count: number; - /** list of role assignments */ - roleAssignmentResponse: Array; -} - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export type PagedOperationOutput = Paged; -/** Alias for OriginOutput */ -export type OriginOutput = "user" | "system" | "user,system" | string; -/** Alias for ActionTypeOutput */ -export type ActionTypeOutput = "Internal" | string; -/** Alias for ProvisioningStateOutput */ -export type ProvisioningStateOutput = - | string - | "Succeeded" - | "Failed" - | "Canceled" - | "Provisioning" - | "Updating" - | "Deleting" - | "Accepted"; -/** Alias for CreatedByTypeOutput */ -export type CreatedByTypeOutput = - | "User" - | "Application" - | "ManagedIdentity" - | "Key" - | string; -/** Alias for ControlStateOutput */ -export type ControlStateOutput = string | "Enabled" | "Disabled"; -/** Alias for DefaultActionOutput */ -export type DefaultActionOutput = string | "Allow" | "Deny"; -/** Alias for ManagedServiceIdentityTypeOutput */ -export type ManagedServiceIdentityTypeOutput = - | "None" - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | string; -/** Alias for PrivateEndpointServiceConnectionStatusOutput */ -export type PrivateEndpointServiceConnectionStatusOutput = - | "Pending" - | "Approved" - | "Rejected" - | string; -/** Alias for ResourceProvisioningStateOutput */ -export type ResourceProvisioningStateOutput = - | "Succeeded" - | "Failed" - | "Canceled" - | string; -/** Alias for PrivateEndpointConnectionProvisioningStateOutput */ -export type PrivateEndpointConnectionProvisioningStateOutput = - | ResourceProvisioningStateOutput - | "Creating" - | "Deleting"; -/** Alias for DataTypeStateOutput */ -export type DataTypeStateOutput = string | "Stopped" | "Running"; -/** The response of a DataProductsCatalog list operation. */ -export type DataProductsCatalogListResultOutput = - Paged; -/** The response of a DataType list operation. */ -export type DataTypeListResultOutput = Paged; -/** Alias for DataProductUserRoleOutput */ -export type DataProductUserRoleOutput = string | "Reader" | "SensitiveReader"; -/** The response of a DataProduct list operation. */ -export type DataProductListResultOutput = Paged; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts deleted file mode 100644 index b4e218132a2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Client, PathUncheckedResponse } from "@azure-rest/core-client"; -/** - * Helper type to extract the type of an array - */ -export type GetArrayType = T extends Array ? TData : never; -/** - * The type of a custom function that defines how to get a page and a link to the next one if any. - */ -export type GetPage = (pageLink: string, maxPageSize?: number) => Promise<{ - page: TPage; - nextPageLink?: string; -}>; -/** - * Options for the paging helper - */ -export interface PagingOptions { - /** - * Custom function to extract pagination details for crating the PagedAsyncIterableIterator - */ - customGetPage?: GetPage[]>; -} -/** - * Helper type to infer the Type of the paged elements from the response type - * This type is generated based on the swagger information for x-ms-pageable - * specifically on the itemName property which indicates the property of the response - * where the page items are found. The default value is `value`. - * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter - */ -export type PaginateReturn = TResult extends { - body: { - value?: infer TPage; - }; -} ? GetArrayType : Array; -/** - * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension - * @param client - Client to use for sending the next page requests - * @param initialResponse - Initial response containing the nextLink and current page of elements - * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results - * @returns - PagedAsyncIterableIterator to iterate the elements - */ -export declare function paginate(client: Client, initialResponse: TResponse, options?: PagingOptions): PagedAsyncIterableIterator>; -//# sourceMappingURL=paginateHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts.map deleted file mode 100644 index 07c4e5bcd70..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,0BAA0B,EAE3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,MAAM,EAEN,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SAAS;IACpD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACG,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA4BvD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js deleted file mode 100644 index 572880491d7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { getPagedAsyncIterator, } from "@azure/core-paging"; -import { createRestError, } from "@azure-rest/core-client"; -/** - * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension - * @param client - Client to use for sending the next page requests - * @param initialResponse - Initial response containing the nextLink and current page of elements - * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results - * @returns - PagedAsyncIterableIterator to iterate the elements - */ -export function paginate(client, initialResponse, options = {}) { - let firstRun = true; - const itemName = "value"; - const nextLinkName = "nextLink"; - const { customGetPage } = options; - const pagedResult = { - firstPageLink: "", - getPage: typeof customGetPage === "function" - ? customGetPage - : async (pageLink) => { - const result = firstRun - ? initialResponse - : await client.pathUnchecked(pageLink).get(); - firstRun = false; - checkPagingRequest(result); - const nextLink = getNextLink(result.body, nextLinkName); - const values = getElements(result.body, itemName); - return { - page: values, - nextPageLink: nextLink, - }; - }, - }; - return getPagedAsyncIterator(pagedResult); -} -/** - * Gets for the value of nextLink in the body - */ -function getNextLink(body, nextLinkName) { - if (!nextLinkName) { - return undefined; - } - const nextLink = body[nextLinkName]; - if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { - throw new Error(`Body Property ${nextLinkName} should be a string or undefined`); - } - return nextLink; -} -/** - * Gets the elements of the current request in the body. - */ -function getElements(body, itemName) { - const value = body[itemName]; - // value has to be an array according to the x-ms-pageable extension. - // The fact that this must be an array is used above to calculate the - // type of elements in the page in PaginateReturn - if (!Array.isArray(value)) { - throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`); - } - return value ?? []; -} -/** - * Checks if a request failed - */ -function checkPagingRequest(response) { - const Http2xxStatusCodes = [ - "200", - "201", - "202", - "203", - "204", - "205", - "206", - "207", - "208", - "226", - ]; - if (!Http2xxStatusCodes.includes(response.status)) { - throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response); - } -} -//# sourceMappingURL=paginateHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js.map deleted file mode 100644 index 4de832822f4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,qBAAqB,GAGtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,eAAe,GAEhB,MAAM,yBAAyB,CAAC;AAyCjC;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ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AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG;QACzB,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;KACN,CAAC;IACF,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.ts deleted file mode 100644 index 3aac141db0e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/paginateHelper.ts +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - getPagedAsyncIterator, - PagedAsyncIterableIterator, - PagedResult, -} from "@azure/core-paging"; -import { - Client, - createRestError, - PathUncheckedResponse, -} from "@azure-rest/core-client"; - -/** - * Helper type to extract the type of an array - */ -export type GetArrayType = T extends Array ? TData : never; - -/** - * The type of a custom function that defines how to get a page and a link to the next one if any. - */ -export type GetPage = ( - pageLink: string, - maxPageSize?: number, -) => Promise<{ - page: TPage; - nextPageLink?: string; -}>; - -/** - * Options for the paging helper - */ -export interface PagingOptions { - /** - * Custom function to extract pagination details for crating the PagedAsyncIterableIterator - */ - customGetPage?: GetPage[]>; -} - -/** - * Helper type to infer the Type of the paged elements from the response type - * This type is generated based on the swagger information for x-ms-pageable - * specifically on the itemName property which indicates the property of the response - * where the page items are found. The default value is `value`. - * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter - */ -export type PaginateReturn = TResult extends { - body: { value?: infer TPage }; -} - ? GetArrayType - : Array; - -/** - * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension - * @param client - Client to use for sending the next page requests - * @param initialResponse - Initial response containing the nextLink and current page of elements - * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results - * @returns - PagedAsyncIterableIterator to iterate the elements - */ -export function paginate( - client: Client, - initialResponse: TResponse, - options: PagingOptions = {}, -): PagedAsyncIterableIterator> { - // Extract element type from initial response - type TElement = PaginateReturn; - let firstRun = true; - const itemName = "value"; - const nextLinkName = "nextLink"; - const { customGetPage } = options; - const pagedResult: PagedResult = { - firstPageLink: "", - getPage: - typeof customGetPage === "function" - ? customGetPage - : async (pageLink: string) => { - const result = firstRun - ? initialResponse - : await client.pathUnchecked(pageLink).get(); - firstRun = false; - checkPagingRequest(result); - const nextLink = getNextLink(result.body, nextLinkName); - const values = getElements(result.body, itemName); - return { - page: values, - nextPageLink: nextLink, - }; - }, - }; - - return getPagedAsyncIterator(pagedResult); -} - -/** - * Gets for the value of nextLink in the body - */ -function getNextLink(body: unknown, nextLinkName?: string): string | undefined { - if (!nextLinkName) { - return undefined; - } - - const nextLink = (body as Record)[nextLinkName]; - - if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { - throw new Error( - `Body Property ${nextLinkName} should be a string or undefined`, - ); - } - - return nextLink; -} - -/** - * Gets the elements of the current request in the body. - */ -function getElements(body: unknown, itemName: string): T[] { - const value = (body as Record)[itemName] as T[]; - - // value has to be an array according to the x-ms-pageable extension. - // The fact that this must be an array is used above to calculate the - // type of elements in the page in PaginateReturn - if (!Array.isArray(value)) { - throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, - ); - } - - return value ?? []; -} - -/** - * Checks if a request failed - */ -function checkPagingRequest(response: PathUncheckedResponse): void { - const Http2xxStatusCodes = [ - "200", - "201", - "202", - "203", - "204", - "205", - "206", - "207", - "208", - "226", - ]; - if (!Http2xxStatusCodes.includes(response.status)) { - throw createRestError( - `Pagination failed with unexpected statusCode ${response.status}`, - response, - ); - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts deleted file mode 100644 index 354c723638b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { RequestParameters } from "@azure-rest/core-client"; -import { DataType, DataTypeUpdate, ContainerSaS, DataProduct, DataProductUpdate, AccountSas, KeyVaultInfo, RoleAssignmentCommonProperties, RoleAssignmentDetail } from "./models.js"; -export type OperationsListParameters = RequestParameters; -export type DataProductsCatalogsGetParameters = RequestParameters; -export type DataProductsCatalogsListByResourceGroupParameters = RequestParameters; -export type DataProductsCatalogsListBySubscriptionParameters = RequestParameters; -export interface DataTypesCreateBodyParam { - /** Resource create parameters. */ - body: DataType; -} -export type DataTypesCreateParameters = DataTypesCreateBodyParam & RequestParameters; -export type DataTypesGetParameters = RequestParameters; -export interface DataTypesUpdateBodyParam { - /** The resource properties to be updated. */ - body: DataTypeUpdate; -} -export type DataTypesUpdateParameters = DataTypesUpdateBodyParam & RequestParameters; -export type DataTypesDeleteParameters = RequestParameters; -export interface DataTypesDeleteDataBodyParam { - /** The content of the action request */ - body: Record; -} -export type DataTypesDeleteDataParameters = DataTypesDeleteDataBodyParam & RequestParameters; -export interface DataTypesGenerateStorageContainerSasTokenBodyParam { - /** The content of the action request */ - body: ContainerSaS; -} -export type DataTypesGenerateStorageContainerSasTokenParameters = DataTypesGenerateStorageContainerSasTokenBodyParam & RequestParameters; -export type DataTypesListByDataProductParameters = RequestParameters; -export interface DataProductsCreateBodyParam { - /** Resource create parameters. */ - body: DataProduct; -} -export type DataProductsCreateParameters = DataProductsCreateBodyParam & RequestParameters; -export type DataProductsGetParameters = RequestParameters; -export interface DataProductsUpdateBodyParam { - /** The resource properties to be updated. */ - body: DataProductUpdate; -} -export type DataProductsUpdateParameters = DataProductsUpdateBodyParam & RequestParameters; -export type DataProductsDeleteParameters = RequestParameters; -export interface DataProductsGenerateStorageAccountSasTokenBodyParam { - /** The content of the action request */ - body: AccountSas; -} -export type DataProductsGenerateStorageAccountSasTokenParameters = DataProductsGenerateStorageAccountSasTokenBodyParam & RequestParameters; -export interface DataProductsRotateKeyBodyParam { - /** The content of the action request */ - body: KeyVaultInfo; -} -export type DataProductsRotateKeyParameters = DataProductsRotateKeyBodyParam & RequestParameters; -export interface DataProductsAddUserRoleBodyParam { - /** The content of the action request */ - body: RoleAssignmentCommonProperties; -} -export type DataProductsAddUserRoleParameters = DataProductsAddUserRoleBodyParam & RequestParameters; -export interface DataProductsRemoveUserRoleBodyParam { - /** The content of the action request */ - body: RoleAssignmentDetail; -} -export type DataProductsRemoveUserRoleParameters = DataProductsRemoveUserRoleBodyParam & RequestParameters; -export interface DataProductsListRolesAssignmentsBodyParam { - /** The content of the action request */ - body: Record; -} -export type DataProductsListRolesAssignmentsParameters = DataProductsListRolesAssignmentsBodyParam & RequestParameters; -export type DataProductsListByResourceGroupParameters = RequestParameters; -export type DataProductsListBySubscriptionParameters = RequestParameters; -//# sourceMappingURL=parameters.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts.map deleted file mode 100644 index 95d03990be3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,8BAA8B,EAC9B,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AACzD,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC;AAClE,MAAM,MAAM,iDAAiD,GAC3D,iBAAiB,CAAC;AACpB,MAAM,MAAM,gDAAgD,GAC1D,iBAAiB,CAAC;AAEpB,MAAM,WAAW,wBAAwB;IACvC,kCAAkC;IAClC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,GAC9D,iBAAiB,CAAC;AACpB,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AAEvD,MAAM,WAAW,wBAAwB;IACvC,6CAA6C;IAC7C,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,GAC9D,iBAAiB,CAAC;AACpB,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAE1D,MAAM,WAAW,4BAA4B;IAC3C,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,MAAM,MAAM,6BAA6B,GAAG,4BAA4B,GACtE,iBAAiB,CAAC;AAEpB,MAAM,WAAW,kDAAkD;IACjE,wCAAwC;IACxC,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,MAAM,mDAAmD,GAC7D,kDAAkD,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,MAAM,MAAM,wCAAwC,GAAG,iBAAiB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js deleted file mode 100644 index b8effe53fdb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=parameters.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js.map deleted file mode 100644 index 148ba0663ec..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameters.js","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.ts deleted file mode 100644 index c4a499c4225..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/parameters.ts +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { RequestParameters } from "@azure-rest/core-client"; -import { - DataType, - DataTypeUpdate, - ContainerSaS, - DataProduct, - DataProductUpdate, - AccountSas, - KeyVaultInfo, - RoleAssignmentCommonProperties, - RoleAssignmentDetail, -} from "./models.js"; - -export type OperationsListParameters = RequestParameters; -export type DataProductsCatalogsGetParameters = RequestParameters; -export type DataProductsCatalogsListByResourceGroupParameters = - RequestParameters; -export type DataProductsCatalogsListBySubscriptionParameters = - RequestParameters; - -export interface DataTypesCreateBodyParam { - /** Resource create parameters. */ - body: DataType; -} - -export type DataTypesCreateParameters = DataTypesCreateBodyParam & - RequestParameters; -export type DataTypesGetParameters = RequestParameters; - -export interface DataTypesUpdateBodyParam { - /** The resource properties to be updated. */ - body: DataTypeUpdate; -} - -export type DataTypesUpdateParameters = DataTypesUpdateBodyParam & - RequestParameters; -export type DataTypesDeleteParameters = RequestParameters; - -export interface DataTypesDeleteDataBodyParam { - /** The content of the action request */ - body: Record; -} - -export type DataTypesDeleteDataParameters = DataTypesDeleteDataBodyParam & - RequestParameters; - -export interface DataTypesGenerateStorageContainerSasTokenBodyParam { - /** The content of the action request */ - body: ContainerSaS; -} - -export type DataTypesGenerateStorageContainerSasTokenParameters = - DataTypesGenerateStorageContainerSasTokenBodyParam & RequestParameters; -export type DataTypesListByDataProductParameters = RequestParameters; - -export interface DataProductsCreateBodyParam { - /** Resource create parameters. */ - body: DataProduct; -} - -export type DataProductsCreateParameters = DataProductsCreateBodyParam & - RequestParameters; -export type DataProductsGetParameters = RequestParameters; - -export interface DataProductsUpdateBodyParam { - /** The resource properties to be updated. */ - body: DataProductUpdate; -} - -export type DataProductsUpdateParameters = DataProductsUpdateBodyParam & - RequestParameters; -export type DataProductsDeleteParameters = RequestParameters; - -export interface DataProductsGenerateStorageAccountSasTokenBodyParam { - /** The content of the action request */ - body: AccountSas; -} - -export type DataProductsGenerateStorageAccountSasTokenParameters = - DataProductsGenerateStorageAccountSasTokenBodyParam & RequestParameters; - -export interface DataProductsRotateKeyBodyParam { - /** The content of the action request */ - body: KeyVaultInfo; -} - -export type DataProductsRotateKeyParameters = DataProductsRotateKeyBodyParam & - RequestParameters; - -export interface DataProductsAddUserRoleBodyParam { - /** The content of the action request */ - body: RoleAssignmentCommonProperties; -} - -export type DataProductsAddUserRoleParameters = - DataProductsAddUserRoleBodyParam & RequestParameters; - -export interface DataProductsRemoveUserRoleBodyParam { - /** The content of the action request */ - body: RoleAssignmentDetail; -} - -export type DataProductsRemoveUserRoleParameters = - DataProductsRemoveUserRoleBodyParam & RequestParameters; - -export interface DataProductsListRolesAssignmentsBodyParam { - /** The content of the action request */ - body: Record; -} - -export type DataProductsListRolesAssignmentsParameters = - DataProductsListRolesAssignmentsBodyParam & RequestParameters; -export type DataProductsListByResourceGroupParameters = RequestParameters; -export type DataProductsListBySubscriptionParameters = RequestParameters; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts deleted file mode 100644 index 4956eea8901..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { Client } from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; -import { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro"; -import { DataTypesCreate200Response, DataTypesCreate201Response, DataTypesCreateDefaultResponse, DataTypesCreateLogicalResponse, DataTypesUpdate200Response, DataTypesUpdate202Response, DataTypesUpdateDefaultResponse, DataTypesUpdateLogicalResponse, DataTypesDelete202Response, DataTypesDelete204Response, DataTypesDeleteDefaultResponse, DataTypesDeleteLogicalResponse, DataTypesDeleteData202Response, DataTypesDeleteData204Response, DataTypesDeleteDataDefaultResponse, DataTypesDeleteDataLogicalResponse, DataProductsCreate200Response, DataProductsCreate201Response, DataProductsCreateDefaultResponse, DataProductsCreateLogicalResponse, DataProductsUpdate200Response, DataProductsUpdate202Response, DataProductsUpdateDefaultResponse, DataProductsUpdateLogicalResponse, DataProductsDelete202Response, DataProductsDelete204Response, DataProductsDeleteDefaultResponse, DataProductsDeleteLogicalResponse } from "./responses.js"; -/** - * A simple poller that can be used to poll a long running operation. - */ -export interface SimplePollerLike, TResult> { - /** - * Returns true if the poller has finished polling. - */ - isDone(): boolean; - /** - * Returns the state of the operation. - */ - getOperationState(): TState; - /** - * Returns the result value of the operation, - * regardless of the state of the poller. - * It can return undefined or an incomplete form of the final TResult value - * depending on the implementation. - */ - getResult(): TResult | undefined; - /** - * Returns a promise that will resolve once a single polling request finishes. - * It does this by calling the update method of the Poller's operation. - */ - poll(options?: { - abortSignal?: AbortSignalLike; - }): Promise; - /** - * Returns a promise that will resolve once the underlying operation is completed. - */ - pollUntilDone(pollOptions?: { - abortSignal?: AbortSignalLike; - }): Promise; - /** - * Invokes the provided callback after each polling is completed, - * sending the current state of the poller's operation. - * - * It returns a method that can be used to stop receiving updates on the given callback function. - */ - onProgress(callback: (state: TState) => void): CancelOnProgress; - /** - * Returns a promise that could be used for serialized version of the poller's operation - * by invoking the operation's serialize method. - */ - serialize(): Promise; - /** - * Wait the poller to be submitted. - */ - submitted(): Promise; - /** - * Returns a string representation of the poller's operation. Similar to serialize but returns a string. - * @deprecated Use serialize() instead. - */ - toString(): string; - /** - * Stops the poller from continuing to poll. Please note this will only stop the client-side polling - * @deprecated Use abortSignal to stop polling instead. - */ - stopPolling(): void; - /** - * Returns true if the poller is stopped. - * @deprecated Use abortSignal status to track this instead. - */ - isStopped(): boolean; -} -/** - * Helper function that builds a Poller object to help polling a long running operation. - * @param client - Client to use for sending the request to get additional pages. - * @param initialResponse - The initial response. - * @param options - Options to set a resume state or custom polling interval. - * @returns - A poller object to poll for operation state updates and eventually get the final response. - */ -export declare function getLongRunningPoller(client: Client, initialResponse: DataTypesCreate200Response | DataTypesCreate201Response | DataTypesCreateDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; -export declare function getLongRunningPoller(client: Client, initialResponse: DataTypesUpdate200Response | DataTypesUpdate202Response | DataTypesUpdateDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; -export declare function getLongRunningPoller(client: Client, initialResponse: DataTypesDelete202Response | DataTypesDelete204Response | DataTypesDeleteDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; -export declare function getLongRunningPoller(client: Client, initialResponse: DataTypesDeleteData202Response | DataTypesDeleteData204Response | DataTypesDeleteDataDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; -export declare function getLongRunningPoller(client: Client, initialResponse: DataProductsCreate200Response | DataProductsCreate201Response | DataProductsCreateDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; -export declare function getLongRunningPoller(client: Client, initialResponse: DataProductsUpdate200Response | DataProductsUpdate202Response | DataProductsUpdateDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; -export declare function getLongRunningPoller(client: Client, initialResponse: DataProductsDelete202Response | DataProductsDelete204Response | DataProductsDeleteDefaultResponse, options?: CreateHttpPollerOptions>): Promise, TResult>>; -//# sourceMappingURL=pollingHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts.map deleted file mode 100644 index 629b4b0fc80..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pollingHelper.d.ts","sourceRoot":"","sources":["pollingHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EAGvB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EAClC,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAC/B,MAAM,SAAS,cAAc,CAAC,OAAO,CAAC,EACtC,OAAO;IAEP;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAClB;;OAEG;IACH,iBAAiB,IAAI,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;IACjC;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACnE;;OAEG;IACH,aAAa,CAAC,WAAW,CAAC,EAAE;QAC1B,WAAW,CAAC,EAAE,eAAe,CAAC;KAC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,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js deleted file mode 100644 index fcb9d985486..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { createHttpPoller, } from "@azure/core-lro"; -export async function getLongRunningPoller(client, initialResponse, options = {}) { - const abortController = new AbortController(); - const poller = { - sendInitialRequest: async () => { - // In the case of Rest Clients we are building the LRO poller object from a response that's the reason - // we are not triggering the initial request here, just extracting the information from the - // response we were provided. - return getLroResponse(initialResponse); - }, - sendPollRequest: async (path, options) => { - // This is the callback that is going to be called to poll the service - // to get the latest status. We use the client provided and the polling path - // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location - // depending on the lro pattern that the service implements. If non is provided we default to the initial path. - function abortListener() { - abortController.abort(); - } - const inputAbortSignal = options?.abortSignal; - const abortSignal = abortController.signal; - if (inputAbortSignal?.aborted) { - abortController.abort(); - } - else if (!abortSignal.aborted) { - inputAbortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - } - let response; - try { - response = await client - .pathUnchecked(path ?? initialResponse.request.url) - .get({ abortSignal }); - } - finally { - inputAbortSignal?.removeEventListener("abort", abortListener); - } - const lroResponse = getLroResponse(response); - lroResponse.rawResponse.headers["x-ms-original-url"] = - initialResponse.request.url; - return lroResponse; - }, - }; - options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; - const httpPoller = createHttpPoller(poller, options); - const simplePoller = { - isDone() { - return httpPoller.isDone; - }, - isStopped() { - return abortController.signal.aborted; - }, - getOperationState() { - if (!httpPoller.operationState) { - throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState()."); - } - return httpPoller.operationState; - }, - getResult() { - return httpPoller.result; - }, - toString() { - if (!httpPoller.operationState) { - throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState()."); - } - return JSON.stringify({ - state: httpPoller.operationState, - }); - }, - stopPolling() { - abortController.abort(); - }, - onProgress: httpPoller.onProgress, - poll: httpPoller.poll, - pollUntilDone: httpPoller.pollUntilDone, - serialize: httpPoller.serialize, - submitted: httpPoller.submitted, - }; - return simplePoller; -} -/** - * Converts a Rest Client response to a response that the LRO implementation understands - * @param response - a rest client http response - * @returns - An LRO response that the LRO implementation understands - */ -function getLroResponse(response) { - if (Number.isNaN(response.status)) { - throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); - } - return { - flatResponse: response, - rawResponse: { - ...response, - statusCode: Number.parseInt(response.status), - body: response.body, - }, - }; -} -//# sourceMappingURL=pollingHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js.map deleted file mode 100644 index bcc69460801..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAML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AEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CACjB,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CACzE,CAAC;IACJ,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE;YACX,GAAG,QAAQ;YACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.ts deleted file mode 100644 index 61469304770..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/pollingHelper.ts +++ /dev/null @@ -1,319 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Client, HttpResponse } from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; -import { - CancelOnProgress, - CreateHttpPollerOptions, - RunningOperation, - OperationResponse, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { - DataTypesCreate200Response, - DataTypesCreate201Response, - DataTypesCreateDefaultResponse, - DataTypesCreateLogicalResponse, - DataTypesUpdate200Response, - DataTypesUpdate202Response, - DataTypesUpdateDefaultResponse, - DataTypesUpdateLogicalResponse, - DataTypesDelete202Response, - DataTypesDelete204Response, - DataTypesDeleteDefaultResponse, - DataTypesDeleteLogicalResponse, - DataTypesDeleteData202Response, - DataTypesDeleteData204Response, - DataTypesDeleteDataDefaultResponse, - DataTypesDeleteDataLogicalResponse, - DataProductsCreate200Response, - DataProductsCreate201Response, - DataProductsCreateDefaultResponse, - DataProductsCreateLogicalResponse, - DataProductsUpdate200Response, - DataProductsUpdate202Response, - DataProductsUpdateDefaultResponse, - DataProductsUpdateLogicalResponse, - DataProductsDelete202Response, - DataProductsDelete204Response, - DataProductsDeleteDefaultResponse, - DataProductsDeleteLogicalResponse, -} from "./responses.js"; - -/** - * A simple poller that can be used to poll a long running operation. - */ -export interface SimplePollerLike< - TState extends OperationState, - TResult, -> { - /** - * Returns true if the poller has finished polling. - */ - isDone(): boolean; - /** - * Returns the state of the operation. - */ - getOperationState(): TState; - /** - * Returns the result value of the operation, - * regardless of the state of the poller. - * It can return undefined or an incomplete form of the final TResult value - * depending on the implementation. - */ - getResult(): TResult | undefined; - /** - * Returns a promise that will resolve once a single polling request finishes. - * It does this by calling the update method of the Poller's operation. - */ - poll(options?: { abortSignal?: AbortSignalLike }): Promise; - /** - * Returns a promise that will resolve once the underlying operation is completed. - */ - pollUntilDone(pollOptions?: { - abortSignal?: AbortSignalLike; - }): Promise; - /** - * Invokes the provided callback after each polling is completed, - * sending the current state of the poller's operation. - * - * It returns a method that can be used to stop receiving updates on the given callback function. - */ - onProgress(callback: (state: TState) => void): CancelOnProgress; - - /** - * Returns a promise that could be used for serialized version of the poller's operation - * by invoking the operation's serialize method. - */ - serialize(): Promise; - - /** - * Wait the poller to be submitted. - */ - submitted(): Promise; - - /** - * Returns a string representation of the poller's operation. Similar to serialize but returns a string. - * @deprecated Use serialize() instead. - */ - toString(): string; - - /** - * Stops the poller from continuing to poll. Please note this will only stop the client-side polling - * @deprecated Use abortSignal to stop polling instead. - */ - stopPolling(): void; - - /** - * Returns true if the poller is stopped. - * @deprecated Use abortSignal status to track this instead. - */ - isStopped(): boolean; -} - -/** - * Helper function that builds a Poller object to help polling a long running operation. - * @param client - Client to use for sending the request to get additional pages. - * @param initialResponse - The initial response. - * @param options - Options to set a resume state or custom polling interval. - * @returns - A poller object to poll for operation state updates and eventually get the final response. - */ -export async function getLongRunningPoller< - TResult extends - | DataTypesCreateLogicalResponse - | DataTypesCreateDefaultResponse, ->( - client: Client, - initialResponse: - | DataTypesCreate200Response - | DataTypesCreate201Response - | DataTypesCreateDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends - | DataTypesUpdateLogicalResponse - | DataTypesUpdateDefaultResponse, ->( - client: Client, - initialResponse: - | DataTypesUpdate200Response - | DataTypesUpdate202Response - | DataTypesUpdateDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends - | DataTypesDeleteLogicalResponse - | DataTypesDeleteDefaultResponse, ->( - client: Client, - initialResponse: - | DataTypesDelete202Response - | DataTypesDelete204Response - | DataTypesDeleteDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends - | DataTypesDeleteDataLogicalResponse - | DataTypesDeleteDataDefaultResponse, ->( - client: Client, - initialResponse: - | DataTypesDeleteData202Response - | DataTypesDeleteData204Response - | DataTypesDeleteDataDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends - | DataProductsCreateLogicalResponse - | DataProductsCreateDefaultResponse, ->( - client: Client, - initialResponse: - | DataProductsCreate200Response - | DataProductsCreate201Response - | DataProductsCreateDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends - | DataProductsUpdateLogicalResponse - | DataProductsUpdateDefaultResponse, ->( - client: Client, - initialResponse: - | DataProductsUpdate200Response - | DataProductsUpdate202Response - | DataProductsUpdateDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends - | DataProductsDeleteLogicalResponse - | DataProductsDeleteDefaultResponse, ->( - client: Client, - initialResponse: - | DataProductsDelete202Response - | DataProductsDelete204Response - | DataProductsDeleteDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller( - client: Client, - initialResponse: TResult, - options: CreateHttpPollerOptions> = {}, -): Promise, TResult>> { - const abortController = new AbortController(); - const poller: RunningOperation = { - sendInitialRequest: async () => { - // In the case of Rest Clients we are building the LRO poller object from a response that's the reason - // we are not triggering the initial request here, just extracting the information from the - // response we were provided. - return getLroResponse(initialResponse); - }, - sendPollRequest: async ( - path: string, - options?: { abortSignal?: AbortSignalLike }, - ) => { - // This is the callback that is going to be called to poll the service - // to get the latest status. We use the client provided and the polling path - // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location - // depending on the lro pattern that the service implements. If non is provided we default to the initial path. - function abortListener(): void { - abortController.abort(); - } - const inputAbortSignal = options?.abortSignal; - const abortSignal = abortController.signal; - if (inputAbortSignal?.aborted) { - abortController.abort(); - } else if (!abortSignal.aborted) { - inputAbortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - } - let response; - try { - response = await client - .pathUnchecked(path ?? initialResponse.request.url) - .get({ abortSignal }); - } finally { - inputAbortSignal?.removeEventListener("abort", abortListener); - } - const lroResponse = getLroResponse(response as TResult); - lroResponse.rawResponse.headers["x-ms-original-url"] = - initialResponse.request.url; - return lroResponse; - }, - }; - - options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; - const httpPoller = createHttpPoller(poller, options); - const simplePoller: SimplePollerLike, TResult> = { - isDone() { - return httpPoller.isDone; - }, - isStopped() { - return abortController.signal.aborted; - }, - getOperationState() { - if (!httpPoller.operationState) { - throw new Error( - "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", - ); - } - return httpPoller.operationState; - }, - getResult() { - return httpPoller.result; - }, - toString() { - if (!httpPoller.operationState) { - throw new Error( - "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", - ); - } - return JSON.stringify({ - state: httpPoller.operationState, - }); - }, - stopPolling() { - abortController.abort(); - }, - onProgress: httpPoller.onProgress, - poll: httpPoller.poll, - pollUntilDone: httpPoller.pollUntilDone, - serialize: httpPoller.serialize, - submitted: httpPoller.submitted, - }; - return simplePoller; -} - -/** - * Converts a Rest Client response to a response that the LRO implementation understands - * @param response - a rest client http response - * @returns - An LRO response that the LRO implementation understands - */ -function getLroResponse( - response: TResult, -): OperationResponse { - if (Number.isNaN(response.status)) { - throw new TypeError( - `Status code of the response is not a number. Value: ${response.status}`, - ); - } - - return { - flatResponse: response, - rawResponse: { - ...response, - statusCode: Number.parseInt(response.status), - body: response.body, - }, - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts deleted file mode 100644 index 7a241a5708c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts +++ /dev/null @@ -1,304 +0,0 @@ -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { PagedOperationOutput, ErrorResponseOutput, DataProductsCatalogOutput, DataProductsCatalogListResultOutput, DataTypeOutput, ContainerSasTokenOutput, DataTypeListResultOutput, DataProductOutput, AccountSasTokenOutput, RoleAssignmentDetailOutput, ListRoleAssignmentsOutput, DataProductListResultOutput } from "./outputModels.js"; -/** Azure operation completed successfully. */ -export interface OperationsList200Response extends HttpResponse { - status: "200"; - body: PagedOperationOutput; -} -export interface OperationsListDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsCatalogsGet200Response extends HttpResponse { - status: "200"; - body: DataProductsCatalogOutput; -} -export interface DataProductsCatalogsGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsCatalogsListByResourceGroup200Response extends HttpResponse { - status: "200"; - body: DataProductsCatalogListResultOutput; -} -export interface DataProductsCatalogsListByResourceGroupDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsCatalogsListBySubscription200Response extends HttpResponse { - status: "200"; - body: DataProductsCatalogListResultOutput; -} -export interface DataProductsCatalogsListBySubscriptionDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Resource 'DataType' update operation succeeded */ -export interface DataTypesCreate200Response extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} -export interface DataTypesCreate201Headers { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} -/** Resource 'DataType' create operation succeeded */ -export interface DataTypesCreate201Response extends HttpResponse { - status: "201"; - body: DataTypeOutput; - headers: RawHttpHeaders & DataTypesCreate201Headers; -} -export interface DataTypesCreateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** The final response for long-running create operation */ -export interface DataTypesCreateLogicalResponse extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} -/** Azure operation completed successfully. */ -export interface DataTypesGet200Response extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} -export interface DataTypesGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataTypesUpdate200Response extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} -export interface DataTypesUpdate202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} -/** Resource update request accepted. */ -export interface DataTypesUpdate202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataTypesUpdate202Headers; -} -export interface DataTypesUpdateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** The final response for long-running update operation */ -export interface DataTypesUpdateLogicalResponse extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} -export interface DataTypesDelete202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} -/** Resource deletion accepted. */ -export interface DataTypesDelete202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataTypesDelete202Headers; -} -/** Resource does not exist. */ -export interface DataTypesDelete204Response extends HttpResponse { - status: "204"; -} -export interface DataTypesDeleteDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** The final response for long-running delete operation */ -export interface DataTypesDeleteLogicalResponse extends HttpResponse { - status: "200"; -} -export interface DataTypesDeleteData202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} -/** Resource operation accepted. */ -export interface DataTypesDeleteData202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataTypesDeleteData202Headers; -} -/** Action completed successfully. */ -export interface DataTypesDeleteData204Response extends HttpResponse { - status: "204"; -} -export interface DataTypesDeleteDataDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** The final response for long-running deleteData operation */ -export interface DataTypesDeleteDataLogicalResponse extends HttpResponse { - status: "200"; -} -/** Azure operation completed successfully. */ -export interface DataTypesGenerateStorageContainerSasToken200Response extends HttpResponse { - status: "200"; - body: ContainerSasTokenOutput; -} -export interface DataTypesGenerateStorageContainerSasTokenDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataTypesListByDataProduct200Response extends HttpResponse { - status: "200"; - body: DataTypeListResultOutput; -} -export interface DataTypesListByDataProductDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Resource 'DataProduct' update operation succeeded */ -export interface DataProductsCreate200Response extends HttpResponse { - status: "200"; - body: DataProductOutput; -} -export interface DataProductsCreate201Headers { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} -/** Resource 'DataProduct' create operation succeeded */ -export interface DataProductsCreate201Response extends HttpResponse { - status: "201"; - body: DataProductOutput; - headers: RawHttpHeaders & DataProductsCreate201Headers; -} -export interface DataProductsCreateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** The final response for long-running create operation */ -export interface DataProductsCreateLogicalResponse extends HttpResponse { - status: "200"; - body: DataProductOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsGet200Response extends HttpResponse { - status: "200"; - body: DataProductOutput; -} -export interface DataProductsGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsUpdate200Response extends HttpResponse { - status: "200"; - body: DataProductOutput; -} -export interface DataProductsUpdate202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} -/** Resource update request accepted. */ -export interface DataProductsUpdate202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataProductsUpdate202Headers; -} -export interface DataProductsUpdateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** The final response for long-running update operation */ -export interface DataProductsUpdateLogicalResponse extends HttpResponse { - status: "200"; - body: DataProductOutput; -} -export interface DataProductsDelete202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} -/** Resource deletion accepted. */ -export interface DataProductsDelete202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataProductsDelete202Headers; -} -/** Resource does not exist. */ -export interface DataProductsDelete204Response extends HttpResponse { - status: "204"; -} -export interface DataProductsDeleteDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** The final response for long-running delete operation */ -export interface DataProductsDeleteLogicalResponse extends HttpResponse { - status: "200"; -} -/** Azure operation completed successfully. */ -export interface DataProductsGenerateStorageAccountSasToken200Response extends HttpResponse { - status: "200"; - body: AccountSasTokenOutput; -} -export interface DataProductsGenerateStorageAccountSasTokenDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Action completed successfully. */ -export interface DataProductsRotateKey204Response extends HttpResponse { - status: "204"; -} -export interface DataProductsRotateKeyDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsAddUserRole200Response extends HttpResponse { - status: "200"; - body: RoleAssignmentDetailOutput; -} -export interface DataProductsAddUserRoleDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Action completed successfully. */ -export interface DataProductsRemoveUserRole204Response extends HttpResponse { - status: "204"; -} -export interface DataProductsRemoveUserRoleDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsListRolesAssignments200Response extends HttpResponse { - status: "200"; - body: ListRoleAssignmentsOutput; -} -export interface DataProductsListRolesAssignmentsDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsListByResourceGroup200Response extends HttpResponse { - status: "200"; - body: DataProductListResultOutput; -} -export interface DataProductsListByResourceGroupDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -/** Azure operation completed successfully. */ -export interface DataProductsListBySubscription200Response extends HttpResponse { - status: "200"; - body: DataProductListResultOutput; -} -export interface DataProductsListBySubscriptionDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} -//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts.map deleted file mode 100644 index b8f13921dd2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,mCAAmC,EACnC,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,mBAAmB,CAAC;AAE3B,8CAA8C;AAC9C,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,kDACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,mCAAmC,CAAC;CAC3C;AAED,MAAM,WAAW,sDACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,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AED,MAAM,WAAW,+CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,0CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,WAAW,8CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,yCACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,WAAW,6CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js deleted file mode 100644 index 589de5e8155..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -export {}; -//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js.map deleted file mode 100644 index d2483ec2197..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responses.js","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.ts deleted file mode 100644 index 050b71813b0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/rest/responses.ts +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { - PagedOperationOutput, - ErrorResponseOutput, - DataProductsCatalogOutput, - DataProductsCatalogListResultOutput, - DataTypeOutput, - ContainerSasTokenOutput, - DataTypeListResultOutput, - DataProductOutput, - AccountSasTokenOutput, - RoleAssignmentDetailOutput, - ListRoleAssignmentsOutput, - DataProductListResultOutput, -} from "./outputModels.js"; - -/** Azure operation completed successfully. */ -export interface OperationsList200Response extends HttpResponse { - status: "200"; - body: PagedOperationOutput; -} - -export interface OperationsListDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsCatalogsGet200Response extends HttpResponse { - status: "200"; - body: DataProductsCatalogOutput; -} - -export interface DataProductsCatalogsGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsCatalogsListByResourceGroup200Response - extends HttpResponse { - status: "200"; - body: DataProductsCatalogListResultOutput; -} - -export interface DataProductsCatalogsListByResourceGroupDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsCatalogsListBySubscription200Response - extends HttpResponse { - status: "200"; - body: DataProductsCatalogListResultOutput; -} - -export interface DataProductsCatalogsListBySubscriptionDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Resource 'DataType' update operation succeeded */ -export interface DataTypesCreate200Response extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} - -export interface DataTypesCreate201Headers { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource 'DataType' create operation succeeded */ -export interface DataTypesCreate201Response extends HttpResponse { - status: "201"; - body: DataTypeOutput; - headers: RawHttpHeaders & DataTypesCreate201Headers; -} - -export interface DataTypesCreateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running create operation */ -export interface DataTypesCreateLogicalResponse extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} - -/** Azure operation completed successfully. */ -export interface DataTypesGet200Response extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} - -export interface DataTypesGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataTypesUpdate200Response extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} - -export interface DataTypesUpdate202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource update request accepted. */ -export interface DataTypesUpdate202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataTypesUpdate202Headers; -} - -export interface DataTypesUpdateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running update operation */ -export interface DataTypesUpdateLogicalResponse extends HttpResponse { - status: "200"; - body: DataTypeOutput; -} - -export interface DataTypesDelete202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource deletion accepted. */ -export interface DataTypesDelete202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataTypesDelete202Headers; -} - -/** Resource does not exist. */ -export interface DataTypesDelete204Response extends HttpResponse { - status: "204"; -} - -export interface DataTypesDeleteDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running delete operation */ -export interface DataTypesDeleteLogicalResponse extends HttpResponse { - status: "200"; -} - -export interface DataTypesDeleteData202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource operation accepted. */ -export interface DataTypesDeleteData202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataTypesDeleteData202Headers; -} - -/** Action completed successfully. */ -export interface DataTypesDeleteData204Response extends HttpResponse { - status: "204"; -} - -export interface DataTypesDeleteDataDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running deleteData operation */ -export interface DataTypesDeleteDataLogicalResponse extends HttpResponse { - status: "200"; -} - -/** Azure operation completed successfully. */ -export interface DataTypesGenerateStorageContainerSasToken200Response - extends HttpResponse { - status: "200"; - body: ContainerSasTokenOutput; -} - -export interface DataTypesGenerateStorageContainerSasTokenDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataTypesListByDataProduct200Response extends HttpResponse { - status: "200"; - body: DataTypeListResultOutput; -} - -export interface DataTypesListByDataProductDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Resource 'DataProduct' update operation succeeded */ -export interface DataProductsCreate200Response extends HttpResponse { - status: "200"; - body: DataProductOutput; -} - -export interface DataProductsCreate201Headers { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource 'DataProduct' create operation succeeded */ -export interface DataProductsCreate201Response extends HttpResponse { - status: "201"; - body: DataProductOutput; - headers: RawHttpHeaders & DataProductsCreate201Headers; -} - -export interface DataProductsCreateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running create operation */ -export interface DataProductsCreateLogicalResponse extends HttpResponse { - status: "200"; - body: DataProductOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsGet200Response extends HttpResponse { - status: "200"; - body: DataProductOutput; -} - -export interface DataProductsGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsUpdate200Response extends HttpResponse { - status: "200"; - body: DataProductOutput; -} - -export interface DataProductsUpdate202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource update request accepted. */ -export interface DataProductsUpdate202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataProductsUpdate202Headers; -} - -export interface DataProductsUpdateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running update operation */ -export interface DataProductsUpdateLogicalResponse extends HttpResponse { - status: "200"; - body: DataProductOutput; -} - -export interface DataProductsDelete202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource deletion accepted. */ -export interface DataProductsDelete202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DataProductsDelete202Headers; -} - -/** Resource does not exist. */ -export interface DataProductsDelete204Response extends HttpResponse { - status: "204"; -} - -export interface DataProductsDeleteDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running delete operation */ -export interface DataProductsDeleteLogicalResponse extends HttpResponse { - status: "200"; -} - -/** Azure operation completed successfully. */ -export interface DataProductsGenerateStorageAccountSasToken200Response - extends HttpResponse { - status: "200"; - body: AccountSasTokenOutput; -} - -export interface DataProductsGenerateStorageAccountSasTokenDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Action completed successfully. */ -export interface DataProductsRotateKey204Response extends HttpResponse { - status: "204"; -} - -export interface DataProductsRotateKeyDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsAddUserRole200Response extends HttpResponse { - status: "200"; - body: RoleAssignmentDetailOutput; -} - -export interface DataProductsAddUserRoleDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Action completed successfully. */ -export interface DataProductsRemoveUserRole204Response extends HttpResponse { - status: "204"; -} - -export interface DataProductsRemoveUserRoleDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsListRolesAssignments200Response - extends HttpResponse { - status: "200"; - body: ListRoleAssignmentsOutput; -} - -export interface DataProductsListRolesAssignmentsDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsListByResourceGroup200Response - extends HttpResponse { - status: "200"; - body: DataProductListResultOutput; -} - -export interface DataProductsListByResourceGroupDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DataProductsListBySubscription200Response - extends HttpResponse { - status: "200"; - body: DataProductListResultOutput; -} - -export interface DataProductsListBySubscriptionDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts deleted file mode 100644 index 851a0746e3b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { PollerLike, OperationState } from "@azure/core-lro"; -import { NetworkAnalyticsContext } from "./api/networkAnalyticsContext.js"; -import { NetworkAnalyticsClient } from "./networkAnalyticsClient.js"; -import { PathUncheckedResponse, OperationOptions } from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; -export interface RestorePollerOptions extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** - * The signal which can be used to abort requests. - */ - abortSignal?: AbortSignalLike; - /** Deserialization function for raw response body */ - processResponseBody?: (result: TResponse) => Promise; -} -/** - * Creates a poller from the serialized state of another poller. This can be - * useful when you want to create pollers on a different host or a poller - * needs to be constructed after the original one is not in scope. - */ -export declare function restorePoller(client: NetworkAnalyticsContext | NetworkAnalyticsClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike, TResult>, options?: RestorePollerOptions): PollerLike, TResult>; -//# sourceMappingURL=restorePollerHelpers.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts.map deleted file mode 100644 index 157cdf2eb0e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAarE,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,uBAAuB,GAAG,sBAAsB,EACxD,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CACf,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjD,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA8B9C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js deleted file mode 100644 index 23bc71b1b8d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { deserializeState, } from "@azure/core-lro"; -import { getLongRunningPoller } from "./api/pollingHelpers.js"; -import { _createDeserialize, _updateDeserialize, _$deleteDeserialize, _deleteDataDeserialize, } from "./api/dataTypes/index.js"; -import { _createDeserialize as _createDeserializeDataProducts, _updateDeserialize as _updateDeserializeDataProducts, _$deleteDeserialize as _$deleteDeserializeDataProducts, } from "./api/dataProducts/index.js"; -/** - * Creates a poller from the serialized state of another poller. This can be - * useful when you want to create pollers on a different host or a poller - * needs to be constructed after the original one is not in scope. - */ -export function restorePoller(client, serializedState, sourceOperation, options) { - const pollerConfig = deserializeState(serializedState).config; - const { initialRequestUrl, requestMethod, metadata } = pollerConfig; - if (!initialRequestUrl || !requestMethod) { - throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`); - } - const resourceLocationConfig = metadata?.["resourceLocationConfig"]; - const deserializeHelper = options?.processResponseBody ?? - getDeserializationHelper(initialRequestUrl, requestMethod); - if (!deserializeHelper) { - throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`); - } - return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - resourceLocationConfig, - restoreFrom: serializedState, - initialRequestUrl, - }); -} -const deserializeMap = { - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": _createDeserialize, - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": _updateDeserialize, - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": _$deleteDeserialize, - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": _deleteDataDeserialize, - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": _createDeserializeDataProducts, - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": _updateDeserializeDataProducts, - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": _$deleteDeserializeDataProducts, -}; -function getDeserializationHelper(urlStr, method) { - const path = new URL(urlStr).pathname; - const pathParts = path.split("/"); - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, matchedValue; - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(deserializeMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - // track if we have found a match to return the values found. - let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && - candidateParts[i]?.indexOf("}") !== -1) { - const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); - if (!isMatched) { - found = false; - break; - } - continue; - } - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - return matchedValue; -} -function getPathFromMapKey(mapKey) { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} -//# sourceMappingURL=restorePollerHelpers.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js.map deleted file mode 100644 index 09eb6b3e696..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kBAAkB,IAAI,8BAA8B,EACpD,kBAAkB,IAAI,8BAA8B,EACpD,mBAAmB,IAAI,+BAA+B,GACvD,MAAM,6BAA6B,CAAC;AAqBrC;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAwD,EACxD,eAAuB,EACvB,eAEiD,EACjD,OAAuC;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE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BACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAA8C,CAAC;QAChE,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.ts deleted file mode 100644 index a5023d08069..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/src/restorePollerHelpers.ts +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - PollerLike, - OperationState, - deserializeState, - ResourceLocationConfig, -} from "@azure/core-lro"; -import { NetworkAnalyticsContext } from "./api/networkAnalyticsContext.js"; -import { NetworkAnalyticsClient } from "./networkAnalyticsClient.js"; -import { getLongRunningPoller } from "./api/pollingHelpers.js"; -import { - _createDeserialize, - _updateDeserialize, - _$deleteDeserialize, - _deleteDataDeserialize, -} from "./api/dataTypes/index.js"; -import { - _createDeserialize as _createDeserializeDataProducts, - _updateDeserialize as _updateDeserializeDataProducts, - _$deleteDeserialize as _$deleteDeserializeDataProducts, -} from "./api/dataProducts/index.js"; -import { - PathUncheckedResponse, - OperationOptions, -} from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; - -export interface RestorePollerOptions< - TResult, - TResponse extends PathUncheckedResponse = PathUncheckedResponse, -> extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** - * The signal which can be used to abort requests. - */ - abortSignal?: AbortSignalLike; - /** Deserialization function for raw response body */ - processResponseBody?: (result: TResponse) => Promise; -} - -/** - * Creates a poller from the serialized state of another poller. This can be - * useful when you want to create pollers on a different host or a poller - * needs to be constructed after the original one is not in scope. - */ -export function restorePoller( - client: NetworkAnalyticsContext | NetworkAnalyticsClient, - serializedState: string, - sourceOperation: ( - ...args: any[] - ) => PollerLike, TResult>, - options?: RestorePollerOptions, -): PollerLike, TResult> { - const pollerConfig = deserializeState(serializedState).config; - const { initialRequestUrl, requestMethod, metadata } = pollerConfig; - if (!initialRequestUrl || !requestMethod) { - throw new Error( - `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`, - ); - } - const resourceLocationConfig = metadata?.["resourceLocationConfig"] as - | ResourceLocationConfig - | undefined; - const deserializeHelper = - options?.processResponseBody ?? - getDeserializationHelper(initialRequestUrl, requestMethod); - if (!deserializeHelper) { - throw new Error( - `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`, - ); - } - return getLongRunningPoller( - (client as any)["_client"] ?? client, - deserializeHelper as (result: TResponse) => Promise, - { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - resourceLocationConfig, - restoreFrom: serializedState, - initialRequestUrl, - }, - ); -} - -const deserializeMap: Record = { - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": - _createDeserialize, - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": - _updateDeserialize, - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}": - _$deleteDeserialize, - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData": - _deleteDataDeserialize, - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": - _createDeserializeDataProducts, - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": - _updateDeserializeDataProducts, - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}": - _$deleteDeserializeDataProducts, -}; - -function getDeserializationHelper( - urlStr: string, - method: string, -): ((result: unknown) => Promise) | undefined { - const path = new URL(urlStr).pathname; - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: ((result: unknown) => Promise) | undefined; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(deserializeMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for ( - let i = candidateParts.length - 1, j = pathParts.length - 1; - i >= 1 && j >= 1; - i--, j-- - ) { - if ( - candidateParts[i]?.startsWith("{") && - candidateParts[i]?.indexOf("}") !== -1 - ) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp( - `${candidateParts[i]?.slice(start, end)}`, - ).test(pathParts[j] || ""); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value as (result: unknown) => Promise; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts deleted file mode 100644 index d9138babf9f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const testPollingOptions: { - updateIntervalInMs: number | undefined; -}; -//# sourceMappingURL=networkanalytics_operations_test.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts.map deleted file mode 100644 index 1f12b155e1d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"networkanalytics_operations_test.spec.d.ts","sourceRoot":"","sources":["networkanalytics_operations_test.spec.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js deleted file mode 100644 index a8cc0da273c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { env, isPlaybackMode, } from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert, beforeEach, afterEach, it, describe } from "vitest"; -import { NetworkAnalyticsClient } from "../../src/networkAnalyticsClient.js"; -import { createRecorder } from "./utils/recordedClient.js"; -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; -describe("NetworkAnalytics test", () => { - let recorder; - let subscriptionId; - let client; - let location; - let resourceGroup; - let resourcename; - beforeEach(async (context) => { - process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; - recorder = await createRecorder(context); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new NetworkAnalyticsClient(credential, recorder.configureClientOptions({})); - location = "eastus2euap"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - }); - afterEach(async function () { - if (recorder?.recordingId) { - await recorder.stop(); - } - }); - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); - // it("dataProducts create test", async function () { - // const res = await client.dataProducts.create( - // subscriptionId, - // resourceGroup, - // resourcename, - // { - // location, - // properties: { - // majorVersion: "1", - // product: "MCC", - // publisher: "Microsoft" - // } - // }, - // testPollingOptions); - // assert.equal(res.name, resourcename); - // }); - // it("dataProducts get test", async function () { - // const res = await client.dataProducts.get( - // subscriptionId, - // resourceGroup, - // resourcename); - // assert.equal(res.name, resourcename); - // }); - // it("dataProducts list test", async function () { - // const resArray = new Array(); - // for await (let item of client.dataProducts.listByResourceGroup( - // subscriptionId, - // resourceGroup)) { - // resArray.push(item); - // } - // assert.equal(resArray.length, 1); - // }); - // it("dataProducts delete test", async function () { - // const resArray = new Array(); - // const res = await client.dataProducts.delete( - // subscriptionId, - // resourceGroup, - // resourcename, - // testPollingOptions, - // ); - // for await (let item of client.dataProducts.listByResourceGroup(subscriptionId, resourceGroup)) { - // resArray.push(item); - // } - // assert.equal(resArray.length, 0); - // }); -}); -//# sourceMappingURL=networkanalytics_operations_test.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js.map deleted file mode 100644 index edb6dcc7b3f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -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typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.ts deleted file mode 100644 index 32e32432cc2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/networkanalytics_operations_test.spec.ts +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - Recorder, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert, beforeEach, afterEach, it, describe } from "vitest"; -import { NetworkAnalyticsClient } from "../../src/networkAnalyticsClient.js"; -import { createRecorder } from "./utils/recordedClient.js"; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("NetworkAnalytics test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: NetworkAnalyticsClient; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async (context) => { - process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; - recorder = await createRecorder(context); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new NetworkAnalyticsClient(credential, recorder.configureClientOptions({})); - location = "eastus2euap"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - - }); - - afterEach(async function () { - if (recorder?.recordingId) { - await recorder.stop(); - } - }); - - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); - - // it("dataProducts create test", async function () { - // const res = await client.dataProducts.create( - // subscriptionId, - // resourceGroup, - // resourcename, - // { - // location, - // properties: { - // majorVersion: "1", - // product: "MCC", - // publisher: "Microsoft" - // } - // }, - // testPollingOptions); - // assert.equal(res.name, resourcename); - // }); - - // it("dataProducts get test", async function () { - // const res = await client.dataProducts.get( - // subscriptionId, - // resourceGroup, - // resourcename); - // assert.equal(res.name, resourcename); - // }); - - // it("dataProducts list test", async function () { - // const resArray = new Array(); - // for await (let item of client.dataProducts.listByResourceGroup( - // subscriptionId, - // resourceGroup)) { - // resArray.push(item); - // } - // assert.equal(resArray.length, 1); - // }); - - // it("dataProducts delete test", async function () { - // const resArray = new Array(); - // const res = await client.dataProducts.delete( - // subscriptionId, - // resourceGroup, - // resourcename, - // testPollingOptions, - // ); - // for await (let item of client.dataProducts.listByResourceGroup(subscriptionId, resourceGroup)) { - // resArray.push(item); - // } - // assert.equal(resArray.length, 0); - // }); - -}) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts deleted file mode 100644 index ee8ecefd900..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Recorder, VitestTestContext } from "@azure-tools/test-recorder"; -/** - * creates the recorder and reads the environment variables from the `.env` file. - * Should be called first in the test suite to make sure environment variables are - * read before they are being used. - */ -export declare function createRecorder(context: VitestTestContext): Promise; -//# sourceMappingURL=recordedClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts.map deleted file mode 100644 index fb50d476e0c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recordedClient.d.ts","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAER,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAepC;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAIlF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js deleted file mode 100644 index bffd2ac21a5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { Recorder, } from "@azure-tools/test-recorder"; -const replaceableVariables = { - SUBSCRIPTION_ID: "azure_subscription_id" -}; -const recorderEnvSetup = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; -/** - * creates the recorder and reads the environment variables from the `.env` file. - * Should be called first in the test suite to make sure environment variables are - * read before they are being used. - */ -export async function createRecorder(context) { - const recorder = new Recorder(context); - await recorder.start(recorderEnvSetup); - return recorder; -} -//# sourceMappingURL=recordedClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js.map deleted file mode 100644 index eb60a3646b8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recordedClient.js","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,QAAQ,GAGT,MAAM,4BAA4B,CAAC;AAGpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,gBAAgB,GAAyB;IAC7C,mBAAmB,EAAE,oBAAoB;IACzC,uBAAuB,EAAE;QACvB,WAAW,EAAE,kFAAkF;QAC/F,WAAW,EAAE,gFAAgF;KAC9F;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAA0B;IAC7D,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC;IACvC,MAAM,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACvC,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.ts deleted file mode 100644 index a0b689456cb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/test/public/utils/recordedClient.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - Recorder, - RecorderStartOptions, - VitestTestContext, -} from "@azure-tools/test-recorder"; - - -const replaceableVariables: Record = { - SUBSCRIPTION_ID: "azure_subscription_id" -}; - -const recorderEnvSetup: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; - -/** - * creates the recorder and reads the environment variables from the `.env` file. - * Should be called first in the test suite to make sure environment variables are - * read before they are being used. - */ -export async function createRecorder(context: VitestTestContext): Promise { - const recorder = new Recorder(context); - await recorder.start(recorderEnvSetup); - return recorder; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.browser.config.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.browser.config.json deleted file mode 100644 index 1b37aebc545..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.browser.config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./.tshy/build.json", - "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts"], - "exclude": ["./test/**/node/**/*.ts"], - "compilerOptions": { - "outDir": "./dist-test/browser", - "rootDir": ".", - "skipLibCheck": true - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.json deleted file mode 100644 index 7483ff67760..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "../../../tsconfig.package", - "compilerOptions": { - "module": "NodeNext", - "moduleResolution": "NodeNext", - "rootDir": "." - }, - "include": [ - "./src/**/*.ts", - "./src/**/*.mts", - "./src/**/*.cts", - "test/**/*.ts", - "./test/**/*.ts" - ] -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts deleted file mode 100644 index 38572eb9c78..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const _default: import("vite").UserConfig; -export default _default; -//# sourceMappingURL=vitest.browser.config.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts.map deleted file mode 100644 index d4028bbf8c4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vitest.browser.config.d.ts","sourceRoot":"","sources":["vitest.browser.config.ts"],"names":[],"mappings":";AAQA,wBA4BG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js deleted file mode 100644 index 374edf92d43..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { defineConfig } from "vitest/config"; -import { relativeRecordingsPath } from "@azure-tools/test-recorder"; -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); -export default defineConfig({ - define: { - "process.env": process.env, - }, - test: { - reporters: ["basic", "junit"], - outputFile: { - junit: "test-results.browser.xml", - }, - browser: { - enabled: true, - headless: true, - name: "chromium", - provider: "playwright", - }, - fakeTimers: { - toFake: ["setTimeout", "Date"], - }, - watch: false, - include: ["dist-test/browser/**/*.spec.js"], - coverage: { - include: ["dist-test/browser/**/*.spec.js"], - provider: "istanbul", - reporter: ["text", "json", "html"], - reportsDirectory: "coverage-browser", - }, - testTimeout: 120000, - }, -}); -//# sourceMappingURL=vitest.browser.config.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js.map deleted file mode 100644 index e927d7b55f6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vitest.browser.config.js","sourceRoot":"","sources":["vitest.browser.config.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,CAAC,GAAG,CAAC,wBAAwB,GAAG,sBAAsB,EAAE,CAAC;AAEhE,eAAe,YAAY,CAAC;IAC1B,MAAM,EAAE;QACN,aAAa,EAAE,OAAO,CAAC,GAAG;KAC3B;IACD,IAAI,EAAE;QACJ,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7B,UAAU,EAAE;YACV,KAAK,EAAE,0BAA0B;SAClC;QACD,OAAO,EAAE;YACP,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,YAAY;SACvB;QACD,UAAU,EAAE;YACV,MAAM,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC;SAC/B;QACD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,CAAC,gCAAgC,CAAC;QAC3C,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,gCAAgC,CAAC;YAC3C,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;YAClC,gBAAgB,EAAE,kBAAkB;SACrC;QACD,WAAW,EAAE,MAAM;KACpB;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.ts deleted file mode 100644 index 53738560ec3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.browser.config.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { defineConfig } from "vitest/config"; -import { relativeRecordingsPath } from "@azure-tools/test-recorder"; - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -export default defineConfig({ - define: { - "process.env": process.env, - }, - test: { - reporters: ["basic", "junit"], - outputFile: { - junit: "test-results.browser.xml", - }, - browser: { - enabled: true, - headless: true, - name: "chromium", - provider: "playwright", - }, - fakeTimers: { - toFake: ["setTimeout", "Date"], - }, - watch: false, - include: ["dist-test/browser/**/*.spec.js"], - coverage: { - include: ["dist-test/browser/**/*.spec.js"], - provider: "istanbul", - reporter: ["text", "json", "html"], - reportsDirectory: "coverage-browser", - }, - testTimeout: 120000, - }, -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts deleted file mode 100644 index 2b17c25926f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const _default: import("vite").UserConfig; -export default _default; -//# sourceMappingURL=vitest.config.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts.map deleted file mode 100644 index c30924a65c8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["vitest.config.ts"],"names":[],"mappings":";AAMA,wBA0BG"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js deleted file mode 100644 index 187fa6d5afe..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -import { defineConfig } from "vitest/config"; -export default defineConfig({ - test: { - reporters: ["basic", "junit"], - outputFile: { - junit: "test-results.browser.xml", - }, - fakeTimers: { - toFake: ["setTimeout", "Date"], - }, - watch: false, - include: ["test/**/*.spec.ts"], - exclude: ["test/**/browser/*.spec.ts"], - coverage: { - include: ["src/**/*.ts"], - exclude: [ - "src/**/*-browser.mts", - "src/**/*-react-native.mts", - "vitest*.config.ts", - "samples-dev/**/*.ts", - ], - provider: "istanbul", - reporter: ["text", "json", "html"], - reportsDirectory: "coverage", - }, - testTimeout: 120000, - }, -}); -//# sourceMappingURL=vitest.config.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js.map deleted file mode 100644 index 58ff01f7efa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["vitest.config.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,eAAe,YAAY,CAAC;IAC1B,IAAI,EAAE;QACJ,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7B,UAAU,EAAE;YACV,KAAK,EAAE,0BAA0B;SAClC;QACD,UAAU,EAAE;YACV,MAAM,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC;SAC/B;QACD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,CAAC,mBAAmB,CAAC;QAC9B,OAAO,EAAE,CAAC,2BAA2B,CAAC;QACtC,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,CAAC;YACxB,OAAO,EAAE;gBACP,sBAAsB;gBACtB,2BAA2B;gBAC3B,mBAAmB;gBACnB,qBAAqB;aACtB;YACD,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;YAClC,gBAAgB,EAAE,UAAU;SAC7B;QACD,WAAW,EAAE,MAAM;KACpB;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.ts deleted file mode 100644 index b8fd56b5d83..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/high-level-client-to-modular-client/upcoming-package/vitest.config.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { defineConfig } from "vitest/config"; -import { relativeRecordingsPath } from "@azure-tools/test-recorder"; - -export default defineConfig({ - test: { - reporters: ["basic", "junit"], - outputFile: { - junit: "test-results.browser.xml", - }, - fakeTimers: { - toFake: ["setTimeout", "Date"], - }, - watch: false, - include: ["test/**/*.spec.ts"], - exclude: ["test/**/browser/*.spec.ts"], - coverage: { - include: ["src/**/*.ts"], - exclude: [ - "src/**/*-browser.mts", - "src/**/*-react-native.mts", - "vitest*.config.ts", - "samples-dev/**/*.ts", - ], - provider: "istanbul", - reporter: ["text", "json", "html"], - reportsDirectory: "coverage", - }, - testTimeout: 120000, - }, -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/.eslintrc.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/.eslintrc.json deleted file mode 100644 index 619797ac39b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "plugins": ["@azure/azure-sdk"], - "extends": ["plugin:@azure/azure-sdk/azure-sdk-base"], - "rules": { - "@azure/azure-sdk/ts-modules-only-named": "warn", - "@azure/azure-sdk/ts-apiextractor-json-types": "warn", - "@azure/azure-sdk/ts-package-json-types": "warn", - "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", - "tsdoc/syntax": "warn" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/README.md deleted file mode 100644 index 335e193f1db..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/README.md +++ /dev/null @@ -1,313 +0,0 @@ -# Azure TextTranslation REST client library for JavaScript - -Text translation is a cloud-based REST API feature of the Translator service that uses neural -machine translation technology to enable quick and accurate source-to-target text translation -in real time across all supported languages. - -The following methods are supported by the Text Translation feature: - -Languages. Returns a list of languages supported by Translate, Transliterate, and Dictionary Lookup operations. - -Translate. Renders single source-language text to multiple target-language texts with a single request. - -Transliterate. Converts characters or letters of a source language to the corresponding characters or letters of a target language. - -Detect. Returns the source code language code and a boolean variable denoting whether the detected language is supported for text translation and transliteration. - -Dictionary lookup. Returns equivalent words for the source term in the target language. - -Dictionary example Returns grammatical structure and context examples for the source term and target term pair. - -**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library** - -Key links: - -- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/ai-translation-text) -- [API reference documentation](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference) -- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/samples) - -## Getting started - -### Currently supported environments - -- LTS versions of Node.js -- Latest versions of Edge, Chrome, Safar and Firefox - -### Prerequisites - -- An existing Translator service or Cognitive Services resource. - -### Install the `@azure-rest/ai-translation-text` package - -Install the Azure Text Translation REST client library for JavaScript with `npm`: - -```bash -npm install @azure-rest/ai-translation-text -``` - -#### Create a Translator service resource - -You can create Translator resource following [Create a Translator resource][translator_resource_create]. - -### Browser support - -#### JavaScript Bundle - -To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). - -### Authenticate the client - -Interaction with the service using the client library begins with creating an instance of the [TextTranslationClient][translator_client_class] class. You will need an **API key** or `TokenCredential` to instantiate a client object. For more information regarding authenticating with cognitive services, see [Authenticate requests to Translator Service][translator_auth]. - -#### Get an API key - -You can get the `endpoint`, `API key` and `Region` from the Cognitive Services resource or Translator service resource information in the [Azure Portal][azure_portal]. - -Alternatively, use the [Azure CLI][azure_cli] snippet below to get the API key from the Translator service resource. - -```PowerShell -az cognitiveservices account keys list --resource-group --name -``` - -### Create a `TextTranslationClient` using an API key and Region credential - -Once you have the value for the API key and Region, create an `TranslatorCredential`. - -With the value of the `TranslatorCredential` you can create the [TextTranslationClient][translator_client_class]: - -```javascript -const translateCedential = new TranslatorCredential(apiKey, region); -const translationClient = TextTranslationClient(endpoint, translateCedential); -``` - -## Examples - -The following section provides several code snippets using the `client` [created above](#create-a-texttranslationclient-using-an-api-key-and-region-credential), and covers the main features present in this client library. - -### Get Supported Languages - -Gets the set of languages currently supported by other operations of the Translator. - -```javascript -const langResponse = await translationClient.path("/languages").get(); - -if (isUnexpected(langResponse)) { - throw langResponse.body; -} - -const languages = langResponse.body; - -if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } -} - -if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } -} - -if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } -} -``` - -Please refer to the service documentation for a conceptual discussion of [languages][languages_doc]. - -### Translate - -Renders single source-language text to multiple target-language texts with a single request. - -```javascript -const inputText = [{ text: "This is a test." }]; -const parameters = { - to: "cs", - from: "en", -}; -const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(translateResponse)) { - throw translateResponse.body; -} - -const translations = translateResponse.body; -for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); -} -``` - -Please refer to the service documentation for a conceptual discussion of [translate][translate_doc]. - -### Transliterate - -Converts characters or letters of a source language to the corresponding characters or letters of a target language. - -```javascript -const inputText = [{ text: "这是个测试。" }]; -const parameters = { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", -}; -const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(transliterateResponse)) { - throw transliterateResponse.body; -} - -const translations = transliterateResponse.body; -for (const transliteration of translations) { - console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` - ); -} -``` - -Please refer to the service documentation for a conceptual discussion of [transliterate][transliterate_doc]. - -### Break Sentence - -Identifies the positioning of sentence boundaries in a piece of text. - -```javascript -const inputText = [{ text: "zhè shì gè cè shì。" }]; -const parameters = { - language: "zh-Hans", - script: "Latn", -}; -const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body; -} - -const breakSentences = breakSentenceResponse.body; -for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); -} -``` - -Please refer to the service documentation for a conceptual discussion of [break sentence][breaksentence_doc]. - -### Dictionary Lookup - -Returns equivalent words for the source term in the target language. - -```javascript -const inputText = [{ text: "fly" }]; -const parameters = { - to: "es", - from: "en", -}; -const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body; -} - -const dictionaryEntries = dictionaryResponse.body; -for (const dictionaryEntry of dictionaryEntries) { - console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` - ); - console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` - ); -} -``` - -Please refer to the service documentation for a conceptual discussion of [dictionary lookup][dictionarylookup_doc]. - -### Dictionary Examples - -Returns grammatical structure and context examples for the source term and target term pair. - -```javascript -const inputText = [{ text: "fly", translation: "volar" }]; -const parameters = { - to: "es", - from: "en", -}; -const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body; -} - -const dictionaryExamples = dictionaryResponse.body; -for (const dictionaryExample of dictionaryExamples) { - console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` - ); - const firstExample = dictionaryExample?.examples[0]; - console.log( - `Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.` - ); -} -``` - -Please refer to the service documentation for a conceptual discussion of [dictionary examples][dictionaryexamples_doc]. - -## Troubleshooting - -When you interact with the Translator Service using the TextTranslator client library, errors returned by the Translator service correspond to the same HTTP status codes returned for REST API requests. - -For example, if you submit a translation request without a target translate language, a `400` error is returned, indicating "Bad Request". - -You can find the different error codes returned by the service in the [Service Documentation][service_errors]. - -### Logging - -Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: - -```javascript -const { setLogLevel } = require("@azure/logger"); - -setLogLevel("info"); -``` - -For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). - -[azure_cli]: https://docs.microsoft.com/cli/azure -[azure_portal]: https://portal.azure.com -[translator_resource_create]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource -[translator_auth]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference#authentication -[service_errors]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference#errors -[translator_client_class]: https://learn.microsoft.com/javascript/api/@azure-rest/ai-translation-text/texttranslationclient -[languages_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages -[translate_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate -[transliterate_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-transliterate -[breaksentence_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-break-sentence -[dictionarylookup_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-lookup -[dictionaryexamples_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-examples diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/api-extractor.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/api-extractor.json deleted file mode 100644 index ebfd2ff4505..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/api-extractor.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { - "enabled": true - }, - "apiReport": { - "enabled": true, - "reportFolder": "./review" - }, - "dtsRollup": { - "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/ai-translation-text.d.ts" - }, - "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, - "extractorMessageReporting": { - "ae-missing-release-tag": { - "logLevel": "none" - }, - "ae-unresolved-link": { - "logLevel": "none" - } - } - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/assets.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/assets.json deleted file mode 100644 index 530334f4570..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/translation/ai-translation-text-rest", - "Tag": "js/translation/ai-translation-text-rest_6dacbcc4a1" -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/karma.conf.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/karma.conf.js deleted file mode 100644 index 756722cbcd1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/karma.conf.js +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "TEXT_TRANSLATION_TENANT_ID", - "TEXT_TRANSLATION_CLIENT_ID", - "TEXT_TRANSLATION_CLIENT_SECRET", - "TEXT_TRANSLATION_ENDPOINT", - "TEXT_TRANSLATION_CUSTOM_ENDPOINT", - "TEXT_TRANSLATION_API_KEY", - "TEXT_TRANSLATION_REGION", - "RECORDINGS_RELATIVE_PATH", - "TEXT_TRANSLATION_AAD_REGION", - "TEXT_TRANSLATION_RESOURCE_ID", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts deleted file mode 100644 index a42b7cfc5ff..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts +++ /dev/null @@ -1,382 +0,0 @@ -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { KeyCredential } from '@azure/core-auth'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; -export interface BackTranslationOutput { - displayText: string; - frequencyCount: number; - normalizedText: string; - numExamples: number; -} -export interface BreakSentenceItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sentLen: number[]; -} -export declare function buildMultiCollection(items: string[], parameterName: string): string; -export interface CommonScriptModelOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} -declare function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; -export default createClient; -export interface DetectedLanguageOutput { - language: string; - score: number; -} -export interface DictionaryExampleItemOutput { - examples: Array; - normalizedSource: string; - normalizedTarget: string; -} -export interface DictionaryExampleOutput { - sourcePrefix: string; - sourceSuffix: string; - sourceTerm: string; - targetPrefix: string; - targetSuffix: string; - targetTerm: string; -} -export interface DictionaryExampleTextItem extends InputTextItem { - translation: string; -} -export interface DictionaryLookupItemOutput { - displaySource: string; - normalizedSource: string; - translations: Array; -} -export interface DictionaryTranslationOutput { - backTranslations: Array; - confidence: number; - displayTarget: string; - normalizedTarget: string; - posTag: string; - prefixWord: string; -} -export interface ErrorDetailsOutput { - code: number; - message: string; -} -export interface ErrorResponseOutput { - error: ErrorDetailsOutput; -} -export interface FindSentenceBoundaries { - post(options: FindSentenceBoundariesParameters): StreamableMethod; -} -export interface FindSentenceBoundaries200Headers { - 'x-requestid': string; -} -export interface FindSentenceBoundaries200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; - status: '200'; -} -export interface FindSentenceBoundariesBodyParam { - body: Array; -} -export interface FindSentenceBoundariesDefaultHeaders { - 'x-requestid': string; -} -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; - status: string; -} -export interface FindSentenceBoundariesHeaderParam { - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} -export interface FindSentenceBoundariesHeaders { - 'X-ClientTraceId'?: string; -} -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; -export interface FindSentenceBoundariesQueryParam { - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} -export interface FindSentenceBoundariesQueryParamProperties { - language?: string; - script?: string; -} -export interface GetLanguagesLatest { - getxxx(options?: GetLanguagesParameters): StreamableMethod; -} -export interface GetLanguages200Headers { - 'x-requestid': string; - etag: string; -} -export interface GetLanguages200Response extends HttpResponse { - body: GetLanguagesResultOutput; - headers: RawHttpHeaders & GetLanguages200Headers; - status: '200'; -} -export interface GetLanguagesDefaultHeaders { - 'x-requestid': string; -} -export interface GetLanguagesDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; - status: string; -} -export interface GetLanguagesHeaderParam { - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} -export interface GetLanguagesHeaders { - 'Accept-Language'?: string; - 'If-None-Match'?: string; - 'X-ClientTraceId'?: string; -} -export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; -export interface GetLanguagesQueryParam { - queryParameters?: GetLanguagesQueryParamProperties; -} -export interface GetLanguagesQueryParamProperties { - scope?: string; -} -export interface GetLanguagesResultOutput { - dictionary?: Record; - translation?: Record; - transliteration?: Record; -} -export interface InputTextItem { - text: string; -} -export declare function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; -export declare function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; -export declare function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; -export declare function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; -export declare function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; -export declare function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; -export interface LookupDictionaryEntries { - post(options: LookupDictionaryEntriesParameters): StreamableMethod; -} -export interface LookupDictionaryEntries200Headers { - 'x-requestid': string; -} -export interface LookupDictionaryEntries200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; - status: '200'; -} -export interface LookupDictionaryEntriesBodyParam { - body: Array; -} -export interface LookupDictionaryEntriesDefaultHeaders { - 'x-requestid': string; -} -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; - status: string; -} -export interface LookupDictionaryEntriesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} -export interface LookupDictionaryEntriesHeaders { - 'X-ClientTraceId'?: string; -} -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; -export interface LookupDictionaryEntriesQueryParam { - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} -export interface LookupDictionaryEntriesQueryParamProperties { - from: string; - to: string; -} -export interface LookupDictionaryExamples { - post(options: LookupDictionaryExamplesParameters): StreamableMethod; -} -export interface LookupDictionaryExamples200Headers { - 'x-requestid': string; -} -export interface LookupDictionaryExamples200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; - status: '200'; -} -export interface LookupDictionaryExamplesBodyParam { - body: Array; -} -export interface LookupDictionaryExamplesDefaultHeaders { - 'x-requestid': string; -} -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; - status: string; -} -export interface LookupDictionaryExamplesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} -export interface LookupDictionaryExamplesHeaders { - 'X-ClientTraceId'?: string; -} -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; -export interface LookupDictionaryExamplesQueryParam { - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} -export interface LookupDictionaryExamplesQueryParamProperties { - from: string; - to: string; -} -export interface Routes { - (path: '/languages'): GetLanguagesLatest; - (path: '/translate'): Translate; - (path: '/transliterate'): Transliterate; - (path: '/breaksentence'): FindSentenceBoundaries; - (path: '/dictionary/lookup'): LookupDictionaryEntries; - (path: '/dictionary/examples'): LookupDictionaryExamples; -} -export interface SentenceLengthOutput { - srcSentLen: number[]; - transSentLen: number[]; -} -export interface SourceDictionaryLanguageOutput { - dir: string; - name: string; - nativeName: string; - translations: Array; -} -export interface SourceTextOutput { - text: string; -} -export interface TargetDictionaryLanguageOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} -export type TextTranslationClient = Client & { - path: Routes; -}; -export interface Translate { - post(options: TranslateParameters): StreamableMethod; -} -export interface Translate200Headers { - 'x-metered-usage': number; - 'x-mt-system': string; - 'x-requestid': string; -} -export interface Translate200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & Translate200Headers; - status: '200'; -} -export interface TranslateBodyParam { - body: Array; -} -export interface TranslateDefaultHeaders { - 'x-requestid': string; -} -export interface TranslateDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & TranslateDefaultHeaders; - status: string; -} -export interface TranslatedTextAlignmentOutput { - proj: string; -} -export interface TranslatedTextItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sourceText?: SourceTextOutput; - translations: Array; -} -export interface TranslateHeaderParam { - headers?: RawHttpHeadersInput & TranslateHeaders; -} -export interface TranslateHeaders { - 'X-ClientTraceId'?: string; -} -export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; -export interface TranslateQueryParam { - queryParameters: TranslateQueryParamProperties; -} -export interface TranslateQueryParamProperties { - allowFallback?: boolean; - category?: string; - from?: string; - fromScript?: string; - includeAlignment?: boolean; - includeSentenceLength?: boolean; - profanityAction?: string; - profanityMarker?: string; - suggestedFrom?: string; - textType?: string; - to: string; - toScript?: string; -} -export interface TranslationLanguageOutput { - dir: string; - name: string; - nativeName: string; -} -export interface TranslationOutput { - alignment?: TranslatedTextAlignmentOutput; - sentLen?: SentenceLengthOutput; - text: string; - to: string; - transliteration?: TransliteratedTextOutput; -} -export interface TranslatorCredential { - key: string; - region: string; -} -export interface TranslatorTokenCredential { - azureResourceId: string; - region: string; - tokenCredential: TokenCredential; -} -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - toScripts: Array; -} -export interface Transliterate { - post(options: TransliterateParameters): StreamableMethod; -} -export interface Transliterate200Headers { - 'x-requestid': string; -} -export interface Transliterate200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & Transliterate200Headers; - status: '200'; -} -export interface TransliterateBodyParam { - body: Array; -} -export interface TransliterateDefaultHeaders { - 'x-requestid': string; -} -export interface TransliterateDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & TransliterateDefaultHeaders; - status: string; -} -export interface TransliteratedTextOutput { - script: string; - text: string; -} -export interface TransliterateHeaderParam { - headers?: RawHttpHeadersInput & TransliterateHeaders; -} -export interface TransliterateHeaders { - 'X-ClientTraceId'?: string; -} -export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; -export interface TransliterateQueryParam { - queryParameters: TransliterateQueryParamProperties; -} -export interface TransliterateQueryParamProperties { - fromScript: string; - language: string; - toScript: string; -} -export interface TransliterationLanguageOutput { - name: string; - nativeName: string; - scripts: Array; -} -//# sourceMappingURL=ai-translation-text.api.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts.map deleted file mode 100644 index 682d6a5537e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ai-translation-text.api.d.ts","sourceRoot":"","sources":["ai-translation-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AG,uBAAuB,CAAC;IAElD,MAAM,EAAE,KAAK,CAAC;CACf;AAGD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC5B;AAGD,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,4BAA6B,SAAQ,YAAY;IAEhE,IAAI,EAAE,mBAAmB,CAAC;IAE1B,OAAO,EAAE,cAAc,GAAG,2BAA2B,CAAC;IAEtD,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,wBAAwB;IAEvC,OAAO,CAAC,EAAE,mBAAmB,GAAG,oBAAoB,CAAC;CACtD;AAGD,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAGD,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAC3D,wBAAwB,GACxB,sBAAsB,GACtB,iBAAiB,CAAC;AAGpB,MAAM,WAAW,uBAAuB;IAEtC,eAAe,EAAE,iCAAiC,CAAC;CACpD;AAGD,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC5C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js deleted file mode 100644 index 2ac1b52518b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = createClient; -// (No @packageDocumentation comment for this package) -//# sourceMappingURL=ai-translation-text.api.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js.map deleted file mode 100644 index 84b305cbe85..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ai-translation-text.api.js","sourceRoot":"","sources":["ai-translation-text.api.ts"],"names":[],"mappings":";;AAyCA,kBAAe,YAAY,CAAC;AAsnB5B,sDAAsD"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.ts deleted file mode 100644 index 263a44763de..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.ts +++ /dev/null @@ -1,672 +0,0 @@ -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { KeyCredential } from '@azure/core-auth'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; - -// @public -export interface BackTranslationOutput { - displayText: string; - frequencyCount: number; - normalizedText: string; - numExamples: number; -} - -// @public -export interface BreakSentenceItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sentLen: number[]; -} - -// @public (undocumented) -export function buildMultiCollection(items: string[], parameterName: string): string; - -// @public -export interface CommonScriptModelOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} - -// @public -function createClient( - endpoint: undefined | string, - credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, - options?: ClientOptions -): TextTranslationClient; -export default createClient; - -// @public -export interface DetectedLanguageOutput { - language: string; - score: number; -} - -// @public -export interface DictionaryExampleItemOutput { - examples: Array; - normalizedSource: string; - normalizedTarget: string; -} - -// @public -export interface DictionaryExampleOutput { - sourcePrefix: string; - sourceSuffix: string; - sourceTerm: string; - targetPrefix: string; - targetSuffix: string; - targetTerm: string; -} - -// @public -export interface DictionaryExampleTextItem extends InputTextItem { - translation: string; -} - -// @public -export interface DictionaryLookupItemOutput { - displaySource: string; - normalizedSource: string; - translations: Array; -} - -// @public -export interface DictionaryTranslationOutput { - backTranslations: Array; - confidence: number; - displayTarget: string; - normalizedTarget: string; - posTag: string; - prefixWord: string; -} - -// @public -export interface ErrorDetailsOutput { - code: number; - message: string; -} - -// @public -export interface ErrorResponseOutput { - error: ErrorDetailsOutput; -} - -// @public (undocumented) -export interface FindSentenceBoundaries { - post( - options: FindSentenceBoundariesParameters - ): StreamableMethod; -} - -// @public (undocumented) -export interface FindSentenceBoundaries200Headers { - 'x-requestid': string; -} - -// @public -export interface FindSentenceBoundaries200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface FindSentenceBoundariesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface FindSentenceBoundariesDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface FindSentenceBoundariesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} - -// @public (undocumented) -export interface FindSentenceBoundariesHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & - FindSentenceBoundariesHeaderParam & - FindSentenceBoundariesBodyParam & - RequestParameters; - -// @public (undocumented) -export interface FindSentenceBoundariesQueryParam { - // (undocumented) - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} - -// @public (undocumented) -export interface FindSentenceBoundariesQueryParamProperties { - language?: string; - script?: string; -} - -// @public (undocumented) -export interface GetLanguagesLatest { - getxxx(options?: GetLanguagesParameters): StreamableMethod; -} - -// @public (undocumented) -export interface GetLanguages200Headers { - 'x-requestid': string; - etag: string; -} - -// @public -export interface GetLanguages200Response extends HttpResponse { - // (undocumented) - body: GetLanguagesResultOutput; - // (undocumented) - headers: RawHttpHeaders & GetLanguages200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface GetLanguagesDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface GetLanguagesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface GetLanguagesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} - -// @public (undocumented) -export interface GetLanguagesHeaders { - 'Accept-Language'?: string; - 'If-None-Match'?: string; - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; - -// @public (undocumented) -export interface GetLanguagesQueryParam { - // (undocumented) - queryParameters?: GetLanguagesQueryParamProperties; -} - -// @public (undocumented) -export interface GetLanguagesQueryParamProperties { - scope?: string; -} - -// @public -export interface GetLanguagesResultOutput { - dictionary?: Record; - translation?: Record; - transliteration?: Record; -} - -// @public -export interface InputTextItem { - text: string; -} - -// @public (undocumented) -export function isUnexpected( - response: GetLanguages200Response | GetLanguagesDefaultResponse -): response is GetLanguagesDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: Translate200Response | TranslateDefaultResponse -): response is TranslateDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: Transliterate200Response | TransliterateDefaultResponse -): response is TransliterateDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse -): response is FindSentenceBoundariesDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse -): response is LookupDictionaryEntriesDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse -): response is LookupDictionaryExamplesDefaultResponse; - -// @public (undocumented) -export interface LookupDictionaryEntries { - post( - options: LookupDictionaryEntriesParameters - ): StreamableMethod; -} - -// @public (undocumented) -export interface LookupDictionaryEntries200Headers { - 'x-requestid': string; -} - -// @public -export interface LookupDictionaryEntries200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & - LookupDictionaryEntriesHeaderParam & - LookupDictionaryEntriesBodyParam & - RequestParameters; - -// @public (undocumented) -export interface LookupDictionaryEntriesQueryParam { - // (undocumented) - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesQueryParamProperties { - from: string; - to: string; -} - -// @public (undocumented) -export interface LookupDictionaryExamples { - post( - options: LookupDictionaryExamplesParameters - ): StreamableMethod; -} - -// @public (undocumented) -export interface LookupDictionaryExamples200Headers { - 'x-requestid': string; -} - -// @public -export interface LookupDictionaryExamples200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & - LookupDictionaryExamplesHeaderParam & - LookupDictionaryExamplesBodyParam & - RequestParameters; - -// @public (undocumented) -export interface LookupDictionaryExamplesQueryParam { - // (undocumented) - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesQueryParamProperties { - from: string; - to: string; -} - -// @public (undocumented) -export interface Routes { - (path: '/languages'): GetLanguagesLatest; - (path: '/translate'): Translate; - (path: '/transliterate'): Transliterate; - (path: '/breaksentence'): FindSentenceBoundaries; - (path: '/dictionary/lookup'): LookupDictionaryEntries; - (path: '/dictionary/examples'): LookupDictionaryExamples; -} - -// @public -export interface SentenceLengthOutput { - srcSentLen: number[]; - transSentLen: number[]; -} - -// @public -export interface SourceDictionaryLanguageOutput { - dir: string; - name: string; - nativeName: string; - translations: Array; -} - -// @public -export interface SourceTextOutput { - text: string; -} - -// @public -export interface TargetDictionaryLanguageOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} - -// @public (undocumented) -export type TextTranslationClient = Client & { - path: Routes; -}; - -// @public (undocumented) -export interface Translate { - post(options: TranslateParameters): StreamableMethod; -} - -// @public (undocumented) -export interface Translate200Headers { - 'x-metered-usage': number; - 'x-mt-system': string; - 'x-requestid': string; -} - -// @public -export interface Translate200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & Translate200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface TranslateBodyParam { - body: Array; -} - -// @public (undocumented) -export interface TranslateDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface TranslateDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & TranslateDefaultHeaders; - // (undocumented) - status: string; -} - -// @public -export interface TranslatedTextAlignmentOutput { - proj: string; -} - -// @public -export interface TranslatedTextItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sourceText?: SourceTextOutput; - translations: Array; -} - -// @public (undocumented) -export interface TranslateHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & TranslateHeaders; -} - -// @public (undocumented) -export interface TranslateHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; - -// @public (undocumented) -export interface TranslateQueryParam { - // (undocumented) - queryParameters: TranslateQueryParamProperties; -} - -// @public (undocumented) -export interface TranslateQueryParamProperties { - allowFallback?: boolean; - category?: string; - from?: string; - fromScript?: string; - includeAlignment?: boolean; - includeSentenceLength?: boolean; - profanityAction?: string; - profanityMarker?: string; - suggestedFrom?: string; - textType?: string; - to: string; - toScript?: string; -} - -// @public -export interface TranslationLanguageOutput { - dir: string; - name: string; - nativeName: string; -} - -// @public -export interface TranslationOutput { - alignment?: TranslatedTextAlignmentOutput; - sentLen?: SentenceLengthOutput; - text: string; - to: string; - transliteration?: TransliteratedTextOutput; -} - -// @public (undocumented) -export interface TranslatorCredential { - // (undocumented) - key: string; - // (undocumented) - region: string; -} - -// @public (undocumented) -export interface TranslatorTokenCredential { - // (undocumented) - azureResourceId: string; - // (undocumented) - region: string; - // (undocumented) - tokenCredential: TokenCredential; -} - -// @public -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - toScripts: Array; -} - -// @public (undocumented) -export interface Transliterate { - post(options: TransliterateParameters): StreamableMethod; -} - -// @public (undocumented) -export interface Transliterate200Headers { - 'x-requestid': string; -} - -// @public -export interface Transliterate200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & Transliterate200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface TransliterateBodyParam { - body: Array; -} - -// @public (undocumented) -export interface TransliterateDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface TransliterateDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & TransliterateDefaultHeaders; - // (undocumented) - status: string; -} - -// @public -export interface TransliteratedTextOutput { - script: string; - text: string; -} - -// @public (undocumented) -export interface TransliterateHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & TransliterateHeaders; -} - -// @public (undocumented) -export interface TransliterateHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type TransliterateParameters = TransliterateQueryParam & - TransliterateHeaderParam & - TransliterateBodyParam & - RequestParameters; - -// @public (undocumented) -export interface TransliterateQueryParam { - // (undocumented) - queryParameters: TransliterateQueryParamProperties; -} - -// @public (undocumented) -export interface TransliterateQueryParamProperties { - fromScript: string; - language: string; - toScript: string; -} - -// @public -export interface TransliterationLanguageOutput { - name: string; - nativeName: string; - scripts: Array; -} - -// (No @packageDocumentation comment for this package) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/sample.env deleted file mode 100644 index bbdd64c0b36..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/sample.env +++ /dev/null @@ -1,6 +0,0 @@ -# Used in most samples. -# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource - -ENDPOINT="https://api.cognitive.microsofttranslator.com" -TEXT_TRANSLATOR_API_KEY="" -TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts deleted file mode 100644 index 8ac71201fdf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=breakSentence.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts.map deleted file mode 100644 index df31e896ce6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentence.d.ts","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA0BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js deleted file mode 100644 index b49b3b00b30..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Get Sentence Boundaries sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=breakSentence.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js.map deleted file mode 100644 index b0cdc51b795..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentence.js","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA0BC;;AA1CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;IAEpD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACpE,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,MAAM,EAAE,MAAM;SACf;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1F,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.ts deleted file mode 100644 index 25bf03b92b0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentence.ts +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Get Sentence Boundaries sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - }, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts deleted file mode 100644 index 46395b61b7b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=breakSentenceWithAutoDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map deleted file mode 100644 index ac9b0b74586..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceWithAutoDetection.d.ts","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js deleted file mode 100644 index 92853eb2f10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log(`Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=breakSentenceWithAutoDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js.map deleted file mode 100644 index 4de54a56b3c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.js.map +++ /dev/null @@ -1 +0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ACxF,OAAO,CAAC,GAAG,CACT,yCAAyC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,aAAa,EAAE,gBAAgB,EAAE,KAAK,GAAG,CAC5I,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.ts deleted file mode 100644 index 9489d2b0cca..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/breakSentenceWithAutoDetection.ts +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log( - `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts deleted file mode 100644 index 59d56de8ab2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=dictionaryExamples.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts.map deleted file mode 100644 index 9cefa824488..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamples.d.ts","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js deleted file mode 100644 index edc47cdbf20..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Dictionary Examples sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log(`For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`); - const firstExample = dictionaryExample?.examples[0]; - console.log(`Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=dictionaryExamples.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js.map deleted file mode 100644 index d3583ee7dda..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamples.js","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAkCC;;AAlDD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;IACvF,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;QACnF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IACnD,KAAK,MAAM,iBAAiB,IAAI,kBAAkB,EAAE,CAAC;QACnD,OAAO,CAAC,GAAG,CACT,uBAAuB,iBAAiB,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CACpG,CAAC;QACF,MAAM,YAAY,GAAG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CACT,aACE,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,GAAG,YAAY,CAAC,YACrE,IAAI,CACL,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.ts deleted file mode 100644 index 6915fa3eadf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryExamples.ts +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -import TextTranslationClient, { - TranslatorCredential, - DictionaryExampleTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Dictionary Examples sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`, - ); - const firstExample = dictionaryExample?.examples[0]; - console.log( - `Example: '${ - firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix - }'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts deleted file mode 100644 index 38085ada4f0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=dictionaryLookup.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts.map deleted file mode 100644 index e8b3ef4c552..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookup.d.ts","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js deleted file mode 100644 index 2adb58859fa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Dictionary Lookup sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log(`For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`); - console.log(`First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=dictionaryLookup.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js.map deleted file mode 100644 index 52dad93060a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookup.js","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA+BC;;AA/CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5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KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.ts deleted file mode 100644 index 744810e487f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/dictionaryLookup.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Dictionary Lookup sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`, - ); - console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts deleted file mode 100644 index 1b28d1fcf9d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguages.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts.map deleted file mode 100644 index c230d0b8b01..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguages.d.ts","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":"AAaA,wBAAsB,IAAI,kBAyCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js deleted file mode 100644 index a56da0cc003..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== List supported languages sample =="); - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguages.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js.map deleted file mode 100644 index bff46b9b848..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguages.js","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAYlC,oBAyCC;;AAnDD;;GAEG;AACH,+FAAsF;AAEtF,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IAErD,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC;IAEtE,IAAI,IAAA,kCAAY,EAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;IAEpC,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QAC1B,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;YACxC,MAAM,mBAAmB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,mBAAmB,CAAC,IAAI,KAAK,mBAAmB,CAAC,UAAU,GAAG,CAClF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC1C,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;YAC5C,MAAM,uBAAuB,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YAC/D,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.ts deleted file mode 100644 index 967dca702bd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguages.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -import TextTranslationClient, { isUnexpected } from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== List supported languages sample =="); - - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts deleted file mode 100644 index ed7bea4503f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguagesAcceptLanguage.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map deleted file mode 100644 index af9fb2c2660..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesAcceptLanguage.d.ts","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js deleted file mode 100644 index 8882b61cc14..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== List supported localized languages sample =="); - const parameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguagesAcceptLanguage.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js.map deleted file mode 100644 index 9023ebd2fa3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesAcceptLanguage.js","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA8CC;;AAnED;;;;;;;;;;GAUG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IAE/D,MAAM,UAAU,GAA2B;QACzC,OAAO,EAAE;YACP,iBAAiB,EAAE,IAAI;SACxB;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAEhF,IAAI,IAAA,kCAAY,EAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;IAEpC,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QAC1B,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;YACxC,MAAM,mBAAmB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,mBAAmB,CAAC,IAAI,KAAK,mBAAmB,CAAC,UAAU,GAAG,CAClF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC1C,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;YAC5C,MAAM,uBAAuB,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YAC/D,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.ts deleted file mode 100644 index c4308cba4fa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesAcceptLanguage.ts +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -import TextTranslationClient, { - GetLanguagesParameters, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== List supported localized languages sample =="); - - const parameters: GetLanguagesParameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts deleted file mode 100644 index 98558a23465..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguagesScope.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts.map deleted file mode 100644 index 7f9105369a8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesScope.d.ts","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":"AAiBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js deleted file mode 100644 index 5770ac410ee..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== Scoped list supported languages sample =="); - const parameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguagesScope.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js.map deleted file mode 100644 index 66dbd0e2619..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesScope.js","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,oBA8CC;;AA5DD;;;GAGG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;IAE5D,MAAM,UAAU,GAA2B;QACzC,eAAe,EAAE;YACf,KAAK,EAAE,aAAa;SACrB;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAEhF,IAAI,IAAA,kCAAY,EAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;IAEpC,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QAC1B,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;YACxC,MAAM,mBAAmB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,mBAAmB,CAAC,IAAI,KAAK,mBAAmB,CAAC,UAAU,GAAG,CAClF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC1C,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;YAC5C,MAAM,uBAAuB,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YAC/D,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.ts deleted file mode 100644 index 48dfedbcbd5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/getLanguagesScope.ts +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -import TextTranslationClient, { - GetLanguagesParameters, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== Scoped list supported languages sample =="); - - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts deleted file mode 100644 index ca9270ec452..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts.map deleted file mode 100644 index 229efa7bfc3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js deleted file mode 100644 index 6c274972987..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Simple translate sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js.map deleted file mode 100644 index 2c94ae1a104..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translate.js","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA4BC;;AA7CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,G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,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.ts deleted file mode 100644 index 2435f494285..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translate.ts +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Simple translate sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts deleted file mode 100644 index ea5d8818b27..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateAlignments.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts.map deleted file mode 100644 index a7eecca3e64..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateAlignments.d.ts","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js deleted file mode 100644 index f0c782f63ba..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with alignments sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - includeAlignment: true, - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateAlignments.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js.map deleted file mode 100644 index ef8aa72abe2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateAlignments.js","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA+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C5H,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,eAAe,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.ts deleted file mode 100644 index 9baf6597850..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateAlignments.ts +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with alignments sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeAlignment: true, - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts deleted file mode 100644 index 422ffa713bc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateCustom.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts.map deleted file mode 100644 index 0ed2b1e3897..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateCustom.d.ts","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":"AAgCA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js deleted file mode 100644 index e65f78b5cb2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Custom translator sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateCustom.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js.map deleted file mode 100644 index bd33a66bce7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateCustom.js","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA+BlC,oBA6BC;;AA1DD;;;;;;;;;;;;;;;GAeG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,wBAAwB;SACnC;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.ts deleted file mode 100644 index 83159f47a36..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateCustom.ts +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Custom translator sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts deleted file mode 100644 index 0ba089d6c6d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts.map deleted file mode 100644 index 2d0633e31c3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDetection.d.ts","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js deleted file mode 100644 index aa0eaa87bfb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translate sample with auto-detection =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js.map deleted file mode 100644 index 5b4853ce1d2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDetection.js","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,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,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.ts deleted file mode 100644 index cf5c1a18836..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDetection.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translate sample with auto-detection =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts deleted file mode 100644 index 46a59fbb822..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateDictionary.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts.map deleted file mode 100644 index fe1315d3161..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDictionary.d.ts","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBAgCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js deleted file mode 100644 index 4b3b88ec19d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with Dictionary sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateDictionary.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js.map deleted file mode 100644 index 280daea0a5b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDictionary.js","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBAgCC;;AArDD;;;;;;GAMG;AACH,+FAKyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,8GAA8G;SACrH;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAkC,CAAC;IAC1E,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.ts deleted file mode 100644 index 23eb715449d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateDictionary.ts +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - TranslatedTextItemOutput, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with Dictionary sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body as TranslatedTextItemOutput[]; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts deleted file mode 100644 index 8c46b39a007..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateMultipleSources.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts.map deleted file mode 100644 index 7e58386a959..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleSources.d.ts","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js deleted file mode 100644 index f6305d2dac4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Multiple input texts =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateMultipleSources.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js.map deleted file mode 100644 index 9ed0f68240a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleSources.js","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAkCC;;AApDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAE1C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC,EAAE,IAAI,EAAE,iBAAiB,EAAE;QAC3B,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/B,EAAE,IAAI,EAAE,oBAAoB,EAAE;KAC/B,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;SACT;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,yCAAyC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,WAAW,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.ts deleted file mode 100644 index ffb5a49f6f7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleSources.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Multiple input texts =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts deleted file mode 100644 index 6ea17a78854..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateMultipleTargets.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts.map deleted file mode 100644 index a6396d325a8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleTargets.d.ts","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js deleted file mode 100644 index 10c96dfa31c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Multiple target languages translation =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log(`Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateMultipleTargets.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js.map deleted file mode 100644 index 76af26b4c51..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleTargets.js","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":";AAA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AE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CACxI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.ts deleted file mode 100644 index 20c00ed4e0e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateMultipleTargets.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Multiple target languages translation =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log( - `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`, - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts deleted file mode 100644 index 2f2ee0dd031..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateNoTranslate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts.map deleted file mode 100644 index 2404b76f4cf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateNoTranslate.d.ts","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":"AAsBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js deleted file mode 100644 index 8b32d6d99f9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Marking text input with notranslate div sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateNoTranslate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js.map deleted file mode 100644 index db319151a15..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateNoTranslate.js","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,oBAiCC;;AApDD;;;;;GAKG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,gGAAgG;SACvG;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.ts deleted file mode 100644 index d505a78ba34..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateNoTranslate.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Marking text input with notranslate div sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts deleted file mode 100644 index e14e29acf78..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateProfanity.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts.map deleted file mode 100644 index f3e2a1e7759..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateProfanity.d.ts","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js deleted file mode 100644 index 38b2df5500d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Profanity handling sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateProfanity.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js.map deleted file mode 100644 index 44bc88452d5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateProfanity.js","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,oBA8BC;;AAzDD;;;;;;;;;;;;;GAaG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAE/C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;IAC9D,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,eAAe,EAAE,QAAQ;YACzB,eAAe,EAAE,UAAU;SAC5B;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.ts deleted file mode 100644 index aa126e6baf7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateProfanity.ts +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Profanity handling sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts deleted file mode 100644 index 101a5c995c7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateSenteceLength.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts.map deleted file mode 100644 index 01bac3ad5f9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateSenteceLength.d.ts","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBAwCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js deleted file mode 100644 index 513ee83a89a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with sentence boundaries sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { text: "The answer lies in machine translation. This is a test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - includeSentenceLength: true, - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`); - console.log(`Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateSenteceLength.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js.map deleted file mode 100644 index 41f4b02e087..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateSenteceLength.js","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBAwCC;;AAzDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAEjE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC,EAAE,IAAI,EAAE,yDAAyD,EAAE;KACpE,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,qBAAqB,EAAE,IAAI;SAC5B;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,0BAA0B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzF,CAAC;QACF,OAAO,CAAC,GAAG,CACT,8BAA8B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,CACpF,IAAI,CACL,EAAE,CACJ,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.ts deleted file mode 100644 index 972f4358725..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateSenteceLength.ts +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with sentence boundaries sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { text: "The answer lies in machine translation. This is a test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeSentenceLength: true, - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - console.log( - `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`, - ); - console.log( - `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join( - ", ", - )}`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts deleted file mode 100644 index a49db19b58c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateTextType.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts.map deleted file mode 100644 index 96e60f5f1ac..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTextType.d.ts","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js deleted file mode 100644 index cec1465ff75..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== HTML translation sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateTextType.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js.map deleted file mode 100644 index 8be705bbc2d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTextType.js","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC,CAAC;IAClG,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.ts deleted file mode 100644 index 51609a95895..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateTextType.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== HTML translation sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts deleted file mode 100644 index 8badf54b60c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateWithTransliteration.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts.map deleted file mode 100644 index 9cdf4041fe0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateWithTransliteration.d.ts","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js deleted file mode 100644 index 0a3687846eb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translate with transliteration sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateWithTransliteration.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js.map deleted file mode 100644 index e95b73d5244..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateWithTransliteration.js","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kC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AAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,wBAAwB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,MAAM,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CACzI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.ts deleted file mode 100644 index c3f0471edec..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/translateWithTransliteration.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translate with transliteration sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - console.log( - `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts deleted file mode 100644 index f30e7d0aa84..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=transliterate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts.map deleted file mode 100644 index 0267960e3ab..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterate.d.ts","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js deleted file mode 100644 index 1407a2020a9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Simple transliterate sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(transliterateResponse)) { - throw transliterateResponse.body.error; - } - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log(`Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=transliterate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js.map deleted file mode 100644 index 270c70974e8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterate.js","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBA6BC;;AA/CD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IAEjD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxD,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAChD,KAAK,MAAM,eAAe,IAAI,YAAY,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CACT,qCAAqC,eAAe,EAAE,MAAM,mCAAmC,eAAe,EAAE,IAAI,IAAI,CACzH,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.ts deleted file mode 100644 index 555211ce1ed..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples-dev/transliterate.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Simple transliterate sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }, - }); - - if (isUnexpected(transliterateResponse)) { - throw transliterateResponse.body.error; - } - - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/README.md deleted file mode 100644 index f2d5d882288..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/README.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -page_type: sample -languages: - - javascript -products: - - azure - - azure-cognitive-services - - azure-translator -urlFragment: ai-translation-text-javascript-beta ---- - -# Azure Text Translation Service client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for Azure Text Translation Service in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [breakSentence.js][breaksentence] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | -| [breakSentenceWithAutoDetection.js][breaksentencewithautodetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | -| [dictionaryExamples.js][dictionaryexamples] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. | -| [dictionaryLookup.js][dictionarylookup] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. | -| [getLanguages.js][getlanguages] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages | -| [getLanguagesAcceptLanguage.js][getlanguagesacceptlanguage] | This sample demonstrates how you can select the language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. | -| [getLanguagesScope.js][getlanguagesscope] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages for a selected scope | -| [translate.js][translate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a text which language is know to a target language. | -| [translateAlignments.js][translatealignments] | This sample demonstrates how you can ask translation service to include alignment projection from source text to translated text. | -| [translateCustom.js][translatecustom] | This sample demonstrates how You can get translations from a customized system built with Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) to this parameter to use your deployed customized system. It is possible to set `allowFalback` paramter. It specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: `true` (default) or `false`. `allowFallback=false` specifies that the translation should only use systems trained for the category specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `allowFallback=true` specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. | -| [translateDetection.js][translatedetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation without specifying the source language to a target language. | -| [translateDictionary.js][translatedictionary] | This sample demonstrates how to keep words if you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is safe only for compound nouns like proper names and product names. Note You must include the From parameter in your API translation request instead of using the autodetect feature. | -| [translateMultipleSources.js][translatemultiplesources] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a multiple text fields and each input text is in different language. | -| [translateMultipleTargets.js][translatemultipletargets] | This sample demonstrates how you can provide multiple target languages which results to each input element be translated to all target languages. | -| [translateNoTranslate.js][translatenotranslate] | This sample demonstrates how it's sometimes useful to exclude specific content from translation. You can use the attribute class=notranslate to specify content that should remain in its original language. In the following example, the content inside the first div element won't be translated, while the content in the second div element will be translated. | -| [translateProfanity.js][translateprofanity] | This sample demonstrates how to change the profanity handling during translate call. Normally the Translator service will retain profanity that is present in the source in the translation. The degree of profanity and the context that makes words profane differ between cultures, and as a result the degree of profanity in the target language may be amplified or reduced. If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, whether you want to mark profanities with appropriate tags (giving you the option to add your own post-processing), or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` and `NoAction` (default). | -| [translateSenteceLength.js][translatesentecelength] | This sample demonstrates how to you can ask translator service to include sentence boundaries for the input text and the translated text. | -| [translateTextType.js][translatetexttype] | This sample demonstrates how you can select whether the translated text is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. | -| [translateWithTransliteration.js][translatewithtransliteration] | You can combine both Translation and Transliteration in one Translate call. Your source Text can be in non-standard Script of a language as well as you can ask for non-standard Script of a target language. | -| [transliterate.js][transliterate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to convert characters or letters of a source language to the corresponding characters or letters of a target language. | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] and the following Azure resources to run these sample programs: - -- [Translator resource instance][createinstance_translatorresourceinstance] - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node breakSentence.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env ENDPOINT="" TEXT_TRANSLATOR_API_KEY="" TEXT_TRANSLATOR_REGION="" node breakSentence.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[breaksentence]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/breakSentence.js -[breaksentencewithautodetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js -[dictionaryexamples]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/dictionaryExamples.js -[dictionarylookup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/dictionaryLookup.js -[getlanguages]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguages.js -[getlanguagesacceptlanguage]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js -[getlanguagesscope]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguagesScope.js -[translate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translate.js -[translatealignments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateAlignments.js -[translatecustom]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateCustom.js -[translatedetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateDetection.js -[translatedictionary]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateDictionary.js -[translatemultiplesources]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateMultipleSources.js -[translatemultipletargets]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateMultipleTargets.js -[translatenotranslate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateNoTranslate.js -[translateprofanity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateProfanity.js -[translatesentecelength]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateSenteceLength.js -[translatetexttype]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateTextType.js -[translatewithtransliteration]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateWithTransliteration.js -[transliterate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/transliterate.js -[apiref]: https://learn.microsoft.com/azure/cognitive-services/translator/translator-text-apis -[freesub]: https://azure.microsoft.com/free/ -[createinstance_translatorresourceinstance]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentence.js deleted file mode 100644 index 0fdf418a4e0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentence.js +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Get Sentence Boundaries sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - }, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js deleted file mode 100644 index ae2daf40df9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log( - `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryExamples.js deleted file mode 100644 index 138cce1631b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryExamples.js +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Dictionary Examples sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` - ); - const firstExample = dictionaryExample?.examples[0]; - console.log( - `Example: '${ - firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix - }'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryLookup.js deleted file mode 100644 index 310dd2f32cc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/dictionaryLookup.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Dictionary Lookup sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` - ); - console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguages.js deleted file mode 100644 index 109f6ce9d1b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguages.js +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -async function main() { - console.log("== List supported languages sample =="); - - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js deleted file mode 100644 index fdf0ef88070..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -async function main() { - console.log("== List supported localized languages sample =="); - - const parameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesScope.js deleted file mode 100644 index b57284b0641..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/getLanguagesScope.js +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -async function main() { - console.log("== Scoped list supported languages sample =="); - - const parameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/package.json deleted file mode 100644 index 098fe4457ed..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@azure-samples/ai-translation-text-js-beta", - "private": true, - "version": "1.0.0", - "description": "Azure Text Translation Service client library samples for JavaScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/translation/ai-translation-text-rest" - }, - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic", - "translate", - "translation" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest", - "dependencies": { - "@azure-rest/ai-translation-text": "next", - "dotenv": "latest" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/sample.env deleted file mode 100644 index bbdd64c0b36..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/sample.env +++ /dev/null @@ -1,6 +0,0 @@ -# Used in most samples. -# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource - -ENDPOINT="https://api.cognitive.microsofttranslator.com" -TEXT_TRANSLATOR_API_KEY="" -TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translate.js deleted file mode 100644 index f4d795baa37..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translate.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Simple translate sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateAlignments.js deleted file mode 100644 index ee42daa6ac0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateAlignments.js +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translation with alignments sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeAlignment: true, - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateCustom.js deleted file mode 100644 index 082d3a513ec..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateCustom.js +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Custom translator sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDetection.js deleted file mode 100644 index b541067de92..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDetection.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translate sample with auto-detection =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDictionary.js deleted file mode 100644 index c131b01bf0d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateDictionary.js +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translation with Dictionary sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleSources.js deleted file mode 100644 index 3eb730c9ebe..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleSources.js +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Multiple input texts =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleTargets.js deleted file mode 100644 index 1fd4a111e66..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateMultipleTargets.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Multiple target languages translation =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log( - `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateNoTranslate.js deleted file mode 100644 index d12672c73ac..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateNoTranslate.js +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Marking text input with notranslate div sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateProfanity.js deleted file mode 100644 index 99009555e46..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateProfanity.js +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Profanity handling sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateSenteceLength.js deleted file mode 100644 index 440bbbbc6d7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateSenteceLength.js +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translation with sentence boundaries sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "The answer lies in machine translation. This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeSentenceLength: true, - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log( - `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` - ); - console.log( - `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateTextType.js deleted file mode 100644 index 4ee3fd80d1f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateTextType.js +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== HTML translation sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateWithTransliteration.js deleted file mode 100644 index 5f372d5f662..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/translateWithTransliteration.js +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translate with transliteration sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log( - `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/transliterate.js deleted file mode 100644 index 3371cfb6e1f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/javascript/transliterate.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Simple transliterate sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }, - }); - - if (isUnexpected(transliterateResponse)) { - throw transliterateResponse.body.error; - } - - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/README.md deleted file mode 100644 index 64830dd3793..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/README.md +++ /dev/null @@ -1,115 +0,0 @@ ---- -page_type: sample -languages: - - typescript -products: - - azure - - azure-cognitive-services - - azure-translator -urlFragment: ai-translation-text-typescript-beta ---- - -# Azure Text Translation Service client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for Azure Text Translation Service in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [breakSentence.ts][breaksentence] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | -| [breakSentenceWithAutoDetection.ts][breaksentencewithautodetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | -| [dictionaryExamples.ts][dictionaryexamples] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. | -| [dictionaryLookup.ts][dictionarylookup] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. | -| [getLanguages.ts][getlanguages] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages | -| [getLanguagesAcceptLanguage.ts][getlanguagesacceptlanguage] | This sample demonstrates how you can select the language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. | -| [getLanguagesScope.ts][getlanguagesscope] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages for a selected scope | -| [translate.ts][translate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a text which language is know to a target language. | -| [translateAlignments.ts][translatealignments] | This sample demonstrates how you can ask translation service to include alignment projection from source text to translated text. | -| [translateCustom.ts][translatecustom] | This sample demonstrates how You can get translations from a customized system built with Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) to this parameter to use your deployed customized system. It is possible to set `allowFalback` paramter. It specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: `true` (default) or `false`. `allowFallback=false` specifies that the translation should only use systems trained for the category specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `allowFallback=true` specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. | -| [translateDetection.ts][translatedetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation without specifying the source language to a target language. | -| [translateDictionary.ts][translatedictionary] | This sample demonstrates how to keep words if you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is safe only for compound nouns like proper names and product names. Note You must include the From parameter in your API translation request instead of using the autodetect feature. | -| [translateMultipleSources.ts][translatemultiplesources] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a multiple text fields and each input text is in different language. | -| [translateMultipleTargets.ts][translatemultipletargets] | This sample demonstrates how you can provide multiple target languages which results to each input element be translated to all target languages. | -| [translateNoTranslate.ts][translatenotranslate] | This sample demonstrates how it's sometimes useful to exclude specific content from translation. You can use the attribute class=notranslate to specify content that should remain in its original language. In the following example, the content inside the first div element won't be translated, while the content in the second div element will be translated. | -| [translateProfanity.ts][translateprofanity] | This sample demonstrates how to change the profanity handling during translate call. Normally the Translator service will retain profanity that is present in the source in the translation. The degree of profanity and the context that makes words profane differ between cultures, and as a result the degree of profanity in the target language may be amplified or reduced. If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, whether you want to mark profanities with appropriate tags (giving you the option to add your own post-processing), or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` and `NoAction` (default). | -| [translateSenteceLength.ts][translatesentecelength] | This sample demonstrates how to you can ask translator service to include sentence boundaries for the input text and the translated text. | -| [translateTextType.ts][translatetexttype] | This sample demonstrates how you can select whether the translated text is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. | -| [translateWithTransliteration.ts][translatewithtransliteration] | You can combine both Translation and Transliteration in one Translate call. Your source Text can be in non-standard Script of a language as well as you can ask for non-standard Script of a target language. | -| [transliterate.ts][transliterate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to convert characters or letters of a source language to the corresponding characters or letters of a target language. | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] and the following Azure resources to run these sample programs: - -- [Translator resource instance][createinstance_translatorresourceinstance] - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/breakSentence.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env ENDPOINT="" TEXT_TRANSLATOR_API_KEY="" TEXT_TRANSLATOR_REGION="" node dist/breakSentence.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[breaksentence]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/breakSentence.ts -[breaksentencewithautodetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts -[dictionaryexamples]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/dictionaryExamples.ts -[dictionarylookup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/dictionaryLookup.ts -[getlanguages]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguages.ts -[getlanguagesacceptlanguage]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts -[getlanguagesscope]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguagesScope.ts -[translate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translate.ts -[translatealignments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateAlignments.ts -[translatecustom]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateCustom.ts -[translatedetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateDetection.ts -[translatedictionary]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateDictionary.ts -[translatemultiplesources]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateMultipleSources.ts -[translatemultipletargets]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateMultipleTargets.ts -[translatenotranslate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateNoTranslate.ts -[translateprofanity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateProfanity.ts -[translatesentecelength]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateSenteceLength.ts -[translatetexttype]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateTextType.ts -[translatewithtransliteration]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateWithTransliteration.ts -[transliterate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/transliterate.ts -[apiref]: https://learn.microsoft.com/azure/cognitive-services/translator/translator-text-apis -[freesub]: https://azure.microsoft.com/free/ -[createinstance_translatorresourceinstance]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/package.json deleted file mode 100644 index 746d3c8427a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@azure-samples/ai-translation-text-ts-beta", - "private": true, - "version": "1.0.0", - "description": "Azure Text Translation Service client library samples for TypeScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/translation/ai-translation-text-rest" - }, - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic", - "translate", - "translation" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest", - "dependencies": { - "@azure-rest/ai-translation-text": "next", - "dotenv": "latest" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.4.5", - "rimraf": "latest" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/sample.env deleted file mode 100644 index bbdd64c0b36..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/sample.env +++ /dev/null @@ -1,6 +0,0 @@ -# Used in most samples. -# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource - -ENDPOINT="https://api.cognitive.microsofttranslator.com" -TEXT_TRANSLATOR_API_KEY="" -TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts deleted file mode 100644 index 8ac71201fdf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=breakSentence.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map deleted file mode 100644 index 2410132a23c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentence.d.ts","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js deleted file mode 100644 index c953956aa0b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Get Sentence Boundaries sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=breakSentence.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js.map deleted file mode 100644 index 231cb9a7aee..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentence.js","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAA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B,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.ts deleted file mode 100644 index f319a1769a7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentence.ts +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Get Sentence Boundaries sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - }}); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts deleted file mode 100644 index 46395b61b7b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=breakSentenceWithAutoDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map deleted file mode 100644 index ac9b0b74586..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceWithAutoDetection.d.ts","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js deleted file mode 100644 index 77a3269e283..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log(`Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=breakSentenceWithAutoDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map deleted file mode 100644 index 4de54a56b3c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceWithAutoDetection.js","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,gDAAgD,EAAE,CAAC,CAAC;IAChG,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CACT,yCAAyC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,aAAa,EAAE,gBAAgB,EAAE,KAAK,GAAG,CAC5I,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts deleted file mode 100644 index dc7fe39e57c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log( - `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts deleted file mode 100644 index 59d56de8ab2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=dictionaryExamples.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map deleted file mode 100644 index 91e60b8c357..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamples.d.ts","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js deleted file mode 100644 index 57e4c06f6a2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Dictionary Examples sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log(`For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`); - const firstExample = dictionaryExample?.examples[0]; - console.log(`Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=dictionaryExamples.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map deleted file mode 100644 index 4d32e536324..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamples.js","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAiCC;;AAjDD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,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CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.ts deleted file mode 100644 index 3a6b7921125..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryExamples.ts +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -import TextTranslationClient, { - TranslatorCredential, - DictionaryExampleTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Dictionary Examples sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }}); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` - ); - const firstExample = dictionaryExample?.examples[0]; - console.log( - `Example: '${ - firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix - }'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts deleted file mode 100644 index 38085ada4f0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=dictionaryLookup.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map deleted file mode 100644 index a3340f5c99c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookup.d.ts","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js deleted file mode 100644 index 7cedc4b2ca1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Dictionary Lookup sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log(`For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`); - console.log(`First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=dictionaryLookup.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map deleted file mode 100644 index 6adf79d8741..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookup.js","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA8BC;;AA9CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;QACjF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,eAAe,IAAI,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,GAAG,CACT,uBAAuB,eAAe,EAAE,YAAY,EAAE,MAAM,wCAAwC,CACrG,CAAC;QACF,OAAO,CAAC,GAAG,CACT,iBAAiB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,aAAa,kBAAkB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,CAClI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.ts deleted file mode 100644 index b0dbe37569b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/dictionaryLookup.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Dictionary Lookup sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }}); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` - ); - console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts deleted file mode 100644 index 1b28d1fcf9d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguages.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map deleted file mode 100644 index c0c38683c9d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguages.d.ts","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":"AAeA,wBAAsB,IAAI,kBAyCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js deleted file mode 100644 index a56da0cc003..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== List supported languages sample =="); - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguages.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js.map deleted file mode 100644 index f57b349325f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguages.js","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAclC,oBAyCC;;AArDD;;GAEG;AACH,+FAEyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,uC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AAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.ts deleted file mode 100644 index ea9f6d442ce..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguages.ts +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -import TextTranslationClient, { - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== List supported languages sample =="); - - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts deleted file mode 100644 index ed7bea4503f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguagesAcceptLanguage.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map deleted file mode 100644 index af9fb2c2660..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesAcceptLanguage.d.ts","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js deleted file mode 100644 index 8882b61cc14..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== List supported localized languages sample =="); - const parameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguagesAcceptLanguage.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map deleted file mode 100644 index 9023ebd2fa3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesAcceptLanguage.js","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA8CC;;AAnED;;;;;;;;;;GAUG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,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,GAAG,GAAG,aAAa,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts deleted file mode 100644 index 8715c108b11..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -import TextTranslationClient, { - GetLanguagesParameters, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== List supported localized languages sample =="); - - const parameters: GetLanguagesParameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts deleted file mode 100644 index 98558a23465..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguagesScope.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map deleted file mode 100644 index 7f9105369a8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesScope.d.ts","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":"AAiBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js deleted file mode 100644 index 5770ac410ee..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== Scoped list supported languages sample =="); - const parameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguagesScope.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map deleted file mode 100644 index 66dbd0e2619..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/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AAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC1C,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;YAC5C,MAAM,uBAAuB,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YAC/D,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,uBAAuB,CAAC,IAAI,KAAK,uBAAuB,CAAC,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.ts deleted file mode 100644 index e37118bcbbd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/getLanguagesScope.ts +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -import TextTranslationClient, { - GetLanguagesParameters, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== Scoped list supported languages sample =="); - - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts deleted file mode 100644 index ca9270ec452..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts.map deleted file mode 100644 index a476038ef81..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA2BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js deleted file mode 100644 index b1c4f83a546..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Simple translate sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js.map deleted file mode 100644 index 2ce69d5e833..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translate.js","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA2BC;;AA5CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,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AAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.ts deleted file mode 100644 index d8256ace170..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translate.ts +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Simple translate sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts deleted file mode 100644 index ea5d8818b27..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateAlignments.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map deleted file mode 100644 index afa02ca0eab..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateAlignments.d.ts","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js deleted file mode 100644 index 6c6b88bf78b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with alignments sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - includeAlignment: true, - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateAlignments.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js.map deleted file mode 100644 index 6ab4347d107..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateAlignments.js","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA8BC;;AA/CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,yCAAyC,EAAE,CAAC,CAAC;IACzF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,gBAAgB,EAAE,IAAI;SACzB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,eAAe,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.ts deleted file mode 100644 index 33a0af2420a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateAlignments.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with alignments sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeAlignment: true, - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts deleted file mode 100644 index 422ffa713bc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateCustom.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map deleted file mode 100644 index 8b718cec683..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateCustom.d.ts","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":"AAgCA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js deleted file mode 100644 index 1518b31b2e8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Custom translator sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateCustom.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js.map deleted file mode 100644 index e0ac090d1d0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateCustom.js","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA+BlC,oBA4BC;;AAzDD;;;;;;;;;;;;;;;GAeG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,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ases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.ts deleted file mode 100644 index 0fac1a635da..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateCustom.ts +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Custom translator sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts deleted file mode 100644 index 0ba089d6c6d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map deleted file mode 100644 index 2b6c98a2652..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDetection.d.ts","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js deleted file mode 100644 index ec178b054ba..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translate sample with auto-detection =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js.map deleted file mode 100644 index 75cae32b50d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDetection.js","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAE1D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;SACX;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,yCAAyC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,WAAW,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.ts deleted file mode 100644 index 19a80c8e927..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDetection.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translate sample with auto-detection =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts deleted file mode 100644 index 46a59fbb822..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateDictionary.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map deleted file mode 100644 index fce384100b4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDictionary.d.ts","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js deleted file mode 100644 index 741d436e2aa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with Dictionary sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateDictionary.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js.map deleted file mode 100644 index 4dbd1266ede..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDictionary.js","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA+BC;;AApDD;;;;;;GAMG;AACH,+FAKyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,8GAA8G;SACrH;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAkC,CAAC;IAC1E,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.ts deleted file mode 100644 index 92484a4a7bb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateDictionary.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - TranslatedTextItemOutput, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with Dictionary sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body as TranslatedTextItemOutput[]; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts deleted file mode 100644 index 8c46b39a007..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateMultipleSources.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map deleted file mode 100644 index 77232b3cbf0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleSources.d.ts","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js deleted file mode 100644 index c4d12a37e3f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Multiple input texts =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateMultipleSources.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map deleted file mode 100644 index 5487d639380..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleSources.js","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAiCC;;AAnDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAE1C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC,EAAE,IAAI,EAAE,iBAAiB,EAAE;QAC3B,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/B,EAAE,IAAI,EAAE,oBAAoB,EAAE;KAC/B,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;SACX;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,yCAAyC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,WAAW,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.ts deleted file mode 100644 index d83cd59cca9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleSources.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Multiple input texts =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts deleted file mode 100644 index 6ea17a78854..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateMultipleTargets.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map deleted file mode 100644 index 2162e166baf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleTargets.d.ts","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js deleted file mode 100644 index 99e82ca9287..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Multiple target languages translation =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log(`Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateMultipleTargets.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map deleted file mode 100644 index 6b9bb76b106..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleTargets.js","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAA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egen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts deleted file mode 100644 index d78da651e7d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Multiple target languages translation =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log( - `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts deleted file mode 100644 index 2f2ee0dd031..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateNoTranslate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map deleted file mode 100644 index d6a6d67f853..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateNoTranslate.d.ts","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":"AAsBA,wBAAsB,IAAI,kBAgCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js deleted file mode 100644 index 4bce37a366b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Marking text input with notranslate div sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateNoTranslate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map deleted file mode 100644 index 4e5ae6fdcf3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateNoTranslate.js","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,oBAgCC;;AAnDD;;;;;GAKG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,gGAAgG;SACvG;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACnB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.ts deleted file mode 100644 index c44e308f9ef..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateNoTranslate.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Marking text input with notranslate div sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts deleted file mode 100644 index e14e29acf78..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateProfanity.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map deleted file mode 100644 index 05066b4a710..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateProfanity.d.ts","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js deleted file mode 100644 index 2a5c815abdc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Profanity handling sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateProfanity.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js.map deleted file mode 100644 index 56ada6c6e10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateProfanity.js","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,oBA6BC;;AAxDD;;;;;;;;;;;;;GAaG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAE/C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;IAC9D,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,eAAe,EAAE,QAAQ;YACzB,eAAe,EAAE,UAAU;SAC9B;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.ts deleted file mode 100644 index 1a9120831bf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateProfanity.ts +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Profanity handling sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts deleted file mode 100644 index 101a5c995c7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateSenteceLength.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map deleted file mode 100644 index 6b75e480a45..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateSenteceLength.d.ts","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBAqCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js deleted file mode 100644 index 43b2495a731..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with sentence boundaries sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { text: "The answer lies in machine translation. This is a test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - includeSentenceLength: true, - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`); - console.log(`Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateSenteceLength.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map deleted file mode 100644 index e4884cc665e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateSenteceLength.js","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBAqCC;;AAtDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAEjE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC,EAAE,IAAI,EAAE,yDAAyD,EAAE;KACpE,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,qBAAqB,EAAE,IAAI;SAC9B;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,0BAA0B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzF,CAAC;QACF,OAAO,CAAC,GAAG,CACT,8BAA8B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC/F,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.ts deleted file mode 100644 index 8b03c9d4a75..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateSenteceLength.ts +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with sentence boundaries sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { text: "The answer lies in machine translation. This is a test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeSentenceLength: true, - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log( - `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` - ); - console.log( - `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts deleted file mode 100644 index a49db19b58c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateTextType.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map deleted file mode 100644 index 9d0f89b64f7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTextType.d.ts","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js deleted file mode 100644 index ae0cfcc8993..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== HTML translation sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateTextType.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js.map deleted file mode 100644 index 8c8972cd391..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTextType.js","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA4BC;;AA7CD;;;GA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,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.ts deleted file mode 100644 index 2eabf2bd627..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateTextType.ts +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== HTML translation sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts deleted file mode 100644 index 8badf54b60c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateWithTransliteration.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map deleted file mode 100644 index 450bca60b0a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateWithTransliteration.d.ts","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js deleted file mode 100644 index c2b6b5f7351..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translate with transliteration sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateWithTransliteration.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map deleted file mode 100644 index 1786a6c32d5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateWithTransliteration.js","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAiCC;;AAnDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,SAAS;YACb,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,MAAM;SACrB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,gBAAgB,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,wBAAwB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,MAAM,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CACzI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts deleted file mode 100644 index 7f7b06b218f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translate with transliteration sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log( - `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts deleted file mode 100644 index f30e7d0aa84..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=transliterate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts.map deleted file mode 100644 index ea796ef8b38..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterate.d.ts","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js deleted file mode 100644 index 4b2dbc2fc08..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Simple transliterate sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(transliterateResponse)) { - throw transliterateResponse.body.error; - } - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log(`Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=transliterate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js.map deleted file mode 100644 index 61587039015..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterate.js","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":";AAAA,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CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.ts deleted file mode 100644 index 3e96c896734..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/src/transliterate.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Simple transliterate sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }}); - - if (isUnexpected(transliterateResponse)) { - throw transliterateResponse.body.error; - } - - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/tsconfig.json deleted file mode 100644 index e26ce2a6d8f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/samples/v1-beta/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**.ts" - ] -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts deleted file mode 100644 index 0b3aca7c00c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { GetLanguagesParameters, TranslateParameters, TransliterateParameters, FindSentenceBoundariesParameters, LookupDictionaryEntriesParameters, LookupDictionaryExamplesParameters } from "./parameters"; -import { GetLanguages200Response, GetLanguagesDefaultResponse, Translate200Response, TranslateDefaultResponse, Transliterate200Response, TransliterateDefaultResponse, FindSentenceBoundaries200Response, FindSentenceBoundariesDefaultResponse, LookupDictionaryEntries200Response, LookupDictionaryEntriesDefaultResponse, LookupDictionaryExamples200Response, LookupDictionaryExamplesDefaultResponse } from "./responses"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; -export interface GetLanguages { - /** Gets the set of languages currently supported by other operations of the Translator. */ - get(options?: GetLanguagesParameters): StreamableMethod; -} -export interface Translate { - /** Translate Text */ - post(options: TranslateParameters): StreamableMethod; -} -export interface Transliterate { - /** Transliterate Text */ - post(options: TransliterateParameters): StreamableMethod; -} -export interface FindSentenceBoundaries { - /** Find Sentence Boundaries */ - post(options: FindSentenceBoundariesParameters): StreamableMethod; -} -export interface LookupDictionaryEntries { - /** Lookup Dictionary Entries */ - post(options: LookupDictionaryEntriesParameters): StreamableMethod; -} -export interface LookupDictionaryExamples { - /** Lookup Dictionary Examples */ - post(options: LookupDictionaryExamplesParameters): StreamableMethod; -} -export interface Routes { - /** Resource for '/languages' has methods for the following verbs: get */ - (path: "/languages"): GetLanguages; - /** Resource for '/translate' has methods for the following verbs: post */ - (path: "/translate"): Translate; - /** Resource for '/transliterate' has methods for the following verbs: post */ - (path: "/transliterate"): Transliterate; - /** Resource for '/breaksentence' has methods for the following verbs: post */ - (path: "/breaksentence"): FindSentenceBoundaries; - /** Resource for '/dictionary/lookup' has methods for the following verbs: post */ - (path: "/dictionary/lookup"): LookupDictionaryEntries; - /** Resource for '/dictionary/examples' has methods for the following verbs: post */ - (path: "/dictionary/examples"): LookupDictionaryExamples; -} -export type TextTranslationClient = Client & { - path: Routes; -}; -//# sourceMappingURL=clientDefinitions.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts.map deleted file mode 100644 index 666ed83b98d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,kCAAkC,EACnC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,WAAW,YAAY;IAC3B,2FAA2F;IAC3F,GAAG,CACD,OAAO,CAAC,EAAE,sBAAsB,GAC/B,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,SAAS;IACxB,qBAAqB;IACrB,IAAI,CACF,OAAO,EAAE,mBAAmB,GAC3B,gBAAgB,CAAC,oBAAoB,GAAG,wBAAwB,CAAC,CAAC;CACtE;AAED,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,CACF,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,sBAAsB;IACrC,+BAA+B;IAC/B,IAAI,CACF,OAAO,EAAE,gCAAgC,GACxC,gBAAgB,CAAC,iCAAiC,GAAG,qCAAqC,CAAC,CAAC;CAChG;AAED,MAAM,WAAW,uBAAuB;IACtC,gCAAgC;IAChC,IAAI,CACF,OAAO,EAAE,iCAAiC,GACzC,gBAAgB,CAAC,kCAAkC,GAAG,sCAAsC,CAAC,CAAC;CAClG;AAED,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,IAAI,CACF,OAAO,EAAE,kCAAkC,GAC1C,gBAAgB,CACjB,mCAAmC,GAAG,uCAAuC,CAC9E,CAAC;CACH;AAED,MAAM,WAAW,MAAM;IACrB,yEAAyE;IACzE,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY,CAAC;IACnC,0EAA0E;IAC1E,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC;IAChC,8EAA8E;IAC9E,CAAC,IAAI,EAAE,gBAAgB,GAAG,aAAa,CAAC;IACxC,8EAA8E;IAC9E,CAAC,IAAI,EAAE,gBAAgB,GAAG,sBAAsB,CAAC;IACjD,kFAAkF;IAClF,CAAC,IAAI,EAAE,oBAAoB,GAAG,uBAAuB,CAAC;IACtD,oFAAoF;IACpF,CAAC,IAAI,EAAE,sBAAsB,GAAG,wBAAwB,CAAC;CAC1D;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js deleted file mode 100644 index 4241682f193..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=clientDefinitions.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js.map deleted file mode 100644 index 1a49e5540ea..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts deleted file mode 100644 index 202357bbcd6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { AzureKeyCredential, TokenCredential } from "@azure/core-auth"; -import { PipelinePolicy, PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; -export declare const DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; -export interface TranslatorCredential { - key: string; - region: string; -} -export interface TranslatorTokenCredential { - tokenCredential: TokenCredential; - region: string; - azureResourceId: string; -} -export declare class TranslatorAuthenticationPolicy implements PipelinePolicy { - name: string; - credential: TranslatorCredential; - constructor(credential: TranslatorCredential); - sendRequest(request: PipelineRequest, next: SendRequest): Promise; -} -export declare class TranslatorAzureKeyAuthenticationPolicy implements PipelinePolicy { - name: string; - credential: AzureKeyCredential; - constructor(credential: AzureKeyCredential); - sendRequest(request: PipelineRequest, next: SendRequest): Promise; -} -export declare class TranslatorTokenCredentialAuthenticationPolicy implements PipelinePolicy { - name: string; - credential: TranslatorTokenCredential; - constructor(credential: TranslatorTokenCredential); - sendRequest(request: PipelineRequest, next: SendRequest): Promise; -} -//# sourceMappingURL=authentication.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts.map deleted file mode 100644 index 8911d4108fc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["authentication.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAKnC,eAAO,MAAM,aAAa,iDAAiD,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,8BAA+B,YAAW,cAAc;IACnE,IAAI,EAAE,MAAM,CAAoC;IAChD,UAAU,EAAE,oBAAoB,CAAC;gBAErB,UAAU,EAAE,oBAAoB;IAI5C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMpF;AAED,qBAAa,sCAAuC,YAAW,cAAc;IAC3E,IAAI,EAAE,MAAM,CAA4C;IACxD,UAAU,EAAE,kBAAkB,CAAC;gBAEnB,UAAU,EAAE,kBAAkB;IAI1C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAKpF;AAED,qBAAa,6CAA8C,YAAW,cAAc;IAClF,IAAI,EAAE,MAAM,CAAmD;IAC/D,UAAU,EAAE,yBAAyB,CAAC;gBAE1B,UAAU,EAAE,yBAAyB;IAIjD,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMpF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js deleted file mode 100644 index 04c2475ecf8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TranslatorTokenCredentialAuthenticationPolicy = exports.TranslatorAzureKeyAuthenticationPolicy = exports.TranslatorAuthenticationPolicy = exports.DEFAULT_SCOPE = void 0; -const APIM_KEY_HEADER_NAME = "Ocp-Apim-Subscription-Key"; -const APIM_REGION_HEADER_NAME = "Ocp-Apim-Subscription-Region"; -const APIM_RESOURCE_ID = "Ocp-Apim-ResourceId"; -exports.DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; -class TranslatorAuthenticationPolicy { - name = "TranslatorAuthenticationPolicy"; - credential; - constructor(credential) { - this.credential = credential; - } - sendRequest(request, next) { - request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); - request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); - return next(request); - } -} -exports.TranslatorAuthenticationPolicy = TranslatorAuthenticationPolicy; -class TranslatorAzureKeyAuthenticationPolicy { - name = "TranslatorAzureKeyAuthenticationPolicy"; - credential; - constructor(credential) { - this.credential = credential; - } - sendRequest(request, next) { - request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); - return next(request); - } -} -exports.TranslatorAzureKeyAuthenticationPolicy = TranslatorAzureKeyAuthenticationPolicy; -class TranslatorTokenCredentialAuthenticationPolicy { - name = "TranslatorTokenCredentialAuthenticationPolicy"; - credential; - constructor(credential) { - this.credential = credential; - } - sendRequest(request, next) { - request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); - request.headers.set(APIM_RESOURCE_ID, this.credential.azureResourceId); - return next(request); - } -} -exports.TranslatorTokenCredentialAuthenticationPolicy = TranslatorTokenCredentialAuthenticationPolicy; -//# sourceMappingURL=authentication.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js.map deleted file mode 100644 index 219dc3bba58..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authentication.js","sourceRoot":"","sources":["authentication.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,MAAM,oBAAoB,GAAG,2BAA2B,CAAC;AACzD,MAAM,uBAAuB,GAAG,8BAA8B,CAAC;AAC/D,MAAM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AAC,UAAU,CAAC,eAAe,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;CACF;AAdD,sGAcC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts deleted file mode 100644 index 11e312111b5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ClientOptions } from "@azure-rest/core-client"; -import { TextTranslationClient } from "../clientDefinitions"; -import { TranslatorCredential, TranslatorTokenCredential } from "./authentication"; -import { KeyCredential, TokenCredential } from "@azure/core-auth"; -/** - * Initialize a new instance of `TextTranslationClient` - * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: - * https://api.cognitive.microsofttranslator.com). - * @param options type: ClientOptions, the parameter for all optional parameters - */ -export default function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; -//# sourceMappingURL=customClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts.map deleted file mode 100644 index b69536828e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"customClient.d.ts","sourceRoot":"","sources":["customClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAEL,oBAAoB,EACpB,yBAAyB,EAI1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAsB,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAyBtF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,SAAS,GAAG,MAAM,EAC5B,UAAU,GACN,SAAS,GACT,oBAAoB,GACpB,yBAAyB,GACzB,aAAa,GACb,eAA2B,EAC/B,OAAO,GAAE,aAAkB,GAC1B,qBAAqB,CA8DvB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js deleted file mode 100644 index e456035ba44..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = createClient; -const tslib_1 = require("tslib"); -const core_client_1 = require("@azure-rest/core-client"); -const logger_1 = require("../logger"); -const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline")); -const authentication_1 = require("./authentication"); -const DEFAULT_ENPOINT = "https://api.cognitive.microsofttranslator.com"; -const PLATFORM_HOST = "cognitiveservices"; -const PLATFORM_PATH = "/translator/text/v3.0"; -function isKeyCredential(credential) { - return credential?.key !== undefined; -} -function isTranslatorKeyCredential(credential) { - return credential?.key !== undefined; -} -function isTokenCredential(credential) { - return credential?.getToken !== undefined; -} -function isTranslatorTokenCredential(credential) { - return (credential?.tokenCredential !== undefined && - credential?.azureResourceId !== undefined); -} -/** - * Initialize a new instance of `TextTranslationClient` - * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: - * https://api.cognitive.microsofttranslator.com). - * @param options type: ClientOptions, the parameter for all optional parameters - */ -function createClient(endpoint, credential = undefined, options = {}) { - let serviceEndpoint; - options.apiVersion = options.apiVersion ?? "3.0"; - if (!endpoint) { - serviceEndpoint = DEFAULT_ENPOINT; - } - else if (endpoint.toLowerCase().indexOf(PLATFORM_HOST) !== -1) { - serviceEndpoint = `${endpoint}${PLATFORM_PATH}`; - } - else { - serviceEndpoint = endpoint; - } - const baseUrl = options.baseUrl ?? `${serviceEndpoint}`; - const userAgentInfo = `azsdk-js-ai-translation-text-rest/1.0.0-beta.2`; - const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` - : `${userAgentInfo}`; - options = { - ...options, - userAgentOptions: { - userAgentPrefix, - }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger_1.logger.info, - }, - }; - const client = (0, core_client_1.getClient)(baseUrl, options); - if (isTranslatorKeyCredential(credential)) { - const mtAuthneticationPolicy = new authentication_1.TranslatorAuthenticationPolicy(credential); - client.pipeline.addPolicy(mtAuthneticationPolicy); - } - else if (isKeyCredential(credential)) { - const mtKeyAuthenticationPolicy = new authentication_1.TranslatorAzureKeyAuthenticationPolicy(credential); - client.pipeline.addPolicy(mtKeyAuthenticationPolicy); - } - else if (isTokenCredential(credential)) { - client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credential, - scopes: authentication_1.DEFAULT_SCOPE, - })); - } - else if (isTranslatorTokenCredential(credential)) { - client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credential.tokenCredential, - scopes: authentication_1.DEFAULT_SCOPE, - })); - client.pipeline.addPolicy(new authentication_1.TranslatorTokenCredentialAuthenticationPolicy(credential)); - } - return client; -} -//# sourceMappingURL=customClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js.map deleted file mode 100644 index ad4c129c28e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"customClient.js","sourceRoot":"","sources":["customClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6ClC,+BAuEC;;AAlHD,yDAAmE;AACnE,sCAAmC;AACnC,oFAA8D;AAE9D,qDAO0B;AAG1B,MAAM,eAAe,GAAG,+CAA+C,CAAC;AACxE,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAC1C,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,SAAS,eAAe,CAAC,UAAe;IACtC,OAAQ,UAA4B,EAAE,GAAG,KAAK,SAAS,CAAC;AAC1D,CAAC;AAED,SAAS,yBAAyB,CAAC,UAAe;IAChD,OAAQ,UAAmC,EAAE,GAAG,KAAK,SAAS,CAAC;AACjE,CAAC;AAED,SAAS,iBAAiB,CAAC,UAAe;IACxC,OAAQ,UAA8B,EAAE,QAAQ,KAAK,SAAS,CAAC;AACjE,CAAC;AAED,SAAS,2BAA2B,CAAC,UAAe;IAClD,OAAO,CACJ,UAAwC,EAAE,eAAe,KAAK,SAAS;QACvE,UAAwC,EAAE,eAAe,KAAK,SAAS,CACzE,CAAC;AACJ,CAAC;AAED;;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AAM,IAAI,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QACvC,MAAM,yBAAyB,GAAG,IAAI,uDAAsC,CAC1E,UAAgC,CACjC,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IACvD,CAAC;SAAM,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;QACzC,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,gBAAgB,CAAC,+BAA+B,CAAC;YAC/C,UAAU,EAAE,UAA6B;YACzC,MAAM,EAAE,8BAAa;SACtB,CAAC,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,2BAA2B,CAAC,UAAU,CAAC,EAAE,CAAC;QACnD,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,gBAAgB,CAAC,+BAA+B,CAAC;YAC/C,UAAU,EAAG,UAAwC,CAAC,eAAe;YACrE,MAAM,EAAE,8BAAa;SACtB,CAAC,CACH,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,IAAI,8DAA6C,CAAC,UAAuC,CAAC,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts deleted file mode 100644 index c815d85cec7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import TextTranslationClient from "./custom/customClient"; -export * from "./custom/customClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./serializeHelper"; -export { TranslatorCredential, TranslatorTokenCredential } from "./custom/authentication"; -export default TextTranslationClient; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts.map deleted file mode 100644 index c43ad692f47..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,MAAM,uBAAuB,CAAC;AAE1D,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,eAAe,qBAAqB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js deleted file mode 100644 index d66595fa050..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -const customClient_1 = tslib_1.__importDefault(require("./custom/customClient")); -tslib_1.__exportStar(require("./custom/customClient"), exports); -tslib_1.__exportStar(require("./parameters"), exports); -tslib_1.__exportStar(require("./responses"), exports); -tslib_1.__exportStar(require("./clientDefinitions"), exports); -tslib_1.__exportStar(require("./isUnexpected"), exports); -tslib_1.__exportStar(require("./models"), exports); -tslib_1.__exportStar(require("./outputModels"), exports); -tslib_1.__exportStar(require("./serializeHelper"), exports); -exports.default = customClient_1.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js.map deleted file mode 100644 index c484a7d0566..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iFAA0D;AAE1D,gEAAsC;AACtC,uDAA6B;AAC7B,sDAA4B;AAC5B,8DAAoC;AACpC,yDAA+B;AAC/B,mDAAyB;AACzB,yDAA+B;AAC/B,4DAAkC;AAGlC,kBAAe,sBAAqB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts deleted file mode 100644 index 260938b2f45..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { GetLanguages200Response, GetLanguagesDefaultResponse, Translate200Response, TranslateDefaultResponse, Transliterate200Response, TransliterateDefaultResponse, FindSentenceBoundaries200Response, FindSentenceBoundariesDefaultResponse, LookupDictionaryEntries200Response, LookupDictionaryEntriesDefaultResponse, LookupDictionaryExamples200Response, LookupDictionaryExamplesDefaultResponse } from "./responses"; -export declare function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; -export declare function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; -export declare function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; -export declare function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; -export declare function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; -export declare function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; -//# sourceMappingURL=isUnexpected.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts.map deleted file mode 100644 index ca58e4fe810..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,aAAa,CAAC;AAWrB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oBAAoB,GAAG,wBAAwB,GACxD,QAAQ,IAAI,wBAAwB,CAAC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wBAAwB,GAAG,4BAA4B,GAChE,QAAQ,IAAI,4BAA4B,CAAC;AAC5C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,iCAAiC,GAAG,qCAAqC,GAClF,QAAQ,IAAI,qCAAqC,CAAC;AACrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,kCAAkC,GAAG,sCAAsC,GACpF,QAAQ,IAAI,sCAAsC,CAAC;AACtD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,mCAAmC,GAAG,uCAAuC,GACtF,QAAQ,IAAI,uCAAuC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js deleted file mode 100644 index c65b3b4f2c3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isUnexpected = isUnexpected; -const responseMap = { - "GET /languages": ["200"], - "POST /translate": ["200"], - "POST /transliterate": ["200"], - "POST /breaksentence": ["200"], - "POST /dictionary/lookup": ["200"], - "POST /dictionary/examples": ["200"], -}; -function isUnexpected(response) { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} -function getParametrizedPathSuccess(method, path) { - const pathParts = path.split("/"); - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, matchedValue = []; - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - // track if we have found a match to return the values found. - let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { - const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); - if (!isMatched) { - found = false; - break; - } - continue; - } - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - return matchedValue; -} -function getPathFromMapKey(mapKey) { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} -//# sourceMappingURL=isUnexpected.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js.map deleted file mode 100644 index 238bab8b0c9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA4ClC,oCA6BC;AAxDD,MAAM,WAAW,GAA6B;IAC5C,gBAAgB,EAAE,CAAC,KAAK,CAAC;IACzB,iBAAiB,EAAE,CAAC,KAAK,CAAC;IAC1B,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,yBAAyB,EAAE,CAAC,KAAK,CAAC;IAClC,2BAA2B,EAAE,CAAC,KAAK,CAAC;CACrC,CAAC;AAoBF,SAAgB,YAAY,CAC1B,QAY2C;IAQ3C,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC;IACvC,IAAI,WAAW,GAAG,WAAW,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC3D,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,WAAW,GAAG,0BAA0B,CAAC,MAAM,EAAE,GAAG,CA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C,GAAG,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;gBAClC,4DAA4D;gBAC5D,qDAAqD;gBACrD,eAAe;gBACf,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts deleted file mode 100644 index 66ece8e69dd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const logger: any; -//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts.map deleted file mode 100644 index f8f65055158..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,KAA4C,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js deleted file mode 100644 index 5c950d128da..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.logger = void 0; -const logger_1 = require("@azure/logger"); -exports.logger = (0, logger_1.createClientLogger)("ai-translation-text"); -//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js.map deleted file mode 100644 index d8f613d3a81..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.js","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0CAAmD;AACtC,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts deleted file mode 100644 index 0fd390d0877..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** Element containing the text for translation. */ -export interface InputTextItem { - /** Text to translate. */ - text: string; -} -/** Element containing the text with translation. */ -export interface DictionaryExampleTextItem extends InputTextItem { - /** - * A string specifying the translated text previously returned by the Dictionary lookup operation. - * This should be the value from the normalizedTarget field in the translations list of the Dictionary - * lookup response. The service will return examples for the specific source-target word-pair. - */ - translation: string; -} -//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts.map deleted file mode 100644 index d2430a1004b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAGA,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oDAAoD;AACpD,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC9D;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js deleted file mode 100644 index 783931f3080..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js.map deleted file mode 100644 index 7d51b00eabf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"models.js","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts deleted file mode 100644 index 81564eb6b4c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts +++ /dev/null @@ -1,297 +0,0 @@ -/** Response for the languages API. */ -export interface GetLanguagesResultOutput { - /** Languages that support translate API. */ - translation?: Record; - /** Languages that support transliteration API. */ - transliteration?: Record; - /** Languages that support dictionary API. */ - dictionary?: Record; -} -/** - * The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. - * A key identifies a language for which text can be translated to or translated from. - */ -export interface TranslationLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; -} -/** - * The value of the transliteration property is a dictionary of (key, value) pairs. - * Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script - * to another script. - */ -export interface TransliterationLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** List of scripts to convert from. */ - scripts: Array; -} -/** Script definition with list of script into which given script can be translitered. */ -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - /** List of scripts available to convert text to. */ - toScripts: Array; -} -/** Common properties of language script */ -export interface CommonScriptModelOutput { - /** Code identifying the script. */ - code: string; - /** Display name of the script in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for the language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; -} -/** Properties ot the source dictionary language */ -export interface SourceDictionaryLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; - /** List of languages with alterative translations and examples for the query expressed in the source language. */ - translations: Array; -} -/** Properties of the target dictionary language */ -export interface TargetDictionaryLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; - /** Language code identifying the target language. */ - code: string; -} -/** Representation of the Error Response from Translator Service. */ -export interface ErrorResponseOutput { - /** Error details. */ - error: ErrorDetailsOutput; -} -/** Error details as returned by Translator Service. */ -export interface ErrorDetailsOutput { - /** Number identifier of the error. */ - code: number; - /** Human readable error description. */ - message: string; -} -/** Element containing the translated text */ -export interface TranslatedTextItemOutput { - /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ - detectedLanguage?: DetectedLanguageOutput; - /** - * An array of translation results. The size of the array matches the number of target - * languages specified through the to query parameter. - */ - translations: Array; - /** - * Input text in the default script of the source language. sourceText property is present only when - * the input is expressed in a script that's not the usual script for the language. For example, - * if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text - * converted into Arab script. - */ - sourceText?: SourceTextOutput; -} -/** An object describing the detected language. */ -export interface DetectedLanguageOutput { - /** A string representing the code of the detected language. */ - language: string; - /** - * A float value indicating the confidence in the result. - * The score is between zero and one and a low score indicates a low confidence. - */ - score: number; -} -/** Translation result */ -export interface TranslationOutput { - /** A string representing the language code of the target language. */ - to: string; - /** A string giving the translated text. */ - text: string; - /** An object giving the translated text in the script specified by the toScript parameter. */ - transliteration?: TransliteratedTextOutput; - /** Alignment information. */ - alignment?: TranslatedTextAlignmentOutput; - /** Sentence boundaries in the input and output texts. */ - sentLen?: SentenceLengthOutput; -} -/** Transliterated text element. */ -export interface TransliteratedTextOutput { - /** A string which is the result of converting the input string to the output script. */ - text: string; - /** A string specifying the script used in the output. */ - script: string; -} -/** Alignment information object. */ -export interface TranslatedTextAlignmentOutput { - /** - * Maps input text to translated text. The alignment information is only provided when the request - * parameter includeAlignment is true. Alignment is returned as a string value of the following - * format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. - * The colon separates start and end index, the dash separates the languages, and space separates the words. - * One word may align with zero, one, or multiple words in the other language, and the aligned words may - * be non-contiguous. When no alignment information is available, the alignment element will be empty. - */ - proj: string; -} -/** An object returning sentence boundaries in the input and output texts. */ -export interface SentenceLengthOutput { - /** - * An integer array representing the lengths of the sentences in the input text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - srcSentLen: number[]; - /** - * An integer array representing the lengths of the sentences in the translated text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - transSentLen: number[]; -} -/** Input text in the default script of the source language. */ -export interface SourceTextOutput { - /** Input text in the default script of the source language. */ - text: string; -} -/** Item containing break sentence result. */ -export interface BreakSentenceItemOutput { - /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ - detectedLanguage?: DetectedLanguageOutput; - /** - * An integer array representing the lengths of the sentences in the input text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - sentLen: number[]; -} -/** Dictionary Lookup Element */ -export interface DictionaryLookupItemOutput { - /** - * A string giving the normalized form of the source term. - * For example, if the request is "JOHN", the normalized form will be "john". - * The content of this field becomes the input to lookup examples. - */ - normalizedSource: string; - /** - * A string giving the source term in a form best suited for end-user display. - * For example, if the input is "JOHN", the display form will reflect the usual - * spelling of the name: "John". - */ - displaySource: string; - /** A list of translations for the source term. */ - translations: Array; -} -/** Translation source term. */ -export interface DictionaryTranslationOutput { - /** - * A string giving the normalized form of this term in the target language. - * This value should be used as input to lookup examples. - */ - normalizedTarget: string; - /** - * A string giving the term in the target language and in a form best suited - * for end-user display. Generally, this will only differ from the normalizedTarget - * in terms of capitalization. For example, a proper noun like "Juan" will have - * normalizedTarget = "juan" and displayTarget = "Juan". - */ - displayTarget: string; - /** A string associating this term with a part-of-speech tag. */ - posTag: string; - /** - * A value between 0.0 and 1.0 which represents the "confidence" - * (or perhaps more accurately, "probability in the training data") of that translation pair. - * The sum of confidence scores for one source word may or may not sum to 1.0. - */ - confidence: number; - /** - * A string giving the word to display as a prefix of the translation. Currently, - * this is the gendered determiner of nouns, in languages that have gendered determiners. - * For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. - * This is only dependent on the translation, and not on the source. - * If there is no prefix, it will be the empty string. - */ - prefixWord: string; - /** - * A list of "back translations" of the target. For example, source words that the target can translate to. - * The list is guaranteed to contain the source word that was requested (e.g., if the source word being - * looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). - * However, it is not guaranteed to be in the first position, and often will not be. - */ - backTranslations: Array; -} -/** Back Translation */ -export interface BackTranslationOutput { - /** - * A string giving the normalized form of the source term that is a back-translation of the target. - * This value should be used as input to lookup examples. - */ - normalizedText: string; - /** - * A string giving the source term that is a back-translation of the target in a form best - * suited for end-user display. - */ - displayText: string; - /** - * An integer representing the number of examples that are available for this translation pair. - * Actual examples must be retrieved with a separate call to lookup examples. The number is mostly - * intended to facilitate display in a UX. For example, a user interface may add a hyperlink - * to the back-translation if the number of examples is greater than zero and show the back-translation - * as plain text if there are no examples. Note that the actual number of examples returned - * by a call to lookup examples may be less than numExamples, because additional filtering may be - * applied on the fly to remove "bad" examples. - */ - numExamples: number; - /** - * An integer representing the frequency of this translation pair in the data. The main purpose of this - * field is to provide a user interface with a means to sort back-translations so the most frequent terms are first. - */ - frequencyCount: number; -} -/** Dictionary Example element */ -export interface DictionaryExampleItemOutput { - /** - * A string giving the normalized form of the source term. Generally, this should be identical - * to the value of the Text field at the matching list index in the body of the request. - */ - normalizedSource: string; - /** - * A string giving the normalized form of the target term. Generally, this should be identical - * to the value of the Translation field at the matching list index in the body of the request. - */ - normalizedTarget: string; - /** A list of examples for the (source term, target term) pair. */ - examples: Array; -} -/** Dictionary Example */ -export interface DictionaryExampleOutput { - /** - * The string to concatenate before the value of sourceTerm to form a complete example. - * Do not add a space character, since it is already there when it should be. - * This value may be an empty string. - */ - sourcePrefix: string; - /** - * A string equal to the actual term looked up. The string is added with sourcePrefix - * and sourceSuffix to form the complete example. Its value is separated so it can be - * marked in a user interface, e.g., by bolding it. - */ - sourceTerm: string; - /** - * The string to concatenate after the value of sourceTerm to form a complete example. - * Do not add a space character, since it is already there when it should be. - * This value may be an empty string. - */ - sourceSuffix: string; - /** A string similar to sourcePrefix but for the target. */ - targetPrefix: string; - /** A string similar to sourceTerm but for the target. */ - targetTerm: string; - /** A string similar to sourceSuffix but for the target. */ - targetSuffix: string; -} -//# sourceMappingURL=outputModels.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts.map deleted file mode 100644 index ce0bc472989..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":"AAGA,sCAAsC;AACtC,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACxD,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;IAChE,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC;CAC7D;AAED;;;GAGG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AAuB;IACtC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js deleted file mode 100644 index ff891030193..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=outputModels.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js.map deleted file mode 100644 index ca27ed678c2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts deleted file mode 100644 index ed444dacea2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts +++ /dev/null @@ -1,238 +0,0 @@ -import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; -import { RequestParameters } from "@azure-rest/core-client"; -import { InputTextItem, DictionaryExampleTextItem } from "./models"; -export interface GetLanguagesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; - /** - * The language to use for user interface strings. Some of the fields in the response are names of languages or - * names of regions. Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` - * to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. - * Names are provided in the English language when a target language is not specified or when localization - * is not available. - */ - "Accept-Language"?: string; - /** - * Passing the value of the ETag response header in an If-None-Match field will allow the service to optimize the response. - * If the resource has not been modified, the service will return status code 304 and an empty response body. - */ - "If-None-Match"?: string; -} -export interface GetLanguagesQueryParamProperties { - /** - * A comma-separated list of names defining the group of languages to return. - * Allowed group names are: `translation`, `transliteration` and `dictionary`. - * If no scope is given, then all groups are returned, which is equivalent to passing - * `scope=translation,transliteration,dictionary`. To decide which set of supported languages - * is appropriate for your scenario, see the description of the [response object](#response-body). - */ - scope?: string; -} -export interface GetLanguagesQueryParam { - queryParameters?: GetLanguagesQueryParamProperties; -} -export interface GetLanguagesHeaderParam { - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} -export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; -export interface TranslateHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface TranslateBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface TranslateQueryParamProperties { - /** - * Specifies the language of the output text. The target language must be one of the supported languages included - * in the translation scope. For example, use to=de to translate to German. - * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. - * For example, use to=de&to=it to translate to German and Italian. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request - */ - to: string; - /** - * Specifies the language of the input text. Find which languages are available to translate from by - * looking up supported languages using the translation scope. If the from parameter isn't specified, - * automatic language detection is applied to determine the source language. - * - * You must use the from parameter rather than autodetection when using the dynamic dictionary feature. - * Note: the dynamic dictionary feature is case-sensitive. - */ - from?: string; - /** - * Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, - * complete element. Possible values are: plain (default) or html. - */ - textType?: string; - /** - * A string specifying the category (domain) of the translation. This parameter is used to get translations - * from a customized system built with Custom Translator. Add the Category ID from your Custom Translator - * project details to this parameter to use your deployed customized system. Default value is: general. - */ - category?: string; - /** - * Specifies how profanities should be treated in translations. - * Possible values are: NoAction (default), Marked or Deleted. - */ - profanityAction?: string; - /** - * Specifies how profanities should be marked in translations. - * Possible values are: Asterisk (default) or Tag. - */ - profanityMarker?: string; - /** - * Specifies whether to include alignment projection from source text to translated text. - * Possible values are: true or false (default). - */ - includeAlignment?: boolean; - /** - * Specifies whether to include sentence boundaries for the input text and the translated text. - * Possible values are: true or false (default). - */ - includeSentenceLength?: boolean; - /** - * Specifies a fallback language if the language of the input text can't be identified. - * Language autodetection is applied when the from parameter is omitted. If detection fails, - * the suggestedFrom language will be assumed. - */ - suggestedFrom?: string; - /** Specifies the script of the input text. */ - fromScript?: string; - /** Specifies the script of the translated text. */ - toScript?: string; - /** - * Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. - * Possible values are: true (default) or false. - * - * allowFallback=false specifies that the translation should only use systems trained for the category specified - * by the request. If a translation for language X to language Y requires chaining through a pivot language E, - * then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. - * If no system is found with the specific category, the request will return a 400 status code. allowFallback=true - * specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. - */ - allowFallback?: boolean; -} -export interface TranslateQueryParam { - queryParameters: TranslateQueryParamProperties; -} -export interface TranslateHeaderParam { - headers?: RawHttpHeadersInput & TranslateHeaders; -} -export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; -export interface TransliterateHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface TransliterateBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface TransliterateQueryParamProperties { - /** - * Specifies the language of the text to convert from one script to another. - * Possible languages are listed in the transliteration scope obtained by querying the service - * for its supported languages. - */ - language: string; - /** - * Specifies the script used by the input text. Look up supported languages using the transliteration scope, - * to find input scripts available for the selected language. - */ - fromScript: string; - /** - * Specifies the output script. Look up supported languages using the transliteration scope, to find output - * scripts available for the selected combination of input language and input script. - */ - toScript: string; -} -export interface TransliterateQueryParam { - queryParameters: TransliterateQueryParamProperties; -} -export interface TransliterateHeaderParam { - headers?: RawHttpHeadersInput & TransliterateHeaders; -} -export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; -export interface FindSentenceBoundariesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface FindSentenceBoundariesBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface FindSentenceBoundariesQueryParamProperties { - /** - * Language tag identifying the language of the input text. - * If a code isn't specified, automatic language detection will be applied. - */ - language?: string; - /** - * Script tag identifying the script used by the input text. - * If a script isn't specified, the default script of the language will be assumed. - */ - script?: string; -} -export interface FindSentenceBoundariesQueryParam { - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} -export interface FindSentenceBoundariesHeaderParam { - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; -export interface LookupDictionaryEntriesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface LookupDictionaryEntriesBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface LookupDictionaryEntriesQueryParamProperties { - /** - * Specifies the language of the input text. - * The source language must be one of the supported languages included in the dictionary scope. - */ - from: string; - /** - * Specifies the language of the output text. - * The target language must be one of the supported languages included in the dictionary scope. - */ - to: string; -} -export interface LookupDictionaryEntriesQueryParam { - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} -export interface LookupDictionaryEntriesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; -export interface LookupDictionaryExamplesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface LookupDictionaryExamplesBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface LookupDictionaryExamplesQueryParamProperties { - /** - * Specifies the language of the input text. - * The source language must be one of the supported languages included in the dictionary scope. - */ - from: string; - /** - * Specifies the language of the output text. - * The target language must be one of the supported languages included in the dictionary scope. - */ - to: string; -} -export interface LookupDictionaryExamplesQueryParam { - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} -export interface LookupDictionaryExamplesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; -//# sourceMappingURL=parameters.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts.map deleted file mode 100644 index 6e5d5579cfb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,CAAC,EAAE,gCAAgC,CAAC;CACpD;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;CACrD;AAED,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GACzD,uBAAuB,GACvB,iBAAiB,CAAC;AAEpB,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;;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,gCAAgC,GAChC,iBAAiB,CAAC;AAEpB,MAAM,WAAW,+BAA+B;IAC9C,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,4CAA4C;IAC3D;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kCAAkC;IACjD,eAAe,EAAE,4CAA4C,CAAC;CAC/D;AAED,MAAM,WAAW,mCAAmC;IAClD,OAAO,CAAC,EAAE,mBAAmB,GAAG,+BAA+B,CAAC;CACjE;AAED,MAAM,MAAM,kCAAkC,GAAG,kCAAkC,GACjF,mCAAmC,GACnC,iCAAiC,GACjC,iBAAiB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js deleted file mode 100644 index 5f2ab1f652e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=parameters.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js.map deleted file mode 100644 index 30d9e4dbe93..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameters.js","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts deleted file mode 100644 index 7f9908d2f42..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { GetLanguagesResultOutput, ErrorResponseOutput, TranslatedTextItemOutput, TransliteratedTextOutput, BreakSentenceItemOutput, DictionaryLookupItemOutput, DictionaryExampleItemOutput } from "./outputModels"; -export interface GetLanguages200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; - /** - * Current value of the entity tag for the requested groups of supported languages. - * To make subsequent requests more efficient, the client may send the `ETag` value in an - * `If-None-Match` header field. - */ - etag: string; -} -/** The request has succeeded. */ -export interface GetLanguages200Response extends HttpResponse { - status: "200"; - body: GetLanguagesResultOutput; - headers: RawHttpHeaders & GetLanguages200Headers; -} -export interface GetLanguagesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface GetLanguagesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; -} -export interface Translate200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; - /** - * Specifies the system type that was used for translation for each 'to' language requested for translation. - * The value is a comma-separated list of strings. Each string indicates a type: - * - * * Custom - Request includes a custom system and at least one custom system was used during translation. - * * Team - All other requests - */ - "x-mt-system": string; - /** - * Specifies consumption (the number of characters for which the user will be charged) for the translation - * job request. For example, if the word "Hello" is translated from English (en) to French (fr), - * this field will return the value '5'. - */ - "x-metered-usage": number; -} -/** Response for the translation API. */ -export interface Translate200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & Translate200Headers; -} -export interface TranslateDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface TranslateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & TranslateDefaultHeaders; -} -export interface Transliterate200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -/** Response for the transliteration API. */ -export interface Transliterate200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & Transliterate200Headers; -} -export interface TransliterateDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface TransliterateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & TransliterateDefaultHeaders; -} -export interface FindSentenceBoundaries200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -/** Response for the Break SEntence API. */ -export interface FindSentenceBoundaries200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; -} -export interface FindSentenceBoundariesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; -} -export interface LookupDictionaryEntries200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -/** Response for the dictionary lookup API. */ -export interface LookupDictionaryEntries200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; -} -export interface LookupDictionaryEntriesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; -} -export interface LookupDictionaryExamples200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -/** Response for the dictionary examples API. */ -export interface LookupDictionaryExamples200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; -} -export interface LookupDictionaryExamplesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; -} -//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts.map deleted file mode 100644 index 1b10601df71..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC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AA0B,CAAC,CAAC;IACxC,OAAO,EAAE,cAAc,GAAG,iCAAiC,CAAC;CAC7D;AAED,MAAM,WAAW,qCAAqC;IACpD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,cAAc,GAAG,qCAAqC,CAAC;CACjE;AAED,MAAM,WAAW,kCAAkC;IACjD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,gDAAgD;AAChD,MAAM,WAAW,mCAAoC,SAAQ,YAAY;IACvE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACzC,OAAO,EAAE,cAAc,GAAG,kCAAkC,CAAC;CAC9D;AAED,MAAM,WAAW,sCAAsC;IACrD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uCAAwC,SAAQ,YAAY;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,cAAc,GAAG,sCAAsC,CAAC;CAClE"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js deleted file mode 100644 index c1f0652be92..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js.map deleted file mode 100644 index 985ea679d9d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responses.js","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts deleted file mode 100644 index 322bc07c3d1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function buildMultiCollection(items: string[], parameterName: string): string; -//# sourceMappingURL=serializeHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts.map deleted file mode 100644 index 12a8c4395a2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serializeHelper.d.ts","sourceRoot":"","sources":["serializeHelper.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CASnF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js deleted file mode 100644 index 7cbc1277126..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.buildMultiCollection = buildMultiCollection; -function buildMultiCollection(items, parameterName) { - return items - .map((item, index) => { - if (index === 0) { - return item; - } - return `${parameterName}=${item}`; - }) - .join("&"); -} -//# sourceMappingURL=serializeHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js.map deleted file mode 100644 index 3770ca91fa6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serializeHelper.js","sourceRoot":"","sources":["serializeHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,oDASC;AATD,SAAgB,oBAAoB,CAAC,KAAe,EAAE,aAAqB;IACzE,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACnB,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,GAAG,aAAa,IAAI,IAAI,EAAE,CAAC;IACpC,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts deleted file mode 100644 index ee7d42963d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=breakSentenceTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts.map deleted file mode 100644 index 5dc888b8a0a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceTest.spec.d.ts","sourceRoot":"","sources":["breakSentenceTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js deleted file mode 100644 index 377d75b498f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("BreakSentence tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("auto detect", async () => { - const inputText = [{ text: "hello world" }]; - const response = await client.path("/breaksentence").post({ - body: inputText, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const breakSentences = response.body; - chai_1.assert.isTrue(breakSentences[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(breakSentences[0].detectedLanguage?.score === 0.98); - chai_1.assert.isTrue(breakSentences[0].sentLen[0] === 11); - }); - it("with language", async () => { - const inputText = [ - { - text: "รวบรวมแผ่นคำตอบ ระยะเวลาของโครงการ วิธีเลือกชายในฝัน หมายเลขซีเรียลของระเบียน วันที่สิ้นสุดของโครงการเมื่อเสร็จสมบูรณ์ ปีที่มีการรวบรวม ทุกคนมีวัฒนธรรมและวิธีคิดเหมือนกัน ได้รับโทษจำคุกตลอดชีวิตใน ฉันลดได้ถึง 55 ปอนด์ได้อย่างไร ฉันคิดว่าใครๆ ก็ต้องการกำหนดเมนูอาหารส่วนบุคคล", - }, - ]; - const parameters = { - language: "th", - }; - const response = await client.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const breakSentences = response.body; - const expectedLengths = [78, 41, 110, 46]; - for (let i = 0; i < expectedLengths.length; i++) { - chai_1.assert.equal(expectedLengths[i], breakSentences[0].sentLen[i]); - } - }); - it("with language and script", async () => { - const inputText = [{ text: "zhè shì gè cè shì。" }]; - const parameters = { - language: "zh-Hans", - script: "Latn", - }; - const response = await client.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const breakSentences = response.body; - chai_1.assert.equal(breakSentences[0].sentLen[0], 18); - }); - it("with multiple languages", async () => { - const inputText = [ - { text: "hello world" }, - { text: "العالم هو مكان مثير جدا للاهتمام" }, - ]; - const response = await client.path("/breaksentence").post({ - body: inputText, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const breakSentences = response.body; - chai_1.assert.equal(breakSentences[0].detectedLanguage?.language, "en"); - chai_1.assert.equal(breakSentences[1].detectedLanguage?.language, "ar"); - chai_1.assert.equal(breakSentences[0].sentLen[0], 11); - chai_1.assert.equal(breakSentences[1].sentLen[0], 32); - }); -}); -//# sourceMappingURL=breakSentenceTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js.map deleted file mode 100644 index 77cd02603f2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceTest.spec.js","sourceRoot":"","sources":["breakSentenceTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC3B,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;YACxD,IAAI,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAiC,CAAC;QAClE,aAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,QAAQ,KAAK,IAAI,CAAC,CAAC;QACrE,aAAM,CAAC,MAAM,CAAC,cAAc,CA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C;QACjE,aAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;QACjE,aAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,aAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.ts deleted file mode 100644 index 636deab8e38..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/breakSentenceTest.spec.ts +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - BreakSentenceItemOutput, - FindSentenceBoundariesQueryParamProperties, - InputTextItem, - TextTranslationClient, - isUnexpected, -} from "../../src"; -import { createTranslationClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("BreakSentence tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("auto detect", async () => { - const inputText: InputTextItem[] = [{ text: "hello world" }]; - const response = await client.path("/breaksentence").post({ - body: inputText, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const breakSentences = response.body as BreakSentenceItemOutput[]; - assert.isTrue(breakSentences[0].detectedLanguage?.language === "en"); - assert.isTrue(breakSentences[0].detectedLanguage?.score === 0.98); - assert.isTrue(breakSentences[0].sentLen[0] === 11); - }); - - it("with language", async () => { - const inputText: InputTextItem[] = [ - { - text: "รวบรวมแผ่นคำตอบ ระยะเวลาของโครงการ วิธีเลือกชายในฝัน หมายเลขซีเรียลของระเบียน วันที่สิ้นสุดของโครงการเมื่อเสร็จสมบูรณ์ ปีที่มีการรวบรวม ทุกคนมีวัฒนธรรมและวิธีคิดเหมือนกัน ได้รับโทษจำคุกตลอดชีวิตใน ฉันลดได้ถึง 55 ปอนด์ได้อย่างไร ฉันคิดว่าใครๆ ก็ต้องการกำหนดเมนูอาหารส่วนบุคคล", - }, - ]; - const parameters: FindSentenceBoundariesQueryParamProperties & Record = { - language: "th", - }; - const response = await client.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const breakSentences = response.body as BreakSentenceItemOutput[]; - - const expectedLengths = [78, 41, 110, 46]; - for (let i = 0; i < expectedLengths.length; i++) { - assert.equal(expectedLengths[i], breakSentences[0].sentLen[i]); - } - }); - - it("with language and script", async () => { - const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; - const parameters: FindSentenceBoundariesQueryParamProperties & Record = { - language: "zh-Hans", - script: "Latn", - }; - const response = await client.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const breakSentences = response.body as BreakSentenceItemOutput[]; - assert.equal(breakSentences[0].sentLen[0], 18); - }); - - it("with multiple languages", async () => { - const inputText: InputTextItem[] = [ - { text: "hello world" }, - { text: "العالم هو مكان مثير جدا للاهتمام" }, - ]; - const response = await client.path("/breaksentence").post({ - body: inputText, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const breakSentences = response.body as BreakSentenceItemOutput[]; - assert.equal(breakSentences[0].detectedLanguage?.language, "en"); - assert.equal(breakSentences[1].detectedLanguage?.language, "ar"); - assert.equal(breakSentences[0].sentLen[0], 11); - assert.equal(breakSentences[1].sentLen[0], 32); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts deleted file mode 100644 index 1f952832ab8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dictionaryExamplesTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts.map deleted file mode 100644 index b0915adff38..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamplesTest.spec.d.ts","sourceRoot":"","sources":["dictionaryExamplesTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js deleted file mode 100644 index 6f208052af2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("DictionaryExamples tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("single input element", async () => { - const inputText = [{ text: "fly", translation: "volar" }]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const dictionaryExamples = response.body; - chai_1.assert.equal(dictionaryExamples[0].normalizedSource, "fly"); - chai_1.assert.isTrue(dictionaryExamples[0].normalizedTarget === "volar"); - }); - it("multiple input elements", async () => { - const inputText = [ - { text: "fly", translation: "volar" }, - { text: "beef", translation: "came" }, - ]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const dictionaryExamples = response.body; - chai_1.assert.isTrue(dictionaryExamples.length === 2); - }); -}); -//# sourceMappingURL=dictionaryExamplesTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js.map deleted file mode 100644 index 354d385c812..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamplesTest.spec.js","sourceRoot":"","sources":["dictionaryExamplesTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;QACvF,MAAM,UAAU,GAA2E;YACzF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;YAC9D,IAAI,EAAE,SAAS;YACf,eAAe,EAA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,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.ts deleted file mode 100644 index d73c711478c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryExamplesTest.spec.ts +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - DictionaryExampleItemOutput, - DictionaryExampleTextItem, - LookupDictionaryExamplesQueryParamProperties, - TextTranslationClient, - isUnexpected, -} from "../../src"; -import { createTranslationClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("DictionaryExamples tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("single input element", async () => { - const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; - const parameters: LookupDictionaryExamplesQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const dictionaryExamples = response.body as DictionaryExampleItemOutput[]; - assert.equal(dictionaryExamples[0].normalizedSource, "fly"); - assert.isTrue(dictionaryExamples[0].normalizedTarget === "volar"); - }); - - it("multiple input elements", async () => { - const inputText: DictionaryExampleTextItem[] = [ - { text: "fly", translation: "volar" }, - { text: "beef", translation: "came" }, - ]; - const parameters: LookupDictionaryExamplesQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const dictionaryExamples = response.body as DictionaryExampleItemOutput[]; - assert.isTrue(dictionaryExamples.length === 2); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts deleted file mode 100644 index 62409c827b6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dictionaryLookupTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts.map deleted file mode 100644 index ddcbedcc6e7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookupTest.spec.d.ts","sourceRoot":"","sources":["dictionaryLookupTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js deleted file mode 100644 index df90f77de21..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("DictionaryLookup tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("single input element", async () => { - const inputText = [{ text: "fly" }]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const dictionaryEntries = response.body; - chai_1.assert.isTrue(dictionaryEntries[0].normalizedSource === "fly"); - chai_1.assert.isTrue(dictionaryEntries[0].displaySource === "fly"); - }); - it("multiple input elements", async () => { - const inputText = [{ text: "fly" }, { text: "fox" }]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const dictionaryEntries = response.body; - chai_1.assert.isTrue(dictionaryEntries.length === 2); - }); -}); -//# sourceMappingURL=dictionaryLookupTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js.map deleted file mode 100644 index 14964fd87c1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookupTest.spec.js","sourceRoot":"","sources":["dictionaryLookupTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QACrD,MAAM,UAAU,GAA0E;YACxF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;YAC5D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QAEH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ces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.ts deleted file mode 100644 index 9ed204ccce1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/dictionaryLookupTest.spec.ts +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - InputTextItem, - TextTranslationClient, - LookupDictionaryEntriesQueryParamProperties, - DictionaryLookupItemOutput, - isUnexpected, -} from "../../src"; -import { createTranslationClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("DictionaryLookup tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("single input element", async () => { - const inputText: InputTextItem[] = [{ text: "fly" }]; - const parameters: LookupDictionaryEntriesQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, - }); - - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const dictionaryEntries = response.body as DictionaryLookupItemOutput[]; - assert.isTrue(dictionaryEntries[0].normalizedSource === "fly"); - assert.isTrue(dictionaryEntries[0].displaySource === "fly"); - }); - - it("multiple input elements", async () => { - const inputText: InputTextItem[] = [{ text: "fly" }, { text: "fox" }]; - const parameters: LookupDictionaryEntriesQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, - }); - - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const dictionaryEntries = response.body as DictionaryLookupItemOutput[]; - assert.isTrue(dictionaryEntries.length === 2); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts deleted file mode 100644 index bf328985c26..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=getLanguagesTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts.map deleted file mode 100644 index bee8f034354..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesTest.spec.d.ts","sourceRoot":"","sources":["getLanguagesTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js deleted file mode 100644 index 7f59ec0d8c2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("GetLanguages tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createLanguageClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("all scopes", async () => { - const response = await client.path("/languages").get(); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.translation !== null); - chai_1.assert.isTrue(languages.transliteration !== null); - chai_1.assert.isTrue(languages.dictionary !== null); - }); - it("translation scope", async () => { - const parameters = { - queryParameters: { - scope: "translation", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.translation !== null); - chai_1.assert.isTrue(languages?.translation?.["af"]?.dir !== null); - chai_1.assert.isTrue(languages?.translation?.["af"]?.name !== null); - chai_1.assert.isTrue(languages?.translation?.["af"]?.nativeName !== null); - }); - it("transliteration scope", async () => { - const parameters = { - queryParameters: { - scope: "transliteration", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.transliteration !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.name !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].code !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].dir !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].name !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].nativeName !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].code !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].dir !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].name !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].nativeName !== null); - }); - it("transliteration scope multiple scripts", async () => { - const parameters = { - queryParameters: { - scope: "transliteration", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.transliteration !== null); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.name !== null); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts !== null); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts?.length === 2); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[0].toScripts.length === 2); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[1].toScripts.length === 2); - }); - it("dictionary scope", async () => { - const parameters = { - queryParameters: { - scope: "dictionary", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.dictionary !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.name !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].code !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].dir !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].name !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].nativeName !== null); - }); - it("dictionary scope with multiple translations", async () => { - const parameters = { - queryParameters: { - scope: "dictionary", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.dictionary !== null); - chai_1.assert.isTrue(languages?.dictionary?.["en"]?.name !== null); - chai_1.assert.isTrue(languages?.dictionary?.["en"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.dictionary?.["en"]?.translations !== null); - chai_1.assert.isTrue(languages?.dictionary?.["en"]?.translations?.length !== 1); - }); - it("with culture", async () => { - const parameters = { - headers: { - "Accept-Language": "es", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.translation !== null); - chai_1.assert.isTrue(languages.transliteration !== null); - chai_1.assert.isTrue(languages.dictionary !== null); - chai_1.assert.isTrue(languages?.translation?.["en"]?.name !== null); - chai_1.assert.isTrue(languages?.translation?.["en"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.translation?.["en"]?.dir !== null); - }); -}); -//# sourceMappingURL=getLanguagesTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js.map deleted file mode 100644 index fc4a372a714..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesTest.spec.js","sourceRoot":"","sources":["getLanguagesTest.spec.ts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AAE,KAAK,IAAI,EAAE;QAC5B,MAAM,UAAU,GAA2B;YACzC,OAAO,EAAE;gBACP,iBAAiB,EAAE,IAAI;aACxB;SACF,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QACjE,aAAM,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAgC,CAAC;QAC5D,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC;QAC9C,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC;QAClD,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC;QAE7C,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC;QAC7D,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC,CAAC;QACnE,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.ts deleted file mode 100644 index a3bba9c0a10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/getLanguagesTest.spec.ts +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { GetLanguagesParameters, GetLanguagesResultOutput, TextTranslationClient } from "../../src"; -import { createLanguageClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("GetLanguages tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createLanguageClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("all scopes", async () => { - const response = await client.path("/languages").get(); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.translation !== null); - assert.isTrue(languages.transliteration !== null); - assert.isTrue(languages.dictionary !== null); - }); - - it("translation scope", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "translation", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.translation !== null); - assert.isTrue(languages?.translation?.["af"]?.dir !== null); - assert.isTrue(languages?.translation?.["af"]?.name !== null); - assert.isTrue(languages?.translation?.["af"]?.nativeName !== null); - }); - - it("transliteration scope", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "transliteration", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.transliteration !== null); - assert.isTrue(languages?.transliteration?.["be"]?.name !== null); - assert.isTrue(languages?.transliteration?.["be"]?.nativeName !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts !== null); - - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].code !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].dir !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].name !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].nativeName !== null); - - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].code !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].dir !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].name !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].nativeName !== null); - }); - - it("transliteration scope multiple scripts", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "transliteration", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.transliteration !== null); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.name !== null); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.nativeName !== null); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts !== null); - - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts?.length === 2); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[0].toScripts.length === 2); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[1].toScripts.length === 2); - }); - - it("dictionary scope", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "dictionary", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.dictionary !== null); - assert.isTrue(languages?.dictionary?.["de"]?.name !== null); - assert.isTrue(languages?.dictionary?.["de"]?.nativeName !== null); - assert.isTrue(languages?.dictionary?.["de"]?.translations !== null); - - assert.isTrue(languages?.dictionary?.["de"]?.translations[0].code !== null); - assert.isTrue(languages?.dictionary?.["de"]?.translations[0].dir !== null); - assert.isTrue(languages?.dictionary?.["de"]?.translations[0].name !== null); - assert.isTrue(languages?.dictionary?.["de"]?.translations[0].nativeName !== null); - }); - - it("dictionary scope with multiple translations", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "dictionary", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.dictionary !== null); - assert.isTrue(languages?.dictionary?.["en"]?.name !== null); - assert.isTrue(languages?.dictionary?.["en"]?.nativeName !== null); - assert.isTrue(languages?.dictionary?.["en"]?.translations !== null); - assert.isTrue(languages?.dictionary?.["en"]?.translations?.length !== 1); - }); - - it("with culture", async () => { - const parameters: GetLanguagesParameters = { - headers: { - "Accept-Language": "es", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.translation !== null); - assert.isTrue(languages.transliteration !== null); - assert.isTrue(languages.dictionary !== null); - - assert.isTrue(languages?.translation?.["en"]?.name !== null); - assert.isTrue(languages?.translation?.["en"]?.nativeName !== null); - assert.isTrue(languages?.translation?.["en"]?.dir !== null); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts deleted file mode 100644 index b3810ea968f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=translateTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts.map deleted file mode 100644 index c22217a3022..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTest.spec.d.ts","sourceRoot":"","sources":["translateTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js deleted file mode 100644 index 9399ea63910..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js +++ /dev/null @@ -1,330 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("Translate tests", () => { - let recorder; - let client; - let customClient; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - customClient = await (0, recordedClient_1.createCustomTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("translate basic", async () => { - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - from: "en", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length > 0); - chai_1.assert.isTrue(translations[0].translations[0].to === "cs"); - chai_1.assert.isTrue(translations[0].translations[0].text !== null); - }); - it("with auto detect", async () => { - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length > 0); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].to === "cs"); - chai_1.assert.isTrue(translations[0].translations[0].text !== null); - }); - it("no translate tag", async () => { - const inputText = [ - { text: "今天是怎么回事是非常可怕的" }, - ]; - const parameters = { - to: "zh-chs", - from: "en", - textType: "html", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].translations[0].text.includes("今天是怎么回事是")); - }); - it("dictionary tag", async () => { - const inputText = [ - { - text: 'The word < mstrans:dictionary translation ="wordomatic">wordomatic is a dictionary entry.', - }, - ]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].translations[0].to === "es"); - chai_1.assert.isTrue(translations[0].translations[0].text.includes("wordomatic")); - }); - it("transliteration", async () => { - const inputText = [{ text: "hudha akhtabar." }]; - const parameters = { - to: "zh-Hans", - from: "ar", - fromScript: "Latn", - toScript: "Latn", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].translations[0].to === "zh-Hans"); - chai_1.assert.isTrue(translations[0].translations[0].text !== null); - }); - it("from latin to latin script", async () => { - const inputText = [{ text: "ap kaise ho" }]; - const parameters = { - to: "ta", - from: "hi", - fromScript: "Latn", - toScript: "Latn", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].translations[0].transliteration != null); - chai_1.assert.isTrue(translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?")); - }); - it("multiple input text", async () => { - const inputText = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const parameters = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 3); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[1].detectedLanguage?.language === "es"); - chai_1.assert.isTrue(translations[2].detectedLanguage?.language === "de"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[1].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[2].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].text != null); - chai_1.assert.isTrue(translations[1].translations[0].text != null); - chai_1.assert.isTrue(translations[2].translations[0].text != null); - }); - it("multiple target languages", async () => { - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs,es,de", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length === 3); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].text != null); - chai_1.assert.isTrue(translations[0].translations[1].text != null); - chai_1.assert.isTrue(translations[0].translations[2].text != null); - }); - it("different text types", async () => { - const inputText = [ - { text: "This is a test." }, - ]; - const parameters = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - }); - it("with profanity", async () => { - const inputText = [{ text: "shit this is fucking crazy" }]; - const parameters = { - to: "zh-cn", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].text.includes("***")); - }); - it("with alignment", async () => { - const inputText = [{ text: "It is a beautiful morning" }]; - const parameters = { - to: "cs", - includeAlignment: true, - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].alignment?.proj != null); - }); - it("with include sentence length", async () => { - const inputText = [ - { - text: "La réponse se trouve dans la traduction automatique. La meilleure technologie de traduction automatique ne peut pas toujours fournir des traductions adaptées à un site ou des utilisateurs comme un être humain. Il suffit de copier et coller un extrait de code n'importe où.", - }, - ]; - const parameters = { - to: "fr", - includeSentenceLength: true, - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "fr"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].sentLen?.srcSentLen.length === 3); - chai_1.assert.isTrue(translations[0].translations[0].sentLen?.transSentLen.length === 3); - }); - it("with custom endpoint", async () => { - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - includeSentenceLength: true, - }; - const response = await customClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].text != null); - }); - it("with token", async () => { - const tokenClient = await (0, recordedClient_1.createTokenTranslationClient)({ recorder }); - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - }; - const response = await tokenClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - }); - it("with AAD authentication", async () => { - const tokenClient = await (0, recordedClient_1.createAADAuthenticationTranslationClient)({ recorder }); - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - }; - const response = await tokenClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - }); -}); -//# sourceMappingURL=translateTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js.map deleted file mode 100644 index 65099b8d476..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTest.spec.js","sourceRoot":"","sources":["translateTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAMgC;AAGhC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAClC,IAAI,YAAmC,CAAC;IAExC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACrD,YAAY,GAAG,MAAM,IAAA,8CAA6B,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iBAAiB,EA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AAE;QAC1B,MAAM,WAAW,GAAG,MAAM,IAAA,6CAA4B,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACrE,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA4D;YAC1E,EAAE,EAAE,IAAI;SACT,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;YACzD,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,WAAW,GAAG,MAAM,IAAA,yDAAwC,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACjF,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA4D;YAC1E,EAAE,EAAE,IAAI;SACT,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;YACzD,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.ts deleted file mode 100644 index be442423a60..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/translateTest.spec.ts +++ /dev/null @@ -1,390 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - InputTextItem, - TextTranslationClient, - TranslatedTextItemOutput, - TranslateQueryParamProperties, - isUnexpected, -} from "../../src"; -import { - createCustomTranslationClient, - createTranslationClient, - createTokenTranslationClient, - createAADAuthenticationTranslationClient, - startRecorder, -} from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("Translate tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - let customClient: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - customClient = await createCustomTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("translate basic", async () => { - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - from: "en", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length > 0); - assert.isTrue(translations[0].translations[0].to === "cs"); - assert.isTrue(translations[0].translations[0].text !== null); - }); - - it("with auto detect", async () => { - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length > 0); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].to === "cs"); - assert.isTrue(translations[0].translations[0].text !== null); - }); - - it("no translate tag", async () => { - const inputText: InputTextItem[] = [ - { text: "今天是怎么回事是非常可怕的" }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "zh-chs", - from: "en", - textType: "html", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].translations[0].text.includes("今天是怎么回事是")); - }); - - it("dictionary tag", async () => { - const inputText: InputTextItem[] = [ - { - text: 'The word < mstrans:dictionary translation ="wordomatic">wordomatic is a dictionary entry.', - }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].translations[0].to === "es"); - assert.isTrue(translations[0].translations[0].text.includes("wordomatic")); - }); - - it("transliteration", async () => { - const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "zh-Hans", - from: "ar", - fromScript: "Latn", - toScript: "Latn", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].translations[0].to === "zh-Hans"); - assert.isTrue(translations[0].translations[0].text !== null); - }); - - it("from latin to latin script", async () => { - const inputText: InputTextItem[] = [{ text: "ap kaise ho" }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "ta", - from: "hi", - fromScript: "Latn", - toScript: "Latn", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].translations[0].transliteration != null); - assert.isTrue( - translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?"), - ); - }); - - it("multiple input text", async () => { - const inputText: InputTextItem[] = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 3); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[1].detectedLanguage?.language === "es"); - assert.isTrue(translations[2].detectedLanguage?.language === "de"); - - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[1].detectedLanguage?.score === 1); - assert.isTrue(translations[2].detectedLanguage?.score === 1); - - assert.isTrue(translations[0].translations[0].text != null); - assert.isTrue(translations[1].translations[0].text != null); - assert.isTrue(translations[2].translations[0].text != null); - }); - - it("multiple target languages", async () => { - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs,es,de", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length === 3); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - - assert.isTrue(translations[0].translations[0].text != null); - assert.isTrue(translations[0].translations[1].text != null); - assert.isTrue(translations[0].translations[2].text != null); - }); - - it("different text types", async () => { - const inputText: InputTextItem[] = [ - { text: "This is a test." }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - }); - - it("with profanity", async () => { - const inputText: InputTextItem[] = [{ text: "shit this is fucking crazy" }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "zh-cn", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].text.includes("***")); - }); - - it("with alignment", async () => { - const inputText: InputTextItem[] = [{ text: "It is a beautiful morning" }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - includeAlignment: true, - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].alignment?.proj != null); - }); - - it("with include sentence length", async () => { - const inputText: InputTextItem[] = [ - { - text: "La réponse se trouve dans la traduction automatique. La meilleure technologie de traduction automatique ne peut pas toujours fournir des traductions adaptées à un site ou des utilisateurs comme un être humain. Il suffit de copier et coller un extrait de code n'importe où.", - }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "fr", - includeSentenceLength: true, - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "fr"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].sentLen?.srcSentLen.length === 3); - assert.isTrue(translations[0].translations[0].sentLen?.transSentLen.length === 3); - }); - - it("with custom endpoint", async () => { - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - includeSentenceLength: true, - }; - const response = await customClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].text != null); - }); - - it("with token", async () => { - const tokenClient = await createTokenTranslationClient({ recorder }); - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await tokenClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - }); - - it("with AAD authentication", async () => { - const tokenClient = await createAADAuthenticationTranslationClient({ recorder }); - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await tokenClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts deleted file mode 100644 index ee180532955..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=transliterateTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts.map deleted file mode 100644 index 73e1df38583..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterateTest.spec.d.ts","sourceRoot":"","sources":["transliterateTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js deleted file mode 100644 index baca0fd5b4f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -const testHelper_1 = require("./utils/testHelper"); -describe("Transliterate tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("transliterate basic", async () => { - const inputText = [{ text: "这里怎么一回事?" }]; - const parameters = { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].script !== null); - chai_1.assert.isTrue(translations[0].text !== null); - }); - it("multiple text array", async () => { - const inputText = [ - { text: "यहएककसौटीहैयहएककसौटीहै" }, - { text: "यहएककसौटीहै" }, - ]; - const parameters = { - language: "hi", - fromScript: "Deva", - toScript: "Latn", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].script !== null); - chai_1.assert.isTrue(translations[0].text !== null); - }); - it("with edit distance", async () => { - const inputText = [ - { text: "gujarat" }, - { text: "hadman" }, - { text: "hukkabar" }, - ]; - const parameters = { - language: "gu", - fromScript: "Latn", - toScript: "gujr", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].text !== null); - chai_1.assert.isTrue(translations[1].text !== null); - chai_1.assert.isTrue(translations[2].text !== null); - const expectedText = ["ગુજરાત", "હદમાં", "હુક્કાબાર"]; - let editDistanceValue = 0; - for (let i = 0; i < expectedText.length; i++) { - editDistanceValue = editDistanceValue + (0, testHelper_1.editDistance)(expectedText[i], translations[i].text); - } - chai_1.assert.isTrue(editDistanceValue < 6); - }); -}); -//# sourceMappingURL=transliterateTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js.map deleted file mode 100644 index 046180ba679..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterateTest.spec.js","sourceRoot":"","sources":["transliterateTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAEhF,mDAAkD;AAElD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;QACnC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC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AM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;QAE7C,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QAEtD,IAAI,iBAAiB,GAAG,CAAC,CAAC;QAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,iBAAiB,GAAG,iBAAiB,GAAG,IAAA,yBAAY,EAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC9F,CAAC;QACD,aAAM,CAAC,MAAM,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.ts deleted file mode 100644 index 64f63300e14..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/transliterateTest.spec.ts +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - InputTextItem, - TextTranslationClient, - TransliteratedTextOutput, - TransliterateQueryParamProperties, - isUnexpected, -} from "../../src"; -import { createTranslationClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; -import { editDistance } from "./utils/testHelper"; - -describe("Transliterate tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("transliterate basic", async () => { - const inputText: InputTextItem[] = [{ text: "这里怎么一回事?" }]; - const parameters: TransliterateQueryParamProperties & Record = { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TransliteratedTextOutput[]; - assert.isTrue(translations[0].script !== null); - assert.isTrue(translations[0].text !== null); - }); - - it("multiple text array", async () => { - const inputText: InputTextItem[] = [ - { text: "यहएककसौटीहैयहएककसौटीहै" }, - { text: "यहएककसौटीहै" }, - ]; - const parameters: TransliterateQueryParamProperties & Record = { - language: "hi", - fromScript: "Deva", - toScript: "Latn", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TransliteratedTextOutput[]; - assert.isTrue(translations[0].script !== null); - assert.isTrue(translations[0].text !== null); - }); - - it("with edit distance", async () => { - const inputText: InputTextItem[] = [ - { text: "gujarat" }, - { text: "hadman" }, - { text: "hukkabar" }, - ]; - const parameters: TransliterateQueryParamProperties & Record = { - language: "gu", - fromScript: "Latn", - toScript: "gujr", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TransliteratedTextOutput[]; - assert.isTrue(translations[0].text !== null); - assert.isTrue(translations[1].text !== null); - assert.isTrue(translations[2].text !== null); - - const expectedText = ["ગુજરાત", "હદમાં", "હુક્કાબાર"]; - - let editDistanceValue = 0; - for (let i = 0; i < expectedText.length; i++) { - editDistanceValue = editDistanceValue + editDistance(expectedText[i], translations[i].text); - } - assert.isTrue(editDistanceValue < 6); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts deleted file mode 100644 index dc5152fefc4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { TokenCredential, AccessToken } from "@azure/core-auth"; -export declare class StaticAccessTokenCredential implements TokenCredential { - private accessToken; - constructor(accessToken: string); - getToken(): Promise; -} -//# sourceMappingURL=StaticAccessTokenCredential.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts.map deleted file mode 100644 index 00e9112c0e3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StaticAccessTokenCredential.d.ts","sourceRoot":"","sources":["StaticAccessTokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEhE,qBAAa,2BAA4B,YAAW,eAAe;IAIrD,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,MAAM;IACjC,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC;CAMvC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js deleted file mode 100644 index e57da4bd7e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StaticAccessTokenCredential = void 0; -class StaticAccessTokenCredential { - accessToken; - // AccessToken is an object with two properties: - // - A "token" property with a string value. - // - And an "expiresOnTimestamp" property with a numeric unix timestamp as its value. - constructor(accessToken) { - this.accessToken = accessToken; - } - async getToken() { - return { - expiresOnTimestamp: Date.now() + 10000, - token: this.accessToken, - }; - } -} -exports.StaticAccessTokenCredential = StaticAccessTokenCredential; -//# sourceMappingURL=StaticAccessTokenCredential.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js.map deleted file mode 100644 index 60bcea974d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StaticAccessTokenCredential.js","sourceRoot":"","sources":["StaticAccessTokenCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC,MAAa,2BAA2B;IAIlB;IAHpB,gDAAgD;IAChD,4CAA4C;IAC5C,qFAAqF;IACrF,YAAoB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAAG,CAAC;IAC3C,KAAK,CAAC,QAAQ;QACZ,OAAO;YACL,kBAAkB,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;YACtC,KAAK,EAAE,IAAI,CAAC,WAAW;SACxB,CAAC;IACJ,CAAC;CACF;AAXD,kEAWC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.ts deleted file mode 100644 index 2e89e1cbae2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/StaticAccessTokenCredential.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { TokenCredential, AccessToken } from "@azure/core-auth"; - -export class StaticAccessTokenCredential implements TokenCredential { - // AccessToken is an object with two properties: - // - A "token" property with a string value. - // - And an "expiresOnTimestamp" property with a numeric unix timestamp as its value. - constructor(private accessToken: string) {} - async getToken(): Promise { - return { - expiresOnTimestamp: Date.now() + 10000, - token: this.accessToken, - }; - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts deleted file mode 100644 index 7289698f3e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Context } from "mocha"; -import { Recorder } from "@azure-tools/test-recorder"; -import { TextTranslationClient } from "../../../src"; -import { ClientOptions } from "@azure-rest/core-client"; -export declare function startRecorder(context: Context): Promise; -export declare function createTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createCustomTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createLanguageClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createTokenTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createAADAuthenticationTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createMockToken(): { - getToken: (_scopes: string) => Promise<{ - token: string; - expiresOnTimestamp: number; - }>; -}; -//# sourceMappingURL=recordedClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts.map deleted file mode 100644 index bf872632470..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recordedClient.d.ts","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACL,QAAQ,EAIT,MAAM,4BAA4B,CAAC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aking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js deleted file mode 100644 index 7791bec6816..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js +++ /dev/null @@ -1,125 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.startRecorder = startRecorder; -exports.createTranslationClient = createTranslationClient; -exports.createCustomTranslationClient = createCustomTranslationClient; -exports.createLanguageClient = createLanguageClient; -exports.createTokenTranslationClient = createTokenTranslationClient; -exports.createAADAuthenticationTranslationClient = createAADAuthenticationTranslationClient; -exports.createMockToken = createMockToken; -const tslib_1 = require("tslib"); -const test_recorder_1 = require("@azure-tools/test-recorder"); -const StaticAccessTokenCredential_1 = require("./StaticAccessTokenCredential"); -const src_1 = tslib_1.__importDefault(require("../../../src")); -const core_rest_pipeline_1 = require("@azure/core-rest-pipeline"); -const identity_1 = require("@azure/identity"); -const envSetupForPlayback = { - TEXT_TRANSLATION_API_KEY: "fakeapikey", - TEXT_TRANSLATION_ENDPOINT: "https://fakeEndpoint.cognitive.microsofttranslator.com", - TEXT_TRANSLATION_CUSTOM_ENDPOINT: "https://fakeCustomEndpoint.cognitiveservices.azure.com", - TEXT_TRANSLATION_REGION: "fakeregion", - TEXT_TRANSLATION_AAD_REGION: "fakeregion", - TEXT_TRANSLATION_RESOURCE_ID: "fakeresourceid", -}; -const recorderEnvSetup = { - envSetupForPlayback, -}; -async function startRecorder(context) { - const recorder = new test_recorder_1.Recorder(context.currentTest); - await recorder.start(recorderEnvSetup); - return recorder; -} -async function createTranslationClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); - const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); - const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); - const translatorCredential = { - key: apikey, - region, - }; - const client = (0, src_1.default)(endpoint, translatorCredential, updatedOptions); - return client; -} -async function createCustomTranslationClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const customEndpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CUSTOM_ENDPOINT"); - const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); - const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); - const translatorCredential = { - key: apikey, - region, - }; - const client = (0, src_1.default)(customEndpoint, translatorCredential, updatedOptions); - return client; -} -async function createLanguageClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); - return (0, src_1.default)(endpoint, undefined, updatedOptions); -} -async function createTokenTranslationClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); - const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); - const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); - const issueTokenURL = "https://" + - region + - ".api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=" + - apikey; - let credential; - if ((0, test_recorder_1.isPlaybackMode)()) { - credential = createMockToken(); - } - else { - const tokenClient = (0, core_rest_pipeline_1.createDefaultHttpClient)(); - const request = (0, core_rest_pipeline_1.createPipelineRequest)({ - url: issueTokenURL, - method: "POST", - }); - request.allowInsecureConnection = true; - const response = await tokenClient.sendRequest(request); - const token = response.bodyAsText; - credential = new StaticAccessTokenCredential_1.StaticAccessTokenCredential(token); - } - const client = (0, src_1.default)(endpoint, credential, updatedOptions); - return client; -} -async function createAADAuthenticationTranslationClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); - const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_AAD_REGION"); - const azureResourceId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_RESOURCE_ID"); - let tokenCredential; - if ((0, test_recorder_1.isPlaybackMode)()) { - tokenCredential = createMockToken(); - } - else { - const clientId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CLIENT_ID"); - const tenantId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_TENANT_ID"); - const secret = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CLIENT_SECRET"); - tokenCredential = new identity_1.ClientSecretCredential(tenantId, clientId, secret); - } - const translatorTokenCredentials = { - tokenCredential, - azureResourceId, - region, - }; - const client = (0, src_1.default)(endpoint, translatorTokenCredentials, updatedOptions); - return client; -} -function createMockToken() { - return { - getToken: async (_scopes) => { - return { token: "testToken", expiresOnTimestamp: 11111 }; - }, - }; -} -//# sourceMappingURL=recordedClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js.map deleted file mode 100644 index 098f455da30..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recordedClient.js","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,sCAIC;AAED,0DAgBC;AAED,sEAgBC;AAED,oDAQC;AAED,oEA+BC;AAED,4FA4BC;AAED,0CAQC;;AAzJD,8DAKoC;AACpC,+EAA4E;AAC5E,+DAIsB;AAEtB,kEAA2F;AAE3F,8CAAyD;AAEzD,MAAM,mBAAmB,GAA2B;IAClD,wBAAwB,EAAE,YAAY;IACtC,yBAAyB,EAAE,wDAAwD;IACnF,gCAAgC,EAAE,wDAAwD;IAC1F,uBAAuB,EAAE,YAAY;IACrC,2BAA2B,EAAE,YAAY;IACzC,4BAA4B,EAAE,gBAAgB;CAC/C,CAAC;AAEF,MAAM,gBAAgB,GAAyB;IAC7C,mBAAmB;CACpB,CAAC;AAEK,KAAK,UAAU,aAAa,CAAC,OAAgB;IAClD,MAAM,QAAQ,GAAG,IAAI,wBAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACnD,MAAM,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACvC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAEM,KAAK,UAAU,uBAAuB,CAAC,OAG7C;IACC,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IACjD,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;IACjG,MAAM,QAAQ,GAAG,IAAA,yCAAyB,EAAC,2BAA2B,CAAC,CAAC;IACxE,MAAM,MAAM,GAAG,IA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No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.ts deleted file mode 100644 index 6088570dc00..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/recordedClient.ts +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Context } from "mocha"; -import { - Recorder, - RecorderStartOptions, - isPlaybackMode, - assertEnvironmentVariable, -} from "@azure-tools/test-recorder"; -import { StaticAccessTokenCredential } from "./StaticAccessTokenCredential"; -import createTextTranslationClient, { - TranslatorCredential, - TranslatorTokenCredential, - TextTranslationClient, -} from "../../../src"; -import { ClientOptions } from "@azure-rest/core-client"; -import { createDefaultHttpClient, createPipelineRequest } from "@azure/core-rest-pipeline"; -import { TokenCredential } from "@azure/core-auth"; -import { ClientSecretCredential } from "@azure/identity"; - -const envSetupForPlayback: Record = { - TEXT_TRANSLATION_API_KEY: "fakeapikey", - TEXT_TRANSLATION_ENDPOINT: "https://fakeEndpoint.cognitive.microsofttranslator.com", - TEXT_TRANSLATION_CUSTOM_ENDPOINT: "https://fakeCustomEndpoint.cognitiveservices.azure.com", - TEXT_TRANSLATION_REGION: "fakeregion", - TEXT_TRANSLATION_AAD_REGION: "fakeregion", - TEXT_TRANSLATION_RESOURCE_ID: "fakeresourceid", -}; - -const recorderEnvSetup: RecorderStartOptions = { - envSetupForPlayback, -}; - -export async function startRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); - await recorder.start(recorderEnvSetup); - return recorder; -} - -export async function createTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); - const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); - const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); - - const translatorCredential: TranslatorCredential = { - key: apikey, - region, - }; - const client = createTextTranslationClient(endpoint, translatorCredential, updatedOptions); - return client; -} - -export async function createCustomTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const customEndpoint = assertEnvironmentVariable("TEXT_TRANSLATION_CUSTOM_ENDPOINT"); - const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); - const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); - - const translatorCredential: TranslatorCredential = { - key: apikey, - region, - }; - const client = createTextTranslationClient(customEndpoint, translatorCredential, updatedOptions); - return client; -} - -export async function createLanguageClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); - return createTextTranslationClient(endpoint, undefined, updatedOptions); -} - -export async function createTokenTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); - const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); - const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); - - const issueTokenURL: string = - "https://" + - region + - ".api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=" + - apikey; - let credential: TokenCredential; - if (isPlaybackMode()) { - credential = createMockToken(); - } else { - const tokenClient = createDefaultHttpClient(); - const request = createPipelineRequest({ - url: issueTokenURL, - method: "POST", - }); - request.allowInsecureConnection = true; - const response = await tokenClient.sendRequest(request); - const token: string = response.bodyAsText!; - credential = new StaticAccessTokenCredential(token); - } - const client = createTextTranslationClient(endpoint, credential, updatedOptions); - return client; -} - -export async function createAADAuthenticationTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); - const region = assertEnvironmentVariable("TEXT_TRANSLATION_AAD_REGION"); - const azureResourceId = assertEnvironmentVariable("TEXT_TRANSLATION_RESOURCE_ID"); - - let tokenCredential: TokenCredential; - if (isPlaybackMode()) { - tokenCredential = createMockToken(); - } else { - const clientId = assertEnvironmentVariable("TEXT_TRANSLATION_CLIENT_ID"); - const tenantId = assertEnvironmentVariable("TEXT_TRANSLATION_TENANT_ID"); - const secret = assertEnvironmentVariable("TEXT_TRANSLATION_CLIENT_SECRET"); - - tokenCredential = new ClientSecretCredential(tenantId, clientId, secret); - } - - const translatorTokenCredentials: TranslatorTokenCredential = { - tokenCredential, - azureResourceId, - region, - }; - const client = createTextTranslationClient(endpoint, translatorTokenCredentials, updatedOptions); - return client; -} - -export function createMockToken(): { - getToken: (_scopes: string) => Promise<{ token: string; expiresOnTimestamp: number }>; -} { - return { - getToken: async (_scopes: string) => { - return { token: "testToken", expiresOnTimestamp: 11111 }; - }, - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts deleted file mode 100644 index 025dea925a3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function editDistance(s1: string, s2: string): number; -export declare function distance(s1: string, s2: string, n1: number, n2: number): number; -//# sourceMappingURL=testHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts.map deleted file mode 100644 index 54e5d2aee05..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"testHelper.d.ts","sourceRoot":"","sources":["testHelper.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAI3D;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAmB/E"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js deleted file mode 100644 index 6b9bf11d97d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.editDistance = editDistance; -exports.distance = distance; -function editDistance(s1, s2) { - const n1 = s1.length; - const n2 = s2.length; - return distance(s1, s2, n1, n2); -} -function distance(s1, s2, n1, n2) { - if (n1 === 0) { - return n2; - } - if (n2 === 0) { - return n1; - } - if (s1[n1 - 1] === s2[n2 - 1]) { - const d = distance(s1, s2, n1 - 1, n2 - 1); - return d; - } - const nums = [ - distance(s1, s2, n1, n2 - 1), - distance(s1, s2, n1 - 1, n2), - distance(s1, s2, n1 - 1, n2 - 1), - ]; - return 1 + Math.min(...nums); -} -//# sourceMappingURL=testHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js.map deleted file mode 100644 index df7a321ca7b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"testHelper.js","sourceRoot":"","sources":["testHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,oCAIC;AAED,4BAmBC;AAzBD,SAAgB,YAAY,CAAC,EAAU,EAAE,EAAU;IACjD,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,OAAO,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,QAAQ,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IACrE,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;QAC9B,MAAM,CAAC,GAAW,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;QACnD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,IAAI,GAAa;QACrB,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;QAC5B,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;QAC5B,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;KACjC,CAAC;IACF,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.ts deleted file mode 100644 index 0064e36f061..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/test/public/utils/testHelper.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -export function editDistance(s1: string, s2: string): number { - const n1 = s1.length; - const n2 = s2.length; - return distance(s1, s2, n1, n2); -} - -export function distance(s1: string, s2: string, n1: number, n2: number): number { - if (n1 === 0) { - return n2; - } - - if (n2 === 0) { - return n1; - } - - if (s1[n1 - 1] === s2[n2 - 1]) { - const d: number = distance(s1, s2, n1 - 1, n2 - 1); - return d; - } - const nums: number[] = [ - distance(s1, s2, n1, n2 - 1), - distance(s1, s2, n1 - 1, n2), - distance(s1, s2, n1 - 1, n2 - 1), - ]; - return 1 + Math.min(...nums); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tests.yml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tests.yml deleted file mode 100644 index 2e20837b159..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tests.yml +++ /dev/null @@ -1,15 +0,0 @@ -parameters: -- name: Location - displayName: Location - type: string - default: eastus - -trigger: none - -extends: - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml - parameters: - PackageName: "@azure-rest/ai-translation-text" - ServiceDirectory: translation - Location: "${{ parameters.Location }}" - SupportedClouds: 'Public' diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsp-location.yaml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsp-location.yaml deleted file mode 100644 index 0bf4ee5359e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsp-location.yaml +++ /dev/null @@ -1,3 +0,0 @@ -directory: specification/translation/Azure.AI.TextTranslation -commit: 01a71545e82bb98b8137d3038150c436d46a59ed -repo: Azure/azure-rest-api-specs diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/README.md deleted file mode 100644 index 335e193f1db..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/README.md +++ /dev/null @@ -1,313 +0,0 @@ -# Azure TextTranslation REST client library for JavaScript - -Text translation is a cloud-based REST API feature of the Translator service that uses neural -machine translation technology to enable quick and accurate source-to-target text translation -in real time across all supported languages. - -The following methods are supported by the Text Translation feature: - -Languages. Returns a list of languages supported by Translate, Transliterate, and Dictionary Lookup operations. - -Translate. Renders single source-language text to multiple target-language texts with a single request. - -Transliterate. Converts characters or letters of a source language to the corresponding characters or letters of a target language. - -Detect. Returns the source code language code and a boolean variable denoting whether the detected language is supported for text translation and transliteration. - -Dictionary lookup. Returns equivalent words for the source term in the target language. - -Dictionary example Returns grammatical structure and context examples for the source term and target term pair. - -**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library** - -Key links: - -- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/ai-translation-text) -- [API reference documentation](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference) -- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/samples) - -## Getting started - -### Currently supported environments - -- LTS versions of Node.js -- Latest versions of Edge, Chrome, Safar and Firefox - -### Prerequisites - -- An existing Translator service or Cognitive Services resource. - -### Install the `@azure-rest/ai-translation-text` package - -Install the Azure Text Translation REST client library for JavaScript with `npm`: - -```bash -npm install @azure-rest/ai-translation-text -``` - -#### Create a Translator service resource - -You can create Translator resource following [Create a Translator resource][translator_resource_create]. - -### Browser support - -#### JavaScript Bundle - -To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). - -### Authenticate the client - -Interaction with the service using the client library begins with creating an instance of the [TextTranslationClient][translator_client_class] class. You will need an **API key** or `TokenCredential` to instantiate a client object. For more information regarding authenticating with cognitive services, see [Authenticate requests to Translator Service][translator_auth]. - -#### Get an API key - -You can get the `endpoint`, `API key` and `Region` from the Cognitive Services resource or Translator service resource information in the [Azure Portal][azure_portal]. - -Alternatively, use the [Azure CLI][azure_cli] snippet below to get the API key from the Translator service resource. - -```PowerShell -az cognitiveservices account keys list --resource-group --name -``` - -### Create a `TextTranslationClient` using an API key and Region credential - -Once you have the value for the API key and Region, create an `TranslatorCredential`. - -With the value of the `TranslatorCredential` you can create the [TextTranslationClient][translator_client_class]: - -```javascript -const translateCedential = new TranslatorCredential(apiKey, region); -const translationClient = TextTranslationClient(endpoint, translateCedential); -``` - -## Examples - -The following section provides several code snippets using the `client` [created above](#create-a-texttranslationclient-using-an-api-key-and-region-credential), and covers the main features present in this client library. - -### Get Supported Languages - -Gets the set of languages currently supported by other operations of the Translator. - -```javascript -const langResponse = await translationClient.path("/languages").get(); - -if (isUnexpected(langResponse)) { - throw langResponse.body; -} - -const languages = langResponse.body; - -if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } -} - -if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } -} - -if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } -} -``` - -Please refer to the service documentation for a conceptual discussion of [languages][languages_doc]. - -### Translate - -Renders single source-language text to multiple target-language texts with a single request. - -```javascript -const inputText = [{ text: "This is a test." }]; -const parameters = { - to: "cs", - from: "en", -}; -const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(translateResponse)) { - throw translateResponse.body; -} - -const translations = translateResponse.body; -for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); -} -``` - -Please refer to the service documentation for a conceptual discussion of [translate][translate_doc]. - -### Transliterate - -Converts characters or letters of a source language to the corresponding characters or letters of a target language. - -```javascript -const inputText = [{ text: "这是个测试。" }]; -const parameters = { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", -}; -const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(transliterateResponse)) { - throw transliterateResponse.body; -} - -const translations = transliterateResponse.body; -for (const transliteration of translations) { - console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` - ); -} -``` - -Please refer to the service documentation for a conceptual discussion of [transliterate][transliterate_doc]. - -### Break Sentence - -Identifies the positioning of sentence boundaries in a piece of text. - -```javascript -const inputText = [{ text: "zhè shì gè cè shì。" }]; -const parameters = { - language: "zh-Hans", - script: "Latn", -}; -const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body; -} - -const breakSentences = breakSentenceResponse.body; -for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); -} -``` - -Please refer to the service documentation for a conceptual discussion of [break sentence][breaksentence_doc]. - -### Dictionary Lookup - -Returns equivalent words for the source term in the target language. - -```javascript -const inputText = [{ text: "fly" }]; -const parameters = { - to: "es", - from: "en", -}; -const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body; -} - -const dictionaryEntries = dictionaryResponse.body; -for (const dictionaryEntry of dictionaryEntries) { - console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` - ); - console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` - ); -} -``` - -Please refer to the service documentation for a conceptual discussion of [dictionary lookup][dictionarylookup_doc]. - -### Dictionary Examples - -Returns grammatical structure and context examples for the source term and target term pair. - -```javascript -const inputText = [{ text: "fly", translation: "volar" }]; -const parameters = { - to: "es", - from: "en", -}; -const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, -}); - -if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body; -} - -const dictionaryExamples = dictionaryResponse.body; -for (const dictionaryExample of dictionaryExamples) { - console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` - ); - const firstExample = dictionaryExample?.examples[0]; - console.log( - `Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.` - ); -} -``` - -Please refer to the service documentation for a conceptual discussion of [dictionary examples][dictionaryexamples_doc]. - -## Troubleshooting - -When you interact with the Translator Service using the TextTranslator client library, errors returned by the Translator service correspond to the same HTTP status codes returned for REST API requests. - -For example, if you submit a translation request without a target translate language, a `400` error is returned, indicating "Bad Request". - -You can find the different error codes returned by the service in the [Service Documentation][service_errors]. - -### Logging - -Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: - -```javascript -const { setLogLevel } = require("@azure/logger"); - -setLogLevel("info"); -``` - -For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). - -[azure_cli]: https://docs.microsoft.com/cli/azure -[azure_portal]: https://portal.azure.com -[translator_resource_create]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource -[translator_auth]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference#authentication -[service_errors]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-reference#errors -[translator_client_class]: https://learn.microsoft.com/javascript/api/@azure-rest/ai-translation-text/texttranslationclient -[languages_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages -[translate_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate -[transliterate_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-transliterate -[breaksentence_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-break-sentence -[dictionarylookup_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-lookup -[dictionaryexamples_doc]: https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-examples diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/api-extractor.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/api-extractor.json deleted file mode 100644 index ebfd2ff4505..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/api-extractor.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { - "enabled": true - }, - "apiReport": { - "enabled": true, - "reportFolder": "./review" - }, - "dtsRollup": { - "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/ai-translation-text.d.ts" - }, - "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, - "extractorMessageReporting": { - "ae-missing-release-tag": { - "logLevel": "none" - }, - "ae-unresolved-link": { - "logLevel": "none" - } - } - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/assets.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/assets.json deleted file mode 100644 index 530334f4570..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/translation/ai-translation-text-rest", - "Tag": "js/translation/ai-translation-text-rest_6dacbcc4a1" -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts deleted file mode 100644 index 5d9c54ae211..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=estree.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts.map deleted file mode 100644 index 283bac495d7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"estree.d.ts","sourceRoot":"","sources":["estree.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js deleted file mode 100644 index 1506c636613..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=estree.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js.map deleted file mode 100644 index bc5c943ba55..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"estree.js","sourceRoot":"","sources":["estree.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/estree.ts deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/karma.conf.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/karma.conf.js deleted file mode 100644 index 756722cbcd1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/karma.conf.js +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "TEXT_TRANSLATION_TENANT_ID", - "TEXT_TRANSLATION_CLIENT_ID", - "TEXT_TRANSLATION_CLIENT_SECRET", - "TEXT_TRANSLATION_ENDPOINT", - "TEXT_TRANSLATION_CUSTOM_ENDPOINT", - "TEXT_TRANSLATION_API_KEY", - "TEXT_TRANSLATION_REGION", - "RECORDINGS_RELATIVE_PATH", - "TEXT_TRANSLATION_AAD_REGION", - "TEXT_TRANSLATION_RESOURCE_ID", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts deleted file mode 100644 index f4f636bf276..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts +++ /dev/null @@ -1,382 +0,0 @@ -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { KeyCredential } from '@azure/core-auth'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; -export interface BackTranslationOutput { - displayText: string; - frequencyCount: number; - normalizedText: string; - numExamples: number; -} -export interface BreakSentenceItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sentLen: number[]; -} -export declare function buildMultiCollection(items: string[], parameterName: string): string; -export interface CommonScriptModelOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} -declare function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; -export default createClient; -export interface DetectedLanguageOutput { - language: string; - score: number; -} -export interface DictionaryExampleItemOutput { - examples: Array; - normalizedSource: string; - normalizedTarget: string; -} -export interface DictionaryExampleOutput { - sourcePrefix: string; - sourceSuffix: string; - sourceTerm: string; - targetPrefix: string; - targetSuffix: string; - targetTerm: string; -} -export interface DictionaryExampleTextItem extends InputTextItem { - translation: string; -} -export interface DictionaryLookupItemOutput { - displaySource: string; - normalizedSource: string; - translations: Array; -} -export interface DictionaryTranslationOutput { - backTranslations: Array; - confidence: number; - displayTarget: string; - normalizedTarget: string; - posTag: string; - prefixWord: string; -} -export interface ErrorDetailsOutput { - code: number; - message: string; -} -export interface ErrorResponseOutput { - error: ErrorDetailsOutput; -} -export interface FindSentenceBoundaries { - post(options: FindSentenceBoundariesParameters): StreamableMethod; -} -export interface FindSentenceBoundaries200Headers { - 'x-requestid': string; -} -export interface FindSentenceBoundaries200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; - status: '200'; -} -export interface FindSentenceBoundariesBodyParam { - body: Array; -} -export interface FindSentenceBoundariesDefaultHeaders { - 'x-requestid': string; -} -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; - status: string; -} -export interface FindSentenceBoundariesHeaderParam { - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} -export interface FindSentenceBoundariesHeaders { - 'X-ClientTraceId'?: string; -} -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; -export interface FindSentenceBoundariesQueryParam { - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} -export interface FindSentenceBoundariesQueryParamProperties { - language?: string; - script?: string; -} -export interface GetLanguagesUpcomming { - get(options?: GetLanguagesParameters): StreamableMethod; -} -export interface GetLanguages200Headers { - 'x-requestid': string; - etag: string; -} -export interface GetLanguages200Response extends HttpResponse { - body: GetLanguagesResultOutput; - headers: RawHttpHeaders & GetLanguages200Headers; - status: '200'; -} -export interface GetLanguagesDefaultHeaders { - 'x-requestid': string; -} -export interface GetLanguagesDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; - status: string; -} -export interface GetLanguagesHeaderParam { - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} -export interface GetLanguagesHeaders { - 'Accept-Language'?: string; - 'If-None-Match'?: string; - 'X-ClientTraceId'?: string; -} -export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; -export interface GetLanguagesQueryParam { - queryParameters?: GetLanguagesQueryParamProperties; -} -export interface GetLanguagesQueryParamProperties { - scope?: string; -} -export interface GetLanguagesResultOutput { - dictionary?: Record; - translation?: Record; - transliteration?: Record; -} -export interface InputTextItem { - text: string; -} -export declare function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; -export declare function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; -export declare function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; -export declare function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; -export declare function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; -export declare function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; -export interface LookupDictionaryEntries { - post(options: LookupDictionaryEntriesParameters): StreamableMethod; -} -export interface LookupDictionaryEntries200Headers { - 'x-requestid': string; -} -export interface LookupDictionaryEntries200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; - status: '200'; -} -export interface LookupDictionaryEntriesBodyParam { - body: Array; -} -export interface LookupDictionaryEntriesDefaultHeaders { - 'x-requestid': string; -} -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; - status: string; -} -export interface LookupDictionaryEntriesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} -export interface LookupDictionaryEntriesHeaders { - 'X-ClientTraceId'?: string; -} -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; -export interface LookupDictionaryEntriesQueryParam { - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} -export interface LookupDictionaryEntriesQueryParamProperties { - from: string; - to: string; -} -export interface LookupDictionaryExamples { - post(options: LookupDictionaryExamplesParameters): StreamableMethod; -} -export interface LookupDictionaryExamples200Headers { - 'x-requestid': string; -} -export interface LookupDictionaryExamples200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; - status: '200'; -} -export interface LookupDictionaryExamplesBodyParam { - body: Array; -} -export interface LookupDictionaryExamplesDefaultHeaders { - 'x-requestid': string; -} -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; - status: string; -} -export interface LookupDictionaryExamplesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} -export interface LookupDictionaryExamplesHeaders { - 'X-ClientTraceId'?: string; -} -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; -export interface LookupDictionaryExamplesQueryParam { - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} -export interface LookupDictionaryExamplesQueryParamProperties { - from: string; - to: string; -} -export interface Routes { - (path: '/languages'): GetLanguagesUpcomming; - (path: '/translate'): Translate; - (path: '/transliterate'): Transliterate; - (path: '/breaksentence'): FindSentenceBoundaries; - (path: '/dictionary/lookup'): LookupDictionaryEntries; - (path: '/dictionary/examples'): LookupDictionaryExamples; -} -export interface SentenceLengthOutput { - srcSentLen: number[]; - transSentLen: number[]; -} -export interface SourceDictionaryLanguageOutput { - dir: string; - name: string; - nativeName: string; - translations: Array; -} -export interface SourceTextOutput { - text: string; -} -export interface TargetDictionaryLanguageOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} -export type TextTranslationClient = Client & { - path: Routes; -}; -export interface Translate { - post(options: TranslateParameters): StreamableMethod; -} -export interface Translate200Headers { - 'x-metered-usage': number; - 'x-mt-system': string; - 'x-requestid': string; -} -export interface Translate200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & Translate200Headers; - status: '200'; -} -export interface TranslateBodyParam { - body: Array; -} -export interface TranslateDefaultHeaders { - 'x-requestid': string; -} -export interface TranslateDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & TranslateDefaultHeaders; - status: string; -} -export interface TranslatedTextAlignmentOutput { - proj: string; -} -export interface TranslatedTextItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sourceText?: SourceTextOutput; - translations: Array; -} -export interface TranslateHeaderParam { - headers?: RawHttpHeadersInput & TranslateHeaders; -} -export interface TranslateHeaders { - 'X-ClientTraceId'?: string; -} -export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; -export interface TranslateQueryParam { - queryParameters: TranslateQueryParamProperties; -} -export interface TranslateQueryParamProperties { - allowFallback?: boolean; - category?: string; - from?: string; - fromScript?: string; - includeAlignment?: boolean; - includeSentenceLength?: boolean; - profanityAction?: string; - profanityMarker?: string; - suggestedFrom?: string; - textType?: string; - to: string; - toScript?: string; -} -export interface TranslationLanguageOutput { - dir: string; - name: string; - nativeName: string; -} -export interface TranslationOutput { - alignment?: TranslatedTextAlignmentOutput; - sentLen?: SentenceLengthOutput; - text: string; - to: string; - transliteration?: TransliteratedTextOutput; -} -export interface TranslatorCredential { - key: string; - region: string; -} -export interface TranslatorTokenCredential { - azureResourceId: string; - region: string; - tokenCredential: TokenCredential; -} -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - toScripts: Array; -} -export interface Transliterate { - post(options: TransliterateParameters): StreamableMethod; -} -export interface Transliterate200Headers { - 'x-requestid': string; -} -export interface Transliterate200Response extends HttpResponse { - body: Array; - headers: RawHttpHeaders & Transliterate200Headers; - status: '200'; -} -export interface TransliterateBodyParam { - body: Array; -} -export interface TransliterateDefaultHeaders { - 'x-requestid': string; -} -export interface TransliterateDefaultResponse extends HttpResponse { - body: ErrorResponseOutput; - headers: RawHttpHeaders & TransliterateDefaultHeaders; - status: string; -} -export interface TransliteratedTextOutput { - script: string; - text: string; -} -export interface TransliterateHeaderParam { - headers?: RawHttpHeadersInput & TransliterateHeaders; -} -export interface TransliterateHeaders { - 'X-ClientTraceId'?: string; -} -export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; -export interface TransliterateQueryParam { - queryParameters: TransliterateQueryParamProperties; -} -export interface TransliterateQueryParamProperties { - fromScript: string; - language: string; - toScript: string; -} -export interface TransliterationLanguageOutput { - name: string; - nativeName: string; - scripts: Array; -} -//# sourceMappingURL=ai-translation-text.api.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts.map deleted file mode 100644 index 72ce6bda4cb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ai-translation-text.api.d.ts","sourceRoot":"","sources":["ai-translation-text.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EA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,cAAc,GAAG,2BAA2B,CAAC;IAEtD,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,wBAAwB;IAEvC,OAAO,CAAC,EAAE,mBAAmB,GAAG,oBAAoB,CAAC;CACtD;AAGD,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAGD,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAC3D,wBAAwB,GACxB,sBAAsB,GACtB,iBAAiB,CAAC;AAGpB,MAAM,WAAW,uBAAuB;IAEtC,eAAe,EAAE,iCAAiC,CAAC;CACpD;AAGD,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC5C"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js deleted file mode 100644 index 61b999be892..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = createClient; -//# sourceMappingURL=ai-translation-text.api.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js.map deleted file mode 100644 index 6b43ab54383..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ai-translation-text.api.js","sourceRoot":"","sources":["ai-translation-text.api.ts"],"names":[],"mappings":";;AAyCA,kBAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.ts deleted file mode 100644 index e2cd4fb432d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.ts +++ /dev/null @@ -1,670 +0,0 @@ -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { KeyCredential } from '@azure/core-auth'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; - -// @public -export interface BackTranslationOutput { - displayText: string; - frequencyCount: number; - normalizedText: string; - numExamples: number; -} - -// @public -export interface BreakSentenceItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sentLen: number[]; -} - -// @public (undocumented) -export function buildMultiCollection(items: string[], parameterName: string): string; - -// @public -export interface CommonScriptModelOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} - -// @public -function createClient( - endpoint: undefined | string, - credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, - options?: ClientOptions -): TextTranslationClient; -export default createClient; - -// @public -export interface DetectedLanguageOutput { - language: string; - score: number; -} - -// @public -export interface DictionaryExampleItemOutput { - examples: Array; - normalizedSource: string; - normalizedTarget: string; -} - -// @public -export interface DictionaryExampleOutput { - sourcePrefix: string; - sourceSuffix: string; - sourceTerm: string; - targetPrefix: string; - targetSuffix: string; - targetTerm: string; -} - -// @public -export interface DictionaryExampleTextItem extends InputTextItem { - translation: string; -} - -// @public -export interface DictionaryLookupItemOutput { - displaySource: string; - normalizedSource: string; - translations: Array; -} - -// @public -export interface DictionaryTranslationOutput { - backTranslations: Array; - confidence: number; - displayTarget: string; - normalizedTarget: string; - posTag: string; - prefixWord: string; -} - -// @public -export interface ErrorDetailsOutput { - code: number; - message: string; -} - -// @public -export interface ErrorResponseOutput { - error: ErrorDetailsOutput; -} - -// @public (undocumented) -export interface FindSentenceBoundaries { - post( - options: FindSentenceBoundariesParameters - ): StreamableMethod; -} - -// @public (undocumented) -export interface FindSentenceBoundaries200Headers { - 'x-requestid': string; -} - -// @public -export interface FindSentenceBoundaries200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface FindSentenceBoundariesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface FindSentenceBoundariesDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface FindSentenceBoundariesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} - -// @public (undocumented) -export interface FindSentenceBoundariesHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & - FindSentenceBoundariesHeaderParam & - FindSentenceBoundariesBodyParam & - RequestParameters; - -// @public (undocumented) -export interface FindSentenceBoundariesQueryParam { - // (undocumented) - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} - -// @public (undocumented) -export interface FindSentenceBoundariesQueryParamProperties { - language?: string; - script?: string; -} - -// @public (undocumented) -export interface GetLanguagesUpcomming { - get(options?: GetLanguagesParameters): StreamableMethod; -} - -// @public (undocumented) -export interface GetLanguages200Headers { - 'x-requestid': string; - etag: string; -} - -// @public -export interface GetLanguages200Response extends HttpResponse { - // (undocumented) - body: GetLanguagesResultOutput; - // (undocumented) - headers: RawHttpHeaders & GetLanguages200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface GetLanguagesDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface GetLanguagesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface GetLanguagesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} - -// @public (undocumented) -export interface GetLanguagesHeaders { - 'Accept-Language'?: string; - 'If-None-Match'?: string; - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; - -// @public (undocumented) -export interface GetLanguagesQueryParam { - // (undocumented) - queryParameters?: GetLanguagesQueryParamProperties; -} - -// @public (undocumented) -export interface GetLanguagesQueryParamProperties { - scope?: string; -} - -// @public -export interface GetLanguagesResultOutput { - dictionary?: Record; - translation?: Record; - transliteration?: Record; -} - -// @public -export interface InputTextItem { - text: string; -} - -// @public (undocumented) -export function isUnexpected( - response: GetLanguages200Response | GetLanguagesDefaultResponse -): response is GetLanguagesDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: Translate200Response | TranslateDefaultResponse -): response is TranslateDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: Transliterate200Response | TransliterateDefaultResponse -): response is TransliterateDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse -): response is FindSentenceBoundariesDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse -): response is LookupDictionaryEntriesDefaultResponse; - -// @public (undocumented) -export function isUnexpected( - response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse -): response is LookupDictionaryExamplesDefaultResponse; - -// @public (undocumented) -export interface LookupDictionaryEntries { - post( - options: LookupDictionaryEntriesParameters - ): StreamableMethod; -} - -// @public (undocumented) -export interface LookupDictionaryEntries200Headers { - 'x-requestid': string; -} - -// @public -export interface LookupDictionaryEntries200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & - LookupDictionaryEntriesHeaderParam & - LookupDictionaryEntriesBodyParam & - RequestParameters; - -// @public (undocumented) -export interface LookupDictionaryEntriesQueryParam { - // (undocumented) - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesQueryParamProperties { - from: string; - to: string; -} - -// @public (undocumented) -export interface LookupDictionaryExamples { - post( - options: LookupDictionaryExamplesParameters - ): StreamableMethod; -} - -// @public (undocumented) -export interface LookupDictionaryExamples200Headers { - 'x-requestid': string; -} - -// @public -export interface LookupDictionaryExamples200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & - LookupDictionaryExamplesHeaderParam & - LookupDictionaryExamplesBodyParam & - RequestParameters; - -// @public (undocumented) -export interface LookupDictionaryExamplesQueryParam { - // (undocumented) - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesQueryParamProperties { - from: string; - to: string; -} - -// @public (undocumented) -export interface Routes { - (path: '/languages'): GetLanguagesUpcomming; - (path: '/translate'): Translate; - (path: '/transliterate'): Transliterate; - (path: '/breaksentence'): FindSentenceBoundaries; - (path: '/dictionary/lookup'): LookupDictionaryEntries; - (path: '/dictionary/examples'): LookupDictionaryExamples; -} - -// @public -export interface SentenceLengthOutput { - srcSentLen: number[]; - transSentLen: number[]; -} - -// @public -export interface SourceDictionaryLanguageOutput { - dir: string; - name: string; - nativeName: string; - translations: Array; -} - -// @public -export interface SourceTextOutput { - text: string; -} - -// @public -export interface TargetDictionaryLanguageOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} - -// @public (undocumented) -export type TextTranslationClient = Client & { - path: Routes; -}; - -// @public (undocumented) -export interface Translate { - post(options: TranslateParameters): StreamableMethod; -} - -// @public (undocumented) -export interface Translate200Headers { - 'x-metered-usage': number; - 'x-mt-system': string; - 'x-requestid': string; -} - -// @public -export interface Translate200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & Translate200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface TranslateBodyParam { - body: Array; -} - -// @public (undocumented) -export interface TranslateDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface TranslateDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & TranslateDefaultHeaders; - // (undocumented) - status: string; -} - -// @public -export interface TranslatedTextAlignmentOutput { - proj: string; -} - -// @public -export interface TranslatedTextItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sourceText?: SourceTextOutput; - translations: Array; -} - -// @public (undocumented) -export interface TranslateHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & TranslateHeaders; -} - -// @public (undocumented) -export interface TranslateHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; - -// @public (undocumented) -export interface TranslateQueryParam { - // (undocumented) - queryParameters: TranslateQueryParamProperties; -} - -// @public (undocumented) -export interface TranslateQueryParamProperties { - allowFallback?: boolean; - category?: string; - from?: string; - fromScript?: string; - includeAlignment?: boolean; - includeSentenceLength?: boolean; - profanityAction?: string; - profanityMarker?: string; - suggestedFrom?: string; - textType?: string; - to: string; - toScript?: string; -} - -// @public -export interface TranslationLanguageOutput { - dir: string; - name: string; - nativeName: string; -} - -// @public -export interface TranslationOutput { - alignment?: TranslatedTextAlignmentOutput; - sentLen?: SentenceLengthOutput; - text: string; - to: string; - transliteration?: TransliteratedTextOutput; -} - -// @public (undocumented) -export interface TranslatorCredential { - // (undocumented) - key: string; - // (undocumented) - region: string; -} - -// @public (undocumented) -export interface TranslatorTokenCredential { - // (undocumented) - azureResourceId: string; - // (undocumented) - region: string; - // (undocumented) - tokenCredential: TokenCredential; -} - -// @public -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - toScripts: Array; -} - -// @public (undocumented) -export interface Transliterate { - post(options: TransliterateParameters): StreamableMethod; -} - -// @public (undocumented) -export interface Transliterate200Headers { - 'x-requestid': string; -} - -// @public -export interface Transliterate200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & Transliterate200Headers; - // (undocumented) - status: '200'; -} - -// @public (undocumented) -export interface TransliterateBodyParam { - body: Array; -} - -// @public (undocumented) -export interface TransliterateDefaultHeaders { - 'x-requestid': string; -} - -// @public (undocumented) -export interface TransliterateDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & TransliterateDefaultHeaders; - // (undocumented) - status: string; -} - -// @public -export interface TransliteratedTextOutput { - script: string; - text: string; -} - -// @public (undocumented) -export interface TransliterateHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & TransliterateHeaders; -} - -// @public (undocumented) -export interface TransliterateHeaders { - 'X-ClientTraceId'?: string; -} - -// @public (undocumented) -export type TransliterateParameters = TransliterateQueryParam & - TransliterateHeaderParam & - TransliterateBodyParam & - RequestParameters; - -// @public (undocumented) -export interface TransliterateQueryParam { - // (undocumented) - queryParameters: TransliterateQueryParamProperties; -} - -// @public (undocumented) -export interface TransliterateQueryParamProperties { - fromScript: string; - language: string; - toScript: string; -} - -// @public -export interface TransliterationLanguageOutput { - name: string; - nativeName: string; - scripts: Array; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/sample.env deleted file mode 100644 index bbdd64c0b36..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/sample.env +++ /dev/null @@ -1,6 +0,0 @@ -# Used in most samples. -# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource - -ENDPOINT="https://api.cognitive.microsofttranslator.com" -TEXT_TRANSLATOR_API_KEY="" -TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts deleted file mode 100644 index 8ac71201fdf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=breakSentence.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts.map deleted file mode 100644 index df31e896ce6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentence.d.ts","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA0BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js deleted file mode 100644 index b49b3b00b30..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Get Sentence Boundaries sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=breakSentence.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js.map deleted file mode 100644 index b0cdc51b795..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentence.js","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA0BC;;AA1CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;IAEpD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACpE,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,MAAM,EAAE,MAAM;SACf;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1F,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.ts deleted file mode 100644 index 25bf03b92b0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentence.ts +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Get Sentence Boundaries sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - }, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts deleted file mode 100644 index 46395b61b7b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=breakSentenceWithAutoDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map deleted file mode 100644 index ac9b0b74586..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceWithAutoDetection.d.ts","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js deleted file mode 100644 index 92853eb2f10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log(`Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=breakSentenceWithAutoDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js.map deleted file mode 100644 index 4de54a56b3c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceWithAutoDetection.js","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,gDAAgD,EAAE,CAAC,CAAC;IAChG,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CACT,yCAAyC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,aAAa,EAAE,gBAAgB,EAAE,KAAK,GAAG,CAC5I,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.ts deleted file mode 100644 index 9489d2b0cca..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/breakSentenceWithAutoDetection.ts +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log( - `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts deleted file mode 100644 index 59d56de8ab2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=dictionaryExamples.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts.map deleted file mode 100644 index 9cefa824488..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamples.d.ts","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js deleted file mode 100644 index edc47cdbf20..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Dictionary Examples sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log(`For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`); - const firstExample = dictionaryExample?.examples[0]; - console.log(`Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=dictionaryExamples.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js.map deleted file mode 100644 index d3583ee7dda..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamples.js","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":";AAAA,u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G,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CACT,aACE,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,GAAG,YAAY,CAAC,YACrE,IAAI,CACL,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.ts deleted file mode 100644 index 6915fa3eadf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryExamples.ts +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -import TextTranslationClient, { - TranslatorCredential, - DictionaryExampleTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Dictionary Examples sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`, - ); - const firstExample = dictionaryExample?.examples[0]; - console.log( - `Example: '${ - firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix - }'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts deleted file mode 100644 index 38085ada4f0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=dictionaryLookup.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts.map deleted file mode 100644 index e8b3ef4c552..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookup.d.ts","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js deleted file mode 100644 index 2adb58859fa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Dictionary Lookup sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log(`For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`); - console.log(`First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=dictionaryLookup.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js.map deleted file mode 100644 index 52dad93060a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookup.js","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA+BC;;AA/CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;QACjF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,eAAe,IAAI,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,GAAG,CACT,uBAAuB,eAAe,EAAE,YAAY,EAAE,MAAM,wCAAwC,CACrG,CAAC;QACF,OAAO,CAAC,GAAG,CACT,iBAAiB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,aAAa,kBAAkB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,CAClI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.ts deleted file mode 100644 index 744810e487f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/dictionaryLookup.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Dictionary Lookup sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`, - ); - console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts deleted file mode 100644 index 1b28d1fcf9d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguages.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts.map deleted file mode 100644 index c230d0b8b01..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguages.d.ts","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":"AAaA,wBAAsB,IAAI,kBAyCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js deleted file mode 100644 index a56da0cc003..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== List supported languages sample =="); - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguages.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js.map deleted file mode 100644 index bff46b9b848..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguages.js","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAYlC,oBAyCC;;AAnDD;;GAEG;AACH,+FAAsF;AAEtF,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IAErD,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,E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YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.ts deleted file mode 100644 index 967dca702bd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguages.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -import TextTranslationClient, { isUnexpected } from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== List supported languages sample =="); - - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts deleted file mode 100644 index ed7bea4503f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguagesAcceptLanguage.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map deleted file mode 100644 index af9fb2c2660..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesAcceptLanguage.d.ts","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js deleted file mode 100644 index 8882b61cc14..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== List supported localized languages sample =="); - const parameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguagesAcceptLanguage.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js.map deleted file mode 100644 index 9023ebd2fa3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesAcceptLanguage.js","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA8CC;;AAnED;;;;;;;;;;GAUG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IAE/D,MAAM,UAAU,GAA2B;QACzC,OAAO,EAAE;YACP,iBAAiB,EAAE,IAAI;SACxB;KACF,CAAC;IACF,MAAM,i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AAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.ts deleted file mode 100644 index c4308cba4fa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesAcceptLanguage.ts +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -import TextTranslationClient, { - GetLanguagesParameters, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== List supported localized languages sample =="); - - const parameters: GetLanguagesParameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts deleted file mode 100644 index 98558a23465..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguagesScope.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts.map deleted file mode 100644 index 7f9105369a8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesScope.d.ts","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":"AAiBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js deleted file mode 100644 index 5770ac410ee..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== Scoped list supported languages sample =="); - const parameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguagesScope.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js.map deleted file mode 100644 index 66dbd0e2619..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesScope.js","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,oBA8CC;;AA5DD;;;GAGG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;IAE5D,MAAM,UAAU,GAA2B;QACzC,eAAe,EAAE;YACf,KAAK,EAAE,aAAa;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U,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.ts deleted file mode 100644 index 48dfedbcbd5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/getLanguagesScope.ts +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -import TextTranslationClient, { - GetLanguagesParameters, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== Scoped list supported languages sample =="); - - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts deleted file mode 100644 index ca9270ec452..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts.map deleted file mode 100644 index 229efa7bfc3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js deleted file mode 100644 index 6c274972987..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Simple translate sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js.map deleted file mode 100644 index 2c94ae1a104..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translate.js","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA4BC;;AA7CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.ts deleted file mode 100644 index 2435f494285..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translate.ts +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Simple translate sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts deleted file mode 100644 index ea5d8818b27..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateAlignments.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts.map deleted file mode 100644 index a7eecca3e64..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateAlignments.d.ts","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js deleted file mode 100644 index f0c782f63ba..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with alignments sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - includeAlignment: true, - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateAlignments.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js.map deleted file mode 100644 index ef8aa72abe2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateAlignments.js","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA+BC;;AAhDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,yCAAyC,EAAE,CAAC,CAAC;IACzF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,gBAAgB,EAAE,IAAI;SACvB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,eAAe,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.ts deleted file mode 100644 index 9baf6597850..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateAlignments.ts +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with alignments sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeAlignment: true, - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts deleted file mode 100644 index 422ffa713bc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateCustom.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts.map deleted file mode 100644 index 0ed2b1e3897..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateCustom.d.ts","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":"AAgCA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js deleted file mode 100644 index e65f78b5cb2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Custom translator sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateCustom.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js.map deleted file mode 100644 index bd33a66bce7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateCustom.js","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA+BlC,oBA6BC;;AA1DD;;;;;;;;;;;;;;;GAeG;AACH,+FAIyC;AAEzC,uDAAiC;A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,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.ts deleted file mode 100644 index 83159f47a36..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateCustom.ts +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Custom translator sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts deleted file mode 100644 index 0ba089d6c6d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts.map deleted file mode 100644 index 2d0633e31c3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDetection.d.ts","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js deleted file mode 100644 index aa0eaa87bfb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translate sample with auto-detection =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js.map deleted file mode 100644 index 5b4853ce1d2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDetection.js","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA8BC;;AA/CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAE1D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;SACT;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,yCAAyC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,WAAW,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACxI,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.ts deleted file mode 100644 index cf5c1a18836..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDetection.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translate sample with auto-detection =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts deleted file mode 100644 index 46a59fbb822..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateDictionary.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts.map deleted file mode 100644 index fe1315d3161..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDictionary.d.ts","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBAgCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js deleted file mode 100644 index 4b3b88ec19d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with Dictionary sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateDictionary.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js.map deleted file mode 100644 index 280daea0a5b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDictionary.js","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBAgCC;;AArDD;;;;;;GAMG;AACH,+FAKyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,8GAA8G;SACrH;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAkC,CAAC;IAC1E,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.ts deleted file mode 100644 index 23eb715449d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateDictionary.ts +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - TranslatedTextItemOutput, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with Dictionary sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body as TranslatedTextItemOutput[]; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts deleted file mode 100644 index 8c46b39a007..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateMultipleSources.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts.map deleted file mode 100644 index 7e58386a959..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleSources.d.ts","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js deleted file mode 100644 index f6305d2dac4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Multiple input texts =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateMultipleSources.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js.map deleted file mode 100644 index 9ed0f68240a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleSources.js","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAkCC;;AApDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,C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,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.ts deleted file mode 100644 index ffb5a49f6f7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleSources.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Multiple input texts =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts deleted file mode 100644 index 6ea17a78854..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateMultipleTargets.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts.map deleted file mode 100644 index a6396d325a8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleTargets.d.ts","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js deleted file mode 100644 index 10c96dfa31c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Multiple target languages translation =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log(`Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateMultipleTargets.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js.map deleted file mode 100644 index 76af26b4c51..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleTargets.js","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA8BC;;AA/CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,KAAK,MAAM,OAAO,IAAI,WAAW,CAAC,YAAY,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CACxI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.ts deleted file mode 100644 index 20c00ed4e0e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateMultipleTargets.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Multiple target languages translation =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log( - `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`, - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts deleted file mode 100644 index 2f2ee0dd031..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateNoTranslate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts.map deleted file mode 100644 index 2404b76f4cf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateNoTranslate.d.ts","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":"AAsBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js deleted file mode 100644 index 8b32d6d99f9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Marking text input with notranslate div sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateNoTranslate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js.map deleted file mode 100644 index db319151a15..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateNoTranslate.js","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,oBAiCC;;AApDD;;;;;GAKG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,gGAAgG;SACvG;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.ts deleted file mode 100644 index d505a78ba34..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateNoTranslate.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Marking text input with notranslate div sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts deleted file mode 100644 index e14e29acf78..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateProfanity.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts.map deleted file mode 100644 index f3e2a1e7759..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateProfanity.d.ts","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js deleted file mode 100644 index 38b2df5500d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Profanity handling sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateProfanity.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js.map deleted file mode 100644 index 44bc88452d5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateProfanity.js","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,oBA8BC;;AAzDD;;;;;;;;;;;;;GAaG;AACH,+FAIyC;AAEzC,uDAAiC;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,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.ts deleted file mode 100644 index aa126e6baf7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateProfanity.ts +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Profanity handling sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts deleted file mode 100644 index 101a5c995c7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateSenteceLength.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts.map deleted file mode 100644 index 01bac3ad5f9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateSenteceLength.d.ts","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBAwCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js deleted file mode 100644 index 513ee83a89a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with sentence boundaries sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { text: "The answer lies in machine translation. This is a test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - includeSentenceLength: true, - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`); - console.log(`Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateSenteceLength.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js.map deleted file mode 100644 index 41f4b02e087..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateSenteceLength.js","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBAwCC;;AAzDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAEjE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC,EAAE,IAAI,EAAE,yDAAyD,EAAE;KACpE,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YAEV,qBAAqB,EAAE,IAAI;SAC5B;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,0BAA0B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzF,CAAC;QACF,OAAO,CAAC,GAAG,CACT,8BAA8B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,CACpF,IAAI,CACL,EAAE,CACJ,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.ts deleted file mode 100644 index 972f4358725..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateSenteceLength.ts +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with sentence boundaries sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { text: "The answer lies in machine translation. This is a test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeSentenceLength: true, - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - console.log( - `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`, - ); - console.log( - `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join( - ", ", - )}`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts deleted file mode 100644 index a49db19b58c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateTextType.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts.map deleted file mode 100644 index 96e60f5f1ac..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTextType.d.ts","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js deleted file mode 100644 index cec1465ff75..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== HTML translation sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateTextType.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js.map deleted file mode 100644 index 8be705bbc2d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTextType.js","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UA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;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.ts deleted file mode 100644 index 51609a95895..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateTextType.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== HTML translation sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts deleted file mode 100644 index 8badf54b60c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateWithTransliteration.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts.map deleted file mode 100644 index 9cdf4041fe0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateWithTransliteration.d.ts","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAkCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js deleted file mode 100644 index 0a3687846eb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translate with transliteration sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateWithTransliteration.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js.map deleted file mode 100644 index e95b73d5244..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateWithTransliteration.js","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAkCC;;AApDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,SAAS;YACb,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,MAAM;SACnB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,gBAAgB,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;QACF,OAAO,CAAC,GAAG,CACT,wBAAwB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,MAAM,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CACzI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.ts deleted file mode 100644 index c3f0471edec..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/translateWithTransliteration.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translate with transliteration sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, - ); - console.log( - `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts deleted file mode 100644 index f30e7d0aa84..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=transliterate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts.map deleted file mode 100644 index 0267960e3ab..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterate.d.ts","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js deleted file mode 100644 index 1407a2020a9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Simple transliterate sample =="); - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }, - }); - if ((0, ai_translation_text_1.isUnexpected)(transliterateResponse)) { - throw transliterateResponse.body.error; - } - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log(`Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=transliterate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js.map deleted file mode 100644 index 270c70974e8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterate.js","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBA6BC;;AA/CD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IAEjD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxD,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAChD,KAAK,MAAM,eAAe,IAAI,YAAY,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CACT,qCAAqC,eAAe,EAAE,MAAM,mCAAmC,eAAe,EAAE,IAAI,IAAI,CACzH,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.ts deleted file mode 100644 index 555211ce1ed..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples-dev/transliterate.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Simple transliterate sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }, - }); - - if (isUnexpected(transliterateResponse)) { - throw transliterateResponse.body.error; - } - - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`, - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/README.md deleted file mode 100644 index f2d5d882288..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/README.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -page_type: sample -languages: - - javascript -products: - - azure - - azure-cognitive-services - - azure-translator -urlFragment: ai-translation-text-javascript-beta ---- - -# Azure Text Translation Service client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for Azure Text Translation Service in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [breakSentence.js][breaksentence] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | -| [breakSentenceWithAutoDetection.js][breaksentencewithautodetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | -| [dictionaryExamples.js][dictionaryexamples] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. | -| [dictionaryLookup.js][dictionarylookup] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. | -| [getLanguages.js][getlanguages] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages | -| [getLanguagesAcceptLanguage.js][getlanguagesacceptlanguage] | This sample demonstrates how you can select the language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. | -| [getLanguagesScope.js][getlanguagesscope] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages for a selected scope | -| [translate.js][translate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a text which language is know to a target language. | -| [translateAlignments.js][translatealignments] | This sample demonstrates how you can ask translation service to include alignment projection from source text to translated text. | -| [translateCustom.js][translatecustom] | This sample demonstrates how You can get translations from a customized system built with Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) to this parameter to use your deployed customized system. It is possible to set `allowFalback` paramter. It specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: `true` (default) or `false`. `allowFallback=false` specifies that the translation should only use systems trained for the category specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `allowFallback=true` specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. | -| [translateDetection.js][translatedetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation without specifying the source language to a target language. | -| [translateDictionary.js][translatedictionary] | This sample demonstrates how to keep words if you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is safe only for compound nouns like proper names and product names. Note You must include the From parameter in your API translation request instead of using the autodetect feature. | -| [translateMultipleSources.js][translatemultiplesources] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a multiple text fields and each input text is in different language. | -| [translateMultipleTargets.js][translatemultipletargets] | This sample demonstrates how you can provide multiple target languages which results to each input element be translated to all target languages. | -| [translateNoTranslate.js][translatenotranslate] | This sample demonstrates how it's sometimes useful to exclude specific content from translation. You can use the attribute class=notranslate to specify content that should remain in its original language. In the following example, the content inside the first div element won't be translated, while the content in the second div element will be translated. | -| [translateProfanity.js][translateprofanity] | This sample demonstrates how to change the profanity handling during translate call. Normally the Translator service will retain profanity that is present in the source in the translation. The degree of profanity and the context that makes words profane differ between cultures, and as a result the degree of profanity in the target language may be amplified or reduced. If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, whether you want to mark profanities with appropriate tags (giving you the option to add your own post-processing), or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` and `NoAction` (default). | -| [translateSenteceLength.js][translatesentecelength] | This sample demonstrates how to you can ask translator service to include sentence boundaries for the input text and the translated text. | -| [translateTextType.js][translatetexttype] | This sample demonstrates how you can select whether the translated text is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. | -| [translateWithTransliteration.js][translatewithtransliteration] | You can combine both Translation and Transliteration in one Translate call. Your source Text can be in non-standard Script of a language as well as you can ask for non-standard Script of a target language. | -| [transliterate.js][transliterate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to convert characters or letters of a source language to the corresponding characters or letters of a target language. | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] and the following Azure resources to run these sample programs: - -- [Translator resource instance][createinstance_translatorresourceinstance] - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node breakSentence.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env ENDPOINT="" TEXT_TRANSLATOR_API_KEY="" TEXT_TRANSLATOR_REGION="" node breakSentence.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[breaksentence]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/breakSentence.js -[breaksentencewithautodetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js -[dictionaryexamples]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/dictionaryExamples.js -[dictionarylookup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/dictionaryLookup.js -[getlanguages]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguages.js -[getlanguagesacceptlanguage]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js -[getlanguagesscope]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/getLanguagesScope.js -[translate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translate.js -[translatealignments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateAlignments.js -[translatecustom]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateCustom.js -[translatedetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateDetection.js -[translatedictionary]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateDictionary.js -[translatemultiplesources]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateMultipleSources.js -[translatemultipletargets]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateMultipleTargets.js -[translatenotranslate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateNoTranslate.js -[translateprofanity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateProfanity.js -[translatesentecelength]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateSenteceLength.js -[translatetexttype]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateTextType.js -[translatewithtransliteration]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/translateWithTransliteration.js -[transliterate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/javascript/transliterate.js -[apiref]: https://learn.microsoft.com/azure/cognitive-services/translator/translator-text-apis -[freesub]: https://azure.microsoft.com/free/ -[createinstance_translatorresourceinstance]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentence.js deleted file mode 100644 index 0fdf418a4e0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentence.js +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Get Sentence Boundaries sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - }, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js deleted file mode 100644 index ae2daf40df9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/breakSentenceWithAutoDetection.js +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log( - `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryExamples.js deleted file mode 100644 index 138cce1631b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryExamples.js +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Dictionary Examples sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` - ); - const firstExample = dictionaryExample?.examples[0]; - console.log( - `Example: '${ - firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix - }'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryLookup.js deleted file mode 100644 index 310dd2f32cc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/dictionaryLookup.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Dictionary Lookup sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }, - }); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` - ); - console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguages.js deleted file mode 100644 index 109f6ce9d1b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguages.js +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -async function main() { - console.log("== List supported languages sample =="); - - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js deleted file mode 100644 index fdf0ef88070..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesAcceptLanguage.js +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -async function main() { - console.log("== List supported localized languages sample =="); - - const parameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesScope.js deleted file mode 100644 index b57284b0641..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/getLanguagesScope.js +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -async function main() { - console.log("== Scoped list supported languages sample =="); - - const parameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/package.json deleted file mode 100644 index 098fe4457ed..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@azure-samples/ai-translation-text-js-beta", - "private": true, - "version": "1.0.0", - "description": "Azure Text Translation Service client library samples for JavaScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/translation/ai-translation-text-rest" - }, - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic", - "translate", - "translation" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest", - "dependencies": { - "@azure-rest/ai-translation-text": "next", - "dotenv": "latest" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/sample.env deleted file mode 100644 index bbdd64c0b36..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/sample.env +++ /dev/null @@ -1,6 +0,0 @@ -# Used in most samples. -# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource - -ENDPOINT="https://api.cognitive.microsofttranslator.com" -TEXT_TRANSLATOR_API_KEY="" -TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translate.js deleted file mode 100644 index f4d795baa37..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translate.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Simple translate sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateAlignments.js deleted file mode 100644 index ee42daa6ac0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateAlignments.js +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translation with alignments sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeAlignment: true, - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateCustom.js deleted file mode 100644 index 082d3a513ec..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateCustom.js +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Custom translator sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDetection.js deleted file mode 100644 index b541067de92..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDetection.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translate sample with auto-detection =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDictionary.js deleted file mode 100644 index c131b01bf0d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateDictionary.js +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translation with Dictionary sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleSources.js deleted file mode 100644 index 3eb730c9ebe..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleSources.js +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Multiple input texts =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleTargets.js deleted file mode 100644 index 1fd4a111e66..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateMultipleTargets.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Multiple target languages translation =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log( - `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateNoTranslate.js deleted file mode 100644 index d12672c73ac..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateNoTranslate.js +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Marking text input with notranslate div sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateProfanity.js deleted file mode 100644 index 99009555e46..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateProfanity.js +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Profanity handling sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateSenteceLength.js deleted file mode 100644 index 440bbbbc6d7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateSenteceLength.js +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translation with sentence boundaries sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "The answer lies in machine translation. This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeSentenceLength: true, - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log( - `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` - ); - console.log( - `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateTextType.js deleted file mode 100644 index 4ee3fd80d1f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateTextType.js +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== HTML translation sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateWithTransliteration.js deleted file mode 100644 index 5f372d5f662..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/translateWithTransliteration.js +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Translate with transliteration sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - }, - }); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log( - `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/transliterate.js deleted file mode 100644 index 3371cfb6e1f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/javascript/transliterate.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -const TextTranslationClient = require("@azure-rest/ai-translation-text").default, - { isUnexpected } = require("@azure-rest/ai-translation-text"); - -require("dotenv").config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -async function main() { - console.log("== Simple transliterate sample =="); - - const translateCedential = { - key: apiKey, - region, - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }, - }); - - if (isUnexpected(transliterateResponse)) { - throw transliterateResponse.body.error; - } - - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); - -module.exports = { main }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/README.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/README.md deleted file mode 100644 index 64830dd3793..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/README.md +++ /dev/null @@ -1,115 +0,0 @@ ---- -page_type: sample -languages: - - typescript -products: - - azure - - azure-cognitive-services - - azure-translator -urlFragment: ai-translation-text-typescript-beta ---- - -# Azure Text Translation Service client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for Azure Text Translation Service in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [breakSentence.ts][breaksentence] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | -| [breakSentenceWithAutoDetection.ts][breaksentencewithautodetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. | -| [dictionaryExamples.ts][dictionaryexamples] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. | -| [dictionaryLookup.ts][dictionarylookup] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. | -| [getLanguages.ts][getlanguages] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages | -| [getLanguagesAcceptLanguage.ts][getlanguagesacceptlanguage] | This sample demonstrates how you can select the language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. | -| [getLanguagesScope.ts][getlanguagesscope] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages for a selected scope | -| [translate.ts][translate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a text which language is know to a target language. | -| [translateAlignments.ts][translatealignments] | This sample demonstrates how you can ask translation service to include alignment projection from source text to translated text. | -| [translateCustom.ts][translatecustom] | This sample demonstrates how You can get translations from a customized system built with Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) to this parameter to use your deployed customized system. It is possible to set `allowFalback` paramter. It specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: `true` (default) or `false`. `allowFallback=false` specifies that the translation should only use systems trained for the category specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `allowFallback=true` specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. | -| [translateDetection.ts][translatedetection] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation without specifying the source language to a target language. | -| [translateDictionary.ts][translatedictionary] | This sample demonstrates how to keep words if you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is safe only for compound nouns like proper names and product names. Note You must include the From parameter in your API translation request instead of using the autodetect feature. | -| [translateMultipleSources.ts][translatemultiplesources] | This sample demonstrates how to make a simple call to the Azure Text Translator service to get translation for a multiple text fields and each input text is in different language. | -| [translateMultipleTargets.ts][translatemultipletargets] | This sample demonstrates how you can provide multiple target languages which results to each input element be translated to all target languages. | -| [translateNoTranslate.ts][translatenotranslate] | This sample demonstrates how it's sometimes useful to exclude specific content from translation. You can use the attribute class=notranslate to specify content that should remain in its original language. In the following example, the content inside the first div element won't be translated, while the content in the second div element will be translated. | -| [translateProfanity.ts][translateprofanity] | This sample demonstrates how to change the profanity handling during translate call. Normally the Translator service will retain profanity that is present in the source in the translation. The degree of profanity and the context that makes words profane differ between cultures, and as a result the degree of profanity in the target language may be amplified or reduced. If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, whether you want to mark profanities with appropriate tags (giving you the option to add your own post-processing), or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` and `NoAction` (default). | -| [translateSenteceLength.ts][translatesentecelength] | This sample demonstrates how to you can ask translator service to include sentence boundaries for the input text and the translated text. | -| [translateTextType.ts][translatetexttype] | This sample demonstrates how you can select whether the translated text is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. | -| [translateWithTransliteration.ts][translatewithtransliteration] | You can combine both Translation and Transliteration in one Translate call. Your source Text can be in non-standard Script of a language as well as you can ask for non-standard Script of a target language. | -| [transliterate.ts][transliterate] | This sample demonstrates how to make a simple call to the Azure Text Translator service to convert characters or letters of a source language to the corresponding characters or letters of a target language. | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] and the following Azure resources to run these sample programs: - -- [Translator resource instance][createinstance_translatorresourceinstance] - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/breakSentence.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env ENDPOINT="" TEXT_TRANSLATOR_API_KEY="" TEXT_TRANSLATOR_REGION="" node dist/breakSentence.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[breaksentence]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/breakSentence.ts -[breaksentencewithautodetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts -[dictionaryexamples]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/dictionaryExamples.ts -[dictionarylookup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/dictionaryLookup.ts -[getlanguages]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguages.ts -[getlanguagesacceptlanguage]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts -[getlanguagesscope]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/getLanguagesScope.ts -[translate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translate.ts -[translatealignments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateAlignments.ts -[translatecustom]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateCustom.ts -[translatedetection]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateDetection.ts -[translatedictionary]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateDictionary.ts -[translatemultiplesources]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateMultipleSources.ts -[translatemultipletargets]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateMultipleTargets.ts -[translatenotranslate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateNoTranslate.ts -[translateprofanity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateProfanity.ts -[translatesentecelength]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateSenteceLength.ts -[translatetexttype]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateTextType.ts -[translatewithtransliteration]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/translateWithTransliteration.ts -[transliterate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-text-rest/samples/v1-beta/typescript/src/transliterate.ts -[apiref]: https://learn.microsoft.com/azure/cognitive-services/translator/translator-text-apis -[freesub]: https://azure.microsoft.com/free/ -[createinstance_translatorresourceinstance]: https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/package.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/package.json deleted file mode 100644 index 746d3c8427a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@azure-samples/ai-translation-text-ts-beta", - "private": true, - "version": "1.0.0", - "description": "Azure Text Translation Service client library samples for TypeScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/translation/ai-translation-text-rest" - }, - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic", - "translate", - "translation" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest", - "dependencies": { - "@azure-rest/ai-translation-text": "next", - "dotenv": "latest" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.4.5", - "rimraf": "latest" - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/sample.env b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/sample.env deleted file mode 100644 index bbdd64c0b36..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/sample.env +++ /dev/null @@ -1,6 +0,0 @@ -# Used in most samples. -# Get the key and region - https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource - -ENDPOINT="https://api.cognitive.microsofttranslator.com" -TEXT_TRANSLATOR_API_KEY="" -TEXT_TRANSLATOR_REGION="" diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts deleted file mode 100644 index 8ac71201fdf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=breakSentence.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map deleted file mode 100644 index 2410132a23c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentence.d.ts","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js deleted file mode 100644 index c953956aa0b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Get Sentence Boundaries sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=breakSentence.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js.map deleted file mode 100644 index 231cb9a7aee..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentence.js","sourceRoot":"","sources":["breakSentence.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CA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test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.ts deleted file mode 100644 index f319a1769a7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentence.ts +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Get Sentence Boundaries sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - script: "Latn", - }}); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts deleted file mode 100644 index 46395b61b7b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=breakSentenceWithAutoDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map deleted file mode 100644 index ac9b0b74586..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceWithAutoDetection.d.ts","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAyBzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js deleted file mode 100644 index 77a3269e283..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - if ((0, ai_translation_text_1.isUnexpected)(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log(`Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=breakSentenceWithAutoDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map deleted file mode 100644 index 4de54a56b3c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceWithAutoDetection.js","sourceRoot":"","sources":["breakSentenceWithAutoDetection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAyBC;;AAzCD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,gDAAgD,EAAE,CAAC,CAAC;IAChG,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IAEH,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qCAAqC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CACT,yCAAyC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,gBAAgB,aAAa,EAAE,gBAAgB,EAAE,KAAK,GAAG,CAC5I,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts deleted file mode 100644 index dc7fe39e57c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/breakSentenceWithAutoDetection.ts +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get sentences' boundaries. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Sentence Boundaries with auto-detection sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "How are you? I am fine. What did you do today?" }]; - const breakSentenceResponse = await translationClient.path("/breaksentence").post({ - body: inputText, - }); - - if (isUnexpected(breakSentenceResponse)) { - throw breakSentenceResponse.body.error; - } - - const breakSentences = breakSentenceResponse.body; - for (const breakSentence of breakSentences) { - console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); - console.log( - `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts deleted file mode 100644 index 59d56de8ab2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=dictionaryExamples.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map deleted file mode 100644 index 91e60b8c357..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamples.d.ts","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js deleted file mode 100644 index 57e4c06f6a2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Dictionary Examples sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log(`For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`); - const firstExample = dictionaryExample?.examples[0]; - console.log(`Example: '${firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=dictionaryExamples.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map deleted file mode 100644 index 4d32e536324..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamples.js","sourceRoot":"","sources":["dictionaryExamples.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBAiCC;;AAjDD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;IACvF,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;QACnF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IACnD,KAAK,MAAM,iBAAiB,IAAI,kBAAkB,EAAE,CAAC;QACnD,OAAO,CAAC,GAAG,CACT,uBAAuB,iBAAiB,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CACpG,CAAC;QACF,MAAM,YAAY,GAAG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CACT,aACE,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,GAAG,YAAY,CAAC,YACrE,IAAI,CACL,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.ts deleted file mode 100644 index 3a6b7921125..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryExamples.ts +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get grammatical structure and context examples for the source term and target term pair. - */ -import TextTranslationClient, { - TranslatorCredential, - DictionaryExampleTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Dictionary Examples sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; - const dictionaryResponse = await translationClient.path("/dictionary/examples").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }}); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryExamples = dictionaryResponse.body; - for (const dictionaryExample of dictionaryExamples) { - console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` - ); - const firstExample = dictionaryExample?.examples[0]; - console.log( - `Example: '${ - firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix - }'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts deleted file mode 100644 index 38085ada4f0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=dictionaryLookup.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map deleted file mode 100644 index a3340f5c99c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookup.d.ts","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":"AAmBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js deleted file mode 100644 index 7cedc4b2ca1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Dictionary Lookup sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log(`For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`); - console.log(`First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=dictionaryLookup.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map deleted file mode 100644 index 6adf79d8741..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookup.js","sourceRoot":"","sources":["dictionaryLookup.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,oBA8BC;;AA9CD;;GAEG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;QACjF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,kBAAkB,CAAC,EAAE,CAAC;QACrC,MAAM,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAClD,KAAK,MAAM,eAAe,IAAI,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,GAAG,CACT,uBAAuB,eAAe,EAAE,YAAY,EAAE,MAAM,wCAAwC,CACrG,CAAC;QACF,OAAO,CAAC,GAAG,CACT,iBAAiB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,aAAa,kBAAkB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,CAClI,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.ts deleted file mode 100644 index b0dbe37569b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/dictionaryLookup.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get equivalent words for the source term in the target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Dictionary Lookup sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "fly" }]; - const dictionaryResponse = await translationClient.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: { - to: "es", - from: "en", - }}); - - if (isUnexpected(dictionaryResponse)) { - throw dictionaryResponse.body.error; - } - - const dictionaryEntries = dictionaryResponse.body; - for (const dictionaryEntry of dictionaryEntries) { - console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` - ); - console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts deleted file mode 100644 index 1b28d1fcf9d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguages.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map deleted file mode 100644 index c0c38683c9d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguages.d.ts","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":"AAeA,wBAAsB,IAAI,kBAyCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js deleted file mode 100644 index a56da0cc003..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== List supported languages sample =="); - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguages.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js.map deleted file mode 100644 index f57b349325f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguages.js","sourceRoot":"","sources":["getLanguages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAclC,oBAyCC;;AArDD;;GAEG;AACH,+FAEyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IAErD,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC;IAEtE,IAAI,IAAA,kCAAY,EAA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,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.ts deleted file mode 100644 index ea9f6d442ce..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguages.ts +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator service to get a list of supported languages - */ -import TextTranslationClient, { - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== List supported languages sample =="); - - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts deleted file mode 100644 index ed7bea4503f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguagesAcceptLanguage.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map deleted file mode 100644 index af9fb2c2660..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesAcceptLanguage.d.ts","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js deleted file mode 100644 index 8882b61cc14..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== List supported localized languages sample =="); - const parameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguagesAcceptLanguage.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map deleted file mode 100644 index 9023ebd2fa3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesAcceptLanguage.js","sourceRoot":"","sources":["getLanguagesAcceptLanguage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA8CC;;AAnED;;;;;;;;;;GAUG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAErF,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IAE/D,MAAM,UAAU,GAA2B;QACzC,OAAO,EAAE;YACP,iBAAiB,EAAE,IAAI;SACxB;KACF,CAAC;IACF,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AAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts deleted file mode 100644 index 8715c108b11..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesAcceptLanguage.ts +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select the language to use for user interface strings. - * Some of the fields in the response are names of languages or names of regions. - * Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. - * For instance, use the value `fr` to request names in French or use the value `zh-Hant` - * to request names in Chinese Traditional. - * - * Names are provided in the English language when a target language is not specified - * or when localization is not available. - */ -import TextTranslationClient, { - GetLanguagesParameters, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== List supported localized languages sample =="); - - const parameters: GetLanguagesParameters = { - headers: { - "Accept-Language": "cs", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts deleted file mode 100644 index 98558a23465..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=getLanguagesScope.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map deleted file mode 100644 index 7f9105369a8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesScope.d.ts","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":"AAiBA,wBAAsB,IAAI,kBA8CzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js deleted file mode 100644 index 5770ac410ee..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -async function main() { - console.log("== Scoped list supported languages sample =="); - const parameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - if ((0, ai_translation_text_1.isUnexpected)(langResponse)) { - throw langResponse.body.error; - } - const languages = langResponse.body; - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log(`${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`); - } - } - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log(`${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`); - } - } - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log(`${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=getLanguagesScope.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map deleted file mode 100644 index 66dbd0e2619..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesScope.js","sourceRoot":"","sources":["getLanguagesScope.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,oBA8CC;;AA5DD;;;GAGG;AACH,+FAGyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAA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AAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACvC,MAAM,kBAAkB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,GAAG,GAAG,aAAa,kBAAkB,CAAC,IAAI,KAAK,kBAAkB,CAAC,UAAU,wCAAwC,kBAAkB,CAAC,YAAY,CAAC,MAAM,EAAE,CAC7J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.ts deleted file mode 100644 index e37118bcbbd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/getLanguagesScope.ts +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get a list of supported languages for a selected scope - */ -import TextTranslationClient, { - GetLanguagesParameters, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; - -export async function main() { - console.log("== Scoped list supported languages sample =="); - - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "translation", - }, - }; - const translationClient = TextTranslationClient(endpoint, undefined, undefined); - const langResponse = await translationClient.path("/languages").get(parameters); - - if (isUnexpected(langResponse)) { - throw langResponse.body.error; - } - - const languages = langResponse.body; - - if (languages.translation) { - console.log("Translated languages:"); - for (const key in languages.translation) { - const translationLanguage = languages.translation[key]; - console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` - ); - } - } - - if (languages.transliteration) { - console.log("Transliteration languages:"); - for (const key in languages.transliteration) { - const transliterationLanguage = languages.transliteration[key]; - console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` - ); - } - } - - if (languages.dictionary) { - console.log("Dictionary languages:"); - for (const key in languages.dictionary) { - const dictionaryLanguage = languages.dictionary[key]; - console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts deleted file mode 100644 index ca9270ec452..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts.map deleted file mode 100644 index a476038ef81..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA2BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js deleted file mode 100644 index b1c4f83a546..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Simple translate sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js.map deleted file mode 100644 index 2ce69d5e833..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translate.js","sourceRoot":"","sources":["translate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA2BC;;AA5CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.ts deleted file mode 100644 index d8256ace170..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translate.ts +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a text which language is know to a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Simple translate sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts deleted file mode 100644 index ea5d8818b27..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateAlignments.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map deleted file mode 100644 index afa02ca0eab..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateAlignments.d.ts","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA8BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js deleted file mode 100644 index 6c6b88bf78b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with alignments sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - includeAlignment: true, - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateAlignments.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js.map deleted file mode 100644 index 6ab4347d107..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateAlignments.js","sourceRoot":"","sources":["translateAlignments.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA8BC;;AA/CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBA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CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.ts deleted file mode 100644 index 33a0af2420a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateAlignments.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can ask translation service to include alignment - * projection from source text to translated text. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with alignments sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "The answer lies in machine translation." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeAlignment: true, - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts deleted file mode 100644 index 422ffa713bc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateCustom.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map deleted file mode 100644 index 8b718cec683..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateCustom.d.ts","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":"AAgCA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js deleted file mode 100644 index 1518b31b2e8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Custom translator sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateCustom.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js.map deleted file mode 100644 index e0ac090d1d0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateCustom.js","sourceRoot":"","sources":["translateCustom.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA+BlC,oBA4BC;;AAzDD;;;;;;;;;;;;;;;GAeG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,wBAAwB;SACrC;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.ts deleted file mode 100644 index 0fac1a635da..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateCustom.ts +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how You can get translations from a customized system built with - * Custom Translator (https://learn.microsoft.com/azure/cognitive-services/translator/customization). Add the Category ID from your Custom Translator [project details](https://learn.microsoft.com/azure/cognitive-services/translator/custom-translator/how-to-create-project#view-project-details) - * to this parameter to use your deployed customized system. - * - * It is possible to set `allowFalback` paramter. It specifies that the service is allowed to - * fall back to a general system when a custom system doesn't exist. Possible values are: - * `true` (default) or `false`. - * - * `allowFallback=false` specifies that the translation should only use systems trained for - * the category specified by the request. If a translation for language X to language Y requires - * chaining through a pivot language E, then all the systems in the chain (X → E and E → Y) - * will need to be custom and have the same category. If no system is found with the specific - * category, the request will return a 400 status code. `allowFallback=true` specifies that - * the service is allowed to fall back to a general system when a custom system doesn't exist. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Custom translator sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - category: "<>", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts deleted file mode 100644 index 0ba089d6c6d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateDetection.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map deleted file mode 100644 index 2b6c98a2652..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDetection.d.ts","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js deleted file mode 100644 index ec178b054ba..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translate sample with auto-detection =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateDetection.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js.map deleted file mode 100644 index 75cae32b50d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDetection.js","sourceRoot":"","sources":["translateDetection.ts"],"names":[],"mappings":";AAAA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BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.ts deleted file mode 100644 index 19a80c8e927..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDetection.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation without specifying the source language to a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translate sample with auto-detection =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts deleted file mode 100644 index 46a59fbb822..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateDictionary.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map deleted file mode 100644 index fce384100b4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDictionary.d.ts","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":"AAwBA,wBAAsB,IAAI,kBA+BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js deleted file mode 100644 index 741d436e2aa..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with Dictionary sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateDictionary.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js.map deleted file mode 100644 index 4dbd1266ede..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateDictionary.js","sourceRoot":"","sources":["translateDictionary.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuBlC,oBA+BC;;AApDD;;;;;;GAMG;AACH,+FAKyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,8GAA8G;SACrH;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAkC,CAAC;IAC1E,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.ts deleted file mode 100644 index 92484a4a7bb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateDictionary.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to keep words if you already know the translation you want - * to apply to a word or a phrase, you can supply it as markup within the request. - * The dynamic dictionary is safe only for compound nouns like proper names and product names. - * - * Note You must include the From parameter in your API translation request instead of using the autodetect feature. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - TranslatedTextItemOutput, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with Dictionary sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { - text: 'The word wordomatic is a dictionary entry.', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body as TranslatedTextItemOutput[]; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts deleted file mode 100644 index 8c46b39a007..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateMultipleSources.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map deleted file mode 100644 index 77232b3cbf0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleSources.d.ts","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js deleted file mode 100644 index c4d12a37e3f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Multiple input texts =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateMultipleSources.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map deleted file mode 100644 index 5487d639380..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleSources.js","sourceRoot":"","sources":["translateMultipleSources.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAiCC;;AAnDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC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AAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.ts deleted file mode 100644 index d83cd59cca9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleSources.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to get translation for a multiple text fields and each input text - * is in different language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Multiple input texts =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` - ); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts deleted file mode 100644 index 6ea17a78854..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateMultipleTargets.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map deleted file mode 100644 index 2162e166baf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleTargets.d.ts","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js deleted file mode 100644 index 99e82ca9287..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Multiple target languages translation =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log(`Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`); - } - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateMultipleTargets.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map deleted file mode 100644 index 6b9bb76b106..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateMultipleTargets.js","sourceRoot":"","sources":["translateMultipleTargets.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA6BC;;AA9CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,IAAI;SACb;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,KAAK,MAAM,OAAO,IAAI,WAAW,CAAC,YAAY,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CACxI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts deleted file mode 100644 index d78da651e7d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateMultipleTargets.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can provide multiple target languages which results - * to each input element be translated to all target languages. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Multiple target languages translation =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs,es,de", - from: "en", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - for (const textKey in translation.translations) { - console.log( - `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` - ); - } - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts deleted file mode 100644 index 2f2ee0dd031..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateNoTranslate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map deleted file mode 100644 index d6a6d67f853..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateNoTranslate.d.ts","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":"AAsBA,wBAAsB,IAAI,kBAgCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js deleted file mode 100644 index 4bce37a366b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Marking text input with notranslate div sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateNoTranslate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map deleted file mode 100644 index 4e5ae6fdcf3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateNoTranslate.js","sourceRoot":"","sources":["translateNoTranslate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,oBAgCC;;AAnDD;;;;;GAKG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB;QACjC;YACE,IAAI,EAAE,gGAAgG;SACvG;KACF,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACnB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.ts deleted file mode 100644 index c44e308f9ef..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateNoTranslate.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how it's sometimes useful to exclude specific content from translation. - * You can use the attribute class=notranslate to specify content that should remain - * in its original language. In the following example, the content inside the first div - * element won't be translated, while the content in the second div element will be translated. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Marking text input with notranslate div sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { - text: '
This will not be translated.
This will be translated.
', - }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts deleted file mode 100644 index e14e29acf78..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateProfanity.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map deleted file mode 100644 index 05066b4a710..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateProfanity.d.ts","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,kBA6BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js deleted file mode 100644 index 2a5c815abdc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Profanity handling sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateProfanity.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js.map deleted file mode 100644 index 56ada6c6e10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateProfanity.js","sourceRoot":"","sources":["translateProfanity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,oBA6BC;;AAxDD;;;;;;;;;;;;;GAaG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAE/C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;IAC9D,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,eAAe,EAAE,QAAQ;YACzB,eAAe,EAAE,UAAU;SAC9B;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.ts deleted file mode 100644 index 1a9120831bf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateProfanity.ts +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to change the profanity handling during translate call. - * Normally the Translator service will retain profanity that is present in the source - * in the translation. The degree of profanity and the context that makes words profane - * differ between cultures, and as a result the degree of profanity in the target language - * may be amplified or reduced. - * - * If you want to avoid getting profanity in the translation, regardless of the presence - * of profanity in the source text, you can use the profanity filtering option. The option - * allows you to choose whether you want to see profanity deleted, whether you want to mark - * profanities with appropriate tags (giving you the option to add your own post-processing), - * or you want no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked` - * and `NoAction` (default). - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Profanity handling sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is ***." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts deleted file mode 100644 index 101a5c995c7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateSenteceLength.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map deleted file mode 100644 index 6b75e480a45..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateSenteceLength.d.ts","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBAqCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js deleted file mode 100644 index 43b2495a731..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translation with sentence boundaries sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [ - { text: "The answer lies in machine translation. This is a test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - includeSentenceLength: true, - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`); - console.log(`Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateSenteceLength.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map deleted file mode 100644 index e4884cc665e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateSenteceLength.js","sourceRoot":"","sources":["translateSenteceLength.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBAqCC;;AAtDD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC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EAAE,CAC/F,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.ts deleted file mode 100644 index 8b03c9d4a75..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateSenteceLength.ts +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to you can ask translator service to include sentence boundaries - * for the input text and the translated text. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translation with sentence boundaries sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [ - { text: "The answer lies in machine translation. This is a test." }, - ]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - - includeSentenceLength: true, - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log( - `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` - ); - console.log( - `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts deleted file mode 100644 index a49db19b58c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateTextType.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map deleted file mode 100644 index 9d0f89b64f7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTextType.d.ts","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js deleted file mode 100644 index ae0cfcc8993..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== HTML translation sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateTextType.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js.map deleted file mode 100644 index 8c8972cd391..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTextType.js","sourceRoot":"","sources":["translateTextType.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,oBA4BC;;AA7CD;;;GAGG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC,CAAC;IAClG,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;QACxE,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;SACnB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,iBAAiB,CAAC,EAAE,CAAC;QACpC,MAAM,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAC5C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAC5H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.ts deleted file mode 100644 index 2eabf2bd627..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateTextType.ts +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how you can select whether the translated text is plain text or HTML text. - * Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== HTML translation sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "cs", - from: "en", - textType: "html", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts deleted file mode 100644 index 8badf54b60c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=translateWithTransliteration.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map deleted file mode 100644 index 450bca60b0a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateWithTransliteration.d.ts","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBAiCzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js deleted file mode 100644 index c2b6b5f7351..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Translate with transliteration sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(translateResponse)) { - throw translateResponse.body.error; - } - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log(`Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`); - console.log(`Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=translateWithTransliteration.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map deleted file mode 100644 index 1786a6c32d5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateWithTransliteration.js","sourceRoot":"","sources":["translateWithTransliteration.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBAiCC;;AAnDD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,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AC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts deleted file mode 100644 index 7f7b06b218f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/translateWithTransliteration.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary You can combine both Translation and Transliteration in one Translate call. - * Your source Text can be in non-standard Script of a language as well as you - * can ask for non-standard Script of a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Translate with transliteration sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; - const translateResponse = await translationClient.path("/translate").post({ - body: inputText, - queryParameters: { - to: "zh-Hans", - toScript: "Latn", - from: "ar", - fromScript: "Latn", - }}); - - if (isUnexpected(translateResponse)) { - throw translateResponse.body.error; - } - - const translations = translateResponse.body; - for (const translation of translations) { - console.log(`Source Text: ${translation.sourceText?.text}`); - console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` - ); - console.log( - `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts deleted file mode 100644 index f30e7d0aa84..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function main(): Promise; -//# sourceMappingURL=transliterate.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts.map deleted file mode 100644 index ea796ef8b38..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterate.d.ts","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":"AAqBA,wBAAsB,IAAI,kBA4BzB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js deleted file mode 100644 index 4b2dbc2fc08..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = main; -const tslib_1 = require("tslib"); -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -const ai_translation_text_1 = tslib_1.__importStar(require("@azure-rest/ai-translation-text")); -const dotenv = tslib_1.__importStar(require("dotenv")); -dotenv.config(); -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; -async function main() { - console.log("== Simple transliterate sample =="); - const translateCedential = { - key: apiKey, - region - }; - const translationClient = (0, ai_translation_text_1.default)(endpoint, translateCedential); - const inputText = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - } - }); - if ((0, ai_translation_text_1.isUnexpected)(transliterateResponse)) { - throw transliterateResponse.body.error; - } - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log(`Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`); - } -} -main().catch((err) => { - console.error(err); -}); -//# sourceMappingURL=transliterate.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js.map deleted file mode 100644 index 61587039015..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterate.js","sourceRoot":"","sources":["transliterate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,oBA4BC;;AA9CD;;;;GAIG;AACH,+FAIyC;AAEzC,uDAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+CAA+C,CAAC;AAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,UAAU,CAAC;AAE5D,KAAK,UAAU,IAAI;IACxB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IAEjD,MAAM,kBAAkB,GAAyB;QAC/C,GAAG,EAAE,MAAM;QACX,MAAM;KACP,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,6BAAqB,EAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxD,MAAM,qBAAqB,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAChF,IAAI,EAAE,SAAS;QACf,eAAe,EAAE;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACnB;KAAC,CAAC,CAAC;IAEJ,IAAI,IAAA,kCAAY,EAAC,qBAAqB,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC;IAChD,KAAK,MAAM,eAAe,IAAI,YAAY,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CACT,qCAAqC,eAAe,EAAE,MAAM,mCAAmC,eAAe,EAAE,IAAI,IAAI,CACzH,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.ts deleted file mode 100644 index 3e96c896734..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/src/transliterate.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @summary This sample demonstrates how to make a simple call to the Azure Text Translator - * service to convert characters or letters of a source language to the corresponding - * characters or letters of a target language. - */ -import TextTranslationClient, { - TranslatorCredential, - InputTextItem, - isUnexpected, -} from "@azure-rest/ai-translation-text"; - -import * as dotenv from "dotenv"; -dotenv.config(); - -const endpoint = process.env["ENDPOINT"] || "https://api.cognitive.microsofttranslator.com"; -const apiKey = process.env["TEXT_TRANSLATOR_API_KEY"] || ""; -const region = process.env["TEXT_TRANSLATOR_REGION"] || ""; - -export async function main() { - console.log("== Simple transliterate sample =="); - - const translateCedential: TranslatorCredential = { - key: apiKey, - region - }; - const translationClient = TextTranslationClient(endpoint, translateCedential); - - const inputText: InputTextItem[] = [{ text: "这是个测试。" }]; - const transliterateResponse = await translationClient.path("/transliterate").post({ - body: inputText, - queryParameters: { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }}); - - if (isUnexpected(transliterateResponse)) { - throw transliterateResponse.body.error; - } - - const translations = transliterateResponse.body; - for (const transliteration of translations) { - console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` - ); - } -} - -main().catch((err) => { - console.error(err); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/tsconfig.json deleted file mode 100644 index e26ce2a6d8f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/samples/v1-beta/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**.ts" - ] -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts deleted file mode 100644 index 0b3aca7c00c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { GetLanguagesParameters, TranslateParameters, TransliterateParameters, FindSentenceBoundariesParameters, LookupDictionaryEntriesParameters, LookupDictionaryExamplesParameters } from "./parameters"; -import { GetLanguages200Response, GetLanguagesDefaultResponse, Translate200Response, TranslateDefaultResponse, Transliterate200Response, TransliterateDefaultResponse, FindSentenceBoundaries200Response, FindSentenceBoundariesDefaultResponse, LookupDictionaryEntries200Response, LookupDictionaryEntriesDefaultResponse, LookupDictionaryExamples200Response, LookupDictionaryExamplesDefaultResponse } from "./responses"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; -export interface GetLanguages { - /** Gets the set of languages currently supported by other operations of the Translator. */ - get(options?: GetLanguagesParameters): StreamableMethod; -} -export interface Translate { - /** Translate Text */ - post(options: TranslateParameters): StreamableMethod; -} -export interface Transliterate { - /** Transliterate Text */ - post(options: TransliterateParameters): StreamableMethod; -} -export interface FindSentenceBoundaries { - /** Find Sentence Boundaries */ - post(options: FindSentenceBoundariesParameters): StreamableMethod; -} -export interface LookupDictionaryEntries { - /** Lookup Dictionary Entries */ - post(options: LookupDictionaryEntriesParameters): StreamableMethod; -} -export interface LookupDictionaryExamples { - /** Lookup Dictionary Examples */ - post(options: LookupDictionaryExamplesParameters): StreamableMethod; -} -export interface Routes { - /** Resource for '/languages' has methods for the following verbs: get */ - (path: "/languages"): GetLanguages; - /** Resource for '/translate' has methods for the following verbs: post */ - (path: "/translate"): Translate; - /** Resource for '/transliterate' has methods for the following verbs: post */ - (path: "/transliterate"): Transliterate; - /** Resource for '/breaksentence' has methods for the following verbs: post */ - (path: "/breaksentence"): FindSentenceBoundaries; - /** Resource for '/dictionary/lookup' has methods for the following verbs: post */ - (path: "/dictionary/lookup"): LookupDictionaryEntries; - /** Resource for '/dictionary/examples' has methods for the following verbs: post */ - (path: "/dictionary/examples"): LookupDictionaryExamples; -} -export type TextTranslationClient = Client & { - path: Routes; -}; -//# sourceMappingURL=clientDefinitions.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts.map deleted file mode 100644 index 666ed83b98d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,kCAAkC,EACnC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,WAAW,YAAY;IAC3B,2FAA2F;IAC3F,GAAG,CACD,OAAO,CAAC,EAAE,sBAAsB,GAC/B,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,SAAS;IACxB,qBAAqB;IACrB,IAAI,CACF,OAAO,EAAE,mBAAmB,GAC3B,gBAAgB,CAAC,oBAAoB,GAAG,wBAAwB,CAAC,CAAC;CACtE;AAED,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,CACF,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,sBAAsB;IACrC,+BAA+B;IAC/B,IAAI,CACF,OAAO,EAAE,gCAAgC,GACxC,gBAAgB,CAAC,iCAAiC,GAAG,qCAAqC,CAAC,CAAC;CAChG;AAED,MAAM,WAAW,uBAAuB;IACtC,gCAAgC;IAChC,IAAI,CACF,OAAO,EAAE,iCAAiC,GACzC,gBAAgB,CAAC,kCAAkC,GAAG,sCAAsC,CAAC,CAAC;CAClG;AAED,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,IAAI,CACF,OAAO,EAAE,kCAAkC,GAC1C,gBAAgB,CACjB,mCAAmC,GAAG,uCAAuC,CAC9E,CAAC;CACH;AAED,MAAM,WAAW,MAAM;IACrB,yEAAyE;IACzE,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY,CAAC;IACnC,0EAA0E;IAC1E,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC;IAChC,8EAA8E;IAC9E,CAAC,IAAI,EAAE,gBAAgB,GAAG,aAAa,CAAC;IACxC,8EAA8E;IAC9E,CAAC,IAAI,EAAE,gBAAgB,GAAG,sBAAsB,CAAC;IACjD,kFAAkF;IAClF,CAAC,IAAI,EAAE,oBAAoB,GAAG,uBAAuB,CAAC;IACtD,oFAAoF;IACpF,CAAC,IAAI,EAAE,sBAAsB,GAAG,wBAAwB,CAAC;CAC1D;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js deleted file mode 100644 index 4241682f193..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=clientDefinitions.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js.map deleted file mode 100644 index 1a49e5540ea..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["clientDefinitions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts deleted file mode 100644 index 202357bbcd6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { AzureKeyCredential, TokenCredential } from "@azure/core-auth"; -import { PipelinePolicy, PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; -export declare const DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; -export interface TranslatorCredential { - key: string; - region: string; -} -export interface TranslatorTokenCredential { - tokenCredential: TokenCredential; - region: string; - azureResourceId: string; -} -export declare class TranslatorAuthenticationPolicy implements PipelinePolicy { - name: string; - credential: TranslatorCredential; - constructor(credential: TranslatorCredential); - sendRequest(request: PipelineRequest, next: SendRequest): Promise; -} -export declare class TranslatorAzureKeyAuthenticationPolicy implements PipelinePolicy { - name: string; - credential: AzureKeyCredential; - constructor(credential: AzureKeyCredential); - sendRequest(request: PipelineRequest, next: SendRequest): Promise; -} -export declare class TranslatorTokenCredentialAuthenticationPolicy implements PipelinePolicy { - name: string; - credential: TranslatorTokenCredential; - constructor(credential: TranslatorTokenCredential); - sendRequest(request: PipelineRequest, next: SendRequest): Promise; -} -//# sourceMappingURL=authentication.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts.map deleted file mode 100644 index 8911d4108fc..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["authentication.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAKnC,eAAO,MAAM,aAAa,iDAAiD,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,8BAA+B,YAAW,cAAc;IACnE,IAAI,EAAE,MAAM,CAAoC;IAChD,UAAU,EAAE,oBAAoB,CAAC;gBAErB,UAAU,EAAE,oBAAoB;IAI5C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMpF;AAED,qBAAa,sCAAuC,YAAW,cAAc;IAC3E,IAAI,EAAE,MAAM,CAA4C;IACxD,UAAU,EAAE,kBAAkB,CAAC;gBAEnB,UAAU,EAAE,kBAAkB;IAI1C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAKpF;AAED,qBAAa,6CAA8C,YAAW,cAAc;IAClF,IAAI,EAAE,MAAM,CAAmD;IAC/D,UAAU,EAAE,yBAAyB,CAAC;gBAE1B,UAAU,EAAE,yBAAyB;IAIjD,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMpF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js deleted file mode 100644 index 04c2475ecf8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TranslatorTokenCredentialAuthenticationPolicy = exports.TranslatorAzureKeyAuthenticationPolicy = exports.TranslatorAuthenticationPolicy = exports.DEFAULT_SCOPE = void 0; -const APIM_KEY_HEADER_NAME = "Ocp-Apim-Subscription-Key"; -const APIM_REGION_HEADER_NAME = "Ocp-Apim-Subscription-Region"; -const APIM_RESOURCE_ID = "Ocp-Apim-ResourceId"; -exports.DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; -class TranslatorAuthenticationPolicy { - name = "TranslatorAuthenticationPolicy"; - credential; - constructor(credential) { - this.credential = credential; - } - sendRequest(request, next) { - request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); - request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); - return next(request); - } -} -exports.TranslatorAuthenticationPolicy = TranslatorAuthenticationPolicy; -class TranslatorAzureKeyAuthenticationPolicy { - name = "TranslatorAzureKeyAuthenticationPolicy"; - credential; - constructor(credential) { - this.credential = credential; - } - sendRequest(request, next) { - request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); - return next(request); - } -} -exports.TranslatorAzureKeyAuthenticationPolicy = TranslatorAzureKeyAuthenticationPolicy; -class TranslatorTokenCredentialAuthenticationPolicy { - name = "TranslatorTokenCredentialAuthenticationPolicy"; - credential; - constructor(credential) { - this.credential = credential; - } - sendRequest(request, next) { - request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); - request.headers.set(APIM_RESOURCE_ID, this.credential.azureResourceId); - return next(request); - } -} -exports.TranslatorTokenCredentialAuthenticationPolicy = TranslatorTokenCredentialAuthenticationPolicy; -//# sourceMappingURL=authentication.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js.map deleted file mode 100644 index 219dc3bba58..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authentication.js","sourceRoot":"","sources":["authentication.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,MAAM,oBAAoB,GAAG,2BAA2B,CAAC;AACzD,MAAM,uBAAuB,GAAG,8BAA8B,CAAC;AAC/D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AAClC,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAa5E,MAAa,8BAA8B;IACzC,IAAI,GAAW,gCAAgC,CAAC;IAChD,UAAU,CAAuB;IAEjC,YAAY,UAAgC;QAC1C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,WAAW,CAAC,OAAwB,EAAE,IAAiB;QACrD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC/D,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAErE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;CACF;AAdD,wEAcC;AAED,MAAa,sCAAsC;IACjD,IAAI,GAAW,wCAAwC,CAAC;IACxD,UAAU,CAAqB;IAE/B,YAAY,UAA8B;QACxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,WAAW,CAAC,OAAwB,EAAE,IAAiB;QACrD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;CACF;AAbD,wFAaC;AAED,MAAa,6CAA6C;IACxD,IAAI,GAAW,+CAA+C,CAAC;IAC/D,UAAU,CAA4B;IAEtC,YAAY,UAAqC;QAC/C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,WAAW,CAAC,OAAwB,EAAE,IAAiB;QACrD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACrE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;CACF;AAdD,sGAcC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts deleted file mode 100644 index 11e312111b5..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ClientOptions } from "@azure-rest/core-client"; -import { TextTranslationClient } from "../clientDefinitions"; -import { TranslatorCredential, TranslatorTokenCredential } from "./authentication"; -import { KeyCredential, TokenCredential } from "@azure/core-auth"; -/** - * Initialize a new instance of `TextTranslationClient` - * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: - * https://api.cognitive.microsofttranslator.com). - * @param options type: ClientOptions, the parameter for all optional parameters - */ -export default function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; -//# sourceMappingURL=customClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts.map deleted file mode 100644 index b69536828e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"customClient.d.ts","sourceRoot":"","sources":["customClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAEL,oBAAoB,EACpB,yBAAyB,EAI1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAsB,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAyBtF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,SAAS,GAAG,MAAM,EAC5B,UAAU,GACN,SAAS,GACT,oBAAoB,GACpB,yBAAyB,GACzB,aAAa,GACb,eAA2B,EAC/B,OAAO,GAAE,aAAkB,GAC1B,qBAAqB,CA8DvB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js deleted file mode 100644 index e456035ba44..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = createClient; -const tslib_1 = require("tslib"); -const core_client_1 = require("@azure-rest/core-client"); -const logger_1 = require("../logger"); -const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline")); -const authentication_1 = require("./authentication"); -const DEFAULT_ENPOINT = "https://api.cognitive.microsofttranslator.com"; -const PLATFORM_HOST = "cognitiveservices"; -const PLATFORM_PATH = "/translator/text/v3.0"; -function isKeyCredential(credential) { - return credential?.key !== undefined; -} -function isTranslatorKeyCredential(credential) { - return credential?.key !== undefined; -} -function isTokenCredential(credential) { - return credential?.getToken !== undefined; -} -function isTranslatorTokenCredential(credential) { - return (credential?.tokenCredential !== undefined && - credential?.azureResourceId !== undefined); -} -/** - * Initialize a new instance of `TextTranslationClient` - * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: - * https://api.cognitive.microsofttranslator.com). - * @param options type: ClientOptions, the parameter for all optional parameters - */ -function createClient(endpoint, credential = undefined, options = {}) { - let serviceEndpoint; - options.apiVersion = options.apiVersion ?? "3.0"; - if (!endpoint) { - serviceEndpoint = DEFAULT_ENPOINT; - } - else if (endpoint.toLowerCase().indexOf(PLATFORM_HOST) !== -1) { - serviceEndpoint = `${endpoint}${PLATFORM_PATH}`; - } - else { - serviceEndpoint = endpoint; - } - const baseUrl = options.baseUrl ?? `${serviceEndpoint}`; - const userAgentInfo = `azsdk-js-ai-translation-text-rest/1.0.0-beta.2`; - const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` - : `${userAgentInfo}`; - options = { - ...options, - userAgentOptions: { - userAgentPrefix, - }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger_1.logger.info, - }, - }; - const client = (0, core_client_1.getClient)(baseUrl, options); - if (isTranslatorKeyCredential(credential)) { - const mtAuthneticationPolicy = new authentication_1.TranslatorAuthenticationPolicy(credential); - client.pipeline.addPolicy(mtAuthneticationPolicy); - } - else if (isKeyCredential(credential)) { - const mtKeyAuthenticationPolicy = new authentication_1.TranslatorAzureKeyAuthenticationPolicy(credential); - client.pipeline.addPolicy(mtKeyAuthenticationPolicy); - } - else if (isTokenCredential(credential)) { - client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credential, - scopes: authentication_1.DEFAULT_SCOPE, - })); - } - else if (isTranslatorTokenCredential(credential)) { - client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credential.tokenCredential, - scopes: authentication_1.DEFAULT_SCOPE, - })); - client.pipeline.addPolicy(new authentication_1.TranslatorTokenCredentialAuthenticationPolicy(credential)); - } - return client; -} -//# sourceMappingURL=customClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js.map deleted file mode 100644 index ad4c129c28e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"customClient.js","sourceRoot":"","sources":["customClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6ClC,+BAuEC;;AAlHD,yDAAmE;AACnE,sCAAmC;AACnC,oFAA8D;AAE9D,qDAO0B;AAG1B,MAAM,eAAe,GAAG,+CAA+C,CAAC;AACxE,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAC1C,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,SAAS,eAAe,CAAC,UAAe;IACtC,OAAQ,UAA4B,EAAE,GAAG,KAAK,SAAS,CAAC;AAC1D,CAAC;AAED,SAAS,yBAAyB,CAAC,UAAe;IAChD,OAAQ,UAAmC,EAAE,GAAG,KAAK,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F,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,OAAO,EAAE,OAAO,CAA0B,CAAC;IAEpE,IAAI,yBAAyB,CAAC,UAAU,CAAC,EAAE,CAAC;QAC1C,MAAM,sBAAsB,GAAG,IAAI,+CAA8B,CAC/D,UAAkC,CACnC,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IACpD,CAAC;SAAM,IAAI,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QACvC,MAAM,yBAAyB,GAAG,IAAI,uDAAsC,CAC1E,UAAgC,CACjC,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IACvD,CAAC;SAAM,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;QACzC,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,gBAAgB,CAAC,+BAA+B,CAAC;YAC/C,UAAU,EAAE,UAA6B;YACzC,MAAM,EAAE,8BAAa;SACtB,CAAC,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,2BAA2B,CAAC,UAAU,CAAC,EAAE,CAAC;QACnD,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,gBAAgB,CAAC,+BAA+B,CAAC;YAC/C,UAAU,EAAG,UAAwC,CAAC,eAAe;YACrE,MAAM,EAAE,8BAAa;SACtB,CAAC,CACH,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,IAAI,8DAA6C,CAAC,UAAuC,CAAC,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts deleted file mode 100644 index c815d85cec7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import TextTranslationClient from "./custom/customClient"; -export * from "./custom/customClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./serializeHelper"; -export { TranslatorCredential, TranslatorTokenCredential } from "./custom/authentication"; -export default TextTranslationClient; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts.map deleted file mode 100644 index c43ad692f47..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,MAAM,uBAAuB,CAAC;AAE1D,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,eAAe,qBAAqB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js deleted file mode 100644 index d66595fa050..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -const customClient_1 = tslib_1.__importDefault(require("./custom/customClient")); -tslib_1.__exportStar(require("./custom/customClient"), exports); -tslib_1.__exportStar(require("./parameters"), exports); -tslib_1.__exportStar(require("./responses"), exports); -tslib_1.__exportStar(require("./clientDefinitions"), exports); -tslib_1.__exportStar(require("./isUnexpected"), exports); -tslib_1.__exportStar(require("./models"), exports); -tslib_1.__exportStar(require("./outputModels"), exports); -tslib_1.__exportStar(require("./serializeHelper"), exports); -exports.default = customClient_1.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js.map deleted file mode 100644 index c484a7d0566..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iFAA0D;AAE1D,gEAAsC;AACtC,uDAA6B;AAC7B,sDAA4B;AAC5B,8DAAoC;AACpC,yDAA+B;AAC/B,mDAAyB;AACzB,yDAA+B;AAC/B,4DAAkC;AAGlC,kBAAe,sBAAqB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts deleted file mode 100644 index 260938b2f45..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { GetLanguages200Response, GetLanguagesDefaultResponse, Translate200Response, TranslateDefaultResponse, Transliterate200Response, TransliterateDefaultResponse, FindSentenceBoundaries200Response, FindSentenceBoundariesDefaultResponse, LookupDictionaryEntries200Response, LookupDictionaryEntriesDefaultResponse, LookupDictionaryExamples200Response, LookupDictionaryExamplesDefaultResponse } from "./responses"; -export declare function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; -export declare function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; -export declare function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; -export declare function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; -export declare function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; -export declare function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; -//# sourceMappingURL=isUnexpected.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts.map deleted file mode 100644 index ca58e4fe810..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,aAAa,CAAC;AAWrB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oBAAoB,GAAG,wBAAwB,GACxD,QAAQ,IAAI,wBAAwB,CAAC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wBAAwB,GAAG,4BAA4B,GAChE,QAAQ,IAAI,4BAA4B,CAAC;AAC5C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,iCAAiC,GAAG,qCAAqC,GAClF,QAAQ,IAAI,qCAAqC,CAAC;AACrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,kCAAkC,GAAG,sCAAsC,GACpF,QAAQ,IAAI,sCAAsC,CAAC;AACtD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,mCAAmC,GAAG,uCAAuC,GACtF,QAAQ,IAAI,uCAAuC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js deleted file mode 100644 index c65b3b4f2c3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isUnexpected = isUnexpected; -const responseMap = { - "GET /languages": ["200"], - "POST /translate": ["200"], - "POST /transliterate": ["200"], - "POST /breaksentence": ["200"], - "POST /dictionary/lookup": ["200"], - "POST /dictionary/examples": ["200"], -}; -function isUnexpected(response) { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} -function getParametrizedPathSuccess(method, path) { - const pathParts = path.split("/"); - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, matchedValue = []; - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - // track if we have found a match to return the values found. - let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { - const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); - if (!isMatched) { - found = false; - break; - } - continue; - } - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - return matchedValue; -} -function getPathFromMapKey(mapKey) { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} -//# sourceMappingURL=isUnexpected.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js.map deleted file mode 100644 index 238bab8b0c9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["isUnexpected.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA4ClC,oCA6BC;AAxDD,MAAM,WAAW,GAA6B;IAC5C,gBAAgB,EAAE,CAAC,KAAK,CAAC;IACzB,iBAAiB,EAAE,CAAC,KAAK,CAAC;IAC1B,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,yBAAyB,EAAE,CAAC,KAAK,CAAC;IAClC,2BAA2B,EAAE,CAAC,KAAK,CAAC;CACrC,CAAC;AAoBF,SAAgB,YAAY,CAC1B,QAY2C;IAQ3C,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,QAAQ,CA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tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts deleted file mode 100644 index 66ece8e69dd..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const logger: any; -//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts.map deleted file mode 100644 index f8f65055158..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,KAA4C,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js deleted file mode 100644 index 5c950d128da..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.logger = void 0; -const logger_1 = require("@azure/logger"); -exports.logger = (0, logger_1.createClientLogger)("ai-translation-text"); -//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js.map deleted file mode 100644 index d8f613d3a81..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.js","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0CAAmD;AACtC,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts deleted file mode 100644 index 0fd390d0877..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** Element containing the text for translation. */ -export interface InputTextItem { - /** Text to translate. */ - text: string; -} -/** Element containing the text with translation. */ -export interface DictionaryExampleTextItem extends InputTextItem { - /** - * A string specifying the translated text previously returned by the Dictionary lookup operation. - * This should be the value from the normalizedTarget field in the translations list of the Dictionary - * lookup response. The service will return examples for the specific source-target word-pair. - */ - translation: string; -} -//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts.map deleted file mode 100644 index d2430a1004b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":"AAGA,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oDAAoD;AACpD,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC9D;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js deleted file mode 100644 index 783931f3080..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js.map deleted file mode 100644 index 7d51b00eabf..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"models.js","sourceRoot":"","sources":["models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts deleted file mode 100644 index 81564eb6b4c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts +++ /dev/null @@ -1,297 +0,0 @@ -/** Response for the languages API. */ -export interface GetLanguagesResultOutput { - /** Languages that support translate API. */ - translation?: Record; - /** Languages that support transliteration API. */ - transliteration?: Record; - /** Languages that support dictionary API. */ - dictionary?: Record; -} -/** - * The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. - * A key identifies a language for which text can be translated to or translated from. - */ -export interface TranslationLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; -} -/** - * The value of the transliteration property is a dictionary of (key, value) pairs. - * Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script - * to another script. - */ -export interface TransliterationLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** List of scripts to convert from. */ - scripts: Array; -} -/** Script definition with list of script into which given script can be translitered. */ -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - /** List of scripts available to convert text to. */ - toScripts: Array; -} -/** Common properties of language script */ -export interface CommonScriptModelOutput { - /** Code identifying the script. */ - code: string; - /** Display name of the script in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for the language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; -} -/** Properties ot the source dictionary language */ -export interface SourceDictionaryLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; - /** List of languages with alterative translations and examples for the query expressed in the source language. */ - translations: Array; -} -/** Properties of the target dictionary language */ -export interface TargetDictionaryLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; - /** Language code identifying the target language. */ - code: string; -} -/** Representation of the Error Response from Translator Service. */ -export interface ErrorResponseOutput { - /** Error details. */ - error: ErrorDetailsOutput; -} -/** Error details as returned by Translator Service. */ -export interface ErrorDetailsOutput { - /** Number identifier of the error. */ - code: number; - /** Human readable error description. */ - message: string; -} -/** Element containing the translated text */ -export interface TranslatedTextItemOutput { - /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ - detectedLanguage?: DetectedLanguageOutput; - /** - * An array of translation results. The size of the array matches the number of target - * languages specified through the to query parameter. - */ - translations: Array; - /** - * Input text in the default script of the source language. sourceText property is present only when - * the input is expressed in a script that's not the usual script for the language. For example, - * if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text - * converted into Arab script. - */ - sourceText?: SourceTextOutput; -} -/** An object describing the detected language. */ -export interface DetectedLanguageOutput { - /** A string representing the code of the detected language. */ - language: string; - /** - * A float value indicating the confidence in the result. - * The score is between zero and one and a low score indicates a low confidence. - */ - score: number; -} -/** Translation result */ -export interface TranslationOutput { - /** A string representing the language code of the target language. */ - to: string; - /** A string giving the translated text. */ - text: string; - /** An object giving the translated text in the script specified by the toScript parameter. */ - transliteration?: TransliteratedTextOutput; - /** Alignment information. */ - alignment?: TranslatedTextAlignmentOutput; - /** Sentence boundaries in the input and output texts. */ - sentLen?: SentenceLengthOutput; -} -/** Transliterated text element. */ -export interface TransliteratedTextOutput { - /** A string which is the result of converting the input string to the output script. */ - text: string; - /** A string specifying the script used in the output. */ - script: string; -} -/** Alignment information object. */ -export interface TranslatedTextAlignmentOutput { - /** - * Maps input text to translated text. The alignment information is only provided when the request - * parameter includeAlignment is true. Alignment is returned as a string value of the following - * format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. - * The colon separates start and end index, the dash separates the languages, and space separates the words. - * One word may align with zero, one, or multiple words in the other language, and the aligned words may - * be non-contiguous. When no alignment information is available, the alignment element will be empty. - */ - proj: string; -} -/** An object returning sentence boundaries in the input and output texts. */ -export interface SentenceLengthOutput { - /** - * An integer array representing the lengths of the sentences in the input text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - srcSentLen: number[]; - /** - * An integer array representing the lengths of the sentences in the translated text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - transSentLen: number[]; -} -/** Input text in the default script of the source language. */ -export interface SourceTextOutput { - /** Input text in the default script of the source language. */ - text: string; -} -/** Item containing break sentence result. */ -export interface BreakSentenceItemOutput { - /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ - detectedLanguage?: DetectedLanguageOutput; - /** - * An integer array representing the lengths of the sentences in the input text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - sentLen: number[]; -} -/** Dictionary Lookup Element */ -export interface DictionaryLookupItemOutput { - /** - * A string giving the normalized form of the source term. - * For example, if the request is "JOHN", the normalized form will be "john". - * The content of this field becomes the input to lookup examples. - */ - normalizedSource: string; - /** - * A string giving the source term in a form best suited for end-user display. - * For example, if the input is "JOHN", the display form will reflect the usual - * spelling of the name: "John". - */ - displaySource: string; - /** A list of translations for the source term. */ - translations: Array; -} -/** Translation source term. */ -export interface DictionaryTranslationOutput { - /** - * A string giving the normalized form of this term in the target language. - * This value should be used as input to lookup examples. - */ - normalizedTarget: string; - /** - * A string giving the term in the target language and in a form best suited - * for end-user display. Generally, this will only differ from the normalizedTarget - * in terms of capitalization. For example, a proper noun like "Juan" will have - * normalizedTarget = "juan" and displayTarget = "Juan". - */ - displayTarget: string; - /** A string associating this term with a part-of-speech tag. */ - posTag: string; - /** - * A value between 0.0 and 1.0 which represents the "confidence" - * (or perhaps more accurately, "probability in the training data") of that translation pair. - * The sum of confidence scores for one source word may or may not sum to 1.0. - */ - confidence: number; - /** - * A string giving the word to display as a prefix of the translation. Currently, - * this is the gendered determiner of nouns, in languages that have gendered determiners. - * For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. - * This is only dependent on the translation, and not on the source. - * If there is no prefix, it will be the empty string. - */ - prefixWord: string; - /** - * A list of "back translations" of the target. For example, source words that the target can translate to. - * The list is guaranteed to contain the source word that was requested (e.g., if the source word being - * looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). - * However, it is not guaranteed to be in the first position, and often will not be. - */ - backTranslations: Array; -} -/** Back Translation */ -export interface BackTranslationOutput { - /** - * A string giving the normalized form of the source term that is a back-translation of the target. - * This value should be used as input to lookup examples. - */ - normalizedText: string; - /** - * A string giving the source term that is a back-translation of the target in a form best - * suited for end-user display. - */ - displayText: string; - /** - * An integer representing the number of examples that are available for this translation pair. - * Actual examples must be retrieved with a separate call to lookup examples. The number is mostly - * intended to facilitate display in a UX. For example, a user interface may add a hyperlink - * to the back-translation if the number of examples is greater than zero and show the back-translation - * as plain text if there are no examples. Note that the actual number of examples returned - * by a call to lookup examples may be less than numExamples, because additional filtering may be - * applied on the fly to remove "bad" examples. - */ - numExamples: number; - /** - * An integer representing the frequency of this translation pair in the data. The main purpose of this - * field is to provide a user interface with a means to sort back-translations so the most frequent terms are first. - */ - frequencyCount: number; -} -/** Dictionary Example element */ -export interface DictionaryExampleItemOutput { - /** - * A string giving the normalized form of the source term. Generally, this should be identical - * to the value of the Text field at the matching list index in the body of the request. - */ - normalizedSource: string; - /** - * A string giving the normalized form of the target term. Generally, this should be identical - * to the value of the Translation field at the matching list index in the body of the request. - */ - normalizedTarget: string; - /** A list of examples for the (source term, target term) pair. */ - examples: Array; -} -/** Dictionary Example */ -export interface DictionaryExampleOutput { - /** - * The string to concatenate before the value of sourceTerm to form a complete example. - * Do not add a space character, since it is already there when it should be. - * This value may be an empty string. - */ - sourcePrefix: string; - /** - * A string equal to the actual term looked up. The string is added with sourcePrefix - * and sourceSuffix to form the complete example. Its value is separated so it can be - * marked in a user interface, e.g., by bolding it. - */ - sourceTerm: string; - /** - * The string to concatenate after the value of sourceTerm to form a complete example. - * Do not add a space character, since it is already there when it should be. - * This value may be an empty string. - */ - sourceSuffix: string; - /** A string similar to sourcePrefix but for the target. */ - targetPrefix: string; - /** A string similar to sourceTerm but for the target. */ - targetTerm: string; - /** A string similar to sourceSuffix but for the target. */ - targetSuffix: string; -} -//# sourceMappingURL=outputModels.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts.map deleted file mode 100644 index ce0bc472989..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":"AAGA,sCAAsC;AACtC,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACxD,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC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ACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,QAAQ,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;CAC1C;AAED,yBAAyB;AACzB,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js deleted file mode 100644 index ff891030193..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=outputModels.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js.map deleted file mode 100644 index ca27ed678c2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["outputModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts deleted file mode 100644 index ed444dacea2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts +++ /dev/null @@ -1,238 +0,0 @@ -import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; -import { RequestParameters } from "@azure-rest/core-client"; -import { InputTextItem, DictionaryExampleTextItem } from "./models"; -export interface GetLanguagesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; - /** - * The language to use for user interface strings. Some of the fields in the response are names of languages or - * names of regions. Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` - * to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. - * Names are provided in the English language when a target language is not specified or when localization - * is not available. - */ - "Accept-Language"?: string; - /** - * Passing the value of the ETag response header in an If-None-Match field will allow the service to optimize the response. - * If the resource has not been modified, the service will return status code 304 and an empty response body. - */ - "If-None-Match"?: string; -} -export interface GetLanguagesQueryParamProperties { - /** - * A comma-separated list of names defining the group of languages to return. - * Allowed group names are: `translation`, `transliteration` and `dictionary`. - * If no scope is given, then all groups are returned, which is equivalent to passing - * `scope=translation,transliteration,dictionary`. To decide which set of supported languages - * is appropriate for your scenario, see the description of the [response object](#response-body). - */ - scope?: string; -} -export interface GetLanguagesQueryParam { - queryParameters?: GetLanguagesQueryParamProperties; -} -export interface GetLanguagesHeaderParam { - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} -export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; -export interface TranslateHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface TranslateBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface TranslateQueryParamProperties { - /** - * Specifies the language of the output text. The target language must be one of the supported languages included - * in the translation scope. For example, use to=de to translate to German. - * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. - * For example, use to=de&to=it to translate to German and Italian. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request - */ - to: string; - /** - * Specifies the language of the input text. Find which languages are available to translate from by - * looking up supported languages using the translation scope. If the from parameter isn't specified, - * automatic language detection is applied to determine the source language. - * - * You must use the from parameter rather than autodetection when using the dynamic dictionary feature. - * Note: the dynamic dictionary feature is case-sensitive. - */ - from?: string; - /** - * Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, - * complete element. Possible values are: plain (default) or html. - */ - textType?: string; - /** - * A string specifying the category (domain) of the translation. This parameter is used to get translations - * from a customized system built with Custom Translator. Add the Category ID from your Custom Translator - * project details to this parameter to use your deployed customized system. Default value is: general. - */ - category?: string; - /** - * Specifies how profanities should be treated in translations. - * Possible values are: NoAction (default), Marked or Deleted. - */ - profanityAction?: string; - /** - * Specifies how profanities should be marked in translations. - * Possible values are: Asterisk (default) or Tag. - */ - profanityMarker?: string; - /** - * Specifies whether to include alignment projection from source text to translated text. - * Possible values are: true or false (default). - */ - includeAlignment?: boolean; - /** - * Specifies whether to include sentence boundaries for the input text and the translated text. - * Possible values are: true or false (default). - */ - includeSentenceLength?: boolean; - /** - * Specifies a fallback language if the language of the input text can't be identified. - * Language autodetection is applied when the from parameter is omitted. If detection fails, - * the suggestedFrom language will be assumed. - */ - suggestedFrom?: string; - /** Specifies the script of the input text. */ - fromScript?: string; - /** Specifies the script of the translated text. */ - toScript?: string; - /** - * Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. - * Possible values are: true (default) or false. - * - * allowFallback=false specifies that the translation should only use systems trained for the category specified - * by the request. If a translation for language X to language Y requires chaining through a pivot language E, - * then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. - * If no system is found with the specific category, the request will return a 400 status code. allowFallback=true - * specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. - */ - allowFallback?: boolean; -} -export interface TranslateQueryParam { - queryParameters: TranslateQueryParamProperties; -} -export interface TranslateHeaderParam { - headers?: RawHttpHeadersInput & TranslateHeaders; -} -export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; -export interface TransliterateHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface TransliterateBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface TransliterateQueryParamProperties { - /** - * Specifies the language of the text to convert from one script to another. - * Possible languages are listed in the transliteration scope obtained by querying the service - * for its supported languages. - */ - language: string; - /** - * Specifies the script used by the input text. Look up supported languages using the transliteration scope, - * to find input scripts available for the selected language. - */ - fromScript: string; - /** - * Specifies the output script. Look up supported languages using the transliteration scope, to find output - * scripts available for the selected combination of input language and input script. - */ - toScript: string; -} -export interface TransliterateQueryParam { - queryParameters: TransliterateQueryParamProperties; -} -export interface TransliterateHeaderParam { - headers?: RawHttpHeadersInput & TransliterateHeaders; -} -export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; -export interface FindSentenceBoundariesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface FindSentenceBoundariesBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface FindSentenceBoundariesQueryParamProperties { - /** - * Language tag identifying the language of the input text. - * If a code isn't specified, automatic language detection will be applied. - */ - language?: string; - /** - * Script tag identifying the script used by the input text. - * If a script isn't specified, the default script of the language will be assumed. - */ - script?: string; -} -export interface FindSentenceBoundariesQueryParam { - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} -export interface FindSentenceBoundariesHeaderParam { - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; -export interface LookupDictionaryEntriesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface LookupDictionaryEntriesBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface LookupDictionaryEntriesQueryParamProperties { - /** - * Specifies the language of the input text. - * The source language must be one of the supported languages included in the dictionary scope. - */ - from: string; - /** - * Specifies the language of the output text. - * The target language must be one of the supported languages included in the dictionary scope. - */ - to: string; -} -export interface LookupDictionaryEntriesQueryParam { - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} -export interface LookupDictionaryEntriesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; -export interface LookupDictionaryExamplesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} -export interface LookupDictionaryExamplesBodyParam { - /** Defines the content of the request */ - body: Array; -} -export interface LookupDictionaryExamplesQueryParamProperties { - /** - * Specifies the language of the input text. - * The source language must be one of the supported languages included in the dictionary scope. - */ - from: string; - /** - * Specifies the language of the output text. - * The target language must be one of the supported languages included in the dictionary scope. - */ - to: string; -} -export interface LookupDictionaryExamplesQueryParam { - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} -export interface LookupDictionaryExamplesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; -//# sourceMappingURL=parameters.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts.map deleted file mode 100644 index 6e5d5579cfb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,CAAC,EAAE,gCAAgC,CAAC;CACpD;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;CACrD;AAED,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GACzD,uBAAuB,GACvB,iBAAiB,CAAC;AAEpB,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC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,CAAC,EAAE,mBAAmB,GAAG,8BAA8B,CAAC;CAChE;AAED,MAAM,MAAM,iCAAiC,GAAG,iCAAiC,GAC/E,kCAAkC,GAClC,gCAAgC,GAChC,iBAAiB,CAAC;AAEpB,MAAM,WAAW,+BAA+B;IAC9C,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,4CAA4C;IAC3D;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kCAAkC;IACjD,eAAe,EAAE,4CAA4C,CAAC;CAC/D;AAED,MAAM,WAAW,mCAAmC;IAClD,OAAO,CAAC,EAAE,mBAAmB,GAAG,+BAA+B,CAAC;CACjE;AAED,MAAM,MAAM,kCAAkC,GAAG,kCAAkC,GACjF,mCAAmC,GACnC,iCAAiC,GACjC,iBAAiB,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js deleted file mode 100644 index 5f2ab1f652e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=parameters.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js.map deleted file mode 100644 index 30d9e4dbe93..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameters.js","sourceRoot":"","sources":["parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts deleted file mode 100644 index 7f9908d2f42..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { GetLanguagesResultOutput, ErrorResponseOutput, TranslatedTextItemOutput, TransliteratedTextOutput, BreakSentenceItemOutput, DictionaryLookupItemOutput, DictionaryExampleItemOutput } from "./outputModels"; -export interface GetLanguages200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; - /** - * Current value of the entity tag for the requested groups of supported languages. - * To make subsequent requests more efficient, the client may send the `ETag` value in an - * `If-None-Match` header field. - */ - etag: string; -} -/** The request has succeeded. */ -export interface GetLanguages200Response extends HttpResponse { - status: "200"; - body: GetLanguagesResultOutput; - headers: RawHttpHeaders & GetLanguages200Headers; -} -export interface GetLanguagesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface GetLanguagesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; -} -export interface Translate200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; - /** - * Specifies the system type that was used for translation for each 'to' language requested for translation. - * The value is a comma-separated list of strings. Each string indicates a type: - * - * * Custom - Request includes a custom system and at least one custom system was used during translation. - * * Team - All other requests - */ - "x-mt-system": string; - /** - * Specifies consumption (the number of characters for which the user will be charged) for the translation - * job request. For example, if the word "Hello" is translated from English (en) to French (fr), - * this field will return the value '5'. - */ - "x-metered-usage": number; -} -/** Response for the translation API. */ -export interface Translate200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & Translate200Headers; -} -export interface TranslateDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface TranslateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & TranslateDefaultHeaders; -} -export interface Transliterate200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -/** Response for the transliteration API. */ -export interface Transliterate200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & Transliterate200Headers; -} -export interface TransliterateDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface TransliterateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & TransliterateDefaultHeaders; -} -export interface FindSentenceBoundaries200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -/** Response for the Break SEntence API. */ -export interface FindSentenceBoundaries200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; -} -export interface FindSentenceBoundariesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; -} -export interface LookupDictionaryEntries200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -/** Response for the dictionary lookup API. */ -export interface LookupDictionaryEntries200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; -} -export interface LookupDictionaryEntriesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; -} -export interface LookupDictionaryExamples200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -/** Response for the dictionary examples API. */ -export interface LookupDictionaryExamples200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; -} -export interface LookupDictionaryExamplesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; -} -//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts.map deleted file mode 100644 index 1b10601df71..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responses.d.ts","sourceRoot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AmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,EAAE,cAAc,GAAG,iCAAiC,CAAC;CAC7D;AAED,MAAM,WAAW,qCAAqC;IACpD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,cAAc,GAAG,qCAAqC,CAAC;CACjE;AAED,MAAM,WAAW,kCAAkC;IACjD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,gDAAgD;AAChD,MAAM,WAAW,mCAAoC,SAAQ,YAAY;IACvE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACzC,OAAO,EAAE,cAAc,GAAG,kCAAkC,CAAC;CAC9D;AAED,MAAM,WAAW,sCAAsC;IACrD,uGAAuG;IACvG,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uCAAwC,SAAQ,YAAY;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,cAAc,GAAG,sCAAsC,CAAC;CAClE"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js deleted file mode 100644 index c1f0652be92..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js.map deleted file mode 100644 index 985ea679d9d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responses.js","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts deleted file mode 100644 index 322bc07c3d1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function buildMultiCollection(items: string[], parameterName: string): string; -//# sourceMappingURL=serializeHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts.map deleted file mode 100644 index 12a8c4395a2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serializeHelper.d.ts","sourceRoot":"","sources":["serializeHelper.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CASnF"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js deleted file mode 100644 index 7cbc1277126..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.buildMultiCollection = buildMultiCollection; -function buildMultiCollection(items, parameterName) { - return items - .map((item, index) => { - if (index === 0) { - return item; - } - return `${parameterName}=${item}`; - }) - .join("&"); -} -//# sourceMappingURL=serializeHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js.map deleted file mode 100644 index 3770ca91fa6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serializeHelper.js","sourceRoot":"","sources":["serializeHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,oDASC;AATD,SAAgB,oBAAoB,CAAC,KAAe,EAAE,aAAqB;IACzE,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACnB,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,GAAG,aAAa,IAAI,IAAI,EAAE,CAAC;IACpC,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts deleted file mode 100644 index ee7d42963d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=breakSentenceTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts.map deleted file mode 100644 index 5dc888b8a0a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceTest.spec.d.ts","sourceRoot":"","sources":["breakSentenceTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js deleted file mode 100644 index 377d75b498f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("BreakSentence tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("auto detect", async () => { - const inputText = [{ text: "hello world" }]; - const response = await client.path("/breaksentence").post({ - body: inputText, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const breakSentences = response.body; - chai_1.assert.isTrue(breakSentences[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(breakSentences[0].detectedLanguage?.score === 0.98); - chai_1.assert.isTrue(breakSentences[0].sentLen[0] === 11); - }); - it("with language", async () => { - const inputText = [ - { - text: "รวบรวมแผ่นคำตอบ ระยะเวลาของโครงการ วิธีเลือกชายในฝัน หมายเลขซีเรียลของระเบียน วันที่สิ้นสุดของโครงการเมื่อเสร็จสมบูรณ์ ปีที่มีการรวบรวม ทุกคนมีวัฒนธรรมและวิธีคิดเหมือนกัน ได้รับโทษจำคุกตลอดชีวิตใน ฉันลดได้ถึง 55 ปอนด์ได้อย่างไร ฉันคิดว่าใครๆ ก็ต้องการกำหนดเมนูอาหารส่วนบุคคล", - }, - ]; - const parameters = { - language: "th", - }; - const response = await client.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const breakSentences = response.body; - const expectedLengths = [78, 41, 110, 46]; - for (let i = 0; i < expectedLengths.length; i++) { - chai_1.assert.equal(expectedLengths[i], breakSentences[0].sentLen[i]); - } - }); - it("with language and script", async () => { - const inputText = [{ text: "zhè shì gè cè shì。" }]; - const parameters = { - language: "zh-Hans", - script: "Latn", - }; - const response = await client.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const breakSentences = response.body; - chai_1.assert.equal(breakSentences[0].sentLen[0], 18); - }); - it("with multiple languages", async () => { - const inputText = [ - { text: "hello world" }, - { text: "العالم هو مكان مثير جدا للاهتمام" }, - ]; - const response = await client.path("/breaksentence").post({ - body: inputText, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const breakSentences = response.body; - chai_1.assert.equal(breakSentences[0].detectedLanguage?.language, "en"); - chai_1.assert.equal(breakSentences[1].detectedLanguage?.language, "ar"); - chai_1.assert.equal(breakSentences[0].sentLen[0], 11); - chai_1.assert.equal(breakSentences[1].sentLen[0], 32); - }); -}); -//# sourceMappingURL=breakSentenceTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js.map deleted file mode 100644 index 77cd02603f2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"breakSentenceTest.spec.js","sourceRoot":"","sources":["breakSentenceTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC3B,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;YACxD,IAAI,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAiC,CAAC;QAClE,aAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,QAAQ,KAAK,IAAI,CAAC,CAAC;QACrE,aAAM,CAAC,MAAM,CAAC,c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AC,CAAC;QACjE,aAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;QACjE,aAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,aAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.ts deleted file mode 100644 index 636deab8e38..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/breakSentenceTest.spec.ts +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - BreakSentenceItemOutput, - FindSentenceBoundariesQueryParamProperties, - InputTextItem, - TextTranslationClient, - isUnexpected, -} from "../../src"; -import { createTranslationClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("BreakSentence tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("auto detect", async () => { - const inputText: InputTextItem[] = [{ text: "hello world" }]; - const response = await client.path("/breaksentence").post({ - body: inputText, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const breakSentences = response.body as BreakSentenceItemOutput[]; - assert.isTrue(breakSentences[0].detectedLanguage?.language === "en"); - assert.isTrue(breakSentences[0].detectedLanguage?.score === 0.98); - assert.isTrue(breakSentences[0].sentLen[0] === 11); - }); - - it("with language", async () => { - const inputText: InputTextItem[] = [ - { - text: "รวบรวมแผ่นคำตอบ ระยะเวลาของโครงการ วิธีเลือกชายในฝัน หมายเลขซีเรียลของระเบียน วันที่สิ้นสุดของโครงการเมื่อเสร็จสมบูรณ์ ปีที่มีการรวบรวม ทุกคนมีวัฒนธรรมและวิธีคิดเหมือนกัน ได้รับโทษจำคุกตลอดชีวิตใน ฉันลดได้ถึง 55 ปอนด์ได้อย่างไร ฉันคิดว่าใครๆ ก็ต้องการกำหนดเมนูอาหารส่วนบุคคล", - }, - ]; - const parameters: FindSentenceBoundariesQueryParamProperties & Record = { - language: "th", - }; - const response = await client.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const breakSentences = response.body as BreakSentenceItemOutput[]; - - const expectedLengths = [78, 41, 110, 46]; - for (let i = 0; i < expectedLengths.length; i++) { - assert.equal(expectedLengths[i], breakSentences[0].sentLen[i]); - } - }); - - it("with language and script", async () => { - const inputText: InputTextItem[] = [{ text: "zhè shì gè cè shì。" }]; - const parameters: FindSentenceBoundariesQueryParamProperties & Record = { - language: "zh-Hans", - script: "Latn", - }; - const response = await client.path("/breaksentence").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const breakSentences = response.body as BreakSentenceItemOutput[]; - assert.equal(breakSentences[0].sentLen[0], 18); - }); - - it("with multiple languages", async () => { - const inputText: InputTextItem[] = [ - { text: "hello world" }, - { text: "العالم هو مكان مثير جدا للاهتمام" }, - ]; - const response = await client.path("/breaksentence").post({ - body: inputText, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const breakSentences = response.body as BreakSentenceItemOutput[]; - assert.equal(breakSentences[0].detectedLanguage?.language, "en"); - assert.equal(breakSentences[1].detectedLanguage?.language, "ar"); - assert.equal(breakSentences[0].sentLen[0], 11); - assert.equal(breakSentences[1].sentLen[0], 32); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts deleted file mode 100644 index 1f952832ab8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dictionaryExamplesTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts.map deleted file mode 100644 index b0915adff38..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamplesTest.spec.d.ts","sourceRoot":"","sources":["dictionaryExamplesTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js deleted file mode 100644 index 6f208052af2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("DictionaryExamples tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("single input element", async () => { - const inputText = [{ text: "fly", translation: "volar" }]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const dictionaryExamples = response.body; - chai_1.assert.equal(dictionaryExamples[0].normalizedSource, "fly"); - chai_1.assert.isTrue(dictionaryExamples[0].normalizedTarget === "volar"); - }); - it("multiple input elements", async () => { - const inputText = [ - { text: "fly", translation: "volar" }, - { text: "beef", translation: "came" }, - ]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const dictionaryExamples = response.body; - chai_1.assert.isTrue(dictionaryExamples.length === 2); - }); -}); -//# sourceMappingURL=dictionaryExamplesTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js.map deleted file mode 100644 index 354d385c812..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryExamplesTest.spec.js","sourceRoot":"","sources":["dictionaryExamplesTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,SAAS,GAAgC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;QACvF,MAAM,UAAU,GAA2E;YACzF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC;YAC9D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;Q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,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.ts deleted file mode 100644 index d73c711478c..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryExamplesTest.spec.ts +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - DictionaryExampleItemOutput, - DictionaryExampleTextItem, - LookupDictionaryExamplesQueryParamProperties, - TextTranslationClient, - isUnexpected, -} from "../../src"; -import { createTranslationClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("DictionaryExamples tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("single input element", async () => { - const inputText: DictionaryExampleTextItem[] = [{ text: "fly", translation: "volar" }]; - const parameters: LookupDictionaryExamplesQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const dictionaryExamples = response.body as DictionaryExampleItemOutput[]; - assert.equal(dictionaryExamples[0].normalizedSource, "fly"); - assert.isTrue(dictionaryExamples[0].normalizedTarget === "volar"); - }); - - it("multiple input elements", async () => { - const inputText: DictionaryExampleTextItem[] = [ - { text: "fly", translation: "volar" }, - { text: "beef", translation: "came" }, - ]; - const parameters: LookupDictionaryExamplesQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/examples").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const dictionaryExamples = response.body as DictionaryExampleItemOutput[]; - assert.isTrue(dictionaryExamples.length === 2); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts deleted file mode 100644 index 62409c827b6..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=dictionaryLookupTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts.map deleted file mode 100644 index ddcbedcc6e7..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookupTest.spec.d.ts","sourceRoot":"","sources":["dictionaryLookupTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js deleted file mode 100644 index df90f77de21..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("DictionaryLookup tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("single input element", async () => { - const inputText = [{ text: "fly" }]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const dictionaryEntries = response.body; - chai_1.assert.isTrue(dictionaryEntries[0].normalizedSource === "fly"); - chai_1.assert.isTrue(dictionaryEntries[0].displaySource === "fly"); - }); - it("multiple input elements", async () => { - const inputText = [{ text: "fly" }, { text: "fox" }]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const dictionaryEntries = response.body; - chai_1.assert.isTrue(dictionaryEntries.length === 2); - }); -}); -//# sourceMappingURL=dictionaryLookupTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js.map deleted file mode 100644 index 14964fd87c1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dictionaryLookupTest.spec.js","sourceRoot":"","sources":["dictionaryLookupTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAGhF,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QACrD,MAAM,UAAU,GAA0E;YACxF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;YAC5D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QAEH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAoC,CAAC;QACxE,aAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,gBAAgB,KAAK,KAAK,CAAC,CAAC;QAC/D,aAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,aAAa,KAAK,KAAK,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QACtE,MAAM,UAAU,GAA0E;YACxF,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACX,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC;YAC5D,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QAEH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAErC,IAAI,IAAA,kBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAoC,CAAC;QACxE,aAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.ts deleted file mode 100644 index 9ed204ccce1..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/dictionaryLookupTest.spec.ts +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - InputTextItem, - TextTranslationClient, - LookupDictionaryEntriesQueryParamProperties, - DictionaryLookupItemOutput, - isUnexpected, -} from "../../src"; -import { createTranslationClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("DictionaryLookup tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("single input element", async () => { - const inputText: InputTextItem[] = [{ text: "fly" }]; - const parameters: LookupDictionaryEntriesQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, - }); - - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const dictionaryEntries = response.body as DictionaryLookupItemOutput[]; - assert.isTrue(dictionaryEntries[0].normalizedSource === "fly"); - assert.isTrue(dictionaryEntries[0].displaySource === "fly"); - }); - - it("multiple input elements", async () => { - const inputText: InputTextItem[] = [{ text: "fly" }, { text: "fox" }]; - const parameters: LookupDictionaryEntriesQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/dictionary/lookup").post({ - body: inputText, - queryParameters: parameters, - }); - - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const dictionaryEntries = response.body as DictionaryLookupItemOutput[]; - assert.isTrue(dictionaryEntries.length === 2); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts deleted file mode 100644 index bf328985c26..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=getLanguagesTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts.map deleted file mode 100644 index bee8f034354..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesTest.spec.d.ts","sourceRoot":"","sources":["getLanguagesTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js deleted file mode 100644 index 7f59ec0d8c2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("GetLanguages tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createLanguageClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("all scopes", async () => { - const response = await client.path("/languages").get(); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.translation !== null); - chai_1.assert.isTrue(languages.transliteration !== null); - chai_1.assert.isTrue(languages.dictionary !== null); - }); - it("translation scope", async () => { - const parameters = { - queryParameters: { - scope: "translation", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.translation !== null); - chai_1.assert.isTrue(languages?.translation?.["af"]?.dir !== null); - chai_1.assert.isTrue(languages?.translation?.["af"]?.name !== null); - chai_1.assert.isTrue(languages?.translation?.["af"]?.nativeName !== null); - }); - it("transliteration scope", async () => { - const parameters = { - queryParameters: { - scope: "transliteration", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.transliteration !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.name !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].code !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].dir !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].name !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].nativeName !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].code !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].dir !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].name !== null); - chai_1.assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].nativeName !== null); - }); - it("transliteration scope multiple scripts", async () => { - const parameters = { - queryParameters: { - scope: "transliteration", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.transliteration !== null); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.name !== null); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts !== null); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts?.length === 2); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[0].toScripts.length === 2); - chai_1.assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[1].toScripts.length === 2); - }); - it("dictionary scope", async () => { - const parameters = { - queryParameters: { - scope: "dictionary", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.dictionary !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.name !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].code !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].dir !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].name !== null); - chai_1.assert.isTrue(languages?.dictionary?.["de"]?.translations[0].nativeName !== null); - }); - it("dictionary scope with multiple translations", async () => { - const parameters = { - queryParameters: { - scope: "dictionary", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.dictionary !== null); - chai_1.assert.isTrue(languages?.dictionary?.["en"]?.name !== null); - chai_1.assert.isTrue(languages?.dictionary?.["en"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.dictionary?.["en"]?.translations !== null); - chai_1.assert.isTrue(languages?.dictionary?.["en"]?.translations?.length !== 1); - }); - it("with culture", async () => { - const parameters = { - headers: { - "Accept-Language": "es", - }, - }; - const response = await client.path("/languages").get(parameters); - chai_1.assert.equal("200", response.status); - const languages = response.body; - chai_1.assert.isTrue(languages.translation !== null); - chai_1.assert.isTrue(languages.transliteration !== null); - chai_1.assert.isTrue(languages.dictionary !== null); - chai_1.assert.isTrue(languages?.translation?.["en"]?.name !== null); - chai_1.assert.isTrue(languages?.translation?.["en"]?.nativeName !== null); - chai_1.assert.isTrue(languages?.translation?.["en"]?.dir !== null); - }); -}); -//# sourceMappingURL=getLanguagesTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js.map deleted file mode 100644 index fc4a372a714..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getLanguagesTest.spec.js","sourceRoot":"","sources":["getLanguagesTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAE9B,2DAA6E;AAG7E,QAAQ,CAAC,oBA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ACF,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QACjE,aAAM,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAgC,CAAC;QAC5D,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC;QAC9C,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC;QAClD,aAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC;QAE7C,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC;QAC7D,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC,CAAC;QACnE,aAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.ts deleted file mode 100644 index a3bba9c0a10..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/getLanguagesTest.spec.ts +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { GetLanguagesParameters, GetLanguagesResultOutput, TextTranslationClient } from "../../src"; -import { createLanguageClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("GetLanguages tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createLanguageClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("all scopes", async () => { - const response = await client.path("/languages").get(); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.translation !== null); - assert.isTrue(languages.transliteration !== null); - assert.isTrue(languages.dictionary !== null); - }); - - it("translation scope", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "translation", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.translation !== null); - assert.isTrue(languages?.translation?.["af"]?.dir !== null); - assert.isTrue(languages?.translation?.["af"]?.name !== null); - assert.isTrue(languages?.translation?.["af"]?.nativeName !== null); - }); - - it("transliteration scope", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "transliteration", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.transliteration !== null); - assert.isTrue(languages?.transliteration?.["be"]?.name !== null); - assert.isTrue(languages?.transliteration?.["be"]?.nativeName !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts !== null); - - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].code !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].dir !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].name !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].nativeName !== null); - - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].code !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].dir !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].name !== null); - assert.isTrue(languages?.transliteration?.["be"]?.scripts[0].toScripts[0].nativeName !== null); - }); - - it("transliteration scope multiple scripts", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "transliteration", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.transliteration !== null); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.name !== null); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.nativeName !== null); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts !== null); - - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts?.length === 2); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[0].toScripts.length === 2); - assert.isTrue(languages?.transliteration?.["zh-Hant"]?.scripts[1].toScripts.length === 2); - }); - - it("dictionary scope", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "dictionary", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.dictionary !== null); - assert.isTrue(languages?.dictionary?.["de"]?.name !== null); - assert.isTrue(languages?.dictionary?.["de"]?.nativeName !== null); - assert.isTrue(languages?.dictionary?.["de"]?.translations !== null); - - assert.isTrue(languages?.dictionary?.["de"]?.translations[0].code !== null); - assert.isTrue(languages?.dictionary?.["de"]?.translations[0].dir !== null); - assert.isTrue(languages?.dictionary?.["de"]?.translations[0].name !== null); - assert.isTrue(languages?.dictionary?.["de"]?.translations[0].nativeName !== null); - }); - - it("dictionary scope with multiple translations", async () => { - const parameters: GetLanguagesParameters = { - queryParameters: { - scope: "dictionary", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.dictionary !== null); - assert.isTrue(languages?.dictionary?.["en"]?.name !== null); - assert.isTrue(languages?.dictionary?.["en"]?.nativeName !== null); - assert.isTrue(languages?.dictionary?.["en"]?.translations !== null); - assert.isTrue(languages?.dictionary?.["en"]?.translations?.length !== 1); - }); - - it("with culture", async () => { - const parameters: GetLanguagesParameters = { - headers: { - "Accept-Language": "es", - }, - }; - const response = await client.path("/languages").get(parameters); - assert.equal("200", response.status); - const languages = response.body as GetLanguagesResultOutput; - assert.isTrue(languages.translation !== null); - assert.isTrue(languages.transliteration !== null); - assert.isTrue(languages.dictionary !== null); - - assert.isTrue(languages?.translation?.["en"]?.name !== null); - assert.isTrue(languages?.translation?.["en"]?.nativeName !== null); - assert.isTrue(languages?.translation?.["en"]?.dir !== null); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts deleted file mode 100644 index b3810ea968f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=translateTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts.map deleted file mode 100644 index c22217a3022..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTest.spec.d.ts","sourceRoot":"","sources":["translateTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js deleted file mode 100644 index 9399ea63910..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js +++ /dev/null @@ -1,330 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -describe("Translate tests", () => { - let recorder; - let client; - let customClient; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - customClient = await (0, recordedClient_1.createCustomTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("translate basic", async () => { - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - from: "en", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length > 0); - chai_1.assert.isTrue(translations[0].translations[0].to === "cs"); - chai_1.assert.isTrue(translations[0].translations[0].text !== null); - }); - it("with auto detect", async () => { - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length > 0); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].to === "cs"); - chai_1.assert.isTrue(translations[0].translations[0].text !== null); - }); - it("no translate tag", async () => { - const inputText = [ - { text: "今天是怎么回事是非常可怕的" }, - ]; - const parameters = { - to: "zh-chs", - from: "en", - textType: "html", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].translations[0].text.includes("今天是怎么回事是")); - }); - it("dictionary tag", async () => { - const inputText = [ - { - text: 'The word < mstrans:dictionary translation ="wordomatic">wordomatic is a dictionary entry.', - }, - ]; - const parameters = { - to: "es", - from: "en", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].translations[0].to === "es"); - chai_1.assert.isTrue(translations[0].translations[0].text.includes("wordomatic")); - }); - it("transliteration", async () => { - const inputText = [{ text: "hudha akhtabar." }]; - const parameters = { - to: "zh-Hans", - from: "ar", - fromScript: "Latn", - toScript: "Latn", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].translations[0].to === "zh-Hans"); - chai_1.assert.isTrue(translations[0].translations[0].text !== null); - }); - it("from latin to latin script", async () => { - const inputText = [{ text: "ap kaise ho" }]; - const parameters = { - to: "ta", - from: "hi", - fromScript: "Latn", - toScript: "Latn", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].translations[0].transliteration != null); - chai_1.assert.isTrue(translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?")); - }); - it("multiple input text", async () => { - const inputText = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const parameters = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 3); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[1].detectedLanguage?.language === "es"); - chai_1.assert.isTrue(translations[2].detectedLanguage?.language === "de"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[1].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[2].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].text != null); - chai_1.assert.isTrue(translations[1].translations[0].text != null); - chai_1.assert.isTrue(translations[2].translations[0].text != null); - }); - it("multiple target languages", async () => { - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs,es,de", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].translations.length === 3); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].text != null); - chai_1.assert.isTrue(translations[0].translations[1].text != null); - chai_1.assert.isTrue(translations[0].translations[2].text != null); - }); - it("different text types", async () => { - const inputText = [ - { text: "This is a test." }, - ]; - const parameters = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - }); - it("with profanity", async () => { - const inputText = [{ text: "shit this is fucking crazy" }]; - const parameters = { - to: "zh-cn", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].text.includes("***")); - }); - it("with alignment", async () => { - const inputText = [{ text: "It is a beautiful morning" }]; - const parameters = { - to: "cs", - includeAlignment: true, - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].alignment?.proj != null); - }); - it("with include sentence length", async () => { - const inputText = [ - { - text: "La réponse se trouve dans la traduction automatique. La meilleure technologie de traduction automatique ne peut pas toujours fournir des traductions adaptées à un site ou des utilisateurs comme un être humain. Il suffit de copier et coller un extrait de code n'importe où.", - }, - ]; - const parameters = { - to: "fr", - includeSentenceLength: true, - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "fr"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].sentLen?.srcSentLen.length === 3); - chai_1.assert.isTrue(translations[0].translations[0].sentLen?.transSentLen.length === 3); - }); - it("with custom endpoint", async () => { - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - includeSentenceLength: true, - }; - const response = await customClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - const translations = response.body; - chai_1.assert.isTrue(translations.length === 1); - chai_1.assert.isTrue(translations[0].translations.length === 1); - chai_1.assert.isTrue(translations[0].detectedLanguage?.language === "en"); - chai_1.assert.isTrue(translations[0].detectedLanguage?.score === 1); - chai_1.assert.isTrue(translations[0].translations[0].text != null); - }); - it("with token", async () => { - const tokenClient = await (0, recordedClient_1.createTokenTranslationClient)({ recorder }); - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - }; - const response = await tokenClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - }); - it("with AAD authentication", async () => { - const tokenClient = await (0, recordedClient_1.createAADAuthenticationTranslationClient)({ recorder }); - const inputText = [{ text: "This is a test." }]; - const parameters = { - to: "cs", - }; - const response = await tokenClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - }); -}); -//# sourceMappingURL=translateTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js.map deleted file mode 100644 index 65099b8d476..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"translateTest.spec.js","sourceRoot":"","sources":["translateTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAMgC;AAGhC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAClC,IAAI,YAAmC,CAAC;IAExC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACrD,YAAY,GAAG,MAAM,IAAA,8CAA6B,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iBAAiB,EAAE,KAAK,IAAI,EAAE;QAC/B,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA4D;YAC1E,EAAE,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iBAAiB,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA4D;YAC1E,EAAE,EAAE,IAAI;SACT,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;YACzD,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,WAAW,GAAG,MAAM,IAAA,yDAAwC,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACjF,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA4D;YAC1E,EAAE,EAAE,IAAI;SACT,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;YACzD,IAAI,EAAE,SAAS;YACf,eAAe,EAAE,UAAU;SAC5B,CAAC,CAAC;QACH,aAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.ts deleted file mode 100644 index be442423a60..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/translateTest.spec.ts +++ /dev/null @@ -1,390 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - InputTextItem, - TextTranslationClient, - TranslatedTextItemOutput, - TranslateQueryParamProperties, - isUnexpected, -} from "../../src"; -import { - createCustomTranslationClient, - createTranslationClient, - createTokenTranslationClient, - createAADAuthenticationTranslationClient, - startRecorder, -} from "./utils/recordedClient"; -import { Context } from "mocha"; - -describe("Translate tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - let customClient: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - customClient = await createCustomTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("translate basic", async () => { - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - from: "en", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length > 0); - assert.isTrue(translations[0].translations[0].to === "cs"); - assert.isTrue(translations[0].translations[0].text !== null); - }); - - it("with auto detect", async () => { - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length > 0); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].to === "cs"); - assert.isTrue(translations[0].translations[0].text !== null); - }); - - it("no translate tag", async () => { - const inputText: InputTextItem[] = [ - { text: "今天是怎么回事是非常可怕的" }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "zh-chs", - from: "en", - textType: "html", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].translations[0].text.includes("今天是怎么回事是")); - }); - - it("dictionary tag", async () => { - const inputText: InputTextItem[] = [ - { - text: 'The word < mstrans:dictionary translation ="wordomatic">wordomatic is a dictionary entry.', - }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "es", - from: "en", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].translations[0].to === "es"); - assert.isTrue(translations[0].translations[0].text.includes("wordomatic")); - }); - - it("transliteration", async () => { - const inputText: InputTextItem[] = [{ text: "hudha akhtabar." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "zh-Hans", - from: "ar", - fromScript: "Latn", - toScript: "Latn", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].translations[0].to === "zh-Hans"); - assert.isTrue(translations[0].translations[0].text !== null); - }); - - it("from latin to latin script", async () => { - const inputText: InputTextItem[] = [{ text: "ap kaise ho" }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "ta", - from: "hi", - fromScript: "Latn", - toScript: "Latn", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].translations[0].transliteration != null); - assert.isTrue( - translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?"), - ); - }); - - it("multiple input text", async () => { - const inputText: InputTextItem[] = [ - { text: "This is a test." }, - { text: "Esto es una prueba." }, - { text: "Dies ist ein Test." }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 3); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[1].detectedLanguage?.language === "es"); - assert.isTrue(translations[2].detectedLanguage?.language === "de"); - - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[1].detectedLanguage?.score === 1); - assert.isTrue(translations[2].detectedLanguage?.score === 1); - - assert.isTrue(translations[0].translations[0].text != null); - assert.isTrue(translations[1].translations[0].text != null); - assert.isTrue(translations[2].translations[0].text != null); - }); - - it("multiple target languages", async () => { - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs,es,de", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations[0].translations.length === 3); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - - assert.isTrue(translations[0].translations[0].text != null); - assert.isTrue(translations[0].translations[1].text != null); - assert.isTrue(translations[0].translations[2].text != null); - }); - - it("different text types", async () => { - const inputText: InputTextItem[] = [ - { text: "This is a test." }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - }); - - it("with profanity", async () => { - const inputText: InputTextItem[] = [{ text: "shit this is fucking crazy" }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "zh-cn", - profanityAction: "Marked", - profanityMarker: "Asterisk", - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].text.includes("***")); - }); - - it("with alignment", async () => { - const inputText: InputTextItem[] = [{ text: "It is a beautiful morning" }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - includeAlignment: true, - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].alignment?.proj != null); - }); - - it("with include sentence length", async () => { - const inputText: InputTextItem[] = [ - { - text: "La réponse se trouve dans la traduction automatique. La meilleure technologie de traduction automatique ne peut pas toujours fournir des traductions adaptées à un site ou des utilisateurs comme un être humain. Il suffit de copier et coller un extrait de code n'importe où.", - }, - ]; - const parameters: TranslateQueryParamProperties & Record = { - to: "fr", - includeSentenceLength: true, - }; - const response = await client.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "fr"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].sentLen?.srcSentLen.length === 3); - assert.isTrue(translations[0].translations[0].sentLen?.transSentLen.length === 3); - }); - - it("with custom endpoint", async () => { - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - includeSentenceLength: true, - }; - const response = await customClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - const translations = response.body as TranslatedTextItemOutput[]; - assert.isTrue(translations.length === 1); - assert.isTrue(translations[0].translations.length === 1); - assert.isTrue(translations[0].detectedLanguage?.language === "en"); - assert.isTrue(translations[0].detectedLanguage?.score === 1); - assert.isTrue(translations[0].translations[0].text != null); - }); - - it("with token", async () => { - const tokenClient = await createTokenTranslationClient({ recorder }); - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await tokenClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - }); - - it("with AAD authentication", async () => { - const tokenClient = await createAADAuthenticationTranslationClient({ recorder }); - const inputText: InputTextItem[] = [{ text: "This is a test." }]; - const parameters: TranslateQueryParamProperties & Record = { - to: "cs", - }; - const response = await tokenClient.path("/translate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts deleted file mode 100644 index ee180532955..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=transliterateTest.spec.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts.map deleted file mode 100644 index 73e1df38583..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterateTest.spec.d.ts","sourceRoot":"","sources":["transliterateTest.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js deleted file mode 100644 index baca0fd5b4f..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const src_1 = require("../../src"); -const recordedClient_1 = require("./utils/recordedClient"); -const testHelper_1 = require("./utils/testHelper"); -describe("Transliterate tests", () => { - let recorder; - let client; - beforeEach(async function () { - recorder = await (0, recordedClient_1.startRecorder)(this); - client = await (0, recordedClient_1.createTranslationClient)({ recorder }); - }); - afterEach(async function () { - await recorder.stop(); - }); - it("transliterate basic", async () => { - const inputText = [{ text: "这里怎么一回事?" }]; - const parameters = { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].script !== null); - chai_1.assert.isTrue(translations[0].text !== null); - }); - it("multiple text array", async () => { - const inputText = [ - { text: "यहएककसौटीहैयहएककसौटीहै" }, - { text: "यहएककसौटीहै" }, - ]; - const parameters = { - language: "hi", - fromScript: "Deva", - toScript: "Latn", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].script !== null); - chai_1.assert.isTrue(translations[0].text !== null); - }); - it("with edit distance", async () => { - const inputText = [ - { text: "gujarat" }, - { text: "hadman" }, - { text: "hukkabar" }, - ]; - const parameters = { - language: "gu", - fromScript: "Latn", - toScript: "gujr", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - chai_1.assert.equal(response.status, "200"); - if ((0, src_1.isUnexpected)(response)) { - throw response.body; - } - const translations = response.body; - chai_1.assert.isTrue(translations[0].text !== null); - chai_1.assert.isTrue(translations[1].text !== null); - chai_1.assert.isTrue(translations[2].text !== null); - const expectedText = ["ગુજરાત", "હદમાં", "હુક્કાબાર"]; - let editDistanceValue = 0; - for (let i = 0; i < expectedText.length; i++) { - editDistanceValue = editDistanceValue + (0, testHelper_1.editDistance)(expectedText[i], translations[i].text); - } - chai_1.assert.isTrue(editDistanceValue < 6); - }); -}); -//# sourceMappingURL=transliterateTest.spec.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js.map deleted file mode 100644 index 046180ba679..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transliterateTest.spec.js","sourceRoot":"","sources":["transliterateTest.spec.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,+BAA8B;AAC9B,mCAMmB;AACnB,2DAAgF;AAEhF,mDAAkD;AAElD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,QAAkB,CAAC;IACvB,IAAI,MAA6B,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,IAAA,8BAAa,EAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,MAAM,IAAA,wCAAuB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;QACnC,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QAC1D,MAAM,UAAU,GAAgE;YAC9E,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACjB,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAA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AAC,CAAC;QAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,iBAAiB,GAAG,iBAAiB,GAAG,IAAA,yBAAY,EAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC9F,CAAC;QACD,aAAM,CAAC,MAAM,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.ts deleted file mode 100644 index 64f63300e14..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/transliterateTest.spec.ts +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { - InputTextItem, - TextTranslationClient, - TransliteratedTextOutput, - TransliterateQueryParamProperties, - isUnexpected, -} from "../../src"; -import { createTranslationClient, startRecorder } from "./utils/recordedClient"; -import { Context } from "mocha"; -import { editDistance } from "./utils/testHelper"; - -describe("Transliterate tests", () => { - let recorder: Recorder; - let client: TextTranslationClient; - - beforeEach(async function (this: Context) { - recorder = await startRecorder(this); - client = await createTranslationClient({ recorder }); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("transliterate basic", async () => { - const inputText: InputTextItem[] = [{ text: "这里怎么一回事?" }]; - const parameters: TransliterateQueryParamProperties & Record = { - language: "zh-Hans", - fromScript: "Hans", - toScript: "Latn", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TransliteratedTextOutput[]; - assert.isTrue(translations[0].script !== null); - assert.isTrue(translations[0].text !== null); - }); - - it("multiple text array", async () => { - const inputText: InputTextItem[] = [ - { text: "यहएककसौटीहैयहएककसौटीहै" }, - { text: "यहएककसौटीहै" }, - ]; - const parameters: TransliterateQueryParamProperties & Record = { - language: "hi", - fromScript: "Deva", - toScript: "Latn", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TransliteratedTextOutput[]; - assert.isTrue(translations[0].script !== null); - assert.isTrue(translations[0].text !== null); - }); - - it("with edit distance", async () => { - const inputText: InputTextItem[] = [ - { text: "gujarat" }, - { text: "hadman" }, - { text: "hukkabar" }, - ]; - const parameters: TransliterateQueryParamProperties & Record = { - language: "gu", - fromScript: "Latn", - toScript: "gujr", - }; - const response = await client.path("/transliterate").post({ - body: inputText, - queryParameters: parameters, - }); - assert.equal(response.status, "200"); - - if (isUnexpected(response)) { - throw response.body; - } - - const translations = response.body as TransliteratedTextOutput[]; - assert.isTrue(translations[0].text !== null); - assert.isTrue(translations[1].text !== null); - assert.isTrue(translations[2].text !== null); - - const expectedText = ["ગુજરાત", "હદમાં", "હુક્કાબાર"]; - - let editDistanceValue = 0; - for (let i = 0; i < expectedText.length; i++) { - editDistanceValue = editDistanceValue + editDistance(expectedText[i], translations[i].text); - } - assert.isTrue(editDistanceValue < 6); - }); -}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts deleted file mode 100644 index dc5152fefc4..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { TokenCredential, AccessToken } from "@azure/core-auth"; -export declare class StaticAccessTokenCredential implements TokenCredential { - private accessToken; - constructor(accessToken: string); - getToken(): Promise; -} -//# sourceMappingURL=StaticAccessTokenCredential.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts.map deleted file mode 100644 index 00e9112c0e3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StaticAccessTokenCredential.d.ts","sourceRoot":"","sources":["StaticAccessTokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEhE,qBAAa,2BAA4B,YAAW,eAAe;IAIrD,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,MAAM;IACjC,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC;CAMvC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js deleted file mode 100644 index e57da4bd7e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StaticAccessTokenCredential = void 0; -class StaticAccessTokenCredential { - accessToken; - // AccessToken is an object with two properties: - // - A "token" property with a string value. - // - And an "expiresOnTimestamp" property with a numeric unix timestamp as its value. - constructor(accessToken) { - this.accessToken = accessToken; - } - async getToken() { - return { - expiresOnTimestamp: Date.now() + 10000, - token: this.accessToken, - }; - } -} -exports.StaticAccessTokenCredential = StaticAccessTokenCredential; -//# sourceMappingURL=StaticAccessTokenCredential.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js.map deleted file mode 100644 index 60bcea974d3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StaticAccessTokenCredential.js","sourceRoot":"","sources":["StaticAccessTokenCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC,MAAa,2BAA2B;IAIlB;IAHpB,gDAAgD;IAChD,4CAA4C;IAC5C,qFAAqF;IACrF,YAAoB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAAG,CAAC;IAC3C,KAAK,CAAC,QAAQ;QACZ,OAAO;YACL,kBAAkB,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;YACtC,KAAK,EAAE,IAAI,CAAC,WAAW;SACxB,CAAC;IACJ,CAAC;CACF;AAXD,kEAWC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.ts deleted file mode 100644 index 2e89e1cbae2..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/StaticAccessTokenCredential.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { TokenCredential, AccessToken } from "@azure/core-auth"; - -export class StaticAccessTokenCredential implements TokenCredential { - // AccessToken is an object with two properties: - // - A "token" property with a string value. - // - And an "expiresOnTimestamp" property with a numeric unix timestamp as its value. - constructor(private accessToken: string) {} - async getToken(): Promise { - return { - expiresOnTimestamp: Date.now() + 10000, - token: this.accessToken, - }; - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts deleted file mode 100644 index 7289698f3e9..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Context } from "mocha"; -import { Recorder } from "@azure-tools/test-recorder"; -import { TextTranslationClient } from "../../../src"; -import { ClientOptions } from "@azure-rest/core-client"; -export declare function startRecorder(context: Context): Promise; -export declare function createTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createCustomTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createLanguageClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createTokenTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createAADAuthenticationTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise; -export declare function createMockToken(): { - getToken: (_scopes: string) => Promise<{ - token: string; - expiresOnTimestamp: number; - }>; -}; -//# sourceMappingURL=recordedClient.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts.map deleted file mode 100644 index bf872632470..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recordedClient.d.ts","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACL,QAAQ,EAIT,MAAM,4BAA4B,CAAC;AAEpC,OAAoC,EAGlC,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAkBxD,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAIvE;AAED,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IACrD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAajC;AAED,wBAAsB,6BAA6B,CAAC,OAAO,EAAE;IAC3D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAajC;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAClD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAKjC;AAED,wBAAsB,4BAA4B,CAAC,OAAO,EAAE;IAC1D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4BjC;AAED,wBAAsB,wCAAwC,CAAC,OAAO,EAAE;IACtE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAyBjC;AAED,wBAAgB,eAAe,IAAI;IACjC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvF,CAMA"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js deleted file mode 100644 index 7791bec6816..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js +++ /dev/null @@ -1,125 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.startRecorder = startRecorder; -exports.createTranslationClient = createTranslationClient; -exports.createCustomTranslationClient = createCustomTranslationClient; -exports.createLanguageClient = createLanguageClient; -exports.createTokenTranslationClient = createTokenTranslationClient; -exports.createAADAuthenticationTranslationClient = createAADAuthenticationTranslationClient; -exports.createMockToken = createMockToken; -const tslib_1 = require("tslib"); -const test_recorder_1 = require("@azure-tools/test-recorder"); -const StaticAccessTokenCredential_1 = require("./StaticAccessTokenCredential"); -const src_1 = tslib_1.__importDefault(require("../../../src")); -const core_rest_pipeline_1 = require("@azure/core-rest-pipeline"); -const identity_1 = require("@azure/identity"); -const envSetupForPlayback = { - TEXT_TRANSLATION_API_KEY: "fakeapikey", - TEXT_TRANSLATION_ENDPOINT: "https://fakeEndpoint.cognitive.microsofttranslator.com", - TEXT_TRANSLATION_CUSTOM_ENDPOINT: "https://fakeCustomEndpoint.cognitiveservices.azure.com", - TEXT_TRANSLATION_REGION: "fakeregion", - TEXT_TRANSLATION_AAD_REGION: "fakeregion", - TEXT_TRANSLATION_RESOURCE_ID: "fakeresourceid", -}; -const recorderEnvSetup = { - envSetupForPlayback, -}; -async function startRecorder(context) { - const recorder = new test_recorder_1.Recorder(context.currentTest); - await recorder.start(recorderEnvSetup); - return recorder; -} -async function createTranslationClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); - const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); - const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); - const translatorCredential = { - key: apikey, - region, - }; - const client = (0, src_1.default)(endpoint, translatorCredential, updatedOptions); - return client; -} -async function createCustomTranslationClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const customEndpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CUSTOM_ENDPOINT"); - const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); - const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); - const translatorCredential = { - key: apikey, - region, - }; - const client = (0, src_1.default)(customEndpoint, translatorCredential, updatedOptions); - return client; -} -async function createLanguageClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); - return (0, src_1.default)(endpoint, undefined, updatedOptions); -} -async function createTokenTranslationClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); - const apikey = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_API_KEY"); - const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_REGION"); - const issueTokenURL = "https://" + - region + - ".api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=" + - apikey; - let credential; - if ((0, test_recorder_1.isPlaybackMode)()) { - credential = createMockToken(); - } - else { - const tokenClient = (0, core_rest_pipeline_1.createDefaultHttpClient)(); - const request = (0, core_rest_pipeline_1.createPipelineRequest)({ - url: issueTokenURL, - method: "POST", - }); - request.allowInsecureConnection = true; - const response = await tokenClient.sendRequest(request); - const token = response.bodyAsText; - credential = new StaticAccessTokenCredential_1.StaticAccessTokenCredential(token); - } - const client = (0, src_1.default)(endpoint, credential, updatedOptions); - return client; -} -async function createAADAuthenticationTranslationClient(options) { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_ENDPOINT"); - const region = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_AAD_REGION"); - const azureResourceId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_RESOURCE_ID"); - let tokenCredential; - if ((0, test_recorder_1.isPlaybackMode)()) { - tokenCredential = createMockToken(); - } - else { - const clientId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CLIENT_ID"); - const tenantId = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_TENANT_ID"); - const secret = (0, test_recorder_1.assertEnvironmentVariable)("TEXT_TRANSLATION_CLIENT_SECRET"); - tokenCredential = new identity_1.ClientSecretCredential(tenantId, clientId, secret); - } - const translatorTokenCredentials = { - tokenCredential, - azureResourceId, - region, - }; - const client = (0, src_1.default)(endpoint, translatorTokenCredentials, updatedOptions); - return client; -} -function createMockToken() { - return { - getToken: async (_scopes) => { - return { token: "testToken", expiresOnTimestamp: 11111 }; - }, - }; -} -//# sourceMappingURL=recordedClient.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js.map deleted file mode 100644 index 098f455da30..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recordedClient.js","sourceRoot":"","sources":["recordedClient.ts"],"names":[],"mappings":";AAAA,uCA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AG,IAAA,yCAAyB,EAAC,2BAA2B,CAAC,CAAC;IACxE,MAAM,MAAM,GAAG,IAAA,yCAAyB,EAAC,6BAA6B,CAAC,CAAC;IACxE,MAAM,eAAe,GAAG,IAAA,yCAAyB,EAAC,8BAA8B,CAAC,CAAC;IAElF,IAAI,eAAgC,CAAC;IACrC,IAAI,IAAA,8BAAc,GAAE,EAAE,CAAC;QACrB,eAAe,GAAG,eAAe,EAAE,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,QAAQ,GAAG,IAAA,yCAAyB,EAAC,4BAA4B,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,IAAA,yCAAyB,EAAC,4BAA4B,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,IAAA,yCAAyB,EAAC,gCAAgC,CAAC,CAAC;QAE3E,eAAe,GAAG,IAAI,iCAAsB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,0BAA0B,GAA8B;QAC5D,eAAe;QACf,eAAe;QACf,MAAM;KACP,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,aAA2B,EAAC,QAAQ,EAAE,0BAA0B,EAAE,cAAc,CAAC,CAAC;IACjG,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe;IAG7B,OAAO;QACL,QAAQ,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE;YAClC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC;QAC3D,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.ts deleted file mode 100644 index 6088570dc00..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/recordedClient.ts +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { Context } from "mocha"; -import { - Recorder, - RecorderStartOptions, - isPlaybackMode, - assertEnvironmentVariable, -} from "@azure-tools/test-recorder"; -import { StaticAccessTokenCredential } from "./StaticAccessTokenCredential"; -import createTextTranslationClient, { - TranslatorCredential, - TranslatorTokenCredential, - TextTranslationClient, -} from "../../../src"; -import { ClientOptions } from "@azure-rest/core-client"; -import { createDefaultHttpClient, createPipelineRequest } from "@azure/core-rest-pipeline"; -import { TokenCredential } from "@azure/core-auth"; -import { ClientSecretCredential } from "@azure/identity"; - -const envSetupForPlayback: Record = { - TEXT_TRANSLATION_API_KEY: "fakeapikey", - TEXT_TRANSLATION_ENDPOINT: "https://fakeEndpoint.cognitive.microsofttranslator.com", - TEXT_TRANSLATION_CUSTOM_ENDPOINT: "https://fakeCustomEndpoint.cognitiveservices.azure.com", - TEXT_TRANSLATION_REGION: "fakeregion", - TEXT_TRANSLATION_AAD_REGION: "fakeregion", - TEXT_TRANSLATION_RESOURCE_ID: "fakeresourceid", -}; - -const recorderEnvSetup: RecorderStartOptions = { - envSetupForPlayback, -}; - -export async function startRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); - await recorder.start(recorderEnvSetup); - return recorder; -} - -export async function createTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); - const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); - const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); - - const translatorCredential: TranslatorCredential = { - key: apikey, - region, - }; - const client = createTextTranslationClient(endpoint, translatorCredential, updatedOptions); - return client; -} - -export async function createCustomTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const customEndpoint = assertEnvironmentVariable("TEXT_TRANSLATION_CUSTOM_ENDPOINT"); - const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); - const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); - - const translatorCredential: TranslatorCredential = { - key: apikey, - region, - }; - const client = createTextTranslationClient(customEndpoint, translatorCredential, updatedOptions); - return client; -} - -export async function createLanguageClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); - return createTextTranslationClient(endpoint, undefined, updatedOptions); -} - -export async function createTokenTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); - const apikey = assertEnvironmentVariable("TEXT_TRANSLATION_API_KEY"); - const region = assertEnvironmentVariable("TEXT_TRANSLATION_REGION"); - - const issueTokenURL: string = - "https://" + - region + - ".api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=" + - apikey; - let credential: TokenCredential; - if (isPlaybackMode()) { - credential = createMockToken(); - } else { - const tokenClient = createDefaultHttpClient(); - const request = createPipelineRequest({ - url: issueTokenURL, - method: "POST", - }); - request.allowInsecureConnection = true; - const response = await tokenClient.sendRequest(request); - const token: string = response.bodyAsText!; - credential = new StaticAccessTokenCredential(token); - } - const client = createTextTranslationClient(endpoint, credential, updatedOptions); - return client; -} - -export async function createAADAuthenticationTranslationClient(options: { - recorder?: Recorder; - clientOptions?: ClientOptions; -}): Promise { - const { recorder, clientOptions = {} } = options; - const updatedOptions = recorder ? recorder.configureClientOptions(clientOptions) : clientOptions; - const endpoint = assertEnvironmentVariable("TEXT_TRANSLATION_ENDPOINT"); - const region = assertEnvironmentVariable("TEXT_TRANSLATION_AAD_REGION"); - const azureResourceId = assertEnvironmentVariable("TEXT_TRANSLATION_RESOURCE_ID"); - - let tokenCredential: TokenCredential; - if (isPlaybackMode()) { - tokenCredential = createMockToken(); - } else { - const clientId = assertEnvironmentVariable("TEXT_TRANSLATION_CLIENT_ID"); - const tenantId = assertEnvironmentVariable("TEXT_TRANSLATION_TENANT_ID"); - const secret = assertEnvironmentVariable("TEXT_TRANSLATION_CLIENT_SECRET"); - - tokenCredential = new ClientSecretCredential(tenantId, clientId, secret); - } - - const translatorTokenCredentials: TranslatorTokenCredential = { - tokenCredential, - azureResourceId, - region, - }; - const client = createTextTranslationClient(endpoint, translatorTokenCredentials, updatedOptions); - return client; -} - -export function createMockToken(): { - getToken: (_scopes: string) => Promise<{ token: string; expiresOnTimestamp: number }>; -} { - return { - getToken: async (_scopes: string) => { - return { token: "testToken", expiresOnTimestamp: 11111 }; - }, - }; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts deleted file mode 100644 index 025dea925a3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function editDistance(s1: string, s2: string): number; -export declare function distance(s1: string, s2: string, n1: number, n2: number): number; -//# sourceMappingURL=testHelper.d.ts.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts.map deleted file mode 100644 index 54e5d2aee05..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"testHelper.d.ts","sourceRoot":"","sources":["testHelper.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAI3D;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAmB/E"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js deleted file mode 100644 index 6b9bf11d97d..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.editDistance = editDistance; -exports.distance = distance; -function editDistance(s1, s2) { - const n1 = s1.length; - const n2 = s2.length; - return distance(s1, s2, n1, n2); -} -function distance(s1, s2, n1, n2) { - if (n1 === 0) { - return n2; - } - if (n2 === 0) { - return n1; - } - if (s1[n1 - 1] === s2[n2 - 1]) { - const d = distance(s1, s2, n1 - 1, n2 - 1); - return d; - } - const nums = [ - distance(s1, s2, n1, n2 - 1), - distance(s1, s2, n1 - 1, n2), - distance(s1, s2, n1 - 1, n2 - 1), - ]; - return 1 + Math.min(...nums); -} -//# sourceMappingURL=testHelper.js.map \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js.map b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js.map deleted file mode 100644 index df7a321ca7b..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"testHelper.js","sourceRoot":"","sources":["testHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,oCAIC;AAED,4BAmBC;AAzBD,SAAgB,YAAY,CAAC,EAAU,EAAE,EAAU;IACjD,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,OAAO,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,QAAQ,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IACrE,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;QAC9B,MAAM,CAAC,GAAW,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;QACnD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,IAAI,GAAa;QACrB,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;QAC5B,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;QAC5B,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;KACjC,CAAC;IACF,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.ts deleted file mode 100644 index 0064e36f061..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/test/public/utils/testHelper.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -export function editDistance(s1: string, s2: string): number { - const n1 = s1.length; - const n2 = s2.length; - return distance(s1, s2, n1, n2); -} - -export function distance(s1: string, s2: string, n1: number, n2: number): number { - if (n1 === 0) { - return n2; - } - - if (n2 === 0) { - return n1; - } - - if (s1[n1 - 1] === s2[n2 - 1]) { - const d: number = distance(s1, s2, n1 - 1, n2 - 1); - return d; - } - const nums: number[] = [ - distance(s1, s2, n1, n2 - 1), - distance(s1, s2, n1 - 1, n2), - distance(s1, s2, n1 - 1, n2 - 1), - ]; - return 1 + Math.min(...nums); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tests.yml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tests.yml deleted file mode 100644 index 2e20837b159..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tests.yml +++ /dev/null @@ -1,15 +0,0 @@ -parameters: -- name: Location - displayName: Location - type: string - default: eastus - -trigger: none - -extends: - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml - parameters: - PackageName: "@azure-rest/ai-translation-text" - ServiceDirectory: translation - Location: "${{ parameters.Location }}" - SupportedClouds: 'Public' diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsp-location.yaml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsp-location.yaml deleted file mode 100644 index 0bf4ee5359e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsp-location.yaml +++ /dev/null @@ -1,3 +0,0 @@ -directory: specification/translation/Azure.AI.TextTranslation -commit: 01a71545e82bb98b8137d3038150c436d46a59ed -repo: Azure/azure-rest-api-specs From db9b5093c90d0ca366b260caa135dfe8a0a36448 Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 8 Aug 2024 08:40:53 +0800 Subject: [PATCH 16/35] Cleaned up more test files --- .../baseline-package/src/clientDefinitions.ts | 89 ----- .../src/custom/authentication.ts | 73 ---- .../src}/customClient.ts | 36 +- .../baseline-package/src/index.ts | 16 - .../baseline-package/src/isUnexpected.ts | 141 -------- .../baseline-package/src/logger.ts | 5 - .../baseline-package/src/outputModels.ts | 320 ------------------ .../baseline-package/src/responses.ts | 172 ---------- .../baseline-package/src/serializeHelper.ts | 13 - .../current-package/src/clientDefinitions.ts | 89 ----- .../src/custom/authentication.ts | 73 ---- .../src}/customClient.ts | 4 +- .../current-package/src/index.ts | 16 - .../current-package/src/isUnexpected.ts | 141 -------- .../current-package/src/logger.ts | 5 - .../current-package/src/outputModels.ts | 320 ------------------ .../current-package/src/responses.ts | 172 ---------- .../current-package/src/serializeHelper.ts | 13 - 18 files changed, 18 insertions(+), 1680 deletions(-) delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.ts rename tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/{current-package/src/custom => baseline-package/src}/customClient.ts (82%) delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.ts rename tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/{baseline-package/src/custom => current-package/src}/customClient.ts (97%) delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.ts delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.ts deleted file mode 100644 index f95ee452adb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/clientDefinitions.ts +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - GetLanguagesParameters, - TranslateParameters, - TransliterateParameters, - FindSentenceBoundariesParameters, - LookupDictionaryEntriesParameters, - LookupDictionaryExamplesParameters, -} from "./parameters"; -import { - GetLanguages200Response, - GetLanguagesDefaultResponse, - Translate200Response, - TranslateDefaultResponse, - Transliterate200Response, - TransliterateDefaultResponse, - FindSentenceBoundaries200Response, - FindSentenceBoundariesDefaultResponse, - LookupDictionaryEntries200Response, - LookupDictionaryEntriesDefaultResponse, - LookupDictionaryExamples200Response, - LookupDictionaryExamplesDefaultResponse, -} from "./responses"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; - -export interface GetLanguages { - /** Gets the set of languages currently supported by other operations of the Translator. */ - get( - options?: GetLanguagesParameters, - ): StreamableMethod; -} - -export interface Translate { - /** Translate Text */ - post( - options: TranslateParameters, - ): StreamableMethod; -} - -export interface Transliterate { - /** Transliterate Text */ - post( - options: TransliterateParameters, - ): StreamableMethod; -} - -export interface FindSentenceBoundaries { - /** Find Sentence Boundaries */ - post( - options: FindSentenceBoundariesParameters, - ): StreamableMethod; -} - -export interface LookupDictionaryEntries { - /** Lookup Dictionary Entries */ - post( - options: LookupDictionaryEntriesParameters, - ): StreamableMethod; -} - -export interface LookupDictionaryExamples { - /** Lookup Dictionary Examples */ - post( - options: LookupDictionaryExamplesParameters, - ): StreamableMethod< - LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse - >; -} - -export interface Routes { - /** Resource for '/languages' has methods for the following verbs: get */ - (path: "/languages"): GetLanguages; - /** Resource for '/translate' has methods for the following verbs: post */ - (path: "/translate"): Translate; - /** Resource for '/transliterate' has methods for the following verbs: post */ - (path: "/transliterate"): Transliterate; - /** Resource for '/breaksentence' has methods for the following verbs: post */ - (path: "/breaksentence"): FindSentenceBoundaries; - /** Resource for '/dictionary/lookup' has methods for the following verbs: post */ - (path: "/dictionary/lookup"): LookupDictionaryEntries; - /** Resource for '/dictionary/examples' has methods for the following verbs: post */ - (path: "/dictionary/examples"): LookupDictionaryExamples; -} - -export type TextTranslationClient = Client & { - path: Routes; -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.ts deleted file mode 100644 index 1eae16403e0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/authentication.ts +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { AzureKeyCredential, TokenCredential } from "@azure/core-auth"; -import { - PipelinePolicy, - PipelineRequest, - PipelineResponse, - SendRequest, -} from "@azure/core-rest-pipeline"; - -const APIM_KEY_HEADER_NAME = "Ocp-Apim-Subscription-Key"; -const APIM_REGION_HEADER_NAME = "Ocp-Apim-Subscription-Region"; -const APIM_RESOURCE_ID = "Ocp-Apim-ResourceId"; -export const DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; - -export interface TranslatorCredential { - key: string; - region: string; -} - -export interface TranslatorTokenCredential { - tokenCredential: TokenCredential; - region: string; - azureResourceId: string; -} - -export class TranslatorAuthenticationPolicy implements PipelinePolicy { - name: string = "TranslatorAuthenticationPolicy"; - credential: TranslatorCredential; - - constructor(credential: TranslatorCredential) { - this.credential = credential; - } - - sendRequest(request: PipelineRequest, next: SendRequest): Promise { - request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); - request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); - - return next(request); - } -} - -export class TranslatorAzureKeyAuthenticationPolicy implements PipelinePolicy { - name: string = "TranslatorAzureKeyAuthenticationPolicy"; - credential: AzureKeyCredential; - - constructor(credential: AzureKeyCredential) { - this.credential = credential; - } - - sendRequest(request: PipelineRequest, next: SendRequest): Promise { - request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); - - return next(request); - } -} - -export class TranslatorTokenCredentialAuthenticationPolicy implements PipelinePolicy { - name: string = "TranslatorTokenCredentialAuthenticationPolicy"; - credential: TranslatorTokenCredential; - - constructor(credential: TranslatorTokenCredential) { - this.credential = credential; - } - - sendRequest(request: PipelineRequest, next: SendRequest): Promise { - request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); - request.headers.set(APIM_RESOURCE_ID, this.credential.azureResourceId); - - return next(request); - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts similarity index 82% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.ts rename to tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts index f6115fe67f4..8fa78f0c167 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/customClient.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "../logger"; -import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { TextTranslationClient } from "../clientDefinitions"; +import { getClient, ClientOptions } from '@azure-rest/core-client'; +import { logger } from './logger'; +import * as coreRestPipeline from '@azure/core-rest-pipeline'; +import { TextTranslationClient } from './clientDefinitions'; import { DEFAULT_SCOPE, TranslatorCredential, @@ -12,12 +12,12 @@ import { TranslatorAuthenticationPolicy, TranslatorAzureKeyAuthenticationPolicy, TranslatorTokenCredentialAuthenticationPolicy, -} from "./authentication"; -import { AzureKeyCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; +} from './custom/authentication'; +import { AzureKeyCredential, KeyCredential, TokenCredential } from '@azure/core-auth'; -const DEFAULT_ENPOINT = "https://api.cognitive.microsofttranslator.com"; -const PLATFORM_HOST = "cognitiveservices"; -const PLATFORM_PATH = "/translator/text/v3.0"; +const DEFAULT_ENPOINT = 'https://api.cognitive.microsofttranslator.com'; +const PLATFORM_HOST = 'cognitiveservices'; +const PLATFORM_PATH = '/translator/text/v3.0'; function isKeyCredential(credential: any): credential is KeyCredential { return (credential as KeyCredential)?.key !== undefined; @@ -52,11 +52,11 @@ export default function createClient( | TranslatorTokenCredential | KeyCredential | TokenCredential = undefined, - options: ClientOptions = {}, + options: ClientOptions = {} ): TextTranslationClient { let serviceEndpoint: string; - options.apiVersion = options.apiVersion ?? "3.0"; + options.apiVersion = options.apiVersion ?? '3.0'; if (!endpoint) { serviceEndpoint = DEFAULT_ENPOINT; @@ -86,31 +86,27 @@ export default function createClient( const client = getClient(baseUrl, options) as TextTranslationClient; if (isTranslatorKeyCredential(credential)) { - const mtAuthneticationPolicy = new TranslatorAuthenticationPolicy( - credential as TranslatorCredential, - ); + const mtAuthneticationPolicy = new TranslatorAuthenticationPolicy(credential as TranslatorCredential); client.pipeline.addPolicy(mtAuthneticationPolicy); } else if (isKeyCredential(credential)) { - const mtKeyAuthenticationPolicy = new TranslatorAzureKeyAuthenticationPolicy( - credential as AzureKeyCredential, - ); + const mtKeyAuthenticationPolicy = new TranslatorAzureKeyAuthenticationPolicy(credential as AzureKeyCredential); client.pipeline.addPolicy(mtKeyAuthenticationPolicy); } else if (isTokenCredential(credential)) { client.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: credential as TokenCredential, scopes: DEFAULT_SCOPE, - }), + }) ); } else if (isTranslatorTokenCredential(credential)) { client.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: (credential as TranslatorTokenCredential).tokenCredential, scopes: DEFAULT_SCOPE, - }), + }) ); client.pipeline.addPolicy( - new TranslatorTokenCredentialAuthenticationPolicy(credential as TranslatorTokenCredential), + new TranslatorTokenCredentialAuthenticationPolicy(credential as TranslatorTokenCredential) ); } diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.ts deleted file mode 100644 index 1f53069e787..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import TextTranslationClient from "./custom/customClient"; - -export * from "./custom/customClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./serializeHelper"; -export { TranslatorCredential, TranslatorTokenCredential } from "./custom/authentication"; - -export default TextTranslationClient; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.ts deleted file mode 100644 index aa40d5d88b3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/isUnexpected.ts +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - GetLanguages200Response, - GetLanguagesDefaultResponse, - Translate200Response, - TranslateDefaultResponse, - Transliterate200Response, - TransliterateDefaultResponse, - FindSentenceBoundaries200Response, - FindSentenceBoundariesDefaultResponse, - LookupDictionaryEntries200Response, - LookupDictionaryEntriesDefaultResponse, - LookupDictionaryExamples200Response, - LookupDictionaryExamplesDefaultResponse, -} from "./responses"; - -const responseMap: Record = { - "GET /languages": ["200"], - "POST /translate": ["200"], - "POST /transliterate": ["200"], - "POST /breaksentence": ["200"], - "POST /dictionary/lookup": ["200"], - "POST /dictionary/examples": ["200"], -}; - -export function isUnexpected( - response: GetLanguages200Response | GetLanguagesDefaultResponse, -): response is GetLanguagesDefaultResponse; -export function isUnexpected( - response: Translate200Response | TranslateDefaultResponse, -): response is TranslateDefaultResponse; -export function isUnexpected( - response: Transliterate200Response | TransliterateDefaultResponse, -): response is TransliterateDefaultResponse; -export function isUnexpected( - response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse, -): response is FindSentenceBoundariesDefaultResponse; -export function isUnexpected( - response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse, -): response is LookupDictionaryEntriesDefaultResponse; -export function isUnexpected( - response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse, -): response is LookupDictionaryExamplesDefaultResponse; -export function isUnexpected( - response: - | GetLanguages200Response - | GetLanguagesDefaultResponse - | Translate200Response - | TranslateDefaultResponse - | Transliterate200Response - | TransliterateDefaultResponse - | FindSentenceBoundaries200Response - | FindSentenceBoundariesDefaultResponse - | LookupDictionaryEntries200Response - | LookupDictionaryEntriesDefaultResponse - | LookupDictionaryExamples200Response - | LookupDictionaryExamplesDefaultResponse, -): response is - | GetLanguagesDefaultResponse - | TranslateDefaultResponse - | TransliterateDefaultResponse - | FindSentenceBoundariesDefaultResponse - | LookupDictionaryEntriesDefaultResponse - | LookupDictionaryExamplesDefaultResponse { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} - -function getParametrizedPathSuccess(method: string, path: string): string[] { - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: string[] = []; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "", - ); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.ts deleted file mode 100644 index d2cdd4fac44..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/logger.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { createClientLogger } from "@azure/logger"; -export const logger = createClientLogger("ai-translation-text"); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.ts deleted file mode 100644 index 66a1b2fd05e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/outputModels.ts +++ /dev/null @@ -1,320 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** Response for the languages API. */ -export interface GetLanguagesResultOutput { - /** Languages that support translate API. */ - translation?: Record; - /** Languages that support transliteration API. */ - transliteration?: Record; - /** Languages that support dictionary API. */ - dictionary?: Record; -} - -/** - * The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. - * A key identifies a language for which text can be translated to or translated from. - */ -export interface TranslationLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; -} - -/** - * The value of the transliteration property is a dictionary of (key, value) pairs. - * Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script - * to another script. - */ -export interface TransliterationLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** List of scripts to convert from. */ - scripts: Array; -} - -/** Script definition with list of script into which given script can be translitered. */ -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - /** List of scripts available to convert text to. */ - toScripts: Array; -} - -/** Common properties of language script */ -export interface CommonScriptModelOutput { - /** Code identifying the script. */ - code: string; - /** Display name of the script in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for the language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; -} - -/** Properties ot the source dictionary language */ -export interface SourceDictionaryLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; - /** List of languages with alterative translations and examples for the query expressed in the source language. */ - translations: Array; -} - -/** Properties of the target dictionary language */ -export interface TargetDictionaryLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; - /** Language code identifying the target language. */ - code: string; -} - -/** Representation of the Error Response from Translator Service. */ -export interface ErrorResponseOutput { - /** Error details. */ - error: ErrorDetailsOutput; -} - -/** Error details as returned by Translator Service. */ -export interface ErrorDetailsOutput { - /** Number identifier of the error. */ - code: number; - /** Human readable error description. */ - message: string; -} - -/** Element containing the translated text */ -export interface TranslatedTextItemOutput { - /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ - detectedLanguage?: DetectedLanguageOutput; - /** - * An array of translation results. The size of the array matches the number of target - * languages specified through the to query parameter. - */ - translations: Array; - /** - * Input text in the default script of the source language. sourceText property is present only when - * the input is expressed in a script that's not the usual script for the language. For example, - * if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text - * converted into Arab script. - */ - sourceText?: SourceTextOutput; -} - -/** An object describing the detected language. */ -export interface DetectedLanguageOutput { - /** A string representing the code of the detected language. */ - language: string; - /** - * A float value indicating the confidence in the result. - * The score is between zero and one and a low score indicates a low confidence. - */ - score: number; -} - -/** Translation result */ -export interface TranslationOutput { - /** A string representing the language code of the target language. */ - to: string; - /** A string giving the translated text. */ - text: string; - /** An object giving the translated text in the script specified by the toScript parameter. */ - transliteration?: TransliteratedTextOutput; - /** Alignment information. */ - alignment?: TranslatedTextAlignmentOutput; - /** Sentence boundaries in the input and output texts. */ - sentLen?: SentenceLengthOutput; -} - -/** Transliterated text element. */ -export interface TransliteratedTextOutput { - /** A string which is the result of converting the input string to the output script. */ - text: string; - /** A string specifying the script used in the output. */ - script: string; -} - -/** Alignment information object. */ -export interface TranslatedTextAlignmentOutput { - /** - * Maps input text to translated text. The alignment information is only provided when the request - * parameter includeAlignment is true. Alignment is returned as a string value of the following - * format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. - * The colon separates start and end index, the dash separates the languages, and space separates the words. - * One word may align with zero, one, or multiple words in the other language, and the aligned words may - * be non-contiguous. When no alignment information is available, the alignment element will be empty. - */ - proj: string; -} - -/** An object returning sentence boundaries in the input and output texts. */ -export interface SentenceLengthOutput { - /** - * An integer array representing the lengths of the sentences in the input text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - srcSentLen: number[]; - /** - * An integer array representing the lengths of the sentences in the translated text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - transSentLen: number[]; -} - -/** Input text in the default script of the source language. */ -export interface SourceTextOutput { - /** Input text in the default script of the source language. */ - text: string; -} - -/** Item containing break sentence result. */ -export interface BreakSentenceItemOutput { - /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ - detectedLanguage?: DetectedLanguageOutput; - /** - * An integer array representing the lengths of the sentences in the input text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - sentLen: number[]; -} - -/** Dictionary Lookup Element */ -export interface DictionaryLookupItemOutput { - /** - * A string giving the normalized form of the source term. - * For example, if the request is "JOHN", the normalized form will be "john". - * The content of this field becomes the input to lookup examples. - */ - normalizedSource: string; - /** - * A string giving the source term in a form best suited for end-user display. - * For example, if the input is "JOHN", the display form will reflect the usual - * spelling of the name: "John". - */ - displaySource: string; - /** A list of translations for the source term. */ - translations: Array; -} - -/** Translation source term. */ -export interface DictionaryTranslationOutput { - /** - * A string giving the normalized form of this term in the target language. - * This value should be used as input to lookup examples. - */ - normalizedTarget: string; - /** - * A string giving the term in the target language and in a form best suited - * for end-user display. Generally, this will only differ from the normalizedTarget - * in terms of capitalization. For example, a proper noun like "Juan" will have - * normalizedTarget = "juan" and displayTarget = "Juan". - */ - displayTarget: string; - /** A string associating this term with a part-of-speech tag. */ - posTag: string; - /** - * A value between 0.0 and 1.0 which represents the "confidence" - * (or perhaps more accurately, "probability in the training data") of that translation pair. - * The sum of confidence scores for one source word may or may not sum to 1.0. - */ - confidence: number; - /** - * A string giving the word to display as a prefix of the translation. Currently, - * this is the gendered determiner of nouns, in languages that have gendered determiners. - * For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. - * This is only dependent on the translation, and not on the source. - * If there is no prefix, it will be the empty string. - */ - prefixWord: string; - /** - * A list of "back translations" of the target. For example, source words that the target can translate to. - * The list is guaranteed to contain the source word that was requested (e.g., if the source word being - * looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). - * However, it is not guaranteed to be in the first position, and often will not be. - */ - backTranslations: Array; -} - -/** Back Translation */ -export interface BackTranslationOutput { - /** - * A string giving the normalized form of the source term that is a back-translation of the target. - * This value should be used as input to lookup examples. - */ - normalizedText: string; - /** - * A string giving the source term that is a back-translation of the target in a form best - * suited for end-user display. - */ - displayText: string; - /** - * An integer representing the number of examples that are available for this translation pair. - * Actual examples must be retrieved with a separate call to lookup examples. The number is mostly - * intended to facilitate display in a UX. For example, a user interface may add a hyperlink - * to the back-translation if the number of examples is greater than zero and show the back-translation - * as plain text if there are no examples. Note that the actual number of examples returned - * by a call to lookup examples may be less than numExamples, because additional filtering may be - * applied on the fly to remove "bad" examples. - */ - numExamples: number; - /** - * An integer representing the frequency of this translation pair in the data. The main purpose of this - * field is to provide a user interface with a means to sort back-translations so the most frequent terms are first. - */ - frequencyCount: number; -} - -/** Dictionary Example element */ -export interface DictionaryExampleItemOutput { - /** - * A string giving the normalized form of the source term. Generally, this should be identical - * to the value of the Text field at the matching list index in the body of the request. - */ - normalizedSource: string; - /** - * A string giving the normalized form of the target term. Generally, this should be identical - * to the value of the Translation field at the matching list index in the body of the request. - */ - normalizedTarget: string; - /** A list of examples for the (source term, target term) pair. */ - examples: Array; -} - -/** Dictionary Example */ -export interface DictionaryExampleOutput { - /** - * The string to concatenate before the value of sourceTerm to form a complete example. - * Do not add a space character, since it is already there when it should be. - * This value may be an empty string. - */ - sourcePrefix: string; - /** - * A string equal to the actual term looked up. The string is added with sourcePrefix - * and sourceSuffix to form the complete example. Its value is separated so it can be - * marked in a user interface, e.g., by bolding it. - */ - sourceTerm: string; - /** - * The string to concatenate after the value of sourceTerm to form a complete example. - * Do not add a space character, since it is already there when it should be. - * This value may be an empty string. - */ - sourceSuffix: string; - /** A string similar to sourcePrefix but for the target. */ - targetPrefix: string; - /** A string similar to sourceTerm but for the target. */ - targetTerm: string; - /** A string similar to sourceSuffix but for the target. */ - targetSuffix: string; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.ts deleted file mode 100644 index 709d234da6a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/responses.ts +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { - GetLanguagesResultOutput, - ErrorResponseOutput, - TranslatedTextItemOutput, - TransliteratedTextOutput, - BreakSentenceItemOutput, - DictionaryLookupItemOutput, - DictionaryExampleItemOutput, -} from "./outputModels"; - -export interface GetLanguages200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; - /** - * Current value of the entity tag for the requested groups of supported languages. - * To make subsequent requests more efficient, the client may send the `ETag` value in an - * `If-None-Match` header field. - */ - etag: string; -} - -/** The request has succeeded. */ -export interface GetLanguages200Response extends HttpResponse { - status: "200"; - body: GetLanguagesResultOutput; - headers: RawHttpHeaders & GetLanguages200Headers; -} - -export interface GetLanguagesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface GetLanguagesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; -} - -export interface Translate200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; - /** - * Specifies the system type that was used for translation for each 'to' language requested for translation. - * The value is a comma-separated list of strings. Each string indicates a type: - * - * * Custom - Request includes a custom system and at least one custom system was used during translation. - * * Team - All other requests - */ - "x-mt-system": string; - /** - * Specifies consumption (the number of characters for which the user will be charged) for the translation - * job request. For example, if the word "Hello" is translated from English (en) to French (fr), - * this field will return the value '5'. - */ - "x-metered-usage": number; -} - -/** Response for the translation API. */ -export interface Translate200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & Translate200Headers; -} - -export interface TranslateDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface TranslateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & TranslateDefaultHeaders; -} - -export interface Transliterate200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -/** Response for the transliteration API. */ -export interface Transliterate200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & Transliterate200Headers; -} - -export interface TransliterateDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface TransliterateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & TransliterateDefaultHeaders; -} - -export interface FindSentenceBoundaries200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -/** Response for the Break SEntence API. */ -export interface FindSentenceBoundaries200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; -} - -export interface FindSentenceBoundariesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; -} - -export interface LookupDictionaryEntries200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -/** Response for the dictionary lookup API. */ -export interface LookupDictionaryEntries200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; -} - -export interface LookupDictionaryEntriesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; -} - -export interface LookupDictionaryExamples200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -/** Response for the dictionary examples API. */ -export interface LookupDictionaryExamples200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; -} - -export interface LookupDictionaryExamplesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.ts deleted file mode 100644 index 4a0a83f7ce0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/serializeHelper.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -export function buildMultiCollection(items: string[], parameterName: string): string { - return items - .map((item, index) => { - if (index === 0) { - return item; - } - return `${parameterName}=${item}`; - }) - .join("&"); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.ts deleted file mode 100644 index f95ee452adb..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/clientDefinitions.ts +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - GetLanguagesParameters, - TranslateParameters, - TransliterateParameters, - FindSentenceBoundariesParameters, - LookupDictionaryEntriesParameters, - LookupDictionaryExamplesParameters, -} from "./parameters"; -import { - GetLanguages200Response, - GetLanguagesDefaultResponse, - Translate200Response, - TranslateDefaultResponse, - Transliterate200Response, - TransliterateDefaultResponse, - FindSentenceBoundaries200Response, - FindSentenceBoundariesDefaultResponse, - LookupDictionaryEntries200Response, - LookupDictionaryEntriesDefaultResponse, - LookupDictionaryExamples200Response, - LookupDictionaryExamplesDefaultResponse, -} from "./responses"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; - -export interface GetLanguages { - /** Gets the set of languages currently supported by other operations of the Translator. */ - get( - options?: GetLanguagesParameters, - ): StreamableMethod; -} - -export interface Translate { - /** Translate Text */ - post( - options: TranslateParameters, - ): StreamableMethod; -} - -export interface Transliterate { - /** Transliterate Text */ - post( - options: TransliterateParameters, - ): StreamableMethod; -} - -export interface FindSentenceBoundaries { - /** Find Sentence Boundaries */ - post( - options: FindSentenceBoundariesParameters, - ): StreamableMethod; -} - -export interface LookupDictionaryEntries { - /** Lookup Dictionary Entries */ - post( - options: LookupDictionaryEntriesParameters, - ): StreamableMethod; -} - -export interface LookupDictionaryExamples { - /** Lookup Dictionary Examples */ - post( - options: LookupDictionaryExamplesParameters, - ): StreamableMethod< - LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse - >; -} - -export interface Routes { - /** Resource for '/languages' has methods for the following verbs: get */ - (path: "/languages"): GetLanguages; - /** Resource for '/translate' has methods for the following verbs: post */ - (path: "/translate"): Translate; - /** Resource for '/transliterate' has methods for the following verbs: post */ - (path: "/transliterate"): Transliterate; - /** Resource for '/breaksentence' has methods for the following verbs: post */ - (path: "/breaksentence"): FindSentenceBoundaries; - /** Resource for '/dictionary/lookup' has methods for the following verbs: post */ - (path: "/dictionary/lookup"): LookupDictionaryEntries; - /** Resource for '/dictionary/examples' has methods for the following verbs: post */ - (path: "/dictionary/examples"): LookupDictionaryExamples; -} - -export type TextTranslationClient = Client & { - path: Routes; -}; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.ts deleted file mode 100644 index 1eae16403e0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/custom/authentication.ts +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { AzureKeyCredential, TokenCredential } from "@azure/core-auth"; -import { - PipelinePolicy, - PipelineRequest, - PipelineResponse, - SendRequest, -} from "@azure/core-rest-pipeline"; - -const APIM_KEY_HEADER_NAME = "Ocp-Apim-Subscription-Key"; -const APIM_REGION_HEADER_NAME = "Ocp-Apim-Subscription-Region"; -const APIM_RESOURCE_ID = "Ocp-Apim-ResourceId"; -export const DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default"; - -export interface TranslatorCredential { - key: string; - region: string; -} - -export interface TranslatorTokenCredential { - tokenCredential: TokenCredential; - region: string; - azureResourceId: string; -} - -export class TranslatorAuthenticationPolicy implements PipelinePolicy { - name: string = "TranslatorAuthenticationPolicy"; - credential: TranslatorCredential; - - constructor(credential: TranslatorCredential) { - this.credential = credential; - } - - sendRequest(request: PipelineRequest, next: SendRequest): Promise { - request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); - request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); - - return next(request); - } -} - -export class TranslatorAzureKeyAuthenticationPolicy implements PipelinePolicy { - name: string = "TranslatorAzureKeyAuthenticationPolicy"; - credential: AzureKeyCredential; - - constructor(credential: AzureKeyCredential) { - this.credential = credential; - } - - sendRequest(request: PipelineRequest, next: SendRequest): Promise { - request.headers.set(APIM_KEY_HEADER_NAME, this.credential.key); - - return next(request); - } -} - -export class TranslatorTokenCredentialAuthenticationPolicy implements PipelinePolicy { - name: string = "TranslatorTokenCredentialAuthenticationPolicy"; - credential: TranslatorTokenCredential; - - constructor(credential: TranslatorTokenCredential) { - this.credential = credential; - } - - sendRequest(request: PipelineRequest, next: SendRequest): Promise { - request.headers.set(APIM_REGION_HEADER_NAME, this.credential.region); - request.headers.set(APIM_RESOURCE_ID, this.credential.azureResourceId); - - return next(request); - } -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts similarity index 97% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.ts rename to tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts index f6115fe67f4..ba2cf16c634 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/custom/customClient.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT license. import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "../logger"; +import { logger } from "./logger"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { TextTranslationClient } from "../clientDefinitions"; +import { TextTranslationClient } from "./clientDefinitions"; import { DEFAULT_SCOPE, TranslatorCredential, diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.ts deleted file mode 100644 index 1f53069e787..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import TextTranslationClient from "./custom/customClient"; - -export * from "./custom/customClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./serializeHelper"; -export { TranslatorCredential, TranslatorTokenCredential } from "./custom/authentication"; - -export default TextTranslationClient; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.ts deleted file mode 100644 index aa40d5d88b3..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/isUnexpected.ts +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - GetLanguages200Response, - GetLanguagesDefaultResponse, - Translate200Response, - TranslateDefaultResponse, - Transliterate200Response, - TransliterateDefaultResponse, - FindSentenceBoundaries200Response, - FindSentenceBoundariesDefaultResponse, - LookupDictionaryEntries200Response, - LookupDictionaryEntriesDefaultResponse, - LookupDictionaryExamples200Response, - LookupDictionaryExamplesDefaultResponse, -} from "./responses"; - -const responseMap: Record = { - "GET /languages": ["200"], - "POST /translate": ["200"], - "POST /transliterate": ["200"], - "POST /breaksentence": ["200"], - "POST /dictionary/lookup": ["200"], - "POST /dictionary/examples": ["200"], -}; - -export function isUnexpected( - response: GetLanguages200Response | GetLanguagesDefaultResponse, -): response is GetLanguagesDefaultResponse; -export function isUnexpected( - response: Translate200Response | TranslateDefaultResponse, -): response is TranslateDefaultResponse; -export function isUnexpected( - response: Transliterate200Response | TransliterateDefaultResponse, -): response is TransliterateDefaultResponse; -export function isUnexpected( - response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse, -): response is FindSentenceBoundariesDefaultResponse; -export function isUnexpected( - response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse, -): response is LookupDictionaryEntriesDefaultResponse; -export function isUnexpected( - response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse, -): response is LookupDictionaryExamplesDefaultResponse; -export function isUnexpected( - response: - | GetLanguages200Response - | GetLanguagesDefaultResponse - | Translate200Response - | TranslateDefaultResponse - | Transliterate200Response - | TransliterateDefaultResponse - | FindSentenceBoundaries200Response - | FindSentenceBoundariesDefaultResponse - | LookupDictionaryEntries200Response - | LookupDictionaryEntriesDefaultResponse - | LookupDictionaryExamples200Response - | LookupDictionaryExamplesDefaultResponse, -): response is - | GetLanguagesDefaultResponse - | TranslateDefaultResponse - | TransliterateDefaultResponse - | FindSentenceBoundariesDefaultResponse - | LookupDictionaryEntriesDefaultResponse - | LookupDictionaryExamplesDefaultResponse { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} - -function getParametrizedPathSuccess(method: string, path: string): string[] { - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: string[] = []; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "", - ); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.ts deleted file mode 100644 index d2cdd4fac44..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/logger.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { createClientLogger } from "@azure/logger"; -export const logger = createClientLogger("ai-translation-text"); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.ts deleted file mode 100644 index 66a1b2fd05e..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/outputModels.ts +++ /dev/null @@ -1,320 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** Response for the languages API. */ -export interface GetLanguagesResultOutput { - /** Languages that support translate API. */ - translation?: Record; - /** Languages that support transliteration API. */ - transliteration?: Record; - /** Languages that support dictionary API. */ - dictionary?: Record; -} - -/** - * The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. - * A key identifies a language for which text can be translated to or translated from. - */ -export interface TranslationLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; -} - -/** - * The value of the transliteration property is a dictionary of (key, value) pairs. - * Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script - * to another script. - */ -export interface TransliterationLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** List of scripts to convert from. */ - scripts: Array; -} - -/** Script definition with list of script into which given script can be translitered. */ -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - /** List of scripts available to convert text to. */ - toScripts: Array; -} - -/** Common properties of language script */ -export interface CommonScriptModelOutput { - /** Code identifying the script. */ - code: string; - /** Display name of the script in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for the language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; -} - -/** Properties ot the source dictionary language */ -export interface SourceDictionaryLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; - /** List of languages with alterative translations and examples for the query expressed in the source language. */ - translations: Array; -} - -/** Properties of the target dictionary language */ -export interface TargetDictionaryLanguageOutput { - /** Display name of the language in the locale requested via Accept-Language header. */ - name: string; - /** Display name of the language in the locale native for this language. */ - nativeName: string; - /** Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. */ - dir: string; - /** Language code identifying the target language. */ - code: string; -} - -/** Representation of the Error Response from Translator Service. */ -export interface ErrorResponseOutput { - /** Error details. */ - error: ErrorDetailsOutput; -} - -/** Error details as returned by Translator Service. */ -export interface ErrorDetailsOutput { - /** Number identifier of the error. */ - code: number; - /** Human readable error description. */ - message: string; -} - -/** Element containing the translated text */ -export interface TranslatedTextItemOutput { - /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ - detectedLanguage?: DetectedLanguageOutput; - /** - * An array of translation results. The size of the array matches the number of target - * languages specified through the to query parameter. - */ - translations: Array; - /** - * Input text in the default script of the source language. sourceText property is present only when - * the input is expressed in a script that's not the usual script for the language. For example, - * if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text - * converted into Arab script. - */ - sourceText?: SourceTextOutput; -} - -/** An object describing the detected language. */ -export interface DetectedLanguageOutput { - /** A string representing the code of the detected language. */ - language: string; - /** - * A float value indicating the confidence in the result. - * The score is between zero and one and a low score indicates a low confidence. - */ - score: number; -} - -/** Translation result */ -export interface TranslationOutput { - /** A string representing the language code of the target language. */ - to: string; - /** A string giving the translated text. */ - text: string; - /** An object giving the translated text in the script specified by the toScript parameter. */ - transliteration?: TransliteratedTextOutput; - /** Alignment information. */ - alignment?: TranslatedTextAlignmentOutput; - /** Sentence boundaries in the input and output texts. */ - sentLen?: SentenceLengthOutput; -} - -/** Transliterated text element. */ -export interface TransliteratedTextOutput { - /** A string which is the result of converting the input string to the output script. */ - text: string; - /** A string specifying the script used in the output. */ - script: string; -} - -/** Alignment information object. */ -export interface TranslatedTextAlignmentOutput { - /** - * Maps input text to translated text. The alignment information is only provided when the request - * parameter includeAlignment is true. Alignment is returned as a string value of the following - * format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. - * The colon separates start and end index, the dash separates the languages, and space separates the words. - * One word may align with zero, one, or multiple words in the other language, and the aligned words may - * be non-contiguous. When no alignment information is available, the alignment element will be empty. - */ - proj: string; -} - -/** An object returning sentence boundaries in the input and output texts. */ -export interface SentenceLengthOutput { - /** - * An integer array representing the lengths of the sentences in the input text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - srcSentLen: number[]; - /** - * An integer array representing the lengths of the sentences in the translated text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - transSentLen: number[]; -} - -/** Input text in the default script of the source language. */ -export interface SourceTextOutput { - /** Input text in the default script of the source language. */ - text: string; -} - -/** Item containing break sentence result. */ -export interface BreakSentenceItemOutput { - /** The detectedLanguage property is only present in the result object when language auto-detection is requested. */ - detectedLanguage?: DetectedLanguageOutput; - /** - * An integer array representing the lengths of the sentences in the input text. - * The length of the array is the number of sentences, and the values are the length of each sentence. - */ - sentLen: number[]; -} - -/** Dictionary Lookup Element */ -export interface DictionaryLookupItemOutput { - /** - * A string giving the normalized form of the source term. - * For example, if the request is "JOHN", the normalized form will be "john". - * The content of this field becomes the input to lookup examples. - */ - normalizedSource: string; - /** - * A string giving the source term in a form best suited for end-user display. - * For example, if the input is "JOHN", the display form will reflect the usual - * spelling of the name: "John". - */ - displaySource: string; - /** A list of translations for the source term. */ - translations: Array; -} - -/** Translation source term. */ -export interface DictionaryTranslationOutput { - /** - * A string giving the normalized form of this term in the target language. - * This value should be used as input to lookup examples. - */ - normalizedTarget: string; - /** - * A string giving the term in the target language and in a form best suited - * for end-user display. Generally, this will only differ from the normalizedTarget - * in terms of capitalization. For example, a proper noun like "Juan" will have - * normalizedTarget = "juan" and displayTarget = "Juan". - */ - displayTarget: string; - /** A string associating this term with a part-of-speech tag. */ - posTag: string; - /** - * A value between 0.0 and 1.0 which represents the "confidence" - * (or perhaps more accurately, "probability in the training data") of that translation pair. - * The sum of confidence scores for one source word may or may not sum to 1.0. - */ - confidence: number; - /** - * A string giving the word to display as a prefix of the translation. Currently, - * this is the gendered determiner of nouns, in languages that have gendered determiners. - * For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. - * This is only dependent on the translation, and not on the source. - * If there is no prefix, it will be the empty string. - */ - prefixWord: string; - /** - * A list of "back translations" of the target. For example, source words that the target can translate to. - * The list is guaranteed to contain the source word that was requested (e.g., if the source word being - * looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). - * However, it is not guaranteed to be in the first position, and often will not be. - */ - backTranslations: Array; -} - -/** Back Translation */ -export interface BackTranslationOutput { - /** - * A string giving the normalized form of the source term that is a back-translation of the target. - * This value should be used as input to lookup examples. - */ - normalizedText: string; - /** - * A string giving the source term that is a back-translation of the target in a form best - * suited for end-user display. - */ - displayText: string; - /** - * An integer representing the number of examples that are available for this translation pair. - * Actual examples must be retrieved with a separate call to lookup examples. The number is mostly - * intended to facilitate display in a UX. For example, a user interface may add a hyperlink - * to the back-translation if the number of examples is greater than zero and show the back-translation - * as plain text if there are no examples. Note that the actual number of examples returned - * by a call to lookup examples may be less than numExamples, because additional filtering may be - * applied on the fly to remove "bad" examples. - */ - numExamples: number; - /** - * An integer representing the frequency of this translation pair in the data. The main purpose of this - * field is to provide a user interface with a means to sort back-translations so the most frequent terms are first. - */ - frequencyCount: number; -} - -/** Dictionary Example element */ -export interface DictionaryExampleItemOutput { - /** - * A string giving the normalized form of the source term. Generally, this should be identical - * to the value of the Text field at the matching list index in the body of the request. - */ - normalizedSource: string; - /** - * A string giving the normalized form of the target term. Generally, this should be identical - * to the value of the Translation field at the matching list index in the body of the request. - */ - normalizedTarget: string; - /** A list of examples for the (source term, target term) pair. */ - examples: Array; -} - -/** Dictionary Example */ -export interface DictionaryExampleOutput { - /** - * The string to concatenate before the value of sourceTerm to form a complete example. - * Do not add a space character, since it is already there when it should be. - * This value may be an empty string. - */ - sourcePrefix: string; - /** - * A string equal to the actual term looked up. The string is added with sourcePrefix - * and sourceSuffix to form the complete example. Its value is separated so it can be - * marked in a user interface, e.g., by bolding it. - */ - sourceTerm: string; - /** - * The string to concatenate after the value of sourceTerm to form a complete example. - * Do not add a space character, since it is already there when it should be. - * This value may be an empty string. - */ - sourceSuffix: string; - /** A string similar to sourcePrefix but for the target. */ - targetPrefix: string; - /** A string similar to sourceTerm but for the target. */ - targetTerm: string; - /** A string similar to sourceSuffix but for the target. */ - targetSuffix: string; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.ts deleted file mode 100644 index 709d234da6a..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/responses.ts +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { - GetLanguagesResultOutput, - ErrorResponseOutput, - TranslatedTextItemOutput, - TransliteratedTextOutput, - BreakSentenceItemOutput, - DictionaryLookupItemOutput, - DictionaryExampleItemOutput, -} from "./outputModels"; - -export interface GetLanguages200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; - /** - * Current value of the entity tag for the requested groups of supported languages. - * To make subsequent requests more efficient, the client may send the `ETag` value in an - * `If-None-Match` header field. - */ - etag: string; -} - -/** The request has succeeded. */ -export interface GetLanguages200Response extends HttpResponse { - status: "200"; - body: GetLanguagesResultOutput; - headers: RawHttpHeaders & GetLanguages200Headers; -} - -export interface GetLanguagesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface GetLanguagesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; -} - -export interface Translate200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; - /** - * Specifies the system type that was used for translation for each 'to' language requested for translation. - * The value is a comma-separated list of strings. Each string indicates a type: - * - * * Custom - Request includes a custom system and at least one custom system was used during translation. - * * Team - All other requests - */ - "x-mt-system": string; - /** - * Specifies consumption (the number of characters for which the user will be charged) for the translation - * job request. For example, if the word "Hello" is translated from English (en) to French (fr), - * this field will return the value '5'. - */ - "x-metered-usage": number; -} - -/** Response for the translation API. */ -export interface Translate200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & Translate200Headers; -} - -export interface TranslateDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface TranslateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & TranslateDefaultHeaders; -} - -export interface Transliterate200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -/** Response for the transliteration API. */ -export interface Transliterate200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & Transliterate200Headers; -} - -export interface TransliterateDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface TransliterateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & TransliterateDefaultHeaders; -} - -export interface FindSentenceBoundaries200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -/** Response for the Break SEntence API. */ -export interface FindSentenceBoundaries200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; -} - -export interface FindSentenceBoundariesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; -} - -export interface LookupDictionaryEntries200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -/** Response for the dictionary lookup API. */ -export interface LookupDictionaryEntries200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; -} - -export interface LookupDictionaryEntriesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; -} - -export interface LookupDictionaryExamples200Headers { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -/** Response for the dictionary examples API. */ -export interface LookupDictionaryExamples200Response extends HttpResponse { - status: "200"; - body: Array; - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; -} - -export interface LookupDictionaryExamplesDefaultHeaders { - /** Value generated by the service to identify the request. It is used for troubleshooting purposes. */ - "x-requestid": string; -} - -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; -} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.ts deleted file mode 100644 index 4a0a83f7ce0..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serializeHelper.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -export function buildMultiCollection(items: string[], parameterName: string): string { - return items - .map((item, index) => { - if (index === 0) { - return item; - } - return `${parameterName}=${item}`; - }) - .join("&"); -} From d71068e937045a860c80eda313fd3d2f6b0f2890 Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 8 Aug 2024 08:41:37 +0800 Subject: [PATCH 17/35] Updated ApiVersionTypeExtractor --- tools/js-sdk-release-tools/package-lock.json | 157 ------------------ .../llc/apiVersion/apiVersionTypeExtractor.ts | 6 +- .../mlc/apiVersion/apiVersionTypeExtractor.ts | 44 +---- .../src/xlc/apiVersion/utils.ts | 52 ++++++ 4 files changed, 58 insertions(+), 201 deletions(-) diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index 0f80baff600..cc1314bd667 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -34,7 +34,6 @@ "rlc-code-gen": "dist/rlcCodegenCli.js" }, "devDependencies": { - "@rollup/plugin-commonjs": "^26.0.1", "@types/node": "^20.12.12", "@types/shelljs": "^0.8.15", "rimraf": "^3.0.2", @@ -934,146 +933,6 @@ "node": "^12.20.0 || ^14.18.0 || >=16.0.0" } }, - "node_modules/@rollup/plugin-commonjs": { - "version": "26.0.1", - "resolved": "https://registry.npmmirror.com/@rollup/plugin-commonjs/-/plugin-commonjs-26.0.1.tgz", - "integrity": "sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "commondir": "^1.0.1", - "estree-walker": "^2.0.2", - "glob": "^10.4.1", - "is-reference": "1.2.1", - "magic-string": "^0.30.3" - }, - "engines": { - "node": ">=16.0.0 || 14 >= 14.17" - }, - "peerDependencies": { - "rollup": "^2.68.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, - "node_modules/@rollup/plugin-commonjs/node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmmirror.com/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "node_modules/@rollup/plugin-commonjs/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@rollup/pluginutils": { - "version": "5.1.0", - "resolved": "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz", - "integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==", - "dev": true, - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/pluginutils/node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.18.0", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", @@ -2472,12 +2331,6 @@ "node": ">= 6" } }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "dev": true - }, "node_modules/commonmark": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.28.1.tgz", @@ -3877,15 +3730,6 @@ "node": ">=8" } }, - "node_modules/is-reference": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/is-reference/-/is-reference-1.2.1.tgz", - "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", - "dev": true, - "dependencies": { - "@types/estree": "*" - } - }, "node_modules/is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -7129,7 +6973,6 @@ "typescript-eslint": "^7.17.0" }, "devDependencies": { - "@rollup/plugin-commonjs": "^26.0.1", "@types/eslint": "^8.56.10", "@types/eslint-scope": "^3.7.7", "@types/fs-extra": "^11.0.4", diff --git a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts index 63932b1fcb2..4a7ac15176f 100644 --- a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts @@ -2,14 +2,14 @@ import shell from "shelljs"; import path from "path"; import { ApiVersionType } from "../../common/types"; import { IApiVersionTypeExtractor } from "../../common/interfaces"; -import { getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; +import { findParametersPath, getApiVersionTypeFromOperations, getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; const findRestClientPath = (packageRoot: string): string => { const restPath = path.join(packageRoot, "src/"); const fileNames = shell.ls(restPath); const clientFiles = fileNames.filter((f) => f.endsWith("Client.ts")); if (clientFiles.length !== 1) - throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); + throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); const clientPath = path.join(restPath, clientFiles[0]); return clientPath; @@ -21,5 +21,7 @@ export const getApiVersionType: IApiVersionTypeExtractor = ( const relativeRestSrcFolder = "src/"; const typeFromClient = getApiVersionTypeFromRestClient(packageRoot, relativeRestSrcFolder, findRestClientPath); if (typeFromClient !== ApiVersionType.None) return typeFromClient; + const typeFromOperations = getApiVersionTypeFromOperations(packageRoot, relativeRestSrcFolder, findParametersPath); + if (typeFromOperations !== ApiVersionType.None) return typeFromOperations; return ApiVersionType.Stable; }; diff --git a/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts index 472cc967b80..cd2ee6fbcb0 100644 --- a/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts @@ -1,46 +1,6 @@ -import { SourceFile, SyntaxKind } from "ts-morph"; -import path from "path"; import { ApiVersionType } from "../../common/types"; import { IApiVersionTypeExtractor } from "../../common/interfaces"; -import { getTsSourceFile } from "../../common/utils"; -import { findRestClientPath, getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; - -const findApiVersionsInOperations = ( - sourceFile: SourceFile | undefined -): Array | undefined => { - const interfaces = sourceFile?.getInterfaces(); - const interfacesWithApiVersion = interfaces?.filter((itf) => - itf.getProperty('"api-version"') - ); - const apiVersions = interfacesWithApiVersion?.map((itf) => { - const property = itf.getMembers().filter((m) => { - const defaultValue = m.getChildrenOfKind( - SyntaxKind.StringLiteral - )[0]; - return defaultValue && defaultValue.getText() === '"api-version"'; - })[0]; - const apiVersion = property - .getChildrenOfKind(SyntaxKind.LiteralType)[0] - .getText(); - return apiVersion; - }); - return apiVersions; -}; - -const getApiVersionTypeFromOperations: IApiVersionTypeExtractor = ( - packageRoot: string -): ApiVersionType => { - const paraPath = path.join(packageRoot, "src/rest/parameters.ts"); - const sourceFile = getTsSourceFile(paraPath); - const apiVersions = findApiVersionsInOperations(sourceFile); - if (!apiVersions) return ApiVersionType.None; - const previewVersions = apiVersions.filter( - (v) => v.indexOf("-preview") >= 0 - ); - return previewVersions.length > 0 - ? ApiVersionType.Preview - : ApiVersionType.Stable; -}; +import { findParametersPath, findRestClientPath, getApiVersionTypeFromOperations, getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; export const getApiVersionType: IApiVersionTypeExtractor = ( packageRoot: string @@ -48,7 +8,7 @@ export const getApiVersionType: IApiVersionTypeExtractor = ( const relativeRestSrcFolder = "src/rest/"; const typeFromClient = getApiVersionTypeFromRestClient(packageRoot, relativeRestSrcFolder, findRestClientPath); if (typeFromClient !== ApiVersionType.None) return typeFromClient; - const typeFromOperations = getApiVersionTypeFromOperations(packageRoot); + const typeFromOperations = getApiVersionTypeFromOperations(packageRoot, relativeRestSrcFolder, findParametersPath); if (typeFromOperations !== ApiVersionType.None) return typeFromOperations; return ApiVersionType.Stable; }; diff --git a/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts b/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts index 02e9981262f..0345a6248a6 100644 --- a/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts +++ b/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts @@ -4,6 +4,8 @@ import { ApiVersionType } from "../../common/types"; import ts from "typescript"; import path from "node:path"; import shell from "shelljs"; +import { SourceFile, SyntaxKind } from "ts-morph"; +import { IApiVersionTypeExtractor } from "../../common/interfaces"; const findApiVersionInRestClientV1 = ( clientPath: string @@ -51,6 +53,28 @@ const findApiVersionInRestClientV2 = (clientPath: string): string | undefined => return apiVersion; }; +const findApiVersionsInOperations = ( + sourceFile: SourceFile | undefined +): Array | undefined => { + const interfaces = sourceFile?.getInterfaces(); + const interfacesWithApiVersion = interfaces?.filter((itf) => + itf.getProperty('"api-version"') + ); + const apiVersions = interfacesWithApiVersion?.map((itf) => { + const property = itf.getMembers().filter((m) => { + const defaultValue = m.getChildrenOfKind( + SyntaxKind.StringLiteral + )[0]; + return defaultValue && defaultValue.getText() === '"api-version"'; + })[0]; + const apiVersion = property + .getChildrenOfKind(SyntaxKind.LiteralType)[0] + .getText(); + return apiVersion; + }); + return apiVersions; +}; + // workaround for createClient function changes it's way to setup api-version export const findApiVersionInRestClient = (clientPath: string): string | undefined => { const version2 = findApiVersionInRestClientV2(clientPath); @@ -72,6 +96,17 @@ export const findRestClientPath = (packageRoot: string, relativeRestSrcFolder: s return clientPath; }; +export const findParametersPath = (packageRoot: string, relativeParametersFolder: string): string => { + const parametersPath = path.join(packageRoot, relativeParametersFolder); + const fileNames = shell.ls(parametersPath); + const clientFiles = fileNames.filter((f) => f === "parameters.ts"); + if (clientFiles.length !== 1) + throw new Error(`Single client is supported, but found "${clientFiles}" in ${parametersPath}`); + + const clientPath = path.join(parametersPath, clientFiles[0]); + return clientPath; +}; + export const getApiVersionTypeFromRestClient = ( packageRoot: string, relativeRestSrcFolder: string, @@ -84,4 +119,21 @@ export const getApiVersionTypeFromRestClient = ( if (apiVersion && apiVersion.indexOf("-preview") < 0) return ApiVersionType.Stable; return ApiVersionType.None; +}; + +export const getApiVersionTypeFromOperations = ( + packageRoot: string, + relativeParametersFolder: string, + findPararametersPath: (packageRoot: string, relativeParametersFolder: string) => string +): ApiVersionType => { + const paraPath = findPararametersPath(packageRoot, relativeParametersFolder); + const sourceFile = getTsSourceFile(paraPath); + const apiVersions = findApiVersionsInOperations(sourceFile); + if (!apiVersions) return ApiVersionType.None; + const previewVersions = apiVersions.filter( + (v) => v.indexOf("-preview") >= 0 + ); + return previewVersions.length > 0 + ? ApiVersionType.Preview + : ApiVersionType.Stable; }; \ No newline at end of file From 07d05556d02dc88077e22194fa5fe4905d9a6964 Mon Sep 17 00:00:00 2001 From: wanl Date: Mon, 12 Aug 2024 16:41:04 +0800 Subject: [PATCH 18/35] Remove --- tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index d52f146f2a9..006925045b0 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -209,8 +209,6 @@ export class Changelog { const inlineMessages = messages.filter(m => m.kind === RuleMessageKind.InlineDeclarationNameSetMessage).map(m => m as InlineDeclarationNameSetMessage) this.processInlineMessage(inlineMessages) } - - private postProcessAdd } // todo: special rules for HLC convert to Modular, will use a more generic method to replace From 20e6c5865b1d482a659b026039ba9053bae5e647 Mon Sep 17 00:00:00 2001 From: Wanpeng Li Date: Mon, 12 Aug 2024 17:21:14 +0800 Subject: [PATCH 19/35] Update changelogGenerator.ts --- tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index 006925045b0..e76db0de501 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -9,6 +9,7 @@ import { TypeLiteralDeclaration } from "parse-ts-to-ast/build/declarations/TypeL import { TSExportedMetaData } from "./extractMetaData"; import { SDKType } from "../common/types"; import { logger } from "../utils/logger"; +// TODO: add detection for routes and overloads in base detector import { detectBreakingChangesBetweenPackages, InlineDeclarationNameSetMessage, RuleMessage, RuleMessageKind } from "typescript-codegen-breaking-change-detector"; import { RestLevelClientChangelogPostProcessor } from "./RestLevelClientChangelogPostProcessor"; From 92c9da864994cc6b0037b1d398180a39469bfd5d Mon Sep 17 00:00:00 2001 From: wanl Date: Wed, 14 Aug 2024 13:02:21 +0800 Subject: [PATCH 20/35] Update --- tools/js-sdk-release-tools/package-lock.json | 10369 ++++++++-------- tools/js-sdk-release-tools/package.json | 16 +- tools/js-sdk-release-tools/pnpm-lock.yaml | 3386 ----- .../src/changelog/changelogGenerator.ts | 10 +- .../package-lock.json | 4791 +++++++ .../pnpm-lock.yaml | 3019 ----- 6 files changed, 9790 insertions(+), 11801 deletions(-) delete mode 100644 tools/js-sdk-release-tools/pnpm-lock.yaml create mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package-lock.json delete mode 100644 tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/pnpm-lock.yaml diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index 762d7a47ff6..9d9c141c570 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -8,9 +8,6 @@ "name": "@azure-tools/js-sdk-release-tools", "version": "2.7.11", "license": "MIT", - "workspaces": [ - "workspaces/*" - ], "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", "@ts-common/azure-js-dev-tools": "^21.1.0", @@ -22,9 +19,12 @@ "parse-ts-to-ast": "^0.1.1", "semver": "^7.3.5", "shelljs": "^0.8.4", + "shx": "^0.3.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", - "typescript-codegen-breaking-change-detector": "^0.4.6", + "tslib": "^1.9.3", + "typescript-codegen-breaking-change-detector": "0.4.6", + "winston": "^3.13.1", "yaml": "^1.10.2" }, "bin": { @@ -43,61 +43,9 @@ "vitest": "^1.6.0" } }, - "../../../../typescript-codegen-breaking-change-detector": { - "version": "0.4.5", - "extraneous": true, - "license": "MIT", - "dependencies": { - "@azure-tools/openapi-tools-common": "^1.2.2", - "@typescript-eslint/scope-manager": "^7.17.0", - "@typescript-eslint/types": "^7.17.0", - "@typescript-eslint/typescript-estree": "^7.17.0", - "@typescript-eslint/utils": "^7.17.0", - "@typescript-eslint/visitor-keys": "^7.17.0", - "commander": "^12.1.0", - "fs-extra": "^11.2.0", - "glob": "^11.0.0", - "marked": "^13.0.2", - "pino": "^9.3.1", - "pino-pretty": "^11.2.1", - "ts-morph": "^23.0.0", - "typescript": "5.5.3", - "typescript-eslint": "^7.17.0" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^26.0.1", - "@types/eslint": "^8.56.10", - "@types/eslint-scope": "^3.7.7", - "@types/fs-extra": "^11.0.4", - "@typescript-eslint/eslint-plugin": "^7.17.0", - "@typescript-eslint/parser": "^7.17.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", - "onchange": "^7.1.0", - "prettier": "3.3.2", - "rimraf": "^5.0.7", - "tsx": "^4.16.2", - "vitest": "^2.0.4" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@azure-tools/openapi-tools-common": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@azure-tools/openapi-tools-common/-/openapi-tools-common-1.2.2.tgz", - "integrity": "sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==", + "license": "MIT", "dependencies": { "@types/async-retry": "^1.4.1", "@types/commonmark": "^0.27.3", @@ -111,13 +59,11 @@ }, "node_modules/@azure-tools/openapi-tools-common/node_modules/tslib": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + "license": "0BSD" }, "node_modules/@azure/abort-controller": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-1.1.0.tgz", - "integrity": "sha512-TrRLIoSQVzfAJX9H1JeFjzAoDGcoK1IYX1UImfceTZpsyYfWr09Ss1aHW1y5TrrR3iq6RZLBwJ3E24uwPhwahw==", + "license": "MIT", "dependencies": { "tslib": "^2.2.0" }, @@ -127,13 +73,11 @@ }, "node_modules/@azure/abort-controller/node_modules/tslib": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + "license": "0BSD" }, "node_modules/@azure/core-auth": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.4.0.tgz", - "integrity": "sha512-HFrcTgmuSuukRf/EdPmqBrc5l6Q5Uu+2TbuhaKbgaCpP2TfAeiNaQPAadxO+CYBRHGUzIDteMAjFspFLDLnKVQ==", + "license": "MIT", "dependencies": { "@azure/abort-controller": "^1.0.0", "tslib": "^2.2.0" @@ -144,21 +88,18 @@ }, "node_modules/@azure/core-auth/node_modules/tslib": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + "license": "0BSD" }, "node_modules/@azure/logger-js": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@azure/logger-js/-/logger-js-1.3.2.tgz", - "integrity": "sha512-h58oEROO2tniBTSmFmuHBGvuiFuYsHQBWTVdpT2AiOED4F2Kgf7rs0MPYPXiBcDvihC70M7QPRhIQ3JK1H/ygw==", + "license": "MIT", "dependencies": { "tslib": "^1.9.3" } }, "node_modules/@azure/ms-rest-js": { "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@azure/ms-rest-js/-/ms-rest-js-2.7.0.tgz", - "integrity": "sha512-ngbzWbqF+NmztDOpLBVDxYM+XLcUj7nKhxGbSU9WtIsXfRB//cf2ZbAG5HkOrhU9/wd/ORRB6lM/d69RKVjiyA==", + "license": "MIT", "dependencies": { "@azure/core-auth": "^1.1.4", "abort-controller": "^3.0.0", @@ -172,8 +113,7 @@ }, "node_modules/@azure/ms-rest-js/node_modules/form-data": { "version": "2.5.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", - "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", @@ -185,8 +125,7 @@ }, "node_modules/@azure/ms-rest-js/node_modules/xml2js": { "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", - "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "license": "MIT", "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" @@ -197,996 +136,1176 @@ }, "node_modules/@azure/storage-blob": { "version": "10.5.0", - "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-10.5.0.tgz", - "integrity": "sha512-67+0EP7STy9BQgzvN1RgmSvXhxRd044eDgepX7zBp7XslBxz8YGo2cSLm9w5o5Qf1FLCRlwuziRMikaPCLMpVw==", - "deprecated": "This version has been deprecated, please upgrade to the version tagged as latest", + "license": "MIT", "dependencies": { "@azure/ms-rest-js": "^2.0.0", "events": "^3.0.0", "tslib": "^1.9.3" } }, - "node_modules/@blakeembrey/deque": { - "version": "1.0.5", - "resolved": "https://registry.npmmirror.com/@blakeembrey/deque/-/deque-1.0.5.tgz", - "integrity": "sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==", - "dev": true - }, - "node_modules/@blakeembrey/template": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/@blakeembrey/template/-/template-1.1.0.tgz", - "integrity": "sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==", - "dev": true - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", - "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==", - "cpu": [ - "ppc64" - ], - "dev": true, + "node_modules/@colors/colors": { + "version": "1.6.0", "license": "MIT", - "optional": true, - "os": [ - "aix" - ], "engines": { - "node": ">=12" + "node": ">=0.1.90" } }, - "node_modules/@esbuild/android-arm": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz", - "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==", - "cpu": [ - "arm" - ], - "dev": true, + "node_modules/@dabh/diagnostics": { + "version": "2.0.3", "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" + "dependencies": { + "colorspace": "1.1.x", + "enabled": "2.0.x", + "kuler": "^2.0.0" } }, - "node_modules/@esbuild/android-arm64": { + "node_modules/@esbuild/win32-x64": { "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz", - "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==", "cpu": [ - "arm64" + "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "android" + "win32" ], "engines": { "node": ">=12" } }, - "node_modules/@esbuild/android-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz", - "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==", - "cpu": [ - "x64" - ], + "node_modules/@jest/schemas": { + "version": "29.6.3", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "android" - ], + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, "engines": { - "node": ">=12" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz", - "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==", - "cpu": [ - "arm64" - ], + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", "dev": true, + "license": "MIT" + }, + "node_modules/@kwsites/file-exists": { + "version": "1.1.1", "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" + "dependencies": { + "debug": "^4.1.1" } }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz", - "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/@kwsites/promise-deferred": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, "engines": { - "node": ">=12" + "node": ">= 8" } }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz", - "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], "engines": { - "node": ">=12" + "node": ">= 8" } }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz", - "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, "engines": { - "node": ">=12" + "node": ">= 8" } }, - "node_modules/@esbuild/linux-arm": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz", - "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==", - "cpu": [ - "arm" - ], - "dev": true, + "node_modules/@octokit/rest": { + "version": "15.16.1", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "before-after-hook": "^1.1.0", + "btoa-lite": "^1.0.0", + "debug": "^3.1.0", + "http-proxy-agent": "^2.1.0", + "https-proxy-agent": "^2.2.0", + "lodash": "^4.17.4", + "node-fetch": "^2.1.1", + "universal-user-agent": "^2.0.0", + "url-template": "^2.0.8" + }, "engines": { - "node": ">=12" + "node": ">=4" } }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz", - "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/@octokit/rest/node_modules/debug": { + "version": "3.2.7", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "ms": "^2.1.1" } }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz", - "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==", + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.18.0", "cpu": [ - "ia32" + "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "win32" + ] }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz", - "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==", - "cpu": [ - "loong64" - ], + "node_modules/@sinclair/typebox": { + "version": "0.27.8", "dev": true, + "license": "MIT" + }, + "node_modules/@ts-common/azure-js-dev-tools": { + "version": "21.1.0", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@azure/logger-js": "^1.3.2", + "@azure/storage-blob": "^10.3.0", + "@octokit/rest": "~15.16.1", + "@types/archiver": "^2.1.2", + "@types/commonmark": "^0.27.1", + "@types/js-yaml": "^3.12.0", + "archiver": "^3.0.0", + "commonmark": "^0.28.1", + "isomorphic-git": "^0.55.2", + "js-yaml": "^3.12.1", + "yargs": "^12.0.5" } }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz", - "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==", - "cpu": [ - "mips64el" - ], - "dev": true, + "node_modules/@ts-common/azure-js-dev-tools/node_modules/js-yaml": { + "version": "3.14.1", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz", - "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==", - "cpu": [ - "ppc64" - ], - "dev": true, + "node_modules/@ts-morph/common": { + "version": "0.24.0", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" } }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz", - "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==", - "cpu": [ - "riscv64" - ], - "dev": true, + "node_modules/@ts-morph/common/node_modules/brace-expansion": { + "version": "2.0.1", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "9.0.5", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, "engines": { - "node": ">=12" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz", - "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==", - "cpu": [ - "s390x" - ], - "dev": true, + "node_modules/@types/archiver": { + "version": "2.1.3", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@types/glob": "*" } }, - "node_modules/@esbuild/linux-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz", - "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/@types/async-retry": { + "version": "1.4.5", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@types/retry": "*" } }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz", - "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==", - "cpu": [ - "x64" - ], + "node_modules/@types/commonmark": { + "version": "0.27.5", + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.5", "dev": true, + "license": "MIT" + }, + "node_modules/@types/glob": { + "version": "8.1.0", "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@types/minimatch": "^5.1.2", + "@types/node": "*" } }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz", - "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/@types/js-yaml": { + "version": "3.12.7", + "license": "MIT" + }, + "node_modules/@types/minimatch": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.12.12", "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" + "dependencies": { + "undici-types": "~5.26.4" } }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz", - "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==", - "cpu": [ - "x64" - ], + "node_modules/@types/node-fetch": { + "version": "2.6.2", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, + "node_modules/@types/retry": { + "version": "0.12.2", + "license": "MIT" + }, + "node_modules/@types/shelljs": { + "version": "0.8.15", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@types/glob": "~7.2.0", + "@types/node": "*" } }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz", - "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==", - "cpu": [ - "arm64" - ], + "node_modules/@types/shelljs/node_modules/@types/glob": { + "version": "7.2.0", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" } }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz", - "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==", - "cpu": [ - "ia32" - ], + "node_modules/@types/triple-beam": { + "version": "1.3.5", + "license": "MIT" + }, + "node_modules/@vitest/expect": { + "version": "1.6.0", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@vitest/spy": "1.6.0", + "@vitest/utils": "1.6.0", + "chai": "^4.3.10" + }, + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/@esbuild/win32-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz", - "integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==", - "cpu": [ - "x64" - ], + "node_modules/@vitest/expect/node_modules/assertion-error": { + "version": "1.1.0", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "win32" - ], "engines": { - "node": ">=12" + "node": "*" } }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "node_modules/@vitest/expect/node_modules/chai": { + "version": "4.4.1", + "dev": true, + "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.3.0" + "assertion-error": "^1.1.0", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", + "pathval": "^1.1.1", + "type-detect": "^4.0.8" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + "node": ">=4" } }, - "node_modules/@eslint-community/regexpp": { - "version": "4.11.0", - "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", - "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "node_modules/@vitest/expect/node_modules/check-error": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "get-func-name": "^2.0.2" + }, "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + "node": "*" } }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "peer": true, + "node_modules/@vitest/expect/node_modules/deep-eql": { + "version": "4.1.4", + "dev": true, + "license": "MIT", "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "type-detect": "^4.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=6" } }, - "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", - "peer": true, + "node_modules/@vitest/expect/node_modules/loupe": { + "version": "2.3.7", + "dev": true, + "license": "MIT", + "dependencies": { + "get-func-name": "^2.0.1" + } + }, + "node_modules/@vitest/expect/node_modules/pathval": { + "version": "1.1.1", + "dev": true, + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "*" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", - "deprecated": "Use @eslint/config-array instead", - "peer": true, + "node_modules/@vitest/runner": { + "version": "1.6.0", + "dev": true, + "license": "MIT", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" + "@vitest/utils": "1.6.0", + "p-limit": "^5.0.0", + "pathe": "^1.1.1" }, - "engines": { - "node": ">=10.10.0" + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "peer": true, - "engines": { - "node": ">=12.22" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead", - "peer": true - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmmirror.com/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "node_modules/@vitest/runner/node_modules/p-limit": { + "version": "5.0.0", + "dev": true, + "license": "MIT", "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + "yocto-queue": "^1.0.0" }, "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "node_modules/@vitest/runner/node_modules/yocto-queue": { + "version": "1.0.0", + "dev": true, + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=12.20" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/@vitest/snapshot": { + "version": "1.6.0", + "dev": true, + "license": "MIT", "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" + "magic-string": "^0.30.5", + "pathe": "^1.1.1", + "pretty-format": "^29.7.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/vitest" } }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "node_modules/@vitest/spy": { + "version": "1.6.0", + "dev": true, + "license": "MIT", "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" + "tinyspy": "^2.2.0" }, "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "url": "https://opencollective.com/vitest" } }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "node_modules/@vitest/utils": { + "version": "1.6.0", + "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" + "diff-sequences": "^29.6.3", + "estree-walker": "^3.0.3", + "loupe": "^2.3.7", + "pretty-format": "^29.7.0" }, "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "url": "https://opencollective.com/vitest" } }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "node_modules/@vitest/utils/node_modules/loupe": { + "version": "2.3.7", "dev": true, "license": "MIT", "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "get-func-name": "^2.0.1" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dev": true, + "node_modules/abort-controller": { + "version": "3.0.0", + "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" + "event-target-shim": "^5.0.0" }, "engines": { - "node": ">=6.0.0" + "node": ">=6.5" } }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "node_modules/acorn": { + "version": "8.11.3", "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, "engines": { - "node": ">=6.0.0" + "node": ">=0.4.0" } }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "node_modules/acorn-walk": { + "version": "8.3.2", "dev": true, + "license": "MIT", "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@kwsites/file-exists": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz", - "integrity": "sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==", - "dependencies": { - "debug": "^4.1.1" + "node": ">=0.4.0" } }, - "node_modules/@kwsites/promise-deferred": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@kwsites/promise-deferred/-/promise-deferred-1.1.1.tgz", - "integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==" - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "node_modules/agent-base": { + "version": "4.3.0", + "license": "MIT", "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "es6-promisify": "^5.0.0" }, "engines": { - "node": ">= 8" + "node": ">= 4.0.0" } }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "node_modules/ansi-regex": { + "version": "3.0.1", + "license": "MIT", "engines": { - "node": ">= 8" + "node": ">=4" } }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "node_modules/archiver": { + "version": "3.1.1", + "license": "MIT", "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" + "archiver-utils": "^2.1.0", + "async": "^2.6.3", + "buffer-crc32": "^0.2.1", + "glob": "^7.1.4", + "readable-stream": "^3.4.0", + "tar-stream": "^2.1.0", + "zip-stream": "^2.1.2" }, "engines": { - "node": ">= 8" + "node": ">= 6" } }, - "node_modules/@octokit/rest": { - "version": "15.16.1", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-15.16.1.tgz", - "integrity": "sha512-86RGoibm8AJ3ZBlM0NdMI932wEZ/bdo2eEppHtliEYwJT9hsy5qt+i9HA+T8CC90r4atoFQDrY7mDLBcAjp9ow==", + "node_modules/archiver-utils": { + "version": "2.1.0", + "license": "MIT", "dependencies": { - "before-after-hook": "^1.1.0", - "btoa-lite": "^1.0.0", - "debug": "^3.1.0", - "http-proxy-agent": "^2.1.0", - "https-proxy-agent": "^2.2.0", - "lodash": "^4.17.4", - "node-fetch": "^2.1.1", - "universal-user-agent": "^2.0.0", - "url-template": "^2.0.8" + "glob": "^7.1.4", + "graceful-fs": "^4.2.0", + "lazystream": "^1.0.0", + "lodash.defaults": "^4.2.0", + "lodash.difference": "^4.5.0", + "lodash.flatten": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.union": "^4.6.0", + "normalize-path": "^3.0.0", + "readable-stream": "^2.0.0" }, "engines": { - "node": ">=4" + "node": ">= 6" } }, - "node_modules/@octokit/rest/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "node_modules/archiver-utils/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", "dependencies": { - "ms": "^2.1.1" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "engines": { - "node": ">=14" - } + "node_modules/archiver-utils/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" }, - "node_modules/@pkgr/core": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/@pkgr/core/-/core-0.1.1.tgz", - "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + "node_modules/archiver-utils/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" } }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", - "integrity": "sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==", - "cpu": [ - "arm" - ], - "dev": true, + "node_modules/argparse": { + "version": "1.0.10", "license": "MIT", - "optional": true, - "os": [ - "android" - ] + "dependencies": { + "sprintf-js": "~1.0.2" + } }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.0.tgz", - "integrity": "sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/array-back": { + "version": "3.1.0", "license": "MIT", - "optional": true, - "os": [ - "android" - ] + "engines": { + "node": ">=6" + } }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.0.tgz", - "integrity": "sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==", - "cpu": [ - "arm64" - ], + "node_modules/array-timsort": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/async": { + "version": "2.6.4", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.14" + } + }, + "node_modules/async-lock": { + "version": "1.4.1", + "license": "MIT" + }, + "node_modules/async-retry": { + "version": "1.3.3", + "license": "MIT", + "dependencies": { + "retry": "0.13.1" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "0.0.2", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/before-after-hook": { + "version": "1.4.0", + "license": "Apache-2.0" + }, + "node_modules/bl": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/bops": { + "version": "0.0.7", + "license": "MIT", + "dependencies": { + "base64-js": "0.0.2", + "to-utf8": "0.0.1" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/btoa-lite": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/buffer/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/cac": { + "version": "6.7.14", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] + "engines": { + "node": ">=8" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/clean-git-ref": { + "version": "1.0.3", + "license": "Apache-2.0" + }, + "node_modules/cliui": { + "version": "4.1.0", + "license": "ISC", + "dependencies": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "node_modules/code-block-writer": { + "version": "13.0.2", + "license": "MIT" + }, + "node_modules/code-point-at": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.3", + "color-string": "^1.6.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/color-string": { + "version": "1.9.1", + "license": "MIT", + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "node_modules/color/node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color/node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/colors": { + "version": "1.4.0", + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/colorspace": { + "version": "1.1.4", + "license": "MIT", + "dependencies": { + "color": "^3.1.3", + "text-hex": "1.0.x" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/command-line-args": { + "version": "5.2.1", + "license": "MIT", + "dependencies": { + "array-back": "^3.1.0", + "find-replace": "^3.0.0", + "lodash.camelcase": "^4.3.0", + "typical": "^4.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/comment-json": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "array-timsort": "^1.0.3", + "core-util-is": "^1.0.3", + "esprima": "^4.0.1", + "has-own-prop": "^2.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/commonmark": { + "version": "0.28.1", + "license": "BSD-2-Clause", + "dependencies": { + "entities": "~ 1.1.1", + "mdurl": "~ 1.0.1", + "minimist": "~ 1.2.0", + "string.prototype.repeat": "^0.2.0" + }, + "bin": { + "commonmark": "bin/commonmark" + }, + "engines": { + "node": "*" + } + }, + "node_modules/compress-commons": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "buffer-crc32": "^0.2.13", + "crc32-stream": "^3.0.1", + "normalize-path": "^3.0.0", + "readable-stream": "^2.3.6" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/compress-commons/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/compress-commons/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/compress-commons/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/confbox": { + "version": "0.1.7", + "dev": true, + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/crc": { + "version": "3.8.0", + "license": "MIT", + "dependencies": { + "buffer": "^5.1.0" + } + }, + "node_modules/crc-32": { + "version": "1.2.2", + "license": "Apache-2.0", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/crc32-stream": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "crc": "^3.4.4", + "readable-stream": "^3.4.0" + }, + "engines": { + "node": ">= 6.9.0" + } + }, + "node_modules/cross-spawn": { + "version": "6.0.5", + "license": "MIT", + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/cross-spawn/node_modules/semver": { + "version": "5.7.2", + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/debug": { + "version": "4.3.6", + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.0.tgz", - "integrity": "sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/decamelize": { + "version": "1.2.0", "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.0.tgz", - "integrity": "sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==", - "cpu": [ - "arm" - ], - "dev": true, + "node_modules/decompress-response": { + "version": "4.2.1", "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "dependencies": { + "mimic-response": "^2.0.0" + }, + "engines": { + "node": ">=8" + } }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.0.tgz", - "integrity": "sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==", - "cpu": [ - "arm" - ], - "dev": true, + "node_modules/delayed-stream": { + "version": "1.0.0", "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": ">=0.4.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.0.tgz", - "integrity": "sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/diff-lines": { + "version": "1.1.1", "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "dependencies": { + "diff": "^3.5.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.0.tgz", - "integrity": "sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==", - "cpu": [ - "arm64" - ], + "node_modules/diff-lines/node_modules/diff": { + "version": "3.5.0", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } }, - "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.0.tgz", - "integrity": "sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==", - "cpu": [ - "ppc64" - ], - "dev": true, + "node_modules/enabled": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "dependencies": { + "once": "^1.4.0" + } }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.0.tgz", - "integrity": "sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==", - "cpu": [ - "riscv64" - ], - "dev": true, + "node_modules/entities": { + "version": "1.1.2", + "license": "BSD-2-Clause" + }, + "node_modules/es6-promise": { + "version": "4.2.8", + "license": "MIT" + }, + "node_modules/es6-promisify": { + "version": "5.0.0", "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "dependencies": { + "es6-promise": "^4.0.3" + } }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.0.tgz", - "integrity": "sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==", - "cpu": [ - "s390x" - ], + "node_modules/esbuild": { + "version": "0.20.2", "dev": true, + "hasInstallScript": true, "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.20.2", + "@esbuild/android-arm": "0.20.2", + "@esbuild/android-arm64": "0.20.2", + "@esbuild/android-x64": "0.20.2", + "@esbuild/darwin-arm64": "0.20.2", + "@esbuild/darwin-x64": "0.20.2", + "@esbuild/freebsd-arm64": "0.20.2", + "@esbuild/freebsd-x64": "0.20.2", + "@esbuild/linux-arm": "0.20.2", + "@esbuild/linux-arm64": "0.20.2", + "@esbuild/linux-ia32": "0.20.2", + "@esbuild/linux-loong64": "0.20.2", + "@esbuild/linux-mips64el": "0.20.2", + "@esbuild/linux-ppc64": "0.20.2", + "@esbuild/linux-riscv64": "0.20.2", + "@esbuild/linux-s390x": "0.20.2", + "@esbuild/linux-x64": "0.20.2", + "@esbuild/netbsd-x64": "0.20.2", + "@esbuild/openbsd-x64": "0.20.2", + "@esbuild/sunos-x64": "0.20.2", + "@esbuild/win32-arm64": "0.20.2", + "@esbuild/win32-ia32": "0.20.2", + "@esbuild/win32-x64": "0.20.2" + } }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz", - "integrity": "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==", - "cpu": [ - "x64" - ], + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "dependencies": { + "@types/estree": "^1.0.0" + } }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.0.tgz", - "integrity": "sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/event-target-shim": { + "version": "5.0.1", "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": ">=6" + } }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.0.tgz", - "integrity": "sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/events": { + "version": "3.3.0", "license": "MIT", - "optional": true, - "os": [ - "win32" - ] + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fastq": { + "version": "1.17.1", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fecha": { + "version": "4.2.3", + "license": "MIT" + }, + "node_modules/fill-range": { + "version": "7.1.1", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.0.tgz", - "integrity": "sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==", - "cpu": [ - "ia32" - ], - "dev": true, + "node_modules/find-replace": { + "version": "3.0.0", "license": "MIT", - "optional": true, - "os": [ - "win32" - ] + "dependencies": { + "array-back": "^3.0.1" + }, + "engines": { + "node": ">=4.0.0" + } }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz", - "integrity": "sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/find-up": { + "version": "3.0.0", "license": "MIT", - "optional": true, - "os": [ - "win32" - ] + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true, + "node_modules/fn.name": { + "version": "1.1.0", "license": "MIT" }, - "node_modules/@ts-common/azure-js-dev-tools": { - "version": "21.1.0", - "resolved": "https://registry.npmjs.org/@ts-common/azure-js-dev-tools/-/azure-js-dev-tools-21.1.0.tgz", - "integrity": "sha512-SdH0oYXDn4Y1zc5x7ldwAn3M/K2MG/wbkivFkvLBlFG4qT3o1S9Ob+IloUDwgF7s58AWP1G7iUO03U7MFEMsrw==", + "node_modules/form-data": { + "version": "3.0.1", + "license": "MIT", "dependencies": { - "@azure/logger-js": "^1.3.2", - "@azure/storage-blob": "^10.3.0", - "@octokit/rest": "~15.16.1", - "@types/archiver": "^2.1.2", - "@types/commonmark": "^0.27.1", - "@types/js-yaml": "^3.12.0", - "archiver": "^3.0.0", - "commonmark": "^0.28.1", - "isomorphic-git": "^0.55.2", - "js-yaml": "^3.12.1", - "yargs": "^12.0.5" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" } }, - "node_modules/@ts-common/azure-js-dev-tools/node_modules/js-yaml": { + "node_modules/front-matter": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "js-yaml": "^3.13.1" + } + }, + "node_modules/front-matter/node_modules/js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -1195,2044 +1314,1897 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@ts-morph/common": { - "version": "0.24.0", - "resolved": "https://registry.npmmirror.com/@ts-morph/common/-/common-0.24.0.tgz", - "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", - "dependencies": { - "fast-glob": "^3.3.2", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "path-browserify": "^1.0.1" - } - }, - "node_modules/@ts-morph/common/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } + "node_modules/fs-constants": { + "version": "1.0.0", + "license": "MIT" }, - "node_modules/@ts-morph/common/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "node_modules/fs-extra": { + "version": "11.2.0", + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=14.14" } }, - "node_modules/@types/archiver": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@types/archiver/-/archiver-2.1.3.tgz", - "integrity": "sha512-x37dj6VvV8jArjvqvZP+qz5+24qOwgFesLMvn98uNz8qebjCg+uteqquRf9mqaxxhcM7S1vPl4YFhBs2/abcFQ==", - "dependencies": { - "@types/glob": "*" - } + "node_modules/fs.realpath": { + "version": "1.0.0", + "license": "ISC" }, - "node_modules/@types/async-retry": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.5.tgz", - "integrity": "sha512-YrdjSD+yQv7h6d5Ip+PMxh3H6ZxKyQk0Ts+PvaNRInxneG9PFVZjFg77ILAN+N6qYf7g4giSJ1l+ZjQ1zeegvA==", - "dependencies": { - "@types/retry": "*" - } + "node_modules/function-bind": { + "version": "1.1.1", + "license": "MIT" }, - "node_modules/@types/commonmark": { - "version": "0.27.5", - "resolved": "https://registry.npmjs.org/@types/commonmark/-/commonmark-0.27.5.tgz", - "integrity": "sha512-vIqgmHyLsc8Or3EWLz6QkhI8/v61FNeH0yxRupA7VqSbA2eFMoHHJAhZSHudplAV89wqg1CKSmShE016ziRXuw==" + "node_modules/get-caller-file": { + "version": "1.0.3", + "license": "ISC" }, - "node_modules/@types/eslint": { - "version": "8.56.11", - "resolved": "https://registry.npmmirror.com/@types/eslint/-/eslint-8.56.11.tgz", - "integrity": "sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==", + "node_modules/get-func-name": { + "version": "2.0.2", "dev": true, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" + "license": "MIT", + "engines": { + "node": "*" } }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmmirror.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "dev": true, + "node_modules/get-stream": { + "version": "4.1.0", + "license": "MIT", "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/@types/estree": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/fs-extra": { - "version": "11.0.4", - "resolved": "https://registry.npmmirror.com/@types/fs-extra/-/fs-extra-11.0.4.tgz", - "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", + "node_modules/get-tsconfig": { + "version": "4.7.6", "dev": true, + "license": "MIT", "dependencies": { - "@types/jsonfile": "*", - "@types/node": "*" + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/@types/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==", + "node_modules/git-apply-delta": { + "version": "0.0.7", + "license": "MIT", "dependencies": { - "@types/minimatch": "^5.1.2", - "@types/node": "*" + "bops": "~0.0.6", + "varint": "0.0.3" } }, - "node_modules/@types/js-yaml": { - "version": "3.12.7", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.7.tgz", - "integrity": "sha512-S6+8JAYTE1qdsc9HMVsfY7+SgSuUU/Tp6TYTmITW0PZxiyIMvol3Gy//y69Wkhs0ti4py5qgR3uZH6uz/DNzJQ==" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "node_modules/@types/jsonfile": { - "version": "6.1.4", - "resolved": "https://registry.npmmirror.com/@types/jsonfile/-/jsonfile-6.1.4.tgz", - "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", - "dev": true, + "node_modules/glob": { + "version": "7.2.3", + "license": "ISC", "dependencies": { - "@types/node": "*" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@types/minimatch": { + "node_modules/glob-parent": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", - "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==" - }, - "node_modules/@types/node": { - "version": "20.12.12", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", - "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "license": "ISC", "dependencies": { - "undici-types": "~5.26.4" + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" } }, - "node_modules/@types/node-fetch": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", - "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", + "node_modules/globalyzer": { + "version": "0.1.4", + "license": "MIT" + }, + "node_modules/globrex": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "license": "ISC" + }, + "node_modules/has": { + "version": "1.0.3", + "license": "MIT", "dependencies": { - "@types/node": "*", - "form-data": "^3.0.0" + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" } }, - "node_modules/@types/retry": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.2.tgz", - "integrity": "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==" + "node_modules/has-own-prop": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "node_modules/@types/shelljs": { - "version": "0.8.15", - "resolved": "https://registry.npmjs.org/@types/shelljs/-/shelljs-0.8.15.tgz", - "integrity": "sha512-vzmnCHl6hViPu9GNLQJ+DZFd6BQI2DBTUeOvYHqkWQLMfKAAQYMb/xAmZkTogZI/vqXHCWkqDRymDI5p0QTi5Q==", - "dev": true, + "node_modules/http-proxy-agent": { + "version": "2.1.0", + "license": "MIT", "dependencies": { - "@types/glob": "~7.2.0", - "@types/node": "*" + "agent-base": "4", + "debug": "3.1.0" + }, + "engines": { + "node": ">= 4.5.0" } }, - "node_modules/@types/shelljs/node_modules/@types/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", - "dev": true, + "node_modules/http-proxy-agent/node_modules/debug": { + "version": "3.1.0", + "license": "MIT", "dependencies": { - "@types/minimatch": "*", - "@types/node": "*" + "ms": "2.0.0" } }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", - "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", + "node_modules/http-proxy-agent/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/https-proxy-agent": { + "version": "2.2.4", + "license": "MIT", "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/type-utils": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" + "agent-base": "^4.3.0", + "debug": "^3.1.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^7.0.0", - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">= 4.5.0" } }, - "node_modules/@typescript-eslint/parser": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-7.18.0.tgz", - "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "3.2.7", + "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4" - }, + "ms": "^2.1.1" + } + }, + "node_modules/human-signals": { + "version": "5.0.0", + "dev": true, + "license": "Apache-2.0", "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=16.17.0" } }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", - "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0" - }, + "node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.1", + "license": "MIT", "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">= 4" } }, - "node_modules/@typescript-eslint/type-utils": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", - "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", + "node_modules/inflight": { + "version": "1.0.6", + "license": "ISC", "dependencies": { - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/interpret": { + "version": "1.4.0", + "license": "MIT", "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">= 0.10" } }, - "node_modules/@typescript-eslint/types": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-7.18.0.tgz", - "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", + "node_modules/invert-kv": { + "version": "2.0.0", + "license": "MIT", "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=4" } }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", - "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", + "node_modules/is-arrayish": { + "version": "0.3.2", + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.10.0", + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" + "has": "^1.0.3" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" + "node_modules/is-extglob": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, + "node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "license": "MIT", "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=4" } }, - "node_modules/@typescript-eslint/utils": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-7.18.0.tgz", - "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", + "node_modules/is-glob": { + "version": "4.0.3", + "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0" + "is-extglob": "^2.1.1" }, "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" + "node": ">=0.10.0" } }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", - "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "eslint-visitor-keys": "^3.4.3" - }, + "node_modules/is-number": { + "version": "7.0.0", + "license": "MIT", "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=0.12.0" } }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "peer": true + "node_modules/is-stream": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/@vitest/expect": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.0.tgz", - "integrity": "sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==", - "dev": true, + "node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/isomorphic-git": { + "version": "0.55.6", "license": "MIT", "dependencies": { - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "chai": "^4.3.10" + "async-lock": "^1.1.0", + "clean-git-ref": "1.0.3", + "crc-32": "^1.2.0", + "diff-lines": "^1.1.1", + "git-apply-delta": "0.0.7", + "globalyzer": "^0.1.0", + "globrex": "^0.1.2", + "ignore": "^5.0.4", + "marky": "^1.2.1", + "minimisted": "^2.0.0", + "pako": "^1.0.10", + "pify": "^4.0.1", + "readable-stream": "^3.1.1", + "sha.js": "^2.4.9", + "simple-get": "^3.0.2" + }, + "bin": { + "isogit": "cli.js" }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/expect/node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true, - "license": "MIT", "engines": { - "node": "*" + "node": ">=7.6.0" } }, - "node_modules/@vitest/expect/node_modules/chai": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", - "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", + "node_modules/js-tokens": { + "version": "9.0.0", "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.0", "license": "MIT", "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.0.8" + "argparse": "^2.0.1" }, - "engines": { - "node": ">=4" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@vitest/expect/node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", - "dev": true, + "node_modules/js-yaml/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/jsonfile": { + "version": "6.1.0", "license": "MIT", "dependencies": { - "get-func-name": "^2.0.2" + "universalify": "^2.0.0" }, - "engines": { - "node": "*" + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "node_modules/@vitest/expect/node_modules/deep-eql": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", - "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", - "dev": true, + "node_modules/kuler": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/lazystream": { + "version": "1.0.1", "license": "MIT", "dependencies": { - "type-detect": "^4.0.0" + "readable-stream": "^2.0.5" }, "engines": { - "node": ">=6" + "node": ">= 0.6.3" } }, - "node_modules/@vitest/expect/node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "dev": true, + "node_modules/lazystream/node_modules/readable-stream": { + "version": "2.3.8", "license": "MIT", "dependencies": { - "get-func-name": "^2.0.1" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "node_modules/@vitest/expect/node_modules/pathval": { + "node_modules/lazystream/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/lazystream/node_modules/string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "dev": true, "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/@vitest/pretty-format": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@vitest/pretty-format/-/pretty-format-2.0.5.tgz", - "integrity": "sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==", - "dev": true, "dependencies": { - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "safe-buffer": "~5.1.0" } }, - "node_modules/@vitest/runner": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.6.0.tgz", - "integrity": "sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==", - "dev": true, + "node_modules/lcid": { + "version": "2.0.0", "license": "MIT", "dependencies": { - "@vitest/utils": "1.6.0", - "p-limit": "^5.0.0", - "pathe": "^1.1.1" + "invert-kv": "^2.0.0" }, - "funding": { - "url": "https://opencollective.com/vitest" + "engines": { + "node": ">=6" } }, - "node_modules/@vitest/runner/node_modules/p-limit": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz", - "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==", + "node_modules/local-pkg": { + "version": "0.5.0", "dev": true, "license": "MIT", "dependencies": { - "yocto-queue": "^1.0.0" - }, - "engines": { - "node": ">=18" + "mlly": "^1.4.2", + "pkg-types": "^1.0.3" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vitest/runner/node_modules/yocto-queue": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", - "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", - "dev": true, - "license": "MIT", "engines": { - "node": ">=12.20" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/antfu" } }, - "node_modules/@vitest/snapshot": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.6.0.tgz", - "integrity": "sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==", - "dev": true, + "node_modules/locate-path": { + "version": "3.0.0", "license": "MIT", "dependencies": { - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "pretty-format": "^29.7.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" }, - "funding": { - "url": "https://opencollective.com/vitest" + "engines": { + "node": ">=6" } }, - "node_modules/@vitest/spy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.6.0.tgz", - "integrity": "sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==", - "dev": true, + "node_modules/lodash": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "license": "MIT" + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/lodash.difference": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/lodash.flatten": { + "version": "4.4.0", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "license": "MIT" + }, + "node_modules/lodash.union": { + "version": "4.6.0", + "license": "MIT" + }, + "node_modules/logform": { + "version": "2.6.1", "license": "MIT", "dependencies": { - "tinyspy": "^2.2.0" + "@colors/colors": "1.6.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" }, - "funding": { - "url": "https://opencollective.com/vitest" + "engines": { + "node": ">= 12.0.0" } }, - "node_modules/@vitest/utils": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.6.0.tgz", - "integrity": "sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==", - "dev": true, + "node_modules/macos-release": { + "version": "2.5.1", "license": "MIT", - "dependencies": { - "diff-sequences": "^29.6.3", - "estree-walker": "^3.0.3", - "loupe": "^2.3.7", - "pretty-format": "^29.7.0" + "engines": { + "node": ">=6" }, "funding": { - "url": "https://opencollective.com/vitest" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@vitest/utils/node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", + "node_modules/magic-string": { + "version": "0.30.10", "dev": true, "license": "MIT", "dependencies": { - "get-func-name": "^2.0.1" + "@jridgewell/sourcemap-codec": "^1.4.15" } }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "node_modules/map-age-cleaner": { + "version": "0.1.3", + "license": "MIT", "dependencies": { - "event-target-shim": "^5.0.0" + "p-defer": "^1.0.0" }, "engines": { - "node": ">=6.5" + "node": ">=6" } }, - "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", - "bin": { - "acorn": "bin/acorn" + "node_modules/marky": { + "version": "1.2.5", + "license": "Apache-2.0" + }, + "node_modules/mdurl": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/mem": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" }, "engines": { - "node": ">=0.4.0" + "node": ">=6" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "peer": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "node_modules/mem/node_modules/mimic-fn": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" } }, - "node_modules/acorn-walk": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", - "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "node_modules/merge-stream": { + "version": "2.0.0", "dev": true, - "engines": { - "node": ">=0.4.0" - } + "license": "MIT" }, - "node_modules/agent-base": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", - "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", - "dependencies": { - "es6-promisify": "^5.0.0" - }, + "node_modules/merge2": { + "version": "1.4.1", + "license": "MIT", "engines": { - "node": ">= 4.0.0" + "node": ">= 8" } }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "peer": true, + "node_modules/micromatch": { + "version": "4.0.7", + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=8.6" } }, - "node_modules/ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", "engines": { - "node": ">=4" + "node": ">= 0.6" } }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" + "mime-db": "1.52.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 0.6" } }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "node_modules/mimic-fn": { + "version": "4.0.0", "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, + "license": "MIT", "engines": { - "node": ">= 8" - } - }, - "node_modules/archiver": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/archiver/-/archiver-3.1.1.tgz", - "integrity": "sha512-5Hxxcig7gw5Jod/8Gq0OneVgLYET+oNHcxgWItq4TbhOzRLKNAFUb9edAftiMKXvXfCB0vbGrJdZDNq0dWMsxg==", - "dependencies": { - "archiver-utils": "^2.1.0", - "async": "^2.6.3", - "buffer-crc32": "^0.2.1", - "glob": "^7.1.4", - "readable-stream": "^3.4.0", - "tar-stream": "^2.1.0", - "zip-stream": "^2.1.2" + "node": ">=12" }, - "engines": { - "node": ">= 6" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/archiver-utils": { + "node_modules/mimic-response": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz", - "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==", - "dependencies": { - "glob": "^7.1.4", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^2.0.0" - }, + "license": "MIT", "engines": { - "node": ">= 6" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/archiver-utils/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "node_modules/archiver-utils/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/archiver-utils/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" + "node_modules/minimist": { + "version": "1.2.7", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmmirror.com/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/minimisted": { + "version": "2.0.1", + "license": "MIT", "dependencies": { - "sprintf-js": "~1.0.2" + "minimist": "^1.2.5" } }, - "node_modules/array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", + "node_modules/mkdirp": { + "version": "3.0.1", + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/array-timsort": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-timsort/-/array-timsort-1.0.3.tgz", - "integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==" - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "engines": { - "node": ">=8" + "node_modules/mlly": { + "version": "1.7.1", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.3", + "pathe": "^1.1.2", + "pkg-types": "^1.1.1", + "ufo": "^1.5.3" } }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "node_modules/ms": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.7", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, "engines": { - "node": ">=12" - } - }, - "node_modules/async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "dependencies": { - "lodash": "^4.17.14" + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/async-lock": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/async-lock/-/async-lock-1.4.1.tgz", - "integrity": "sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ==" + "node_modules/nice-try": { + "version": "1.0.5", + "license": "MIT" }, - "node_modules/async-retry": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", - "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", + "node_modules/node-fetch": { + "version": "2.6.7", + "license": "MIT", "dependencies": { - "retry": "0.13.1" + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/atomic-sleep": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/atomic-sleep/-/atomic-sleep-1.0.0.tgz", - "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", + "node_modules/normalize-path": { + "version": "3.0.0", + "license": "MIT", "engines": { - "node": ">=8.0.0" + "node": ">=0.10.0" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/base64-js": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.2.tgz", - "integrity": "sha512-Pj9L87dCdGcKlSqPVUjD+q96pbIx1zQQLb2CUiWURfjiBELv84YX+0nGnKmyT/9KkC7PQk7UN1w+Al8bBozaxQ==", + "node_modules/npm-run-path": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "path-key": "^2.0.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=4" } }, - "node_modules/before-after-hook": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-1.4.0.tgz", - "integrity": "sha512-l5r9ir56nda3qu14nAXIlyq1MmUSs0meCIaFAh8HwkFwP1F8eToOuS3ah2VAHHcY04jaYD7FpJC5JTXHYRbkzg==" - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, + "node_modules/number-is-nan": { + "version": "1.0.1", + "license": "MIT", "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "node_modules/once": { + "version": "1.4.0", + "license": "ISC", "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" + "wrappy": "1" } }, - "node_modules/bops": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/bops/-/bops-0.0.7.tgz", - "integrity": "sha512-oF8JFj2vZoTTzbS4haaB/37vqoJbZXxPBWmNdFONu3dUBW+zp7JcoIIYYd1r+4/YwFM8QUSR1u4rrPbtcdHsRg==", + "node_modules/one-time": { + "version": "1.0.0", + "license": "MIT", "dependencies": { - "base64-js": "0.0.2", - "to-utf8": "0.0.1" + "fn.name": "1.x.x" } }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/onetime": { + "version": "6.0.0", + "dev": true, + "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "node_modules/os-locale": { + "version": "3.1.0", + "license": "MIT", "dependencies": { - "fill-range": "^7.1.1" + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/btoa-lite": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz", - "integrity": "sha512-gvW7InbIyF8AicrqWoptdW08pUxuhq8BEgowNajy9RhiE86fmGAGl+bLKo6oB8QP0CkqHLowfN0oJdKC/J6LbA==" - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "node_modules/os-name": { + "version": "3.1.0", + "license": "MIT", "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "macos-release": "^2.2.0", + "windows-release": "^3.1.0" + }, "engines": { - "node": "*" + "node": ">=6" } }, - "node_modules/buffer/node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", - "dev": true, + "node_modules/p-defer": { + "version": "1.0.0", "license": "MIT", "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "peer": true, + "node_modules/p-finally": { + "version": "1.0.0", + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "node_modules/p-is-promise": { + "version": "2.1.0", + "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/chai": { - "version": "5.1.1", - "resolved": "https://registry.npmmirror.com/chai/-/chai-5.1.1.tgz", - "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==", - "dev": true, + "node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" + "p-try": "^2.0.0" }, "engines": { - "node": ">=12" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "peer": true, + "node_modules/p-locate": { + "version": "3.0.0", + "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "p-limit": "^2.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=6" } }, - "node_modules/check-error": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/check-error/-/check-error-2.1.1.tgz", - "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", - "dev": true, + "node_modules/p-try": { + "version": "2.2.0", + "license": "MIT", "engines": { - "node": ">= 16" + "node": ">=6" } }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, + "node_modules/pako": { + "version": "1.0.11", + "license": "(MIT AND Zlib)" + }, + "node_modules/parse-ts-to-ast": { + "version": "0.1.3", + "license": "MIT", "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" + "lodash": "^4.17.10", + "lodash-es": "^4.17.10", + "tslib": "^1.9.3", + "typescript": "^3.0.3" + } + }, + "node_modules/parse-ts-to-ast/node_modules/typescript": { + "version": "3.9.10", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "node": ">=4.2.0" } }, - "node_modules/clean-git-ref": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/clean-git-ref/-/clean-git-ref-1.0.3.tgz", - "integrity": "sha512-Bw1gv1mXHgdB/6ssP++8NtUHm+vbg60Lb+yAX5copA8wjNOgiyFCA+PzrO3a4O+7AkrDql2q1DO8Hx5G+gtPiA==" + "node_modules/path-browserify": { + "version": "1.0.1", + "license": "MIT" }, - "node_modules/cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dependencies": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" + "node_modules/path-exists": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" } }, - "node_modules/code-block-writer": { - "version": "13.0.2", - "resolved": "https://registry.npmmirror.com/code-block-writer/-/code-block-writer-13.0.2.tgz", - "integrity": "sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==" - }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", + "node_modules/path-is-absolute": { + "version": "1.0.1", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/color-convert": { + "node_modules/path-key": { "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, + "license": "MIT", "engines": { - "node": ">=7.0.0" + "node": ">=4" } }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "node_modules/path-parse": { + "version": "1.0.7", + "license": "MIT" }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmmirror.com/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + "node_modules/pathe": { + "version": "1.1.2", + "dev": true, + "license": "MIT" }, - "node_modules/colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "engines": { - "node": ">=0.1.90" - } + "node_modules/picocolors": { + "version": "1.0.1", + "dev": true, + "license": "ISC" }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, + "node_modules/picomatch": { + "version": "2.3.1", + "license": "MIT", "engines": { - "node": ">= 0.8" + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/command-line-args": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", - "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", - "dependencies": { - "array-back": "^3.1.0", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - }, + "node_modules/pify": { + "version": "4.0.1", + "license": "MIT", "engines": { - "node": ">=4.0.0" + "node": ">=6" } }, - "node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmmirror.com/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "engines": { - "node": ">=18" + "node_modules/pkg-types": { + "version": "1.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.1.7", + "mlly": "^1.7.0", + "pathe": "^1.1.2" } }, - "node_modules/comment-json": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.2.3.tgz", - "integrity": "sha512-SsxdiOf064DWoZLH799Ata6u7iV658A11PlWtZATDlXPpKGJnbJZ5Z24ybixAi+LUUqJ/GKowAejtC5GFUG7Tw==", + "node_modules/postcss": { + "version": "8.4.38", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", "dependencies": { - "array-timsort": "^1.0.3", - "core-util-is": "^1.0.3", - "esprima": "^4.0.1", - "has-own-prop": "^2.0.0", - "repeat-string": "^1.6.1" + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.2.0" }, "engines": { - "node": ">= 6" + "node": "^10 || ^12 || >=14" } }, - "node_modules/commonmark": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.28.1.tgz", - "integrity": "sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==", + "node_modules/pretty-format": { + "version": "29.7.0", + "dev": true, + "license": "MIT", "dependencies": { - "entities": "~ 1.1.1", - "mdurl": "~ 1.0.1", - "minimist": "~ 1.2.0", - "string.prototype.repeat": "^0.2.0" - }, - "bin": { - "commonmark": "bin/commonmark" + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/compress-commons": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-2.1.1.tgz", - "integrity": "sha512-eVw6n7CnEMFzc3duyFVrQEuY1BlHR3rYsSztyG32ibGMW722i3C6IizEGMFmfMU+A+fALvBIwxN3czffTcdA+Q==", - "dependencies": { - "buffer-crc32": "^0.2.13", - "crc32-stream": "^3.0.1", - "normalize-path": "^3.0.0", - "readable-stream": "^2.3.6" - }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 6" - } - }, - "node_modules/compress-commons/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/compress-commons/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "node_modules/process-nextick-args": { + "version": "2.0.1", + "license": "MIT" }, - "node_modules/compress-commons/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "node_modules/pump": { + "version": "3.0.0", + "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.0" + "end-of-stream": "^1.1.0", + "once": "^1.3.1" } }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "node_modules/queue-microtask": { + "version": "1.2.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" }, - "node_modules/confbox": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.7.tgz", - "integrity": "sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==", + "node_modules/react-is": { + "version": "18.3.1", "dev": true, "license": "MIT" }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "node_modules/crc": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", - "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", + "node_modules/readable-stream": { + "version": "3.6.2", + "license": "MIT", "dependencies": { - "buffer": "^5.1.0" - } - }, - "node_modules/crc-32": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", - "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", - "bin": { - "crc32": "bin/crc32.njs" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">=0.8" + "node": ">= 6" } }, - "node_modules/crc32-stream": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-3.0.1.tgz", - "integrity": "sha512-mctvpXlbzsvK+6z8kJwSJ5crm7yBwrQMTybJzMw1O4lLGJqjlDCXY2Zw7KheiA6XBEcBmfLx1D88mjRGVJtY9w==", + "node_modules/rechoir": { + "version": "0.6.2", "dependencies": { - "crc": "^3.4.4", - "readable-stream": "^3.4.0" + "resolve": "^1.1.6" }, "engines": { - "node": ">= 6.9.0" + "node": ">= 0.10" } }, - "node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, + "node_modules/repeat-string": { + "version": "1.6.1", + "license": "MIT", "engines": { - "node": ">=4.8" - } - }, - "node_modules/cross-spawn/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "bin": { - "semver": "bin/semver" + "node": ">=0.10" } }, - "node_modules/dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmmirror.com/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", "engines": { - "node": "*" + "node": ">=0.10.0" } }, - "node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", + "node_modules/require-main-filename": { + "version": "1.0.1", + "license": "ISC" + }, + "node_modules/resolve": { + "version": "1.22.1", + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" }, - "engines": { - "node": ">=6.0" + "bin": { + "resolve": "bin/resolve" }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "engines": { - "node": ">=0.10.0" + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, - "node_modules/decompress-response": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz", - "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==", - "dependencies": { - "mimic-response": "^2.0.0" - }, + "node_modules/retry": { + "version": "0.13.1", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 4" } }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmmirror.com/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true, + "node_modules/reusify": { + "version": "1.0.4", + "license": "MIT", "engines": { - "node": ">=6" + "iojs": ">=1.0.0", + "node": ">=0.10.0" } }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "peer": true + "node_modules/rimraf": { + "version": "3.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "node_modules/rollup": { + "version": "4.18.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, "engines": { - "node": ">=0.4.0" + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.18.0", + "@rollup/rollup-android-arm64": "4.18.0", + "@rollup/rollup-darwin-arm64": "4.18.0", + "@rollup/rollup-darwin-x64": "4.18.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", + "@rollup/rollup-linux-arm-musleabihf": "4.18.0", + "@rollup/rollup-linux-arm64-gnu": "4.18.0", + "@rollup/rollup-linux-arm64-musl": "4.18.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", + "@rollup/rollup-linux-riscv64-gnu": "4.18.0", + "@rollup/rollup-linux-s390x-gnu": "4.18.0", + "@rollup/rollup-linux-x64-gnu": "4.18.0", + "@rollup/rollup-linux-x64-musl": "4.18.0", + "@rollup/rollup-win32-arm64-msvc": "4.18.0", + "@rollup/rollup-win32-ia32-msvc": "4.18.0", + "@rollup/rollup-win32-x64-msvc": "4.18.0", + "fsevents": "~2.3.2" } }, - "node_modules/diff-lines": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/diff-lines/-/diff-lines-1.1.1.tgz", - "integrity": "sha512-Oo5JzEEriF/+T0usOeRP5yOzr6SWvni2rrxvIgijMZSxPcEvf8JOvCO5GpnWwkte7fcOgnue/f5ECg1H9lMPCw==", + "node_modules/run-parallel": { + "version": "1.2.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", "dependencies": { - "diff": "^3.5.0" + "queue-microtask": "^1.2.2" } }, - "node_modules/diff-lines/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "engines": { - "node": ">=0.3.1" - } + "node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", - "dev": true, + "node_modules/safe-stable-stringify": { + "version": "2.4.3", "license": "MIT", "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=10" } }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/sax": { + "version": "1.2.4", + "license": "ISC" }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "peer": true, - "dependencies": { - "esutils": "^2.0.2" + "node_modules/semver": { + "version": "7.6.2", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dependencies": { - "once": "^1.4.0" + "node": ">=10" } }, - "node_modules/entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" - }, - "node_modules/es6-promise": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + "node_modules/set-blocking": { + "version": "2.0.0", + "license": "ISC" }, - "node_modules/es6-promisify": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", - "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", + "node_modules/sha.js": { + "version": "2.4.11", + "license": "(MIT AND BSD-3-Clause)", "dependencies": { - "es6-promise": "^4.0.3" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" } }, - "node_modules/esbuild": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", - "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==", - "dev": true, - "hasInstallScript": true, + "node_modules/shebang-command": { + "version": "1.2.0", "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" + "dependencies": { + "shebang-regex": "^1.0.0" }, "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.20.2", - "@esbuild/android-arm": "0.20.2", - "@esbuild/android-arm64": "0.20.2", - "@esbuild/android-x64": "0.20.2", - "@esbuild/darwin-arm64": "0.20.2", - "@esbuild/darwin-x64": "0.20.2", - "@esbuild/freebsd-arm64": "0.20.2", - "@esbuild/freebsd-x64": "0.20.2", - "@esbuild/linux-arm": "0.20.2", - "@esbuild/linux-arm64": "0.20.2", - "@esbuild/linux-ia32": "0.20.2", - "@esbuild/linux-loong64": "0.20.2", - "@esbuild/linux-mips64el": "0.20.2", - "@esbuild/linux-ppc64": "0.20.2", - "@esbuild/linux-riscv64": "0.20.2", - "@esbuild/linux-s390x": "0.20.2", - "@esbuild/linux-x64": "0.20.2", - "@esbuild/netbsd-x64": "0.20.2", - "@esbuild/openbsd-x64": "0.20.2", - "@esbuild/sunos-x64": "0.20.2", - "@esbuild/win32-arm64": "0.20.2", - "@esbuild/win32-ia32": "0.20.2", - "@esbuild/win32-x64": "0.20.2" + "node": ">=0.10.0" } }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "peer": true, + "node_modules/shebang-regex": { + "version": "1.0.0", + "license": "MIT", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmmirror.com/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", - "peer": true, + "node_modules/shelljs": { + "version": "0.8.5", + "license": "BSD-3-Clause", "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" }, "bin": { - "eslint": "bin/eslint.js" + "shjs": "bin/shjs" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=4" } }, - "node_modules/eslint-config-prettier": { - "version": "9.1.0", - "resolved": "https://registry.npmmirror.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", - "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", - "dev": true, + "node_modules/shx": { + "version": "0.3.4", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + }, "bin": { - "eslint-config-prettier": "bin/cli.js" + "shx": "lib/cli.js" }, - "peerDependencies": { - "eslint": ">=7.0.0" + "engines": { + "node": ">=6" } }, - "node_modules/eslint-plugin-prettier": { - "version": "5.2.1", - "resolved": "https://registry.npmmirror.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", - "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", + "node_modules/siginfo": { + "version": "2.0.0", "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.9.1" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true + "license": "ISC" + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "license": "ISC" + }, + "node_modules/simple-concat": { + "version": "1.0.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" }, - "eslint-config-prettier": { - "optional": true + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" } + ], + "license": "MIT" + }, + "node_modules/simple-get": { + "version": "3.1.1", + "license": "MIT", + "dependencies": { + "decompress-response": "^4.2.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" } }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "peer": true, + "node_modules/simple-git": { + "version": "3.16.0", + "license": "MIT", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "@kwsites/file-exists": "^1.1.1", + "@kwsites/promise-deferred": "^1.1.1", + "debug": "^4.3.4" }, "funding": { - "url": "https://opencollective.com/eslint" + "type": "github", + "url": "https://github.com/steveukx/git-js?sponsor=1" } }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "node_modules/simple-swizzle": { + "version": "0.2.2", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "dev": true, + "license": "BSD-3-Clause", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=0.10.0" } }, - "node_modules/eslint/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "peer": true, + "node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "node_modules/stack-trace": { + "version": "0.0.10", + "license": "MIT", "engines": { - "node": ">=8" + "node": "*" } }, - "node_modules/eslint/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "peer": true, + "node_modules/stackback": { + "version": "0.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "3.7.0", + "dev": true, + "license": "MIT" + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "license": "MIT", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" + "safe-buffer": "~5.2.0" } }, - "node_modules/eslint/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "peer": true, + "node_modules/string-width": { + "version": "2.1.1", + "license": "MIT", "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "peer": true, + "node_modules/string.prototype.repeat": { + "version": "0.2.0" + }, + "node_modules/strip-ansi": { + "version": "4.0.0", + "license": "MIT", "dependencies": { - "is-glob": "^4.0.3" + "ansi-regex": "^3.0.0" }, "engines": { - "node": ">=10.13.0" + "node": ">=4" } }, - "node_modules/eslint/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "peer": true, - "dependencies": { - "p-locate": "^5.0.0" - }, + "node_modules/strip-eof": { + "version": "1.0.0", + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "peer": true, + "node_modules/strip-literal": { + "version": "2.1.0", + "dev": true, + "license": "MIT", "dependencies": { - "yocto-queue": "^0.1.0" + "js-tokens": "^9.0.0" }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "license": "MIT", "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "peer": true, + "node_modules/tar-stream": { + "version": "2.2.0", + "license": "MIT", "dependencies": { - "p-limit": "^3.0.2" + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6" } }, - "node_modules/eslint/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "peer": true, + "node_modules/text-hex": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/tinybench": { + "version": "2.8.0", + "dev": true, + "license": "MIT" + }, + "node_modules/tinypool": { + "version": "0.8.4", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=14.0.0" } }, - "node_modules/eslint/node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "peer": true, + "node_modules/tinyspy": { + "version": "2.2.1", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=14.0.0" } }, - "node_modules/eslint/node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "peer": true, + "node_modules/to-regex-range": { + "version": "5.0.1", + "license": "MIT", "dependencies": { - "shebang-regex": "^3.0.0" + "is-number": "^7.0.0" }, "engines": { - "node": ">=8" + "node": ">=8.0" } }, - "node_modules/eslint/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "peer": true, + "node_modules/to-utf8": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/tr46": { + "version": "0.0.3", + "license": "MIT" + }, + "node_modules/triple-beam": { + "version": "1.4.1", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 14.0.0" } }, - "node_modules/eslint/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "peer": true, + "node_modules/ts-morph": { + "version": "23.0.0", + "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" + "@ts-morph/common": "~0.24.0", + "code-block-writer": "^13.0.1" } }, - "node_modules/eslint/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "peer": true, + "node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/tsx": { + "version": "4.16.5", + "dev": true, + "license": "MIT", "dependencies": { - "isexe": "^2.0.0" + "esbuild": "~0.21.5", + "get-tsconfig": "^4.7.5" }, "bin": { - "node-which": "bin/node-which" + "tsx": "dist/cli.mjs" }, "engines": { - "node": ">= 8" + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/esbuild": { + "version": "0.21.5", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" } }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "peer": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, + "node_modules/tunnel": { + "version": "0.0.6", + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, + "node_modules/type-detect": { + "version": "4.0.8", + "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "peer": true, - "dependencies": { - "estraverse": "^5.1.0" + "node_modules/typescript": { + "version": "5.5.3", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, "engines": { - "node": ">=0.10" + "node": ">=14.17" } }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "peer": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } + "node_modules/typescript-codegen-breaking-change-detector": { + "resolved": "workspaces/typescript-codegen-breaking-change-detector", + "link": true }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "peer": true, + "node_modules/typical": { + "version": "4.0.0", + "license": "MIT", "engines": { - "node": ">=4.0" + "node": ">=8" } }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "node_modules/ufo": { + "version": "1.5.3", "dev": true, - "license": "MIT", + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "5.26.5", + "license": "MIT" + }, + "node_modules/universal-user-agent": { + "version": "2.1.0", + "license": "ISC", "dependencies": { - "@types/estree": "^1.0.0" + "os-name": "^3.0.0" } }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "peer": true, + "node_modules/universalify": { + "version": "2.0.1", + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">= 10.0.0" } }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "engines": { - "node": ">=6" + "node_modules/url-template": { + "version": "2.0.8", + "license": "BSD" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "8.3.2", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" } }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "node_modules/varint": { + "version": "0.0.3", + "license": "MIT" + }, + "node_modules/vite": { + "version": "5.2.13", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.20.1", + "postcss": "^8.4.38", + "rollup": "^4.13.0" + }, + "bin": { + "vite": "bin/vite.js" + }, "engines": { - "node": ">=0.8.x" + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } } }, - "node_modules/execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "node_modules/vite-node": { + "version": "1.6.0", + "dev": true, + "license": "MIT", "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" + "cac": "^6.7.14", + "debug": "^4.3.4", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "vite": "^5.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" }, "engines": { - "node": ">=6" + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/fast-copy": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/fast-copy/-/fast-copy-3.0.2.tgz", - "integrity": "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "peer": true - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "node_modules/vitest": { + "version": "1.6.0", + "dev": true, + "license": "MIT", "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "@vitest/expect": "1.6.0", + "@vitest/runner": "1.6.0", + "@vitest/snapshot": "1.6.0", + "@vitest/spy": "1.6.0", + "@vitest/utils": "1.6.0", + "acorn-walk": "^8.3.2", + "chai": "^4.3.10", + "debug": "^4.3.4", + "execa": "^8.0.1", + "local-pkg": "^0.5.0", + "magic-string": "^0.30.5", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "std-env": "^3.5.0", + "strip-literal": "^2.0.0", + "tinybench": "^2.5.1", + "tinypool": "^0.8.3", + "vite": "^5.0.0", + "vite-node": "1.6.0", + "why-is-node-running": "^2.2.2" + }, + "bin": { + "vitest": "vitest.mjs" }, "engines": { - "node": ">=8.6.0" + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/node": "^18.0.0 || >=20.0.0", + "@vitest/browser": "1.6.0", + "@vitest/ui": "1.6.0", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } } }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "peer": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "peer": true - }, - "node_modules/fast-redact": { - "version": "3.5.0", - "resolved": "https://registry.npmmirror.com/fast-redact/-/fast-redact-3.5.0.tgz", - "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", + "node_modules/vitest/node_modules/assertion-error": { + "version": "1.1.0", + "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": "*" } }, - "node_modules/fast-safe-stringify": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" - }, - "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "node_modules/vitest/node_modules/chai": { + "version": "4.4.1", + "dev": true, + "license": "MIT", "dependencies": { - "reusify": "^1.0.4" + "assertion-error": "^1.1.0", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", + "pathval": "^1.1.1", + "type-detect": "^4.0.8" + }, + "engines": { + "node": ">=4" } }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "peer": true, + "node_modules/vitest/node_modules/check-error": { + "version": "1.0.3", + "dev": true, + "license": "MIT", "dependencies": { - "flat-cache": "^3.0.4" + "get-func-name": "^2.0.2" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "*" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "node_modules/vitest/node_modules/cross-spawn": { + "version": "7.0.3", + "dev": true, + "license": "MIT", "dependencies": { - "to-regex-range": "^5.0.1" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": ">=8" + "node": ">= 8" } }, - "node_modules/find-replace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", - "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", + "node_modules/vitest/node_modules/deep-eql": { + "version": "4.1.4", + "dev": true, + "license": "MIT", "dependencies": { - "array-back": "^3.0.1" + "type-detect": "^4.0.0" }, "engines": { - "node": ">=4.0.0" + "node": ">=6" } }, - "node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "node_modules/vitest/node_modules/execa": { + "version": "8.0.1", + "dev": true, + "license": "MIT", "dependencies": { - "locate-path": "^3.0.0" + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" }, "engines": { - "node": ">=6" + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "peer": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "node_modules/vitest/node_modules/get-stream": { + "version": "8.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/vitest/node_modules/is-stream": { + "version": "3.0.0", + "dev": true, + "license": "MIT", "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "peer": true + "node_modules/vitest/node_modules/loupe": { + "version": "2.3.7", + "dev": true, + "license": "MIT", + "dependencies": { + "get-func-name": "^2.0.1" + } }, - "node_modules/foreground-child": { - "version": "3.2.1", - "resolved": "https://registry.npmmirror.com/foreground-child/-/foreground-child-3.2.1.tgz", - "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==", + "node_modules/vitest/node_modules/npm-run-path": { + "version": "5.3.0", + "dev": true, + "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" + "path-key": "^4.0.0" }, "engines": { - "node": ">=14" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/foreground-child/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, + "node_modules/vitest/node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/foreground-child/node_modules/path-key": { + "node_modules/vitest/node_modules/path-key": { "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/foreground-child/node_modules/shebang-command": { + "node_modules/vitest/node_modules/pathval": { + "version": "1.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/vitest/node_modules/shebang-command": { "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -3240,18 +3212,18 @@ "node": ">=8" } }, - "node_modules/foreground-child/node_modules/shebang-regex": { + "node_modules/vitest/node_modules/shebang-regex": { "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/foreground-child/node_modules/signal-exit": { + "node_modules/vitest/node_modules/signal-exit": { "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", "engines": { "node": ">=14" }, @@ -3259,10 +3231,10 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/foreground-child/node_modules/which": { + "node_modules/vitest/node_modules/which": { "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -3273,4039 +3245,3491 @@ "node": ">= 8" } }, - "node_modules/form-data": { + "node_modules/webidl-conversions": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } + "license": "BSD-2-Clause" }, - "node_modules/front-matter": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-4.0.2.tgz", - "integrity": "sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==", + "node_modules/whatwg-url": { + "version": "5.0.0", + "license": "MIT", "dependencies": { - "js-yaml": "^3.13.1" + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" } }, - "node_modules/front-matter/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "node_modules/which": { + "version": "1.3.1", + "license": "ISC", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "isexe": "^2.0.0" }, "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" - }, - "node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "node_modules/get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" - }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" + "which": "bin/which" } }, - "node_modules/get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" - } + "node_modules/which-module": { + "version": "2.0.1", + "license": "ISC" }, - "node_modules/get-tsconfig": { - "version": "4.7.6", - "resolved": "https://registry.npmmirror.com/get-tsconfig/-/get-tsconfig-4.7.6.tgz", - "integrity": "sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==", + "node_modules/why-is-node-running": { + "version": "2.3.0", "dev": true, + "license": "MIT", "dependencies": { - "resolve-pkg-maps": "^1.0.0" + "siginfo": "^2.0.0", + "stackback": "0.0.2" }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/git-apply-delta": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/git-apply-delta/-/git-apply-delta-0.0.7.tgz", - "integrity": "sha512-P99rChCrhraaY7D6E4NUotfhjzRRNvlf3Mumw9BHgOJFQTfYHhTwAgSTEtcBvb25iXttvMRLEHtzyz9mE2gLjQ==", - "dependencies": { - "bops": "~0.0.6", - "varint": "0.0.3" + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" } }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "node_modules/windows-release": { + "version": "3.3.3", + "license": "MIT", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "execa": "^1.0.0" }, "engines": { - "node": "*" + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/winston": { + "version": "3.14.1", + "license": "MIT", "dependencies": { - "is-glob": "^4.0.1" + "@colors/colors": "^1.6.0", + "@dabh/diagnostics": "^2.0.2", + "async": "^3.2.3", + "is-stream": "^2.0.0", + "logform": "^2.6.0", + "one-time": "^1.0.0", + "readable-stream": "^3.4.0", + "safe-stable-stringify": "^2.3.1", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.7.0" }, "engines": { - "node": ">= 6" + "node": ">= 12.0.0" } }, - "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmmirror.com/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "peer": true, + "node_modules/winston-transport": { + "version": "4.7.1", + "license": "MIT", "dependencies": { - "type-fest": "^0.20.2" + "logform": "^2.6.1", + "readable-stream": "^3.6.2", + "triple-beam": "^1.3.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 12.0.0" } }, - "node_modules/globalyzer": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.4.tgz", - "integrity": "sha512-LeguVWaxgHN0MNbWC6YljNMzHkrCny9fzjmEUdnF1kQ7wATFD1RHFRqA1qxaX2tgxGENlcxjOflopBwj3YZiXA==" + "node_modules/winston/node_modules/async": { + "version": "3.2.5", + "license": "MIT" }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmmirror.com/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, + "node_modules/winston/node_modules/is-stream": { + "version": "2.0.1", + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/wrap-ansi": { + "version": "2.1.0", + "license": "MIT", "dependencies": { - "function-bind": "^1.1.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" }, "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "peer": true, - "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/has-own-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-own-prop/-/has-own-prop-2.0.0.tgz", - "integrity": "sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==", + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/help-me": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/help-me/-/help-me-5.0.0.tgz", - "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==" - }, - "node_modules/http-proxy-agent": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz", - "integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==", + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "license": "MIT", "dependencies": { - "agent-base": "4", - "debug": "3.1.0" + "number-is-nan": "^1.0.0" }, "engines": { - "node": ">= 4.5.0" + "node": ">=0.10.0" } }, - "node_modules/http-proxy-agent/node_modules/debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "1.0.2", + "license": "MIT", "dependencies": { - "ms": "2.0.0" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/http-proxy-agent/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/https-proxy-agent": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", - "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "3.0.1", + "license": "MIT", "dependencies": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" + "ansi-regex": "^2.0.0" }, "engines": { - "node": ">= 4.5.0" + "node": ">=0.10.0" } }, - "node_modules/https-proxy-agent/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dependencies": { - "ms": "^2.1.1" - } + "node_modules/wrappy": { + "version": "1.0.2", + "license": "ISC" }, - "node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/xmlbuilder": { + "version": "11.0.1", + "license": "MIT", "engines": { - "node": ">=16.17.0" + "node": ">=4.0" } }, - "node_modules/husky": { - "version": "9.1.4", - "resolved": "https://registry.npmmirror.com/husky/-/husky-9.1.4.tgz", - "integrity": "sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==", - "dev": true, - "bin": { - "husky": "bin.js" - }, + "node_modules/y18n": { + "version": "4.0.3", + "license": "ISC" + }, + "node_modules/yaml": { + "version": "1.10.2", + "license": "ISC", "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" + "node": ">= 6" } }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "node_modules/yargs": { + "version": "12.0.5", + "license": "MIT", + "dependencies": { + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" + } }, - "node_modules/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", - "engines": { - "node": ">= 4" + "node_modules/yargs-parser": { + "version": "11.1.1", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "peer": true, + "node_modules/zip-stream": { + "version": "2.1.3", + "license": "MIT", "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "archiver-utils": "^2.1.0", + "compress-commons": "^2.1.1", + "readable-stream": "^3.4.0" }, "engines": { - "node": ">=6" + "node": ">= 6" + } + }, + "workspaces/typescript-codegen-breaking-change-detector": { + "version": "0.4.6", + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "devDependencies": { + "@types/eslint": "^8.56.10", + "@types/eslint-scope": "^3.7.7", + "@types/fs-extra": "^11.0.4", + "@typescript-eslint/eslint-plugin": "^7.17.0", + "@typescript-eslint/parser": "^7.17.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "husky": "^9.0.11", + "onchange": "^7.1.0", + "prettier": "3.3.2", + "rimraf": "^5.0.7", + "tsx": "^4.16.2", + "vitest": "^2.0.4" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "peer": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@ampproject/remapping": { + "version": "2.3.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, "engines": { - "node": ">=0.8.19" + "node": ">=6.0.0" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@azure-tools/openapi-tools-common": { + "version": "1.2.2", + "license": "MIT", "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "@types/async-retry": "^1.4.1", + "@types/commonmark": "^0.27.3", + "@types/node-fetch": "^2.5.7", + "async-retry": "^1.2.3", + "commonmark": "^0.28.1", + "front-matter": "^4.0.2", + "node-fetch": "^2.6.0", + "tslib": "^2.0.0" } }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "engines": { - "node": ">= 0.10" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@blakeembrey/deque": { + "version": "1.0.5", + "dev": true, + "license": "Apache-2.0" }, - "node_modules/invert-kv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", - "engines": { - "node": ">=4" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@blakeembrey/template": { + "version": "1.1.0", + "dev": true, + "license": "Apache-2.0" }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@esbuild/win32-x64": { + "version": "0.23.0", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=8" + "node": ">=18" } }, - "node_modules/is-core-module": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", - "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "license": "MIT", "dependencies": { - "has": "^1.0.3" + "eslint-visitor-keys": "^3.3.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "engines": { - "node": ">=0.10.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint-community/regexpp": { + "version": "4.11.0", + "license": "MIT", "engines": { - "node": ">=4" + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "license": "MIT", + "peer": true, "dependencies": { - "is-extglob": "^2.1.1" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/isomorphic-git": { - "version": "0.55.6", - "resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-0.55.6.tgz", - "integrity": "sha512-A4ygiDCsMIuWknMgviK73IzdPW7HjOC57IBVY/QyC1bwMrXG+clfdBjqA3SpzxBRIxkRA9GvbkrjAjFX6n6ZbQ==", "dependencies": { - "async-lock": "^1.1.0", - "clean-git-ref": "1.0.3", - "crc-32": "^1.2.0", - "diff-lines": "^1.1.1", - "git-apply-delta": "0.0.7", - "globalyzer": "^0.1.0", - "globrex": "^0.1.2", - "ignore": "^5.0.4", - "marky": "^1.2.1", - "minimisted": "^2.0.0", - "pako": "^1.0.10", - "pify": "^4.0.1", - "readable-stream": "^3.1.1", - "sha.js": "^2.4.9", - "simple-get": "^3.0.2" - }, - "bin": { - "isogit": "cli.js" - }, - "engines": { - "node": ">=7.6.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/jackspeak": { - "version": "4.0.1", - "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-4.0.1.tgz", - "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "peer": true, "dependencies": { - "@isaacs/cliui": "^8.0.2" + "brace-expansion": "^1.1.7" }, "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" + "node": "*" } }, - "node_modules/joycon": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/joycon/-/joycon-3.1.1.tgz", - "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint/js": { + "version": "8.57.0", + "license": "MIT", + "peer": true, "engines": { - "node": ">=10" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/js-tokens": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.0.tgz", - "integrity": "sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "license": "Apache-2.0", + "peer": true, "dependencies": { - "argparse": "^2.0.1" + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": ">=10.10.0" } }, - "node_modules/js-yaml/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", + "peer": true, "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/lazystream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", - "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "peer": true, "dependencies": { - "readable-stream": "^2.0.5" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">= 0.6.3" + "node": "*" } }, - "node_modules/lazystream/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/lazystream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/lazystream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "license": "BSD-3-Clause", + "peer": true }, - "node_modules/lcid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@isaacs/cliui": { + "version": "8.0.2", + "license": "ISC", "dependencies": { - "invert-kv": "^2.0.0" + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" }, "engines": { - "node": ">=6" + "node": ">=12" } }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "license": "MIT", "engines": { - "node": ">= 0.8.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "node_modules/local-pkg": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.0.tgz", - "integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", "license": "MIT", "dependencies": { - "mlly": "^1.4.2", - "pkg-types": "^1.0.3" + "ansi-regex": "^6.0.1" }, "engines": { - "node": ">=14" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/antfu" + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "dev": true, + "license": "MIT", "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { - "node": ">=6" + "node": ">=6.0.0" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash-es": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" - }, - "node_modules/lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } }, - "node_modules/lodash.difference": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", - "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } }, - "node_modules/lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "dev": true, + "license": "MIT" }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "peer": true + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } }, - "node_modules/lodash.union": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", - "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "license": "MIT", + "engines": { + "node": ">= 8" + } }, - "node_modules/loupe": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/loupe/-/loupe-3.1.1.tgz", - "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "license": "MIT", "dependencies": { - "get-func-name": "^2.0.1" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" } }, - "node_modules/lru-cache": { - "version": "11.0.0", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-11.0.0.tgz", - "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "license": "MIT", + "optional": true, "engines": { - "node": "20 || >=22" + "node": ">=14" } }, - "node_modules/macos-release": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.1.tgz", - "integrity": "sha512-DXqXhEM7gW59OjZO8NIjBCz9AQ1BEMrfiOAl4AYByHCtVHRF4KoGNO8mqQeM8lRCtQe/UnJ4imO/d2HdkKsd+A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@pkgr/core": { + "version": "0.1.1", + "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/unts" } }, - "node_modules/magic-string": { - "version": "0.30.10", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.10.tgz", - "integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.20.0", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@ts-morph/common": { + "version": "0.24.0", + "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.15" + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" } }, - "node_modules/map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "9.0.5", + "license": "ISC", "dependencies": { - "p-defer": "^1.0.0" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=6" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/marked": { - "version": "13.0.3", - "resolved": "https://registry.npmmirror.com/marked/-/marked-13.0.3.tgz", - "integrity": "sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 18" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/async-retry": { + "version": "1.4.8", + "license": "MIT", + "dependencies": { + "@types/retry": "*" } }, - "node_modules/marky": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.5.tgz", - "integrity": "sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/commonmark": { + "version": "0.27.9", + "license": "MIT" }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/eslint": { + "version": "8.56.11", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } }, - "node_modules/mem": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", - "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/eslint-scope": { + "version": "3.7.7", + "dev": true, + "license": "MIT", "dependencies": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - }, - "engines": { - "node": ">=6" + "@types/eslint": "*", + "@types/estree": "*" } }, - "node_modules/mem/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "engines": { - "node": ">=6" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/estree": { + "version": "1.0.5", + "dev": true, + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/fs-extra": { + "version": "11.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/jsonfile": "*", + "@types/node": "*" } }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/json-schema": { + "version": "7.0.15", "dev": true, "license": "MIT" }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/jsonfile": { + "version": "6.1.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/node": { + "version": "22.2.0", + "license": "MIT", + "dependencies": { + "undici-types": "~6.13.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/node-fetch": { + "version": "2.6.11", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/retry": { + "version": "0.12.5", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.18.0", + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, "engines": { - "node": ">= 8" + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/parser": { + "version": "7.18.0", + "license": "BSD-2-Clause", "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4" }, "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/scope-manager": { + "version": "7.18.0", + "license": "MIT", "dependencies": { - "mime-db": "1.52.0" + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" }, "engines": { - "node": ">= 0.6" + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/type-utils": { + "version": "7.18.0", "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, "engines": { - "node": ">=12" + "node": "^18.18.0 || >=20.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/mimic-response": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz", - "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/types": { + "version": "7.18.0", + "license": "MIT", "engines": { - "node": ">=8" + "node": "^18.18.0 || >=20.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/typescript-estree": { + "version": "7.18.0", + "license": "BSD-2-Clause", "dependencies": { - "brace-expansion": "^1.1.7" + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "node": "^18.18.0 || >=20.0.0" + }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/minimisted": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/minimisted/-/minimisted-2.0.1.tgz", - "integrity": "sha512-1oPjfuLQa2caorJUM8HV8lGgWCc0qqAO1MNv/k05G4qslmsndV/5WdNZrqCiyqiz3wohia2Ij2B7w2Dr7/IyrA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "license": "ISC", "dependencies": { - "minimist": "^1.2.5" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "brace-expansion": "^2.0.1" + }, "engines": { "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/utils": { + "version": "7.18.0", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" }, "engines": { - "node": ">=10" + "node": "^18.18.0 || >=20.0.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" } }, - "node_modules/mlly": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.1.tgz", - "integrity": "sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/visitor-keys": { + "version": "7.18.0", "license": "MIT", "dependencies": { - "acorn": "^8.11.3", - "pathe": "^1.1.2", - "pkg-types": "^1.1.1", - "ufo": "^1.5.3" + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "license": "ISC", + "peer": true }, - "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/expect": { + "version": "2.0.5", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" + "dependencies": { + "@vitest/spy": "2.0.5", + "@vitest/utils": "2.0.5", + "chai": "^5.1.1", + "tinyrainbow": "^1.2.0" }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" - }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - }, - "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/pretty-format": { + "version": "2.0.5", + "dev": true, + "license": "MIT", "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" + "tinyrainbow": "^1.2.0" }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "engines": { - "node": ">=0.10.0" + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/runner": { + "version": "2.0.5", + "dev": true, + "license": "MIT", "dependencies": { - "path-key": "^2.0.0" + "@vitest/utils": "2.0.5", + "pathe": "^1.1.2" }, - "engines": { - "node": ">=4" - } - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", - "engines": { - "node": ">=0.10.0" + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmmirror.com/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "engines": { - "node": ">=14.0.0" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/snapshot": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "2.0.5", + "magic-string": "^0.30.10", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/spy": { + "version": "2.0.5", + "dev": true, + "license": "MIT", "dependencies": { - "wrappy": "1" + "tinyspy": "^3.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/onchange": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/onchange/-/onchange-7.1.0.tgz", - "integrity": "sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/utils": { + "version": "2.0.5", "dev": true, + "license": "MIT", "dependencies": { - "@blakeembrey/deque": "^1.0.5", - "@blakeembrey/template": "^1.0.0", - "arg": "^4.1.3", - "chokidar": "^3.3.1", - "cross-spawn": "^7.0.1", - "ignore": "^5.1.4", - "tree-kill": "^1.2.2" + "@vitest/pretty-format": "2.0.5", + "estree-walker": "^3.0.3", + "loupe": "^3.1.1", + "tinyrainbow": "^1.2.0" }, - "bin": { - "onchange": "dist/bin.js" + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/onchange/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/abort-controller": { + "version": "3.0.0", + "license": "MIT", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "event-target-shim": "^5.0.0" }, "engines": { - "node": ">= 8" + "node": ">=6.5" } }, - "node_modules/onchange/node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/acorn": { + "version": "8.12.1", + "license": "MIT", + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, "engines": { - "node": ">=8" + "node": ">=0.4.0" } }, - "node_modules/onchange/node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/acorn-jsx": { + "version": "5.3.2", + "license": "MIT", + "peer": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "peer": true, "dependencies": { - "shebang-regex": "^3.0.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/onchange/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/onchange/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/anymatch": { + "version": "3.1.3", "dev": true, + "license": "ISC", "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" }, "engines": { "node": ">= 8" } }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/arg": { + "version": "4.1.3", "dev": true, + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/array-union": { + "version": "2.1.0", "license": "MIT", - "dependencies": { - "mimic-fn": "^4.0.0" - }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "peer": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/assertion-error": { + "version": "2.0.1", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.8.0" + "node": ">=12" } }, - "node_modules/os-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/async-retry": { + "version": "1.3.3", + "license": "MIT", "dependencies": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - }, - "engines": { - "node": ">=6" + "retry": "0.13.1" } }, - "node_modules/os-name": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", - "integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==", - "dependencies": { - "macos-release": "^2.2.0", - "windows-release": "^3.1.0" - }, - "engines": { - "node": ">=6" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" }, - "node_modules/p-defer": { + "workspaces/typescript-codegen-breaking-change-detector/node_modules/atomic-sleep": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==", + "license": "MIT", "engines": { - "node": ">=4" + "node": ">=8.0.0" } }, - "node_modules/p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", - "engines": { - "node": ">=4" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/balanced-match": { + "version": "1.0.2", + "license": "MIT" }, - "node_modules/p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", - "engines": { - "node": ">=6" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" }, - "node_modules/p-limit": { + "workspaces/typescript-codegen-breaking-change-detector/node_modules/binary-extensions": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, + "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/brace-expansion": { + "version": "2.0.1", + "license": "MIT", "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "engines": { - "node": ">=6" + "balanced-match": "^1.0.0" } }, - "node_modules/package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" - }, - "node_modules/pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "peer": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/braces": { + "version": "3.0.3", + "license": "MIT", "dependencies": { - "callsites": "^3.0.0" + "fill-range": "^7.1.1" }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/parse-ts-to-ast": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/parse-ts-to-ast/-/parse-ts-to-ast-0.1.3.tgz", - "integrity": "sha512-XKfcZg7ssmP58NflLUQsprG+ocdlJcxF6tAziJreZpYH0GsOxtO+or2Se+tfI85oSCJr/nVgy5Nc444txSciXw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/buffer": { + "version": "6.0.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", "dependencies": { - "lodash": "^4.17.10", - "lodash-es": "^4.17.10", - "tslib": "^1.9.3", - "typescript": "^3.0.3" + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" } }, - "node_modules/parse-ts-to-ast/node_modules/typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmmirror.com/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/cac": { + "version": "6.7.14", + "dev": true, + "license": "MIT", "engines": { - "node": ">=4.2.0" + "node": ">=8" } }, - "node_modules/path-browserify": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/callsites": { + "version": "3.1.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } }, - "node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/chai": { + "version": "5.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/check-error": { + "version": "2.1.1", + "dev": true, + "license": "MIT", "engines": { - "node": ">=4" + "node": ">= 16" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-scurry": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-2.0.0.tgz", - "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/chokidar": { + "version": "3.6.0", + "dev": true, + "license": "MIT", "dependencies": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" }, "engines": { - "node": "20 || >=22" + "node": ">= 8.10.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, "engines": { - "node": ">=8" + "node": ">= 6" } }, - "node_modules/pathe": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", - "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/code-block-writer": { + "version": "13.0.2", "license": "MIT" }, - "node_modules/pathval": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/pathval/-/pathval-2.0.0.tgz", - "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, "engines": { - "node": ">= 14.16" + "node": ">=7.0.0" } }, - "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", - "dev": true, - "license": "ISC" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/colorette": { + "version": "2.0.20", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "engines": { + "node": ">= 0.8" } }, - "node_modules/pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/commander": { + "version": "12.1.0", + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=18" } }, - "node_modules/pino": { - "version": "9.3.2", - "resolved": "https://registry.npmmirror.com/pino/-/pino-9.3.2.tgz", - "integrity": "sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/commonmark": { + "version": "0.28.1", + "license": "BSD-2-Clause", "dependencies": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^7.0.0", - "process-warning": "^4.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^4.0.1", - "thread-stream": "^3.0.0" + "entities": "~ 1.1.1", + "mdurl": "~ 1.0.1", + "minimist": "~ 1.2.0", + "string.prototype.repeat": "^0.2.0" }, "bin": { - "pino": "bin.js" + "commonmark": "bin/commonmark" + }, + "engines": { + "node": "*" } }, - "node_modules/pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/concat-map": { + "version": "0.0.1", + "license": "MIT", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/cross-spawn": { + "version": "7.0.3", + "license": "MIT", "dependencies": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" } }, - "node_modules/pino-abstract-transport/node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/pino-abstract-transport/node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmmirror.com/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/dateformat": { + "version": "4.6.3", + "license": "MIT", + "engines": { + "node": "*" } }, - "node_modules/pino-abstract-transport/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/debug": { + "version": "4.3.6", + "license": "MIT", "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" + "ms": "2.1.2" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/pino-pretty": { - "version": "11.2.2", - "resolved": "https://registry.npmmirror.com/pino-pretty/-/pino-pretty-11.2.2.tgz", - "integrity": "sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==", - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.2", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^4.0.1", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "pino-pretty": "bin.js" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/deep-eql": { + "version": "5.0.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" } }, - "node_modules/pino-pretty/node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "workspaces/typescript-codegen-breaking-change-detector/node_modules/deep-is": { + "version": "0.1.4", + "license": "MIT", + "peer": true }, - "node_modules/pino-pretty/node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmmirror.com/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/delayed-stream": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" } }, - "node_modules/pino-pretty/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/dir-glob": { + "version": "3.0.1", + "license": "MIT", "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/doctrine": { + "version": "3.0.0", + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "esutils": "^2.0.2" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.0.0" } }, - "node_modules/pino-std-serializers": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz", - "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/eastasianwidth": { + "version": "0.2.0", + "license": "MIT" }, - "node_modules/pkg-types": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.1.tgz", - "integrity": "sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/emoji-regex": { + "version": "9.2.2", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/end-of-stream": { + "version": "1.4.4", "license": "MIT", "dependencies": { - "confbox": "^0.1.7", - "mlly": "^1.7.0", - "pathe": "^1.1.2" + "once": "^1.4.0" } }, - "node_modules/postcss": { - "version": "8.4.38", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", - "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/entities": { + "version": "1.1.2", + "license": "BSD-2-Clause" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/esbuild": { + "version": "0.23.0", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], + "hasInstallScript": true, "license": "MIT", - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.2.0" + "bin": { + "esbuild": "bin/esbuild" }, "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.23.0", + "@esbuild/android-arm": "0.23.0", + "@esbuild/android-arm64": "0.23.0", + "@esbuild/android-x64": "0.23.0", + "@esbuild/darwin-arm64": "0.23.0", + "@esbuild/darwin-x64": "0.23.0", + "@esbuild/freebsd-arm64": "0.23.0", + "@esbuild/freebsd-x64": "0.23.0", + "@esbuild/linux-arm": "0.23.0", + "@esbuild/linux-arm64": "0.23.0", + "@esbuild/linux-ia32": "0.23.0", + "@esbuild/linux-loong64": "0.23.0", + "@esbuild/linux-mips64el": "0.23.0", + "@esbuild/linux-ppc64": "0.23.0", + "@esbuild/linux-riscv64": "0.23.0", + "@esbuild/linux-s390x": "0.23.0", + "@esbuild/linux-x64": "0.23.0", + "@esbuild/netbsd-x64": "0.23.0", + "@esbuild/openbsd-arm64": "0.23.0", + "@esbuild/openbsd-x64": "0.23.0", + "@esbuild/sunos-x64": "0.23.0", + "@esbuild/win32-arm64": "0.23.0", + "@esbuild/win32-ia32": "0.23.0", + "@esbuild/win32-x64": "0.23.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/escape-string-regexp": { + "version": "4.0.0", + "license": "MIT", "peer": true, "engines": { - "node": ">= 0.8.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/prettier": { - "version": "3.3.2", - "resolved": "https://registry.npmmirror.com/prettier/-/prettier-3.3.2.tgz", - "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint": { + "version": "8.57.0", + "license": "MIT", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, "bin": { - "prettier": "bin/prettier.cjs" + "eslint": "bin/eslint.js" }, "engines": { - "node": ">=14" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" + "url": "https://opencollective.com/eslint" } }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint-config-prettier": { + "version": "9.1.0", "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" }, - "engines": { - "node": ">=6.0.0" + "peerDependencies": { + "eslint": ">=7.0.0" } }, - "node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint-plugin-prettier": { + "version": "5.2.1", "dev": true, "license": "MIT", "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.9.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } } }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "license": "MIT", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint-scope": { + "version": "7.2.2", + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, "engines": { - "node": ">=10" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://opencollective.com/eslint" } }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmmirror.com/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "license": "Apache-2.0", "engines": { - "node": ">= 0.6.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "node_modules/process-warning": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/process-warning/-/process-warning-4.0.0.tgz", - "integrity": "sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==" - }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", + "peer": true, "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/quick-format-unescaped": { - "version": "4.0.4", - "resolved": "https://registry.npmmirror.com/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", - "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" - }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true, - "license": "MIT" - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">= 6" + "node": "*" } }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/espree": { + "version": "9.6.1", + "license": "BSD-2-Clause", + "peer": true, "dependencies": { - "picomatch": "^2.2.1" + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "engines": { - "node": ">= 12.13.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dependencies": { - "resolve": "^1.1.6" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" }, "engines": { - "node": ">= 0.10" + "node": ">=4" } }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/esquery": { + "version": "1.6.0", + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "estraverse": "^5.1.0" + }, "engines": { "node": ">=0.10" } }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug==" - }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/esrecurse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "peer": true, "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" + "estraverse": "^5.2.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=4.0" } }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", "peer": true, "engines": { - "node": ">=4" + "node": ">=4.0" } }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/estree-walker": { + "version": "3.0.3", "dev": true, - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" } }, - "node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/esutils": { + "version": "2.0.3", + "license": "BSD-2-Clause", + "peer": true, "engines": { - "node": ">= 4" + "node": ">=0.10.0" } }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/event-target-shim": { + "version": "5.0.1", + "license": "MIT", "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/events": { + "version": "3.3.0", + "license": "MIT", + "engines": { + "node": ">=0.8.x" } }, - "node_modules/rollup": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.0.tgz", - "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/execa": { + "version": "8.0.1", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "1.0.5" - }, - "bin": { - "rollup": "dist/bin/rollup" + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" }, "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" + "node": ">=16.17" }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.18.0", - "@rollup/rollup-android-arm64": "4.18.0", - "@rollup/rollup-darwin-arm64": "4.18.0", - "@rollup/rollup-darwin-x64": "4.18.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", - "@rollup/rollup-linux-arm-musleabihf": "4.18.0", - "@rollup/rollup-linux-arm64-gnu": "4.18.0", - "@rollup/rollup-linux-arm64-musl": "4.18.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", - "@rollup/rollup-linux-riscv64-gnu": "4.18.0", - "@rollup/rollup-linux-s390x-gnu": "4.18.0", - "@rollup/rollup-linux-x64-gnu": "4.18.0", - "@rollup/rollup-linux-x64-musl": "4.18.0", - "@rollup/rollup-win32-arm64-msvc": "4.18.0", - "@rollup/rollup-win32-ia32-msvc": "4.18.0", - "@rollup/rollup-win32-x64-msvc": "4.18.0", - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-stable-stringify": { - "version": "2.4.3", - "resolved": "https://registry.npmmirror.com/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", - "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", - "engines": { - "node": ">=10" + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "node_modules/secure-json-parse": { - "version": "2.7.0", - "resolved": "https://registry.npmmirror.com/secure-json-parse/-/secure-json-parse-2.7.0.tgz", - "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-copy": { + "version": "3.0.2", + "license": "MIT" }, - "node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-deep-equal": { + "version": "3.1.3", + "license": "MIT", + "peer": true }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-diff": { + "version": "1.3.0", + "dev": true, + "license": "Apache-2.0" }, - "node_modules/sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-glob": { + "version": "3.3.2", + "license": "MIT", "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" }, - "bin": { - "sha.js": "bin.js" + "engines": { + "node": ">=8.6.0" } }, - "node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "license": "ISC", "dependencies": { - "shebang-regex": "^1.0.0" + "is-glob": "^4.0.1" }, "engines": { - "node": ">=0.10.0" + "node": ">= 6" } }, - "node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "engines": { - "node": ">=0.10.0" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "license": "MIT", + "peer": true }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-levenshtein": { + "version": "2.0.6", + "license": "MIT", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-redact": { + "version": "3.5.0", + "license": "MIT", "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-safe-stringify": { + "version": "2.1.1", + "license": "MIT" }, - "node_modules/simple-get": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz", - "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fastq": { + "version": "1.17.1", + "license": "ISC", "dependencies": { - "decompress-response": "^4.2.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" + "reusify": "^1.0.4" } }, - "node_modules/simple-git": { - "version": "3.16.0", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.16.0.tgz", - "integrity": "sha512-zuWYsOLEhbJRWVxpjdiXl6eyAyGo/KzVW+KFhhw9MqEEJttcq+32jTWSGyxTdf9e/YCohxRE+9xpWFj9FdiJNw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/file-entry-cache": { + "version": "6.0.1", + "license": "MIT", + "peer": true, "dependencies": { - "@kwsites/file-exists": "^1.1.1", - "@kwsites/promise-deferred": "^1.1.1", - "debug": "^4.3.4" + "flat-cache": "^3.0.4" }, - "funding": { - "type": "github", - "url": "https://github.com/steveukx/git-js?sponsor=1" + "engines": { + "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fill-range": { + "version": "7.1.1", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, "engines": { "node": ">=8" } }, - "node_modules/sonic-boom": { - "version": "4.0.1", - "resolved": "https://registry.npmmirror.com/sonic-boom/-/sonic-boom-4.0.1.tgz", - "integrity": "sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/find-up": { + "version": "5.0.0", + "license": "MIT", + "peer": true, "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, - "node_modules/source-map-js": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", - "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", - "dev": true, - "license": "BSD-3-Clause", + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/split2": { - "version": "4.2.0", - "resolved": "https://registry.npmmirror.com/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache": { + "version": "3.2.0", + "license": "MIT", + "peer": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, "engines": { - "node": ">= 10.x" + "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", - "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", - "dev": true, - "license": "MIT" - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache/node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", + "peer": true, "dependencies": { - "safe-buffer": "~5.2.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache/node_modules/glob": { + "version": "7.2.3", + "license": "ISC", + "peer": true, "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": ">=4" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache/node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "peer": true, "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=8" + "node": "*" } }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache/node_modules/rimraf": { + "version": "3.0.2", + "license": "ISC", + "peer": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/flatted": { + "version": "3.3.1", + "license": "ISC", + "peer": true }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/foreground-child": { + "version": "3.3.0", + "license": "ISC", "dependencies": { - "ansi-regex": "^5.0.1" + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" }, "engines": { - "node": ">=8" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/string.prototype.repeat": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", - "integrity": "sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==" - }, - "node_modules/strip-ansi": { + "workspaces/typescript-codegen-breaking-change-detector/node_modules/form-data": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "license": "MIT", "dependencies": { - "ansi-regex": "^3.0.0" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" }, "engines": { - "node": ">=4" + "node": ">= 6" } }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/front-matter": { + "version": "4.0.2", + "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1" + "js-yaml": "^3.13.1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/front-matter/node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/front-matter/node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, - "engines": { - "node": ">=8" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fs-extra": { + "version": "11.2.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, "engines": { - "node": ">=8" + "node": ">=14.14" } }, - "node_modules/strip-eof": { + "workspaces/typescript-codegen-breaking-change-detector/node_modules/fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", - "engines": { - "node": ">=0.10.0" - } + "license": "ISC", + "peer": true }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/get-func-name": { + "version": "2.0.2", "dev": true, "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "*" } }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/get-stream": { + "version": "8.0.1", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/strip-literal": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.0.tgz", - "integrity": "sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/get-tsconfig": { + "version": "4.7.6", "dev": true, "license": "MIT", "dependencies": { - "js-tokens": "^9.0.0" + "resolve-pkg-maps": "^1.0.0" }, "funding": { - "url": "https://github.com/sponsors/antfu" + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "peer": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/glob": { + "version": "11.0.0", + "license": "ISC", "dependencies": { - "has-flag": "^4.0.0" + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" + "node": "20 || >=22" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/synckit": { - "version": "0.9.1", - "resolved": "https://registry.npmmirror.com/synckit/-/synckit-0.9.1.tgz", - "integrity": "sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/glob-parent": { + "version": "6.0.2", + "license": "ISC", + "peer": true, "dependencies": { - "@pkgr/core": "^0.1.0", - "tslib": "^2.6.2" + "is-glob": "^4.0.3" }, "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" + "node": ">=10.13.0" } }, - "node_modules/synckit/node_modules/tslib": { - "version": "2.6.3", - "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", - "dev": true - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/globals": { + "version": "13.24.0", + "license": "MIT", + "peer": true, "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" + "type-fest": "^0.20.2" }, "engines": { - "node": ">=6" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "peer": true - }, - "node_modules/thread-stream": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/thread-stream/-/thread-stream-3.1.0.tgz", - "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/globby": { + "version": "11.1.0", + "license": "MIT", "dependencies": { - "real-require": "^0.2.0" + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tinybench": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.8.0.tgz", - "integrity": "sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/graceful-fs": { + "version": "4.2.11", + "license": "ISC" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/graphemer": { + "version": "1.4.0", "license": "MIT" }, - "node_modules/tinypool": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.8.4.tgz", - "integrity": "sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/has-flag": { + "version": "4.0.0", "license": "MIT", + "peer": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/tinyrainbow": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/tinyrainbow/-/tinyrainbow-1.2.0.tgz", - "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/help-me": { + "version": "5.0.0", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/human-signals": { + "version": "5.0.0", "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">=14.0.0" + "node": ">=16.17.0" } }, - "node_modules/tinyspy": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz", - "integrity": "sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/husky": { + "version": "9.1.4", "dev": true, "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" + "bin": { + "husky": "bin.js" }, "engines": { - "node": ">=8.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" } }, - "node_modules/to-utf8": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/to-utf8/-/to-utf8-0.0.1.tgz", - "integrity": "sha512-zks18/TWT1iHO3v0vFp5qLKOG27m67ycq/Y7a7cTiRuUNlc4gf3HGnkRgMv0NyhnfTamtkYBJl+YeD1/j07gBQ==" - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/tree-kill": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/tree-kill/-/tree-kill-1.2.2.tgz", - "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "dev": true, - "bin": { - "tree-kill": "cli.js" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" }, - "node_modules/ts-api-utils": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz", - "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/ignore": { + "version": "5.3.2", + "license": "MIT", "engines": { - "node": ">=16" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - } - }, - "node_modules/ts-morph": { - "version": "23.0.0", - "resolved": "https://registry.npmmirror.com/ts-morph/-/ts-morph-23.0.0.tgz", - "integrity": "sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==", - "dependencies": { - "@ts-morph/common": "~0.24.0", - "code-block-writer": "^13.0.1" + "node": ">= 4" } }, - "node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/tsx": { - "version": "4.16.5", - "resolved": "https://registry.npmmirror.com/tsx/-/tsx-4.16.5.tgz", - "integrity": "sha512-ArsiAQHEW2iGaqZ8fTA1nX0a+lN5mNTyuGRRO6OW3H/Yno1y9/t1f9YOI1Cfoqz63VAthn++ZYcbDP7jPflc+A==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/import-fresh": { + "version": "3.3.0", + "license": "MIT", + "peer": true, "dependencies": { - "esbuild": "~0.21.5", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "engines": { - "node": ">=18.0.0" + "node": ">=6" }, - "optionalDependencies": { - "fsevents": "~2.3.3" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tsx/node_modules/@esbuild/aix-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", - "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "aix" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/imurmurhash": { + "version": "0.1.4", + "license": "MIT", + "peer": true, "engines": { - "node": ">=12" + "node": ">=0.8.19" } }, - "node_modules/tsx/node_modules/@esbuild/android-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.21.5.tgz", - "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/inflight": { + "version": "1.0.6", + "license": "ISC", + "peer": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" } }, - "node_modules/tsx/node_modules/@esbuild/android-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", - "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", - "cpu": [ - "arm64" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/inherits": { + "version": "2.0.4", + "license": "ISC", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-binary-path": { + "version": "2.1.0", "dev": true, - "optional": true, - "os": [ - "android" - ], + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/android-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.21.5.tgz", - "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-extglob": { + "version": "2.1.1", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=0.10.0" } }, - "node_modules/tsx/node_modules/@esbuild/darwin-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", - "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/darwin-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", - "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-glob": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, "engines": { - "node": ">=12" + "node": ">=0.10.0" } }, - "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", - "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-number": { + "version": "7.0.0", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=0.12.0" } }, - "node_modules/tsx/node_modules/@esbuild/freebsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", - "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-path-inside": { + "version": "3.0.3", + "license": "MIT", + "peer": true, "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/linux-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", - "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", - "cpu": [ - "arm" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-stream": { + "version": "3.0.0", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "MIT", "engines": { - "node": ">=12" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tsx/node_modules/@esbuild/linux-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", - "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/isexe": { + "version": "2.0.0", + "license": "ISC" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/jackspeak": { + "version": "4.0.1", + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, "engines": { - "node": ">=12" + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/tsx/node_modules/@esbuild/linux-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", - "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/joycon": { + "version": "3.1.1", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=10" } }, - "node_modules/tsx/node_modules/@esbuild/linux-loong64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", - "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "peer": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/tsx/node_modules/@esbuild/linux-mips64el": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", - "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/json-buffer": { + "version": "3.0.1", + "license": "MIT", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "license": "MIT", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/jsonfile": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "node_modules/tsx/node_modules/@esbuild/linux-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", - "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/keyv": { + "version": "4.5.4", + "license": "MIT", + "peer": true, + "dependencies": { + "json-buffer": "3.0.1" } }, - "node_modules/tsx/node_modules/@esbuild/linux-riscv64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", - "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/levn": { + "version": "0.4.1", + "license": "MIT", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, "engines": { - "node": ">=12" + "node": ">= 0.8.0" } }, - "node_modules/tsx/node_modules/@esbuild/linux-s390x": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", - "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/locate-path": { + "version": "6.0.0", + "license": "MIT", + "peer": true, + "dependencies": { + "p-locate": "^5.0.0" + }, "engines": { - "node": ">=12" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tsx/node_modules/@esbuild/linux-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", - "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", - "cpu": [ - "x64" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/lodash.merge": { + "version": "4.6.2", + "license": "MIT", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/loupe": { + "version": "3.1.1", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "license": "MIT", + "dependencies": { + "get-func-name": "^2.0.1" } }, - "node_modules/tsx/node_modules/@esbuild/netbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", - "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", - "cpu": [ - "x64" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/lru-cache": { + "version": "10.4.3", "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } + "license": "ISC" }, - "node_modules/tsx/node_modules/@esbuild/openbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", - "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", - "cpu": [ - "x64" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/magic-string": { + "version": "0.30.11", "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" } }, - "node_modules/tsx/node_modules/@esbuild/sunos-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", - "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/marked": { + "version": "13.0.3", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, "engines": { - "node": ">=12" + "node": ">= 18" } }, - "node_modules/tsx/node_modules/@esbuild/win32-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", - "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", - "cpu": [ - "arm64" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/mdurl": { + "version": "1.0.1", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/merge-stream": { + "version": "2.0.0", "dev": true, - "optional": true, - "os": [ - "win32" - ], + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/merge2": { + "version": "1.4.1", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">= 8" } }, - "node_modules/tsx/node_modules/@esbuild/win32-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", - "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/micromatch": { + "version": "4.0.7", + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, "engines": { - "node": ">=12" + "node": ">=8.6" } }, - "node_modules/tsx/node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], + "workspaces/typescript-codegen-breaking-change-detector/node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">= 0.6" } }, - "node_modules/tsx/node_modules/esbuild": { - "version": "0.21.5", - "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.21.5.tgz", - "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", - "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" }, "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" + "node": ">= 0.6" } }, - "node_modules/tunnel": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", - "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/mimic-fn": { + "version": "4.0.0", + "dev": true, + "license": "MIT", "engines": { - "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "peer": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/minimatch": { + "version": "10.0.1", + "license": "ISC", "dependencies": { - "prelude-ls": "^1.2.1" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">= 0.8.0" + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/minimist": { + "version": "1.2.8", "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/minipass": { + "version": "7.1.2", + "license": "ISC", "engines": { - "node": ">=4" + "node": ">=16 || 14 >=14.17" } }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "peer": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/mkdirp": { + "version": "3.0.1", + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/typescript": { - "version": "5.5.3", - "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.5.3.tgz", - "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/ms": { + "version": "2.1.2", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/nanoid": { + "version": "3.3.7", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "nanoid": "bin/nanoid.cjs" }, "engines": { - "node": ">=14.17" + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/typescript-codegen-breaking-change-detector": { - "resolved": "workspaces/typescript-codegen-breaking-change-detector", - "link": true + "workspaces/typescript-codegen-breaking-change-detector/node_modules/natural-compare": { + "version": "1.4.0", + "license": "MIT" }, - "node_modules/typescript-eslint": { - "version": "7.18.0", - "resolved": "https://registry.npmmirror.com/typescript-eslint/-/typescript-eslint-7.18.0.tgz", - "integrity": "sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/node-fetch": { + "version": "2.7.0", + "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "7.18.0", - "@typescript-eslint/parser": "7.18.0", - "@typescript-eslint/utils": "7.18.0" + "whatwg-url": "^5.0.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": "4.x || >=6.0.0" }, "peerDependencies": { - "eslint": "^8.56.0" + "encoding": "^0.1.0" }, "peerDependenciesMeta": { - "typescript": { + "encoding": { "optional": true } } }, - "node_modules/typical": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", - "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/normalize-path": { + "version": "3.0.0", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/ufo": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.3.tgz", - "integrity": "sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/npm-run-path": { + "version": "5.3.0", "dev": true, - "license": "MIT" - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" - }, - "node_modules/universal-user-agent": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-2.1.0.tgz", - "integrity": "sha512-8itiX7G05Tu3mGDTdNY2fB4KJ8MgZLS54RdG6PkkfwMAavrXu1mV/lls/GABx9O3Rw4PnTtasxrvbMQoBYY92Q==", + "license": "MIT", "dependencies": { - "os-name": "^3.0.0" + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 10.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/url-template": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz", - "integrity": "sha512-XdVKMF4SJ0nP/O7XIPB0JwAEuT9lDIYnNsK8yGVe43y0AWoKeJNdv3ZNWh7ksJ6KqQFjOO6ox/VEitLnaVNufw==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/on-exit-leak-free": { + "version": "2.1.2", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/once": { + "version": "1.4.0", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/onchange": { + "version": "7.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@blakeembrey/deque": "^1.0.5", + "@blakeembrey/template": "^1.0.0", + "arg": "^4.1.3", + "chokidar": "^3.3.1", + "cross-spawn": "^7.0.1", + "ignore": "^5.1.4", + "tree-kill": "^1.2.2" + }, "bin": { - "uuid": "dist/bin/uuid" + "onchange": "dist/bin.js" } }, - "node_modules/varint": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/varint/-/varint-0.0.3.tgz", - "integrity": "sha512-SZOWhAh1wbG6fxU5QJMudwrudDkVFCQJlcZEDFQoKdcpr0q2YG5VuS24WSA+w4m0N+9SNe1S2Zd5IdLWXaHyKQ==" - }, - "node_modules/vite": { - "version": "5.2.13", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.13.tgz", - "integrity": "sha512-SSq1noJfY9pR3I1TUENL3rQYDQCFqgD+lM6fTRAM8Nv6Lsg5hDLaXkjETVeBt+7vZBCMoibD+6IWnT2mJ+Zb/A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/onetime": { + "version": "6.0.0", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.20.1", - "postcss": "^8.4.38", - "rollup": "^4.13.0" + "mimic-fn": "^4.0.0" }, - "bin": { - "vite": "bin/vite.js" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/optionator": { + "version": "0.9.4", + "license": "MIT", + "peer": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": ">= 0.8.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/p-limit": { + "version": "3.1.0", + "license": "MIT", + "peer": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" }, "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/p-locate": { + "version": "5.0.0", + "license": "MIT", + "peer": true, + "dependencies": { + "p-limit": "^3.0.2" }, - "optionalDependencies": { - "fsevents": "~2.3.3" + "engines": { + "node": ">=10" }, - "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/package-json-from-dist": { + "version": "1.0.0", + "license": "BlueOak-1.0.0" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/parent-module": { + "version": "1.0.1", + "license": "MIT", + "peer": true, + "dependencies": { + "callsites": "^3.0.0" }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } + "engines": { + "node": ">=6" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-browserify": { + "version": "1.0.1", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-exists": { + "version": "4.0.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-is-absolute": { + "version": "1.0.1", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/vite-node": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.0.tgz", - "integrity": "sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-key": { + "version": "3.1.1", "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-scurry": { + "version": "2.0.0", + "license": "BlueOak-1.0.0", "dependencies": { - "cac": "^6.7.14", - "debug": "^4.3.4", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "vite": "^5.0.0" - }, - "bin": { - "vite-node": "vite-node.mjs" + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "20 || >=22" }, "funding": { - "url": "https://opencollective.com/vitest" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/vitest": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.6.0.tgz", - "integrity": "sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.0.0", + "license": "ISC", + "engines": { + "node": "20 || >=22" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-type": { + "version": "4.0.0", "license": "MIT", - "dependencies": { - "@vitest/expect": "1.6.0", - "@vitest/runner": "1.6.0", - "@vitest/snapshot": "1.6.0", - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "acorn-walk": "^8.3.2", - "chai": "^4.3.10", - "debug": "^4.3.4", - "execa": "^8.0.1", - "local-pkg": "^0.5.0", - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "std-env": "^3.5.0", - "strip-literal": "^2.0.0", - "tinybench": "^2.5.1", - "tinypool": "^0.8.3", - "vite": "^5.0.0", - "vite-node": "1.6.0", - "why-is-node-running": "^2.2.2" - }, - "bin": { - "vitest": "vitest.mjs" - }, "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "1.6.0", - "@vitest/ui": "1.6.0", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } + "node": ">=8" } }, - "node_modules/vitest/node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/pathe": { + "version": "1.1.2", + "dev": true, + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/pathval": { + "version": "2.0.0", "dev": true, "license": "MIT", "engines": { - "node": "*" + "node": ">= 14.16" } }, - "node_modules/vitest/node_modules/chai": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", - "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/picocolors": { + "version": "1.0.1", "dev": true, + "license": "ISC" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/picomatch": { + "version": "2.3.1", "license": "MIT", - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.0.8" - }, "engines": { - "node": ">=4" + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/vitest/node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/pino": { + "version": "9.3.2", "license": "MIT", "dependencies": { - "get-func-name": "^2.0.2" + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.1.1", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.2.0", + "pino-std-serializers": "^7.0.0", + "process-warning": "^4.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.2.0", + "safe-stable-stringify": "^2.3.1", + "sonic-boom": "^4.0.1", + "thread-stream": "^3.0.0" }, - "engines": { - "node": "*" + "bin": { + "pino": "bin.js" } }, - "node_modules/vitest/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/pino-abstract-transport": { + "version": "1.2.0", "license": "MIT", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "readable-stream": "^4.0.0", + "split2": "^4.0.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/pino-pretty": { + "version": "11.2.2", + "license": "MIT", + "dependencies": { + "colorette": "^2.0.7", + "dateformat": "^4.6.3", + "fast-copy": "^3.0.2", + "fast-safe-stringify": "^2.1.1", + "help-me": "^5.0.0", + "joycon": "^3.1.1", + "minimist": "^1.2.6", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.0.0", + "pump": "^3.0.0", + "readable-stream": "^4.0.0", + "secure-json-parse": "^2.4.0", + "sonic-boom": "^4.0.1", + "strip-json-comments": "^3.1.1" }, - "engines": { - "node": ">= 8" + "bin": { + "pino-pretty": "bin.js" } }, - "node_modules/vitest/node_modules/deep-eql": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", - "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/pino-std-serializers": { + "version": "7.0.0", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/postcss": { + "version": "8.4.41", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "license": "MIT", "dependencies": { - "type-detect": "^4.0.0" + "nanoid": "^3.3.7", + "picocolors": "^1.0.1", + "source-map-js": "^1.2.0" }, "engines": { - "node": ">=6" + "node": "^10 || ^12 || >=14" } }, - "node_modules/vitest/node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/prelude-ls": { + "version": "1.2.1", + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/prettier": { + "version": "3.3.2", "dev": true, "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" + "bin": { + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=16.17" + "node": ">=14" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/vitest/node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/prettier-linter-helpers": { + "version": "1.0.0", "dev": true, "license": "MIT", - "engines": { - "node": ">=16" + "dependencies": { + "fast-diff": "^1.1.2" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=6.0.0" } }, - "node_modules/vitest/node_modules/is-stream": { + "workspaces/typescript-codegen-breaking-change-detector/node_modules/process": { + "version": "0.11.10", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/process-warning": { + "version": "4.0.0", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/pump": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/punycode": { + "version": "2.3.1", + "license": "MIT", + "peer": true, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6" } }, - "node_modules/vitest/node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/queue-microtask": { + "version": "1.2.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/quick-format-unescaped": { + "version": "4.0.4", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/readable-stream": { + "version": "4.5.2", "license": "MIT", "dependencies": { - "get-func-name": "^2.0.1" + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/vitest/node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/readdirp": { + "version": "3.6.0", "dev": true, "license": "MIT", "dependencies": { - "path-key": "^4.0.0" + "picomatch": "^2.2.1" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8.10.0" } }, - "node_modules/vitest/node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/real-require": { + "version": "0.2.0", "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 12.13.0" } }, - "node_modules/vitest/node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/resolve-from": { + "version": "4.0.0", "license": "MIT", + "peer": true, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/vitest/node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/resolve-pkg-maps": { + "version": "1.0.0", "dev": true, "license": "MIT", - "engines": { - "node": "*" + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, - "node_modules/vitest/node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/retry": { + "version": "0.13.1", "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, "engines": { - "node": ">=8" + "node": ">= 4" } }, - "node_modules/vitest/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/reusify": { + "version": "1.0.4", "license": "MIT", "engines": { - "node": ">=8" + "iojs": ">=1.0.0", + "node": ">=0.10.0" } }, - "node_modules/vitest/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf": { + "version": "5.0.10", "dev": true, "license": "ISC", - "engines": { - "node": ">=14" + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/vitest/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/glob": { + "version": "10.4.5", "dev": true, "license": "ISC", "dependencies": { - "isexe": "^2.0.0" + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" }, "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" + "glob": "dist/esm/bin.mjs" }, - "bin": { - "which": "bin/which" + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/which-module": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", - "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/jackspeak": { + "version": "3.4.3", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" + "@isaacs/cliui": "^8.0.2" }, - "bin": { - "why-is-node-running": "cli.js" + "funding": { + "url": "https://github.com/sponsors/isaacs" }, - "engines": { - "node": ">=8" + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/windows-release": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.3.3.tgz", - "integrity": "sha512-OSOGH1QYiW5yVor9TtmXKQvt2vjQqbYS+DqmsZw+r7xDwLXEeT3JGW0ZppFmHx4diyXmxt238KFR3N9jzevBRg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/minimatch": { + "version": "9.0.5", + "dev": true, + "license": "ISC", "dependencies": { - "execa": "^1.0.0" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=6" + "node": ">=16 || 14 >=14.17" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/path-scurry": { + "version": "1.11.1", + "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.18" }, "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/rollup": { + "version": "4.20.0", + "dev": true, + "license": "MIT", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" }, "engines": { - "node": ">=8" + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.20.0", + "@rollup/rollup-android-arm64": "4.20.0", + "@rollup/rollup-darwin-arm64": "4.20.0", + "@rollup/rollup-darwin-x64": "4.20.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.20.0", + "@rollup/rollup-linux-arm-musleabihf": "4.20.0", + "@rollup/rollup-linux-arm64-gnu": "4.20.0", + "@rollup/rollup-linux-arm64-musl": "4.20.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0", + "@rollup/rollup-linux-riscv64-gnu": "4.20.0", + "@rollup/rollup-linux-s390x-gnu": "4.20.0", + "@rollup/rollup-linux-x64-gnu": "4.20.0", + "@rollup/rollup-linux-x64-musl": "4.20.0", + "@rollup/rollup-win32-arm64-msvc": "4.20.0", + "@rollup/rollup-win32-ia32-msvc": "4.20.0", + "@rollup/rollup-win32-x64-msvc": "4.20.0", + "fsevents": "~2.3.2" } }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/run-parallel": { + "version": "1.2.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" + "queue-microtask": "^1.2.2" } }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/safe-stable-stringify": { + "version": "2.4.3", + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, - "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/secure-json-parse": { + "version": "2.7.0", + "license": "BSD-3-Clause" }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/semver": { + "version": "7.6.3", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/shebang-command": { + "version": "2.0.0", + "license": "MIT", "dependencies": { - "ansi-regex": "^2.0.0" + "shebang-regex": "^3.0.0" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "engines": { - "node": ">=4.0" + "node": ">=8" } }, - "node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/shebang-regex": { + "version": "3.0.0", + "license": "MIT", "engines": { - "node": ">= 6" - } - }, - "node_modules/yargs": { - "version": "12.0.5", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", - "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", - "dependencies": { - "cliui": "^4.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1 || ^4.0.0", - "yargs-parser": "^11.1.1" + "node": ">=8" } }, - "node_modules/yargs-parser": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", - "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/siginfo": { + "version": "2.0.0", + "dev": true, + "license": "ISC" }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "peer": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/signal-exit": { + "version": "4.1.0", + "license": "ISC", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zip-stream": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-2.1.3.tgz", - "integrity": "sha512-EkXc2JGcKhO5N5aZ7TmuNo45budRaFGHOmz24wtJR7znbNqDPmdZtUauKX6et8KAVseAMBOyWJqEpXcHTBsh7Q==", - "dependencies": { - "archiver-utils": "^2.1.0", - "compress-commons": "^2.1.1", - "readable-stream": "^3.4.0" - }, - "engines": { - "node": ">= 6" + "url": "https://github.com/sponsors/isaacs" } }, - "packages/typescript-codegen-breaking-change-detector": { - "version": "0.4.6", - "extraneous": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/slash": { + "version": "3.0.0", "license": "MIT", - "dependencies": { - "@azure-tools/openapi-tools-common": "^1.2.2", - "@typescript-eslint/scope-manager": "^7.17.0", - "@typescript-eslint/types": "^7.17.0", - "@typescript-eslint/typescript-estree": "^7.17.0", - "@typescript-eslint/utils": "^7.17.0", - "@typescript-eslint/visitor-keys": "^7.17.0", - "commander": "^12.1.0", - "fs-extra": "^11.2.0", - "glob": "^11.0.0", - "marked": "^13.0.2", - "pino": "^9.3.1", - "pino-pretty": "^11.2.1", - "ts-morph": "^23.0.0", - "typescript": "5.5.3", - "typescript-eslint": "^7.17.0" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^26.0.1", - "@types/eslint": "^8.56.10", - "@types/eslint-scope": "^3.7.7", - "@types/fs-extra": "^11.0.4", - "@typescript-eslint/eslint-plugin": "^7.17.0", - "@typescript-eslint/parser": "^7.17.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", - "onchange": "^7.1.0", - "prettier": "3.3.2", - "rimraf": "^5.0.7", - "tsx": "^4.16.2", - "vitest": "^2.0.4" + "engines": { + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector": { - "version": "0.4.6", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/sonic-boom": { + "version": "4.0.1", "license": "MIT", "dependencies": { - "@azure-tools/openapi-tools-common": "^1.2.2", - "@typescript-eslint/scope-manager": "^7.17.0", - "@typescript-eslint/types": "^7.17.0", - "@typescript-eslint/typescript-estree": "^7.17.0", - "@typescript-eslint/utils": "^7.17.0", - "@typescript-eslint/visitor-keys": "^7.17.0", - "commander": "^12.1.0", - "fs-extra": "^11.2.0", - "glob": "^11.0.0", - "marked": "^13.0.2", - "pino": "^9.3.1", - "pino-pretty": "^11.2.1", - "ts-morph": "^23.0.0", - "typescript": "5.5.3", - "typescript-eslint": "^7.17.0" - }, - "devDependencies": { - "@types/eslint": "^8.56.10", - "@types/eslint-scope": "^3.7.7", - "@types/fs-extra": "^11.0.4", - "@typescript-eslint/eslint-plugin": "^7.17.0", - "@typescript-eslint/parser": "^7.17.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", - "onchange": "^7.1.0", - "prettier": "3.3.2", - "rimraf": "^5.0.7", - "tsx": "^4.16.2", - "vitest": "^2.0.4" + "atomic-sleep": "^1.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/expect": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@vitest/expect/-/expect-2.0.5.tgz", - "integrity": "sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/source-map-js": { + "version": "1.2.0", "dev": true, - "dependencies": { - "@vitest/spy": "2.0.5", - "@vitest/utils": "2.0.5", - "chai": "^5.1.1", - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/runner": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@vitest/runner/-/runner-2.0.5.tgz", - "integrity": "sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==", - "dev": true, - "dependencies": { - "@vitest/utils": "2.0.5", - "pathe": "^1.1.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/split2": { + "version": "4.2.0", + "license": "ISC", + "engines": { + "node": ">= 10.x" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/snapshot": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@vitest/snapshot/-/snapshot-2.0.5.tgz", - "integrity": "sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/stackback": { + "version": "0.0.2", "dev": true, - "dependencies": { - "@vitest/pretty-format": "2.0.5", - "magic-string": "^0.30.10", - "pathe": "^1.1.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/spy": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@vitest/spy/-/spy-2.0.5.tgz", - "integrity": "sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/std-env": { + "version": "3.7.0", "dev": true, + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/string_decoder": { + "version": "1.3.0", + "license": "MIT", "dependencies": { - "tinyspy": "^3.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "safe-buffer": "~5.2.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/utils": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@vitest/utils/-/utils-2.0.5.tgz", - "integrity": "sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width": { + "version": "5.1.2", + "license": "MIT", "dependencies": { - "@vitest/pretty-format": "2.0.5", - "estree-walker": "^3.0.3", - "loupe": "^3.1.1", - "tinyrainbow": "^1.2.0" + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" }, "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "license": "MIT", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { - "node": ">= 8" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmmirror.com/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width/node_modules/ansi-regex": { + "version": "6.0.1", + "license": "MIT", "engines": { - "node": ">=16.17" + "node": ">=12" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmmirror.com/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width/node_modules/strip-ansi": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, "engines": { - "node": ">=16" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/glob": { - "version": "11.0.0", - "resolved": "https://registry.npmmirror.com/glob/-/glob-11.0.0.tgz", - "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/string.prototype.repeat": { + "version": "0.2.0" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" + "ansi-regex": "^5.0.1" }, "engines": { - "node": "20 || >=22" + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-stream": { + "workspaces/typescript-codegen-breaking-change-detector/node_modules/strip-final-newline": { "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, + "license": "MIT", "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true + "workspaces/typescript-codegen-breaking-change-detector/node_modules/strip-json-comments": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "peer": true, "dependencies": { - "brace-expansion": "^2.0.1" + "has-flag": "^4.0.0" }, "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/synckit": { + "version": "0.9.1", "dev": true, + "license": "MIT", "dependencies": { - "path-key": "^4.0.0" + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": "^14.18.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/unts" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/text-table": { + "version": "0.2.0", + "license": "MIT", + "peer": true + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/thread-stream": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "real-require": "^0.2.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinybench": { + "version": "2.9.0", "dev": true, + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinypool": { + "version": "1.0.0", + "dev": true, + "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^18.0.0 || >=20.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinyrainbow": { + "version": "1.2.0", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=14.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinyspy": { + "version": "3.0.0", "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/to-regex-range": { + "version": "5.0.1", + "license": "MIT", "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" + "is-number": "^7.0.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">=8.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmmirror.com/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tr46": { + "version": "0.0.3", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tree-kill": { + "version": "1.2.2", "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, + "license": "MIT", "bin": { - "glob": "dist/esm/bin.mjs" + "tree-kill": "cli.js" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/ts-api-utils": { + "version": "1.3.0", + "license": "MIT", + "engines": { + "node": ">=16" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "peerDependencies": { + "typescript": ">=4.2.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/ts-morph": { + "version": "23.0.0", + "license": "MIT", + "dependencies": { + "@ts-morph/common": "~0.24.0", + "code-block-writer": "^13.0.1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tslib": { + "version": "2.6.3", + "license": "0BSD" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/tsx": { + "version": "4.17.0", "dev": true, + "license": "MIT", "dependencies": { - "@isaacs/cliui": "^8.0.2" + "esbuild": "~0.23.0", + "get-tsconfig": "^4.7.5" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" }, "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" + "fsevents": "~2.3.3" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/type-check": { + "version": "0.4.0", + "license": "MIT", + "peer": true, "dependencies": { - "brace-expansion": "^2.0.1" + "prelude-ls": "^1.2.1" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">= 0.8.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/type-fest": { + "version": "0.20.2", + "license": "(MIT OR CC0-1.0)", + "peer": true, + "engines": { + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/typescript": { + "version": "5.5.3", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=14.17" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/typescript-eslint": { + "version": "7.18.0", + "license": "MIT", "dependencies": { - "shebang-regex": "^3.0.0" + "@typescript-eslint/eslint-plugin": "7.18.0", + "@typescript-eslint/parser": "7.18.0", + "@typescript-eslint/utils": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, - "engines": { - "node": ">=8" + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } + "workspaces/typescript-codegen-breaking-change-detector/node_modules/undici-types": { + "version": "6.13.0", + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/universalify": { + "version": "2.0.1", + "license": "MIT", "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">= 10.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinypool": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/tinypool/-/tinypool-1.0.0.tgz", - "integrity": "sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==", - "dev": true, - "engines": { - "node": "^18.0.0 || >=20.0.0" + "workspaces/typescript-codegen-breaking-change-detector/node_modules/uri-js": { + "version": "4.4.1", + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "punycode": "^2.1.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinyspy": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/tinyspy/-/tinyspy-3.0.0.tgz", - "integrity": "sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==", + "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite": { + "version": "5.4.0", "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.40", + "rollup": "^4.13.0" + }, + "bin": { + "vite": "bin/vite.js" + }, "engines": { - "node": ">=14.0.0" + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } } }, "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite-node": { "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/vite-node/-/vite-node-2.0.5.tgz", - "integrity": "sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==", "dev": true, + "license": "MIT", "dependencies": { "cac": "^6.7.14", "debug": "^4.3.5", @@ -7323,11 +6747,62 @@ "url": "https://opencollective.com/vitest" } }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite/node_modules/esbuild": { + "version": "0.21.5", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, "workspaces/typescript-codegen-breaking-change-detector/node_modules/vitest": { "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/vitest/-/vitest-2.0.5.tgz", - "integrity": "sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==", "dev": true, + "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.3.0", "@vitest/expect": "2.0.5", @@ -7387,11 +6862,21 @@ } } }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/webidl-conversions": { + "version": "3.0.1", + "license": "BSD-2-Clause" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/whatwg-url": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "workspaces/typescript-codegen-breaking-change-detector/node_modules/which": { "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -7401,6 +6886,124 @@ "engines": { "node": ">= 8" } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/why-is-node-running": { + "version": "2.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/word-wrap": { + "version": "1.2.5", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi": { + "version": "8.1.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "license": "MIT" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrappy": { + "version": "1.0.2", + "license": "ISC" + }, + "workspaces/typescript-codegen-breaking-change-detector/node_modules/yocto-queue": { + "version": "0.1.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index 5425688f5d0..c94e8c1f696 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -2,14 +2,14 @@ "name": "@azure-tools/js-sdk-release-tools", "version": "2.7.11", "description": "", - "workspaces": [ - "workspaces/*" + "files": [ + "dist" ], "scripts": { - "install:all": "npm install --workspaces && npm install", - "build:all": "npm run build --workspaces && npm run build", - "pack:all": "npm run pack:typescript-codegen-breaking-change-detector && npm pack", - "pack:typescript-codegen-breaking-change-detector": "cd workspaces/typescript-codegen-breaking-change-detector && npm pack && cd ../..", + "install:all": "npm run install:next-detector && npm install", + "install:next-detector": "cd ./workspaces/typescript-codegen-breaking-change-detector/ && npm install && cd ..", + "build:all": "npm run install:next-detector && npm run build:next-detector && npm run build", + "build:next-detector": "cd workspaces/typescript-codegen-breaking-change-detector && npm run build && cd ../..", "dev": "tsx watch src/changelogToolCli.ts", "start": "node dist/changelogToolCli.js", "debug": "node --inspect-brk dist/changelogToolCli.js", @@ -40,10 +40,10 @@ "semver": "^7.3.5", "shelljs": "^0.8.4", "simple-git": "^3.5.0", + "ts-morph": "^23.0.0", "tslib": "^1.9.3", + "typescript-codegen-breaking-change-detector": "0.4.6", "winston": "^3.13.1", - "ts-morph": "^23.0.0", - "typescript-codegen-breaking-change-detector": "^0.4.6", "yaml": "^1.10.2" }, "devDependencies": { diff --git a/tools/js-sdk-release-tools/pnpm-lock.yaml b/tools/js-sdk-release-tools/pnpm-lock.yaml deleted file mode 100644 index dfb1a94c9ac..00000000000 --- a/tools/js-sdk-release-tools/pnpm-lock.yaml +++ /dev/null @@ -1,3386 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - dependencies: - '@azure-tools/openapi-tools-common': - specifier: ^1.2.2 - version: 1.2.2 - '@ts-common/azure-js-dev-tools': - specifier: ^21.1.0 - version: 21.4.0(@octokit/core@6.1.2) - colors: - specifier: 1.4.0 - version: 1.4.0 - command-line-args: - specifier: ^5.1.1 - version: 5.2.1 - comment-json: - specifier: ^4.1.0 - version: 4.2.4 - js-yaml: - specifier: ^4.1.0 - version: 4.1.0 - parse-ts-to-ast: - specifier: ^0.1.1 - version: 0.1.4 - semver: - specifier: ^7.3.5 - version: 7.6.3 - shelljs: - specifier: ^0.8.4 - version: 0.8.5 - simple-git: - specifier: ^3.5.0 - version: 3.25.0 - ts-morph: - specifier: ^12.0.0 - version: 12.2.0 - tslib: - specifier: ^1.9.3 - version: 1.14.1 - winston: - specifier: ^3.13.1 - version: 3.13.1 - yaml: - specifier: ^1.10.2 - version: 1.10.2 - devDependencies: - '@types/node': - specifier: ^20.12.12 - version: 20.14.14 - '@types/shelljs': - specifier: ^0.8.15 - version: 0.8.15 - nodemon: - specifier: ^3.1.0 - version: 3.1.4 - rimraf: - specifier: ^3.0.2 - version: 3.0.2 - ts-node: - specifier: ^10.9.2 - version: 10.9.2(@types/node@20.14.14)(typescript@5.5.4) - typescript: - specifier: ^5.4.5 - version: 5.5.4 - vitest: - specifier: ^1.6.0 - version: 1.6.0(@types/node@20.14.14) - -packages: - - '@azure-tools/openapi-tools-common@1.2.2': - resolution: {integrity: sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==} - - '@azure/abort-controller@2.1.2': - resolution: {integrity: sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==} - engines: {node: '>=18.0.0'} - - '@azure/core-auth@1.7.2': - resolution: {integrity: sha512-Igm/S3fDYmnMq1uKS38Ae1/m37B3zigdlZw+kocwEhh5GjyKjPrXKO2J6rzpC1wAxrNil/jX9BJRqBshyjnF3g==} - engines: {node: '>=18.0.0'} - - '@azure/core-util@1.9.2': - resolution: {integrity: sha512-l1Qrqhi4x1aekkV+OlcqsJa4AnAkj5p0JV8omgwjaV9OAbP41lvrMvs+CptfetKkeEaGRGSzby7sjPZEX7+kkQ==} - engines: {node: '>=18.0.0'} - - '@azure/logger-js@1.3.2': - resolution: {integrity: sha512-h58oEROO2tniBTSmFmuHBGvuiFuYsHQBWTVdpT2AiOED4F2Kgf7rs0MPYPXiBcDvihC70M7QPRhIQ3JK1H/ygw==} - - '@azure/ms-rest-js@2.7.0': - resolution: {integrity: sha512-ngbzWbqF+NmztDOpLBVDxYM+XLcUj7nKhxGbSU9WtIsXfRB//cf2ZbAG5HkOrhU9/wd/ORRB6lM/d69RKVjiyA==} - - '@azure/storage-blob@10.5.0': - resolution: {integrity: sha512-67+0EP7STy9BQgzvN1RgmSvXhxRd044eDgepX7zBp7XslBxz8YGo2cSLm9w5o5Qf1FLCRlwuziRMikaPCLMpVw==} - deprecated: This version has been deprecated, please upgrade to the version tagged as latest - - '@colors/colors@1.6.0': - resolution: {integrity: sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==} - engines: {node: '>=0.1.90'} - - '@cspotcode/source-map-support@0.8.1': - resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} - engines: {node: '>=12'} - - '@dabh/diagnostics@2.0.3': - resolution: {integrity: sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==} - - '@esbuild/aix-ppc64@0.21.5': - resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [aix] - - '@esbuild/android-arm64@0.21.5': - resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - - '@esbuild/android-arm@0.21.5': - resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - - '@esbuild/android-x64@0.21.5': - resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - - '@esbuild/darwin-arm64@0.21.5': - resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - - '@esbuild/darwin-x64@0.21.5': - resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - - '@esbuild/freebsd-arm64@0.21.5': - resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - - '@esbuild/freebsd-x64@0.21.5': - resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - - '@esbuild/linux-arm64@0.21.5': - resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - - '@esbuild/linux-arm@0.21.5': - resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - - '@esbuild/linux-ia32@0.21.5': - resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - - '@esbuild/linux-loong64@0.21.5': - resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - - '@esbuild/linux-mips64el@0.21.5': - resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - - '@esbuild/linux-ppc64@0.21.5': - resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - - '@esbuild/linux-riscv64@0.21.5': - resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - - '@esbuild/linux-s390x@0.21.5': - resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - - '@esbuild/linux-x64@0.21.5': - resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - - '@esbuild/netbsd-x64@0.21.5': - resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - - '@esbuild/openbsd-x64@0.21.5': - resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - - '@esbuild/sunos-x64@0.21.5': - resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - - '@esbuild/win32-arm64@0.21.5': - resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - - '@esbuild/win32-ia32@0.21.5': - resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - - '@esbuild/win32-x64@0.21.5': - resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - - '@jest/schemas@29.6.3': - resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - - '@jridgewell/resolve-uri@3.1.2': - resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} - engines: {node: '>=6.0.0'} - - '@jridgewell/sourcemap-codec@1.5.0': - resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} - - '@jridgewell/trace-mapping@0.3.9': - resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - - '@kwsites/file-exists@1.1.1': - resolution: {integrity: sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==} - - '@kwsites/promise-deferred@1.1.1': - resolution: {integrity: sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==} - - '@nodelib/fs.scandir@2.1.5': - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} - - '@nodelib/fs.stat@2.0.5': - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} - - '@nodelib/fs.walk@1.2.8': - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} - - '@octokit/auth-token@2.5.0': - resolution: {integrity: sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==} - - '@octokit/auth-token@5.1.1': - resolution: {integrity: sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA==} - engines: {node: '>= 18'} - - '@octokit/core@6.1.2': - resolution: {integrity: sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==} - engines: {node: '>= 18'} - - '@octokit/endpoint@10.1.1': - resolution: {integrity: sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==} - engines: {node: '>= 18'} - - '@octokit/endpoint@6.0.12': - resolution: {integrity: sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==} - - '@octokit/graphql@8.1.1': - resolution: {integrity: sha512-ukiRmuHTi6ebQx/HFRCXKbDlOh/7xEV6QUXaE7MJEKGNAncGI/STSbOkl12qVXZrfZdpXctx5O9X1AIaebiDBg==} - engines: {node: '>= 18'} - - '@octokit/openapi-types@12.11.0': - resolution: {integrity: sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==} - - '@octokit/openapi-types@22.2.0': - resolution: {integrity: sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==} - - '@octokit/plugin-paginate-rest@1.1.2': - resolution: {integrity: sha512-jbsSoi5Q1pj63sC16XIUboklNw+8tL9VOnJsWycWYR78TKss5PVpIPb1TUUcMQ+bBh7cY579cVAWmf5qG+dw+Q==} - - '@octokit/plugin-request-log@1.0.4': - resolution: {integrity: sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==} - peerDependencies: - '@octokit/core': '>=3' - - '@octokit/plugin-rest-endpoint-methods@2.4.0': - resolution: {integrity: sha512-EZi/AWhtkdfAYi01obpX0DF7U6b1VRr30QNQ5xSFPITMdLSfhcBqjamE3F+sKcxPbD7eZuMHu3Qkk2V+JGxBDQ==} - - '@octokit/request-error@1.2.1': - resolution: {integrity: sha512-+6yDyk1EES6WK+l3viRDElw96MvwfJxCt45GvmjDUKWjYIb3PJZQkq3i46TwGwoPD4h8NmTrENmtyA1FwbmhRA==} - - '@octokit/request-error@2.1.0': - resolution: {integrity: sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==} - - '@octokit/request-error@6.1.4': - resolution: {integrity: sha512-VpAhIUxwhWZQImo/dWAN/NpPqqojR6PSLgLYAituLM6U+ddx9hCioFGwBr5Mi+oi5CLeJkcAs3gJ0PYYzU6wUg==} - engines: {node: '>= 18'} - - '@octokit/request@5.6.3': - resolution: {integrity: sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==} - - '@octokit/request@9.1.3': - resolution: {integrity: sha512-V+TFhu5fdF3K58rs1pGUJIDH5RZLbZm5BI+MNF+6o/ssFNT4vWlCh/tVpF3NxGtP15HUxTTMUbsG5llAuU2CZA==} - engines: {node: '>= 18'} - - '@octokit/rest@16.43.2': - resolution: {integrity: sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ==} - - '@octokit/types@13.5.0': - resolution: {integrity: sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==} - - '@octokit/types@2.16.2': - resolution: {integrity: sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==} - - '@octokit/types@6.41.0': - resolution: {integrity: sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==} - - '@rollup/rollup-android-arm-eabi@4.20.0': - resolution: {integrity: sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==} - cpu: [arm] - os: [android] - - '@rollup/rollup-android-arm64@4.20.0': - resolution: {integrity: sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==} - cpu: [arm64] - os: [android] - - '@rollup/rollup-darwin-arm64@4.20.0': - resolution: {integrity: sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==} - cpu: [arm64] - os: [darwin] - - '@rollup/rollup-darwin-x64@4.20.0': - resolution: {integrity: sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==} - cpu: [x64] - os: [darwin] - - '@rollup/rollup-linux-arm-gnueabihf@4.20.0': - resolution: {integrity: sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm-musleabihf@4.20.0': - resolution: {integrity: sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm64-gnu@4.20.0': - resolution: {integrity: sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-arm64-musl@4.20.0': - resolution: {integrity: sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': - resolution: {integrity: sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==} - cpu: [ppc64] - os: [linux] - - '@rollup/rollup-linux-riscv64-gnu@4.20.0': - resolution: {integrity: sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==} - cpu: [riscv64] - os: [linux] - - '@rollup/rollup-linux-s390x-gnu@4.20.0': - resolution: {integrity: sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==} - cpu: [s390x] - os: [linux] - - '@rollup/rollup-linux-x64-gnu@4.20.0': - resolution: {integrity: sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-linux-x64-musl@4.20.0': - resolution: {integrity: sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-win32-arm64-msvc@4.20.0': - resolution: {integrity: sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==} - cpu: [arm64] - os: [win32] - - '@rollup/rollup-win32-ia32-msvc@4.20.0': - resolution: {integrity: sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==} - cpu: [ia32] - os: [win32] - - '@rollup/rollup-win32-x64-msvc@4.20.0': - resolution: {integrity: sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==} - cpu: [x64] - os: [win32] - - '@sinclair/typebox@0.27.8': - resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} - - '@ts-common/azure-js-dev-tools@21.4.0': - resolution: {integrity: sha512-0N0NO9CG+e6mVsUaNETa4sWzqEYG67pLnU/XhbIL4wMIEFsMGCvVrYE+Iu3+OOhh8RSOsWmHFq0CAJsMtdWygw==} - - '@ts-morph/common@0.11.1': - resolution: {integrity: sha512-7hWZS0NRpEsNV8vWJzg7FEz6V8MaLNeJOmwmghqUXTpzk16V1LLZhdo+4QvE/+zv4cVci0OviuJFnqhEfoV3+g==} - - '@tsconfig/node10@1.0.11': - resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==} - - '@tsconfig/node12@1.0.11': - resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} - - '@tsconfig/node14@1.0.3': - resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} - - '@tsconfig/node16@1.0.4': - resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - - '@types/archiver@2.1.3': - resolution: {integrity: sha512-x37dj6VvV8jArjvqvZP+qz5+24qOwgFesLMvn98uNz8qebjCg+uteqquRf9mqaxxhcM7S1vPl4YFhBs2/abcFQ==} - - '@types/async-retry@1.4.8': - resolution: {integrity: sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==} - - '@types/commonmark@0.27.9': - resolution: {integrity: sha512-d3+57WgyPCcIc6oshmcPkmP4+JqRRot9eeZLsBsutWtIxwWivpoyc2wEcolOp8MyO3ZWN846mMdoR02kdHSMCw==} - - '@types/estree@1.0.5': - resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - - '@types/glob@7.2.0': - resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} - - '@types/glob@8.1.0': - resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} - - '@types/js-yaml@3.12.10': - resolution: {integrity: sha512-/Mtaq/wf+HxXpvhzFYzrzCqNRcA958sW++7JOFC8nPrZcvfi/TrzOaaGbvt27ltJB2NQbHVAg5a1wUCsyMH7NA==} - - '@types/minimatch@5.1.2': - resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} - - '@types/node-fetch@2.6.11': - resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} - - '@types/node@20.14.14': - resolution: {integrity: sha512-d64f00982fS9YoOgJkAMolK7MN8Iq3TDdVjchbYHdEmjth/DHowx82GnoA+tVUAN+7vxfYUgAzi+JXbKNd2SDQ==} - - '@types/retry@0.12.5': - resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==} - - '@types/shelljs@0.8.15': - resolution: {integrity: sha512-vzmnCHl6hViPu9GNLQJ+DZFd6BQI2DBTUeOvYHqkWQLMfKAAQYMb/xAmZkTogZI/vqXHCWkqDRymDI5p0QTi5Q==} - - '@types/triple-beam@1.3.5': - resolution: {integrity: sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==} - - '@vitest/expect@1.6.0': - resolution: {integrity: sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==} - - '@vitest/runner@1.6.0': - resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==} - - '@vitest/snapshot@1.6.0': - resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} - - '@vitest/spy@1.6.0': - resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==} - - '@vitest/utils@1.6.0': - resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} - - abort-controller@3.0.0: - resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} - engines: {node: '>=6.5'} - - acorn-walk@8.3.3: - resolution: {integrity: sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==} - engines: {node: '>=0.4.0'} - - acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} - engines: {node: '>=0.4.0'} - hasBin: true - - ansi-regex@2.1.1: - resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==} - engines: {node: '>=0.10.0'} - - ansi-regex@3.0.1: - resolution: {integrity: sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==} - engines: {node: '>=4'} - - ansi-styles@5.2.0: - resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} - engines: {node: '>=10'} - - anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} - engines: {node: '>= 8'} - - archiver-utils@2.1.0: - resolution: {integrity: sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==} - engines: {node: '>= 6'} - - archiver@3.1.1: - resolution: {integrity: sha512-5Hxxcig7gw5Jod/8Gq0OneVgLYET+oNHcxgWItq4TbhOzRLKNAFUb9edAftiMKXvXfCB0vbGrJdZDNq0dWMsxg==} - engines: {node: '>= 6'} - - arg@4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - - argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - - array-back@3.1.0: - resolution: {integrity: sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==} - engines: {node: '>=6'} - - array-timsort@1.0.3: - resolution: {integrity: sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==} - - assertion-error@1.1.0: - resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} - - async-lock@1.4.1: - resolution: {integrity: sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ==} - - async-retry@1.3.3: - resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==} - - async@2.6.4: - resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==} - - async@3.2.5: - resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} - - asynckit@0.4.0: - resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} - - atob-lite@2.0.0: - resolution: {integrity: sha512-LEeSAWeh2Gfa2FtlQE1shxQ8zi5F9GHarrGKz08TMdODD5T4eH6BMsvtnhbWZ+XQn+Gb6om/917ucvRu7l7ukw==} - - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - base64-js@0.0.2: - resolution: {integrity: sha512-Pj9L87dCdGcKlSqPVUjD+q96pbIx1zQQLb2CUiWURfjiBELv84YX+0nGnKmyT/9KkC7PQk7UN1w+Al8bBozaxQ==} - engines: {node: '>= 0.4'} - - base64-js@1.5.1: - resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - - before-after-hook@2.2.3: - resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==} - - before-after-hook@3.0.2: - resolution: {integrity: sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==} - - binary-extensions@2.3.0: - resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} - engines: {node: '>=8'} - - bl@4.1.0: - resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} - - bops@0.0.7: - resolution: {integrity: sha512-oF8JFj2vZoTTzbS4haaB/37vqoJbZXxPBWmNdFONu3dUBW+zp7JcoIIYYd1r+4/YwFM8QUSR1u4rrPbtcdHsRg==} - - brace-expansion@1.1.11: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} - - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - - btoa-lite@1.0.0: - resolution: {integrity: sha512-gvW7InbIyF8AicrqWoptdW08pUxuhq8BEgowNajy9RhiE86fmGAGl+bLKo6oB8QP0CkqHLowfN0oJdKC/J6LbA==} - - buffer-crc32@0.2.13: - resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} - - buffer@5.7.1: - resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} - - cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - - camelcase@5.3.1: - resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} - engines: {node: '>=6'} - - chai@4.5.0: - resolution: {integrity: sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==} - engines: {node: '>=4'} - - check-error@1.0.3: - resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} - - chokidar@3.6.0: - resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} - engines: {node: '>= 8.10.0'} - - clean-git-ref@1.0.3: - resolution: {integrity: sha512-Bw1gv1mXHgdB/6ssP++8NtUHm+vbg60Lb+yAX5copA8wjNOgiyFCA+PzrO3a4O+7AkrDql2q1DO8Hx5G+gtPiA==} - - cliui@4.1.0: - resolution: {integrity: sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==} - - code-block-writer@10.1.1: - resolution: {integrity: sha512-67ueh2IRGst/51p0n6FvPrnRjAGHY5F8xdjkgrYE7DDzpJe6qA07RYQ9VcoUeo5ATOjSOiWpSL3SWBRRbempMw==} - - code-point-at@1.1.0: - resolution: {integrity: sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==} - engines: {node: '>=0.10.0'} - - color-convert@1.9.3: - resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} - - color-name@1.1.3: - resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - - color-string@1.9.1: - resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==} - - color@3.2.1: - resolution: {integrity: sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==} - - colors@1.4.0: - resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==} - engines: {node: '>=0.1.90'} - - colorspace@1.1.4: - resolution: {integrity: sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==} - - combined-stream@1.0.8: - resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} - engines: {node: '>= 0.8'} - - command-line-args@5.2.1: - resolution: {integrity: sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==} - engines: {node: '>=4.0.0'} - - comment-json@4.2.4: - resolution: {integrity: sha512-E5AjpSW+O+N5T2GsOQMHLLsJvrYw6G/AFt9GvU6NguEAfzKShh7hRiLtVo6S9KbRpFMGqE5ojo0/hE+sdteWvQ==} - engines: {node: '>= 6'} - - commonmark@0.28.1: - resolution: {integrity: sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==} - hasBin: true - - compress-commons@2.1.1: - resolution: {integrity: sha512-eVw6n7CnEMFzc3duyFVrQEuY1BlHR3rYsSztyG32ibGMW722i3C6IizEGMFmfMU+A+fALvBIwxN3czffTcdA+Q==} - engines: {node: '>= 6'} - - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - - confbox@0.1.7: - resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==} - - core-util-is@1.0.3: - resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - - crc-32@1.2.2: - resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==} - engines: {node: '>=0.8'} - hasBin: true - - crc32-stream@3.0.1: - resolution: {integrity: sha512-mctvpXlbzsvK+6z8kJwSJ5crm7yBwrQMTybJzMw1O4lLGJqjlDCXY2Zw7KheiA6XBEcBmfLx1D88mjRGVJtY9w==} - engines: {node: '>= 6.9.0'} - - crc@3.8.0: - resolution: {integrity: sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==} - - create-require@1.1.1: - resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - - cross-spawn@6.0.5: - resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} - engines: {node: '>=4.8'} - - cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} - engines: {node: '>= 8'} - - debug@4.3.6: - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - decamelize@1.2.0: - resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} - engines: {node: '>=0.10.0'} - - decompress-response@4.2.1: - resolution: {integrity: sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==} - engines: {node: '>=8'} - - deep-eql@4.1.4: - resolution: {integrity: sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==} - engines: {node: '>=6'} - - delayed-stream@1.0.0: - resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} - engines: {node: '>=0.4.0'} - - deprecation@2.3.1: - resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==} - - diff-lines@1.1.1: - resolution: {integrity: sha512-Oo5JzEEriF/+T0usOeRP5yOzr6SWvni2rrxvIgijMZSxPcEvf8JOvCO5GpnWwkte7fcOgnue/f5ECg1H9lMPCw==} - - diff-sequences@29.6.3: - resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - - diff@3.5.0: - resolution: {integrity: sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==} - engines: {node: '>=0.3.1'} - - diff@4.0.2: - resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} - engines: {node: '>=0.3.1'} - - enabled@2.0.0: - resolution: {integrity: sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==} - - end-of-stream@1.4.4: - resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} - - entities@1.1.2: - resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} - - esbuild@0.21.5: - resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} - engines: {node: '>=12'} - hasBin: true - - esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - - estree-walker@3.0.3: - resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - - event-target-shim@5.0.1: - resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} - engines: {node: '>=6'} - - events@3.3.0: - resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} - engines: {node: '>=0.8.x'} - - execa@1.0.0: - resolution: {integrity: sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==} - engines: {node: '>=6'} - - execa@8.0.1: - resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} - engines: {node: '>=16.17'} - - fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} - engines: {node: '>=8.6.0'} - - fastq@1.17.1: - resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} - - fecha@4.2.3: - resolution: {integrity: sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==} - - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} - - find-replace@3.0.0: - resolution: {integrity: sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==} - engines: {node: '>=4.0.0'} - - find-up@3.0.0: - resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} - engines: {node: '>=6'} - - fn.name@1.1.0: - resolution: {integrity: sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==} - - form-data@2.5.1: - resolution: {integrity: sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==} - engines: {node: '>= 0.12'} - - form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} - engines: {node: '>= 6'} - - front-matter@4.0.2: - resolution: {integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==} - - fs-constants@1.0.0: - resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} - - fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - - fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - - function-bind@1.1.2: - resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - - get-caller-file@1.0.3: - resolution: {integrity: sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==} - - get-func-name@2.0.2: - resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} - - get-stream@4.1.0: - resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==} - engines: {node: '>=6'} - - get-stream@8.0.1: - resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} - engines: {node: '>=16'} - - git-apply-delta@0.0.7: - resolution: {integrity: sha512-P99rChCrhraaY7D6E4NUotfhjzRRNvlf3Mumw9BHgOJFQTfYHhTwAgSTEtcBvb25iXttvMRLEHtzyz9mE2gLjQ==} - - glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - - glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported - - globalyzer@0.1.4: - resolution: {integrity: sha512-LeguVWaxgHN0MNbWC6YljNMzHkrCny9fzjmEUdnF1kQ7wATFD1RHFRqA1qxaX2tgxGENlcxjOflopBwj3YZiXA==} - - globrex@0.1.2: - resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} - - graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - - has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} - engines: {node: '>=4'} - - has-own-prop@2.0.0: - resolution: {integrity: sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==} - engines: {node: '>=8'} - - hasown@2.0.2: - resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} - engines: {node: '>= 0.4'} - - human-signals@5.0.0: - resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} - engines: {node: '>=16.17.0'} - - ieee754@1.2.1: - resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - - ignore-by-default@1.0.1: - resolution: {integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==} - - ignore@5.3.1: - resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} - engines: {node: '>= 4'} - - inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - - inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - - interpret@1.4.0: - resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==} - engines: {node: '>= 0.10'} - - invert-kv@2.0.0: - resolution: {integrity: sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==} - engines: {node: '>=4'} - - is-arrayish@0.3.2: - resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==} - - is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} - engines: {node: '>=8'} - - is-core-module@2.15.0: - resolution: {integrity: sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==} - engines: {node: '>= 0.4'} - - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-fullwidth-code-point@1.0.0: - resolution: {integrity: sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==} - engines: {node: '>=0.10.0'} - - is-fullwidth-code-point@2.0.0: - resolution: {integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==} - engines: {node: '>=4'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-plain-object@5.0.0: - resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==} - engines: {node: '>=0.10.0'} - - is-stream@1.1.0: - resolution: {integrity: sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==} - engines: {node: '>=0.10.0'} - - is-stream@2.0.1: - resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} - engines: {node: '>=8'} - - is-stream@3.0.0: - resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - isarray@1.0.0: - resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - isomorphic-git@0.55.6: - resolution: {integrity: sha512-A4ygiDCsMIuWknMgviK73IzdPW7HjOC57IBVY/QyC1bwMrXG+clfdBjqA3SpzxBRIxkRA9GvbkrjAjFX6n6ZbQ==} - engines: {node: '>=7.6.0'} - hasBin: true - - js-tokens@9.0.0: - resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==} - - js-yaml@3.14.1: - resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} - hasBin: true - - js-yaml@4.1.0: - resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} - hasBin: true - - kuler@2.0.0: - resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==} - - lazystream@1.0.1: - resolution: {integrity: sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==} - engines: {node: '>= 0.6.3'} - - lcid@2.0.0: - resolution: {integrity: sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==} - engines: {node: '>=6'} - - local-pkg@0.5.0: - resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} - engines: {node: '>=14'} - - locate-path@3.0.0: - resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} - engines: {node: '>=6'} - - lodash-es@4.17.21: - resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} - - lodash.camelcase@4.3.0: - resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} - - lodash.defaults@4.2.0: - resolution: {integrity: sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==} - - lodash.difference@4.5.0: - resolution: {integrity: sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==} - - lodash.flatten@4.4.0: - resolution: {integrity: sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==} - - lodash.get@4.4.2: - resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - - lodash.isplainobject@4.0.6: - resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} - - lodash.set@4.3.2: - resolution: {integrity: sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==} - - lodash.union@4.6.0: - resolution: {integrity: sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==} - - lodash.uniq@4.5.0: - resolution: {integrity: sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==} - - lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - - logform@2.6.1: - resolution: {integrity: sha512-CdaO738xRapbKIMVn2m4F6KTj4j7ooJ8POVnebSgKo3KBz5axNXRAL7ZdRjIV6NOr2Uf4vjtRkxrFETOioCqSA==} - engines: {node: '>= 12.0.0'} - - loupe@2.3.7: - resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} - - macos-release@2.5.1: - resolution: {integrity: sha512-DXqXhEM7gW59OjZO8NIjBCz9AQ1BEMrfiOAl4AYByHCtVHRF4KoGNO8mqQeM8lRCtQe/UnJ4imO/d2HdkKsd+A==} - engines: {node: '>=6'} - - magic-string@0.30.11: - resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} - - make-error@1.3.6: - resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - - map-age-cleaner@0.1.3: - resolution: {integrity: sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==} - engines: {node: '>=6'} - - marky@1.2.5: - resolution: {integrity: sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==} - - mdurl@1.0.1: - resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} - - mem@4.3.0: - resolution: {integrity: sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==} - engines: {node: '>=6'} - - merge-stream@2.0.0: - resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} - - merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} - engines: {node: '>= 8'} - - micromatch@4.0.7: - resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} - engines: {node: '>=8.6'} - - mime-db@1.52.0: - resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} - engines: {node: '>= 0.6'} - - mime-types@2.1.35: - resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} - engines: {node: '>= 0.6'} - - mimic-fn@2.1.0: - resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} - engines: {node: '>=6'} - - mimic-fn@4.0.0: - resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} - engines: {node: '>=12'} - - mimic-response@2.1.0: - resolution: {integrity: sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==} - engines: {node: '>=8'} - - minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - - minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - - minimisted@2.0.1: - resolution: {integrity: sha512-1oPjfuLQa2caorJUM8HV8lGgWCc0qqAO1MNv/k05G4qslmsndV/5WdNZrqCiyqiz3wohia2Ij2B7w2Dr7/IyrA==} - - mkdirp@1.0.4: - resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} - engines: {node: '>=10'} - hasBin: true - - mlly@1.7.1: - resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==} - - ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - - nanoid@3.3.7: - resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - - nice-try@1.0.5: - resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} - - node-fetch@2.7.0: - resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} - engines: {node: 4.x || >=6.0.0} - peerDependencies: - encoding: ^0.1.0 - peerDependenciesMeta: - encoding: - optional: true - - nodemon@3.1.4: - resolution: {integrity: sha512-wjPBbFhtpJwmIeY2yP7QF+UKzPfltVGtfce1g/bB15/8vCGZj8uxD62b/b9M9/WVgme0NZudpownKN+c0plXlQ==} - engines: {node: '>=10'} - hasBin: true - - normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - - npm-run-path@2.0.2: - resolution: {integrity: sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==} - engines: {node: '>=4'} - - npm-run-path@5.3.0: - resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - number-is-nan@1.0.1: - resolution: {integrity: sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==} - engines: {node: '>=0.10.0'} - - octokit-pagination-methods@1.1.0: - resolution: {integrity: sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ==} - - once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} - - one-time@1.0.0: - resolution: {integrity: sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==} - - onetime@6.0.0: - resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} - engines: {node: '>=12'} - - os-locale@3.1.0: - resolution: {integrity: sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==} - engines: {node: '>=6'} - - os-name@3.1.0: - resolution: {integrity: sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==} - engines: {node: '>=6'} - - p-defer@1.0.0: - resolution: {integrity: sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==} - engines: {node: '>=4'} - - p-finally@1.0.0: - resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} - engines: {node: '>=4'} - - p-is-promise@2.1.0: - resolution: {integrity: sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==} - engines: {node: '>=6'} - - p-limit@2.3.0: - resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} - engines: {node: '>=6'} - - p-limit@5.0.0: - resolution: {integrity: sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==} - engines: {node: '>=18'} - - p-locate@3.0.0: - resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==} - engines: {node: '>=6'} - - p-try@2.2.0: - resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} - engines: {node: '>=6'} - - pako@1.0.11: - resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} - - parse-ts-to-ast@0.1.4: - resolution: {integrity: sha512-Cr+p2cyXiK9q+MUgC0N4PGZJdPiCazw54IhDDzL7KaHlGGdsJg+5Rd3DRS24WPbs22V5xaZtlzZ5GESdNgsfEw==} - - path-browserify@1.0.1: - resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} - - path-exists@3.0.0: - resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} - engines: {node: '>=4'} - - path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} - engines: {node: '>=0.10.0'} - - path-key@2.0.1: - resolution: {integrity: sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==} - engines: {node: '>=4'} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - - path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - - path-parse@1.0.7: - resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - - pathe@1.1.2: - resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - - pathval@1.1.1: - resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} - - picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} - - picomatch@2.3.1: - resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} - engines: {node: '>=8.6'} - - pify@4.0.1: - resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} - engines: {node: '>=6'} - - pkg-types@1.1.3: - resolution: {integrity: sha512-+JrgthZG6m3ckicaOB74TwQ+tBWsFl3qVQg7mN8ulwSOElJ7gBhKzj2VkCPnZ4NlF6kEquYU+RIYNVAvzd54UA==} - - postcss@8.4.41: - resolution: {integrity: sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==} - engines: {node: ^10 || ^12 || >=14} - - pretty-format@29.7.0: - resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - - process-nextick-args@2.0.1: - resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} - - pstree.remy@1.1.8: - resolution: {integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==} - - pump@3.0.0: - resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} - - queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - - react-is@18.3.1: - resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} - - readable-stream@2.3.8: - resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} - - readable-stream@3.6.2: - resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} - engines: {node: '>= 6'} - - readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} - engines: {node: '>=8.10.0'} - - rechoir@0.6.2: - resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} - engines: {node: '>= 0.10'} - - repeat-string@1.6.1: - resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==} - engines: {node: '>=0.10'} - - require-directory@2.1.1: - resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} - engines: {node: '>=0.10.0'} - - require-main-filename@1.0.1: - resolution: {integrity: sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug==} - - resolve@1.22.8: - resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} - hasBin: true - - retry@0.13.1: - resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} - engines: {node: '>= 4'} - - reusify@1.0.4: - resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - - rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported - hasBin: true - - rollup@4.20.0: - resolution: {integrity: sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - - run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - - safe-buffer@5.1.2: - resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} - - safe-buffer@5.2.1: - resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - - safe-stable-stringify@2.4.3: - resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} - engines: {node: '>=10'} - - sax@1.4.1: - resolution: {integrity: sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==} - - semver@5.7.2: - resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} - hasBin: true - - semver@7.6.3: - resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} - engines: {node: '>=10'} - hasBin: true - - set-blocking@2.0.0: - resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} - - sha.js@2.4.11: - resolution: {integrity: sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==} - hasBin: true - - shebang-command@1.2.0: - resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} - engines: {node: '>=0.10.0'} - - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@1.0.0: - resolution: {integrity: sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==} - engines: {node: '>=0.10.0'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - - shelljs@0.8.5: - resolution: {integrity: sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==} - engines: {node: '>=4'} - hasBin: true - - siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - - signal-exit@3.0.7: - resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} - - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - - simple-concat@1.0.1: - resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} - - simple-get@3.1.1: - resolution: {integrity: sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==} - - simple-git@3.25.0: - resolution: {integrity: sha512-KIY5sBnzc4yEcJXW7Tdv4viEz8KyG+nU0hay+DWZasvdFOYKeUZ6Xc25LUHHjw0tinPT7O1eY6pzX7pRT1K8rw==} - - simple-swizzle@0.2.2: - resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==} - - simple-update-notifier@2.0.0: - resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==} - engines: {node: '>=10'} - - source-map-js@1.2.0: - resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} - engines: {node: '>=0.10.0'} - - sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - - stack-trace@0.0.10: - resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==} - - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - - std-env@3.7.0: - resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} - - string-width@1.0.2: - resolution: {integrity: sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==} - engines: {node: '>=0.10.0'} - - string-width@2.1.1: - resolution: {integrity: sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==} - engines: {node: '>=4'} - - string.prototype.repeat@0.2.0: - resolution: {integrity: sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==} - - string_decoder@1.1.1: - resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} - - string_decoder@1.3.0: - resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} - - strip-ansi@3.0.1: - resolution: {integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==} - engines: {node: '>=0.10.0'} - - strip-ansi@4.0.0: - resolution: {integrity: sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==} - engines: {node: '>=4'} - - strip-eof@1.0.0: - resolution: {integrity: sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==} - engines: {node: '>=0.10.0'} - - strip-final-newline@3.0.0: - resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} - engines: {node: '>=12'} - - strip-literal@2.1.0: - resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} - - supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} - engines: {node: '>=4'} - - supports-preserve-symlinks-flag@1.0.0: - resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} - engines: {node: '>= 0.4'} - - tar-stream@2.2.0: - resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} - engines: {node: '>=6'} - - text-hex@1.0.0: - resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==} - - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - - tinypool@0.8.4: - resolution: {integrity: sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==} - engines: {node: '>=14.0.0'} - - tinyspy@2.2.1: - resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} - engines: {node: '>=14.0.0'} - - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - - to-utf8@0.0.1: - resolution: {integrity: sha512-zks18/TWT1iHO3v0vFp5qLKOG27m67ycq/Y7a7cTiRuUNlc4gf3HGnkRgMv0NyhnfTamtkYBJl+YeD1/j07gBQ==} - - touch@3.1.1: - resolution: {integrity: sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==} - hasBin: true - - tr46@0.0.3: - resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - - triple-beam@1.4.1: - resolution: {integrity: sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==} - engines: {node: '>= 14.0.0'} - - ts-morph@12.2.0: - resolution: {integrity: sha512-WHXLtFDcIRwoqaiu0elAoZ/AmI+SwwDafnPKjgJmdwJ2gRVO0jMKBt88rV2liT/c6MTsXyuWbGFiHe9MRddWJw==} - - ts-node@10.9.2: - resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - - tslib@1.14.1: - resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - - tslib@2.6.3: - resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} - - tunnel@0.0.6: - resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==} - engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} - - type-detect@4.1.0: - resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} - engines: {node: '>=4'} - - typescript@3.9.10: - resolution: {integrity: sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==} - engines: {node: '>=4.2.0'} - hasBin: true - - typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} - engines: {node: '>=14.17'} - hasBin: true - - typical@4.0.0: - resolution: {integrity: sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==} - engines: {node: '>=8'} - - ufo@1.5.4: - resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} - - undefsafe@2.0.5: - resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==} - - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - - universal-user-agent@4.0.1: - resolution: {integrity: sha512-LnST3ebHwVL2aNe4mejI9IQh2HfZ1RLo8Io2HugSif8ekzD1TlWpHpColOB/eh8JHMLkGH3Akqf040I+4ylNxg==} - - universal-user-agent@6.0.1: - resolution: {integrity: sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==} - - universal-user-agent@7.0.2: - resolution: {integrity: sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==} - - util-deprecate@1.0.2: - resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - - uuid@8.3.2: - resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} - hasBin: true - - v8-compile-cache-lib@3.0.1: - resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - - varint@0.0.3: - resolution: {integrity: sha512-SZOWhAh1wbG6fxU5QJMudwrudDkVFCQJlcZEDFQoKdcpr0q2YG5VuS24WSA+w4m0N+9SNe1S2Zd5IdLWXaHyKQ==} - - vite-node@1.6.0: - resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - - vite@5.3.5: - resolution: {integrity: sha512-MdjglKR6AQXQb9JGiS7Rc2wC6uMjcm7Go/NHNO63EwiJXfuk9PgqiP/n5IDJCziMkfw9n4Ubp7lttNwz+8ZVKA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - - vitest@1.6.0: - resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 1.6.0 - '@vitest/ui': 1.6.0 - happy-dom: '*' - jsdom: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@types/node': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - - webidl-conversions@3.0.1: - resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - - whatwg-url@5.0.0: - resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} - - which-module@2.0.1: - resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} - - which@1.3.1: - resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} - hasBin: true - - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} - hasBin: true - - windows-release@3.3.3: - resolution: {integrity: sha512-OSOGH1QYiW5yVor9TtmXKQvt2vjQqbYS+DqmsZw+r7xDwLXEeT3JGW0ZppFmHx4diyXmxt238KFR3N9jzevBRg==} - engines: {node: '>=6'} - - winston-transport@4.7.1: - resolution: {integrity: sha512-wQCXXVgfv/wUPOfb2x0ruxzwkcZfxcktz6JIMUaPLmcNhO4bZTwA/WtDWK74xV3F2dKu8YadrFv0qhwYjVEwhA==} - engines: {node: '>= 12.0.0'} - - winston@3.13.1: - resolution: {integrity: sha512-SvZit7VFNvXRzbqGHsv5KSmgbEYR5EiQfDAL9gxYkRqa934Hnk++zze0wANKtMHcy/gI4W/3xmSDwlhf865WGw==} - engines: {node: '>= 12.0.0'} - - wrap-ansi@2.1.0: - resolution: {integrity: sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==} - engines: {node: '>=0.10.0'} - - wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - - xml2js@0.5.0: - resolution: {integrity: sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==} - engines: {node: '>=4.0.0'} - - xmlbuilder@11.0.1: - resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==} - engines: {node: '>=4.0'} - - y18n@4.0.3: - resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} - - yaml@1.10.2: - resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} - engines: {node: '>= 6'} - - yargs-parser@11.1.1: - resolution: {integrity: sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==} - - yargs@12.0.5: - resolution: {integrity: sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==} - - yn@3.1.1: - resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} - engines: {node: '>=6'} - - yocto-queue@1.1.1: - resolution: {integrity: sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==} - engines: {node: '>=12.20'} - - zip-stream@2.1.3: - resolution: {integrity: sha512-EkXc2JGcKhO5N5aZ7TmuNo45budRaFGHOmz24wtJR7znbNqDPmdZtUauKX6et8KAVseAMBOyWJqEpXcHTBsh7Q==} - engines: {node: '>= 6'} - -snapshots: - - '@azure-tools/openapi-tools-common@1.2.2': - dependencies: - '@types/async-retry': 1.4.8 - '@types/commonmark': 0.27.9 - '@types/node-fetch': 2.6.11 - async-retry: 1.3.3 - commonmark: 0.28.1 - front-matter: 4.0.2 - node-fetch: 2.7.0 - tslib: 2.6.3 - transitivePeerDependencies: - - encoding - - '@azure/abort-controller@2.1.2': - dependencies: - tslib: 2.6.3 - - '@azure/core-auth@1.7.2': - dependencies: - '@azure/abort-controller': 2.1.2 - '@azure/core-util': 1.9.2 - tslib: 2.6.3 - - '@azure/core-util@1.9.2': - dependencies: - '@azure/abort-controller': 2.1.2 - tslib: 2.6.3 - - '@azure/logger-js@1.3.2': - dependencies: - tslib: 1.14.1 - - '@azure/ms-rest-js@2.7.0': - dependencies: - '@azure/core-auth': 1.7.2 - abort-controller: 3.0.0 - form-data: 2.5.1 - node-fetch: 2.7.0 - tslib: 1.14.1 - tunnel: 0.0.6 - uuid: 8.3.2 - xml2js: 0.5.0 - transitivePeerDependencies: - - encoding - - '@azure/storage-blob@10.5.0': - dependencies: - '@azure/ms-rest-js': 2.7.0 - events: 3.3.0 - tslib: 1.14.1 - transitivePeerDependencies: - - encoding - - '@colors/colors@1.6.0': {} - - '@cspotcode/source-map-support@0.8.1': - dependencies: - '@jridgewell/trace-mapping': 0.3.9 - - '@dabh/diagnostics@2.0.3': - dependencies: - colorspace: 1.1.4 - enabled: 2.0.0 - kuler: 2.0.0 - - '@esbuild/aix-ppc64@0.21.5': - optional: true - - '@esbuild/android-arm64@0.21.5': - optional: true - - '@esbuild/android-arm@0.21.5': - optional: true - - '@esbuild/android-x64@0.21.5': - optional: true - - '@esbuild/darwin-arm64@0.21.5': - optional: true - - '@esbuild/darwin-x64@0.21.5': - optional: true - - '@esbuild/freebsd-arm64@0.21.5': - optional: true - - '@esbuild/freebsd-x64@0.21.5': - optional: true - - '@esbuild/linux-arm64@0.21.5': - optional: true - - '@esbuild/linux-arm@0.21.5': - optional: true - - '@esbuild/linux-ia32@0.21.5': - optional: true - - '@esbuild/linux-loong64@0.21.5': - optional: true - - '@esbuild/linux-mips64el@0.21.5': - optional: true - - '@esbuild/linux-ppc64@0.21.5': - optional: true - - '@esbuild/linux-riscv64@0.21.5': - optional: true - - '@esbuild/linux-s390x@0.21.5': - optional: true - - '@esbuild/linux-x64@0.21.5': - optional: true - - '@esbuild/netbsd-x64@0.21.5': - optional: true - - '@esbuild/openbsd-x64@0.21.5': - optional: true - - '@esbuild/sunos-x64@0.21.5': - optional: true - - '@esbuild/win32-arm64@0.21.5': - optional: true - - '@esbuild/win32-ia32@0.21.5': - optional: true - - '@esbuild/win32-x64@0.21.5': - optional: true - - '@jest/schemas@29.6.3': - dependencies: - '@sinclair/typebox': 0.27.8 - - '@jridgewell/resolve-uri@3.1.2': {} - - '@jridgewell/sourcemap-codec@1.5.0': {} - - '@jridgewell/trace-mapping@0.3.9': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.0 - - '@kwsites/file-exists@1.1.1': - dependencies: - debug: 4.3.6(supports-color@5.5.0) - transitivePeerDependencies: - - supports-color - - '@kwsites/promise-deferred@1.1.1': {} - - '@nodelib/fs.scandir@2.1.5': - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 - - '@nodelib/fs.stat@2.0.5': {} - - '@nodelib/fs.walk@1.2.8': - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.17.1 - - '@octokit/auth-token@2.5.0': - dependencies: - '@octokit/types': 6.41.0 - - '@octokit/auth-token@5.1.1': {} - - '@octokit/core@6.1.2': - dependencies: - '@octokit/auth-token': 5.1.1 - '@octokit/graphql': 8.1.1 - '@octokit/request': 9.1.3 - '@octokit/request-error': 6.1.4 - '@octokit/types': 13.5.0 - before-after-hook: 3.0.2 - universal-user-agent: 7.0.2 - - '@octokit/endpoint@10.1.1': - dependencies: - '@octokit/types': 13.5.0 - universal-user-agent: 7.0.2 - - '@octokit/endpoint@6.0.12': - dependencies: - '@octokit/types': 6.41.0 - is-plain-object: 5.0.0 - universal-user-agent: 6.0.1 - - '@octokit/graphql@8.1.1': - dependencies: - '@octokit/request': 9.1.3 - '@octokit/types': 13.5.0 - universal-user-agent: 7.0.2 - - '@octokit/openapi-types@12.11.0': {} - - '@octokit/openapi-types@22.2.0': {} - - '@octokit/plugin-paginate-rest@1.1.2': - dependencies: - '@octokit/types': 2.16.2 - - '@octokit/plugin-request-log@1.0.4(@octokit/core@6.1.2)': - dependencies: - '@octokit/core': 6.1.2 - - '@octokit/plugin-rest-endpoint-methods@2.4.0': - dependencies: - '@octokit/types': 2.16.2 - deprecation: 2.3.1 - - '@octokit/request-error@1.2.1': - dependencies: - '@octokit/types': 2.16.2 - deprecation: 2.3.1 - once: 1.4.0 - - '@octokit/request-error@2.1.0': - dependencies: - '@octokit/types': 6.41.0 - deprecation: 2.3.1 - once: 1.4.0 - - '@octokit/request-error@6.1.4': - dependencies: - '@octokit/types': 13.5.0 - - '@octokit/request@5.6.3': - dependencies: - '@octokit/endpoint': 6.0.12 - '@octokit/request-error': 2.1.0 - '@octokit/types': 6.41.0 - is-plain-object: 5.0.0 - node-fetch: 2.7.0 - universal-user-agent: 6.0.1 - transitivePeerDependencies: - - encoding - - '@octokit/request@9.1.3': - dependencies: - '@octokit/endpoint': 10.1.1 - '@octokit/request-error': 6.1.4 - '@octokit/types': 13.5.0 - universal-user-agent: 7.0.2 - - '@octokit/rest@16.43.2(@octokit/core@6.1.2)': - dependencies: - '@octokit/auth-token': 2.5.0 - '@octokit/plugin-paginate-rest': 1.1.2 - '@octokit/plugin-request-log': 1.0.4(@octokit/core@6.1.2) - '@octokit/plugin-rest-endpoint-methods': 2.4.0 - '@octokit/request': 5.6.3 - '@octokit/request-error': 1.2.1 - atob-lite: 2.0.0 - before-after-hook: 2.2.3 - btoa-lite: 1.0.0 - deprecation: 2.3.1 - lodash.get: 4.4.2 - lodash.set: 4.3.2 - lodash.uniq: 4.5.0 - octokit-pagination-methods: 1.1.0 - once: 1.4.0 - universal-user-agent: 4.0.1 - transitivePeerDependencies: - - '@octokit/core' - - encoding - - '@octokit/types@13.5.0': - dependencies: - '@octokit/openapi-types': 22.2.0 - - '@octokit/types@2.16.2': - dependencies: - '@types/node': 20.14.14 - - '@octokit/types@6.41.0': - dependencies: - '@octokit/openapi-types': 12.11.0 - - '@rollup/rollup-android-arm-eabi@4.20.0': - optional: true - - '@rollup/rollup-android-arm64@4.20.0': - optional: true - - '@rollup/rollup-darwin-arm64@4.20.0': - optional: true - - '@rollup/rollup-darwin-x64@4.20.0': - optional: true - - '@rollup/rollup-linux-arm-gnueabihf@4.20.0': - optional: true - - '@rollup/rollup-linux-arm-musleabihf@4.20.0': - optional: true - - '@rollup/rollup-linux-arm64-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-arm64-musl@4.20.0': - optional: true - - '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-riscv64-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-s390x-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-x64-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-x64-musl@4.20.0': - optional: true - - '@rollup/rollup-win32-arm64-msvc@4.20.0': - optional: true - - '@rollup/rollup-win32-ia32-msvc@4.20.0': - optional: true - - '@rollup/rollup-win32-x64-msvc@4.20.0': - optional: true - - '@sinclair/typebox@0.27.8': {} - - '@ts-common/azure-js-dev-tools@21.4.0(@octokit/core@6.1.2)': - dependencies: - '@azure/logger-js': 1.3.2 - '@azure/storage-blob': 10.5.0 - '@octokit/rest': 16.43.2(@octokit/core@6.1.2) - '@types/archiver': 2.1.3 - '@types/commonmark': 0.27.9 - '@types/js-yaml': 3.12.10 - archiver: 3.1.1 - commonmark: 0.28.1 - isomorphic-git: 0.55.6 - js-yaml: 3.14.1 - yargs: 12.0.5 - transitivePeerDependencies: - - '@octokit/core' - - encoding - - '@ts-morph/common@0.11.1': - dependencies: - fast-glob: 3.3.2 - minimatch: 3.1.2 - mkdirp: 1.0.4 - path-browserify: 1.0.1 - - '@tsconfig/node10@1.0.11': {} - - '@tsconfig/node12@1.0.11': {} - - '@tsconfig/node14@1.0.3': {} - - '@tsconfig/node16@1.0.4': {} - - '@types/archiver@2.1.3': - dependencies: - '@types/glob': 8.1.0 - - '@types/async-retry@1.4.8': - dependencies: - '@types/retry': 0.12.5 - - '@types/commonmark@0.27.9': {} - - '@types/estree@1.0.5': {} - - '@types/glob@7.2.0': - dependencies: - '@types/minimatch': 5.1.2 - '@types/node': 20.14.14 - - '@types/glob@8.1.0': - dependencies: - '@types/minimatch': 5.1.2 - '@types/node': 20.14.14 - - '@types/js-yaml@3.12.10': {} - - '@types/minimatch@5.1.2': {} - - '@types/node-fetch@2.6.11': - dependencies: - '@types/node': 20.14.14 - form-data: 4.0.0 - - '@types/node@20.14.14': - dependencies: - undici-types: 5.26.5 - - '@types/retry@0.12.5': {} - - '@types/shelljs@0.8.15': - dependencies: - '@types/glob': 7.2.0 - '@types/node': 20.14.14 - - '@types/triple-beam@1.3.5': {} - - '@vitest/expect@1.6.0': - dependencies: - '@vitest/spy': 1.6.0 - '@vitest/utils': 1.6.0 - chai: 4.5.0 - - '@vitest/runner@1.6.0': - dependencies: - '@vitest/utils': 1.6.0 - p-limit: 5.0.0 - pathe: 1.1.2 - - '@vitest/snapshot@1.6.0': - dependencies: - magic-string: 0.30.11 - pathe: 1.1.2 - pretty-format: 29.7.0 - - '@vitest/spy@1.6.0': - dependencies: - tinyspy: 2.2.1 - - '@vitest/utils@1.6.0': - dependencies: - diff-sequences: 29.6.3 - estree-walker: 3.0.3 - loupe: 2.3.7 - pretty-format: 29.7.0 - - abort-controller@3.0.0: - dependencies: - event-target-shim: 5.0.1 - - acorn-walk@8.3.3: - dependencies: - acorn: 8.12.1 - - acorn@8.12.1: {} - - ansi-regex@2.1.1: {} - - ansi-regex@3.0.1: {} - - ansi-styles@5.2.0: {} - - anymatch@3.1.3: - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.1 - - archiver-utils@2.1.0: - dependencies: - glob: 7.2.3 - graceful-fs: 4.2.11 - lazystream: 1.0.1 - lodash.defaults: 4.2.0 - lodash.difference: 4.5.0 - lodash.flatten: 4.4.0 - lodash.isplainobject: 4.0.6 - lodash.union: 4.6.0 - normalize-path: 3.0.0 - readable-stream: 2.3.8 - - archiver@3.1.1: - dependencies: - archiver-utils: 2.1.0 - async: 2.6.4 - buffer-crc32: 0.2.13 - glob: 7.2.3 - readable-stream: 3.6.2 - tar-stream: 2.2.0 - zip-stream: 2.1.3 - - arg@4.1.3: {} - - argparse@1.0.10: - dependencies: - sprintf-js: 1.0.3 - - argparse@2.0.1: {} - - array-back@3.1.0: {} - - array-timsort@1.0.3: {} - - assertion-error@1.1.0: {} - - async-lock@1.4.1: {} - - async-retry@1.3.3: - dependencies: - retry: 0.13.1 - - async@2.6.4: - dependencies: - lodash: 4.17.21 - - async@3.2.5: {} - - asynckit@0.4.0: {} - - atob-lite@2.0.0: {} - - balanced-match@1.0.2: {} - - base64-js@0.0.2: {} - - base64-js@1.5.1: {} - - before-after-hook@2.2.3: {} - - before-after-hook@3.0.2: {} - - binary-extensions@2.3.0: {} - - bl@4.1.0: - dependencies: - buffer: 5.7.1 - inherits: 2.0.4 - readable-stream: 3.6.2 - - bops@0.0.7: - dependencies: - base64-js: 0.0.2 - to-utf8: 0.0.1 - - brace-expansion@1.1.11: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - - btoa-lite@1.0.0: {} - - buffer-crc32@0.2.13: {} - - buffer@5.7.1: - dependencies: - base64-js: 1.5.1 - ieee754: 1.2.1 - - cac@6.7.14: {} - - camelcase@5.3.1: {} - - chai@4.5.0: - dependencies: - assertion-error: 1.1.0 - check-error: 1.0.3 - deep-eql: 4.1.4 - get-func-name: 2.0.2 - loupe: 2.3.7 - pathval: 1.1.1 - type-detect: 4.1.0 - - check-error@1.0.3: - dependencies: - get-func-name: 2.0.2 - - chokidar@3.6.0: - dependencies: - anymatch: 3.1.3 - braces: 3.0.3 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - - clean-git-ref@1.0.3: {} - - cliui@4.1.0: - dependencies: - string-width: 2.1.1 - strip-ansi: 4.0.0 - wrap-ansi: 2.1.0 - - code-block-writer@10.1.1: {} - - code-point-at@1.1.0: {} - - color-convert@1.9.3: - dependencies: - color-name: 1.1.3 - - color-name@1.1.3: {} - - color-name@1.1.4: {} - - color-string@1.9.1: - dependencies: - color-name: 1.1.4 - simple-swizzle: 0.2.2 - - color@3.2.1: - dependencies: - color-convert: 1.9.3 - color-string: 1.9.1 - - colors@1.4.0: {} - - colorspace@1.1.4: - dependencies: - color: 3.2.1 - text-hex: 1.0.0 - - combined-stream@1.0.8: - dependencies: - delayed-stream: 1.0.0 - - command-line-args@5.2.1: - dependencies: - array-back: 3.1.0 - find-replace: 3.0.0 - lodash.camelcase: 4.3.0 - typical: 4.0.0 - - comment-json@4.2.4: - dependencies: - array-timsort: 1.0.3 - core-util-is: 1.0.3 - esprima: 4.0.1 - has-own-prop: 2.0.0 - repeat-string: 1.6.1 - - commonmark@0.28.1: - dependencies: - entities: 1.1.2 - mdurl: 1.0.1 - minimist: 1.2.8 - string.prototype.repeat: 0.2.0 - - compress-commons@2.1.1: - dependencies: - buffer-crc32: 0.2.13 - crc32-stream: 3.0.1 - normalize-path: 3.0.0 - readable-stream: 2.3.8 - - concat-map@0.0.1: {} - - confbox@0.1.7: {} - - core-util-is@1.0.3: {} - - crc-32@1.2.2: {} - - crc32-stream@3.0.1: - dependencies: - crc: 3.8.0 - readable-stream: 3.6.2 - - crc@3.8.0: - dependencies: - buffer: 5.7.1 - - create-require@1.1.1: {} - - cross-spawn@6.0.5: - dependencies: - nice-try: 1.0.5 - path-key: 2.0.1 - semver: 5.7.2 - shebang-command: 1.2.0 - which: 1.3.1 - - cross-spawn@7.0.3: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - - debug@4.3.6(supports-color@5.5.0): - dependencies: - ms: 2.1.2 - optionalDependencies: - supports-color: 5.5.0 - - decamelize@1.2.0: {} - - decompress-response@4.2.1: - dependencies: - mimic-response: 2.1.0 - - deep-eql@4.1.4: - dependencies: - type-detect: 4.1.0 - - delayed-stream@1.0.0: {} - - deprecation@2.3.1: {} - - diff-lines@1.1.1: - dependencies: - diff: 3.5.0 - - diff-sequences@29.6.3: {} - - diff@3.5.0: {} - - diff@4.0.2: {} - - enabled@2.0.0: {} - - end-of-stream@1.4.4: - dependencies: - once: 1.4.0 - - entities@1.1.2: {} - - esbuild@0.21.5: - optionalDependencies: - '@esbuild/aix-ppc64': 0.21.5 - '@esbuild/android-arm': 0.21.5 - '@esbuild/android-arm64': 0.21.5 - '@esbuild/android-x64': 0.21.5 - '@esbuild/darwin-arm64': 0.21.5 - '@esbuild/darwin-x64': 0.21.5 - '@esbuild/freebsd-arm64': 0.21.5 - '@esbuild/freebsd-x64': 0.21.5 - '@esbuild/linux-arm': 0.21.5 - '@esbuild/linux-arm64': 0.21.5 - '@esbuild/linux-ia32': 0.21.5 - '@esbuild/linux-loong64': 0.21.5 - '@esbuild/linux-mips64el': 0.21.5 - '@esbuild/linux-ppc64': 0.21.5 - '@esbuild/linux-riscv64': 0.21.5 - '@esbuild/linux-s390x': 0.21.5 - '@esbuild/linux-x64': 0.21.5 - '@esbuild/netbsd-x64': 0.21.5 - '@esbuild/openbsd-x64': 0.21.5 - '@esbuild/sunos-x64': 0.21.5 - '@esbuild/win32-arm64': 0.21.5 - '@esbuild/win32-ia32': 0.21.5 - '@esbuild/win32-x64': 0.21.5 - - esprima@4.0.1: {} - - estree-walker@3.0.3: - dependencies: - '@types/estree': 1.0.5 - - event-target-shim@5.0.1: {} - - events@3.3.0: {} - - execa@1.0.0: - dependencies: - cross-spawn: 6.0.5 - get-stream: 4.1.0 - is-stream: 1.1.0 - npm-run-path: 2.0.2 - p-finally: 1.0.0 - signal-exit: 3.0.7 - strip-eof: 1.0.0 - - execa@8.0.1: - dependencies: - cross-spawn: 7.0.3 - get-stream: 8.0.1 - human-signals: 5.0.0 - is-stream: 3.0.0 - merge-stream: 2.0.0 - npm-run-path: 5.3.0 - onetime: 6.0.0 - signal-exit: 4.1.0 - strip-final-newline: 3.0.0 - - fast-glob@3.3.2: - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.7 - - fastq@1.17.1: - dependencies: - reusify: 1.0.4 - - fecha@4.2.3: {} - - fill-range@7.1.1: - dependencies: - to-regex-range: 5.0.1 - - find-replace@3.0.0: - dependencies: - array-back: 3.1.0 - - find-up@3.0.0: - dependencies: - locate-path: 3.0.0 - - fn.name@1.1.0: {} - - form-data@2.5.1: - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - - form-data@4.0.0: - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - - front-matter@4.0.2: - dependencies: - js-yaml: 3.14.1 - - fs-constants@1.0.0: {} - - fs.realpath@1.0.0: {} - - fsevents@2.3.3: - optional: true - - function-bind@1.1.2: {} - - get-caller-file@1.0.3: {} - - get-func-name@2.0.2: {} - - get-stream@4.1.0: - dependencies: - pump: 3.0.0 - - get-stream@8.0.1: {} - - git-apply-delta@0.0.7: - dependencies: - bops: 0.0.7 - varint: 0.0.3 - - glob-parent@5.1.2: - dependencies: - is-glob: 4.0.3 - - glob@7.2.3: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - - globalyzer@0.1.4: {} - - globrex@0.1.2: {} - - graceful-fs@4.2.11: {} - - has-flag@3.0.0: {} - - has-own-prop@2.0.0: {} - - hasown@2.0.2: - dependencies: - function-bind: 1.1.2 - - human-signals@5.0.0: {} - - ieee754@1.2.1: {} - - ignore-by-default@1.0.1: {} - - ignore@5.3.1: {} - - inflight@1.0.6: - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - - inherits@2.0.4: {} - - interpret@1.4.0: {} - - invert-kv@2.0.0: {} - - is-arrayish@0.3.2: {} - - is-binary-path@2.1.0: - dependencies: - binary-extensions: 2.3.0 - - is-core-module@2.15.0: - dependencies: - hasown: 2.0.2 - - is-extglob@2.1.1: {} - - is-fullwidth-code-point@1.0.0: - dependencies: - number-is-nan: 1.0.1 - - is-fullwidth-code-point@2.0.0: {} - - is-glob@4.0.3: - dependencies: - is-extglob: 2.1.1 - - is-number@7.0.0: {} - - is-plain-object@5.0.0: {} - - is-stream@1.1.0: {} - - is-stream@2.0.1: {} - - is-stream@3.0.0: {} - - isarray@1.0.0: {} - - isexe@2.0.0: {} - - isomorphic-git@0.55.6: - dependencies: - async-lock: 1.4.1 - clean-git-ref: 1.0.3 - crc-32: 1.2.2 - diff-lines: 1.1.1 - git-apply-delta: 0.0.7 - globalyzer: 0.1.4 - globrex: 0.1.2 - ignore: 5.3.1 - marky: 1.2.5 - minimisted: 2.0.1 - pako: 1.0.11 - pify: 4.0.1 - readable-stream: 3.6.2 - sha.js: 2.4.11 - simple-get: 3.1.1 - - js-tokens@9.0.0: {} - - js-yaml@3.14.1: - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - - js-yaml@4.1.0: - dependencies: - argparse: 2.0.1 - - kuler@2.0.0: {} - - lazystream@1.0.1: - dependencies: - readable-stream: 2.3.8 - - lcid@2.0.0: - dependencies: - invert-kv: 2.0.0 - - local-pkg@0.5.0: - dependencies: - mlly: 1.7.1 - pkg-types: 1.1.3 - - locate-path@3.0.0: - dependencies: - p-locate: 3.0.0 - path-exists: 3.0.0 - - lodash-es@4.17.21: {} - - lodash.camelcase@4.3.0: {} - - lodash.defaults@4.2.0: {} - - lodash.difference@4.5.0: {} - - lodash.flatten@4.4.0: {} - - lodash.get@4.4.2: {} - - lodash.isplainobject@4.0.6: {} - - lodash.set@4.3.2: {} - - lodash.union@4.6.0: {} - - lodash.uniq@4.5.0: {} - - lodash@4.17.21: {} - - logform@2.6.1: - dependencies: - '@colors/colors': 1.6.0 - '@types/triple-beam': 1.3.5 - fecha: 4.2.3 - ms: 2.1.2 - safe-stable-stringify: 2.4.3 - triple-beam: 1.4.1 - - loupe@2.3.7: - dependencies: - get-func-name: 2.0.2 - - macos-release@2.5.1: {} - - magic-string@0.30.11: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 - - make-error@1.3.6: {} - - map-age-cleaner@0.1.3: - dependencies: - p-defer: 1.0.0 - - marky@1.2.5: {} - - mdurl@1.0.1: {} - - mem@4.3.0: - dependencies: - map-age-cleaner: 0.1.3 - mimic-fn: 2.1.0 - p-is-promise: 2.1.0 - - merge-stream@2.0.0: {} - - merge2@1.4.1: {} - - micromatch@4.0.7: - dependencies: - braces: 3.0.3 - picomatch: 2.3.1 - - mime-db@1.52.0: {} - - mime-types@2.1.35: - dependencies: - mime-db: 1.52.0 - - mimic-fn@2.1.0: {} - - mimic-fn@4.0.0: {} - - mimic-response@2.1.0: {} - - minimatch@3.1.2: - dependencies: - brace-expansion: 1.1.11 - - minimist@1.2.8: {} - - minimisted@2.0.1: - dependencies: - minimist: 1.2.8 - - mkdirp@1.0.4: {} - - mlly@1.7.1: - dependencies: - acorn: 8.12.1 - pathe: 1.1.2 - pkg-types: 1.1.3 - ufo: 1.5.4 - - ms@2.1.2: {} - - nanoid@3.3.7: {} - - nice-try@1.0.5: {} - - node-fetch@2.7.0: - dependencies: - whatwg-url: 5.0.0 - - nodemon@3.1.4: - dependencies: - chokidar: 3.6.0 - debug: 4.3.6(supports-color@5.5.0) - ignore-by-default: 1.0.1 - minimatch: 3.1.2 - pstree.remy: 1.1.8 - semver: 7.6.3 - simple-update-notifier: 2.0.0 - supports-color: 5.5.0 - touch: 3.1.1 - undefsafe: 2.0.5 - - normalize-path@3.0.0: {} - - npm-run-path@2.0.2: - dependencies: - path-key: 2.0.1 - - npm-run-path@5.3.0: - dependencies: - path-key: 4.0.0 - - number-is-nan@1.0.1: {} - - octokit-pagination-methods@1.1.0: {} - - once@1.4.0: - dependencies: - wrappy: 1.0.2 - - one-time@1.0.0: - dependencies: - fn.name: 1.1.0 - - onetime@6.0.0: - dependencies: - mimic-fn: 4.0.0 - - os-locale@3.1.0: - dependencies: - execa: 1.0.0 - lcid: 2.0.0 - mem: 4.3.0 - - os-name@3.1.0: - dependencies: - macos-release: 2.5.1 - windows-release: 3.3.3 - - p-defer@1.0.0: {} - - p-finally@1.0.0: {} - - p-is-promise@2.1.0: {} - - p-limit@2.3.0: - dependencies: - p-try: 2.2.0 - - p-limit@5.0.0: - dependencies: - yocto-queue: 1.1.1 - - p-locate@3.0.0: - dependencies: - p-limit: 2.3.0 - - p-try@2.2.0: {} - - pako@1.0.11: {} - - parse-ts-to-ast@0.1.4: - dependencies: - lodash: 4.17.21 - lodash-es: 4.17.21 - tslib: 1.14.1 - typescript: 3.9.10 - - path-browserify@1.0.1: {} - - path-exists@3.0.0: {} - - path-is-absolute@1.0.1: {} - - path-key@2.0.1: {} - - path-key@3.1.1: {} - - path-key@4.0.0: {} - - path-parse@1.0.7: {} - - pathe@1.1.2: {} - - pathval@1.1.1: {} - - picocolors@1.0.1: {} - - picomatch@2.3.1: {} - - pify@4.0.1: {} - - pkg-types@1.1.3: - dependencies: - confbox: 0.1.7 - mlly: 1.7.1 - pathe: 1.1.2 - - postcss@8.4.41: - dependencies: - nanoid: 3.3.7 - picocolors: 1.0.1 - source-map-js: 1.2.0 - - pretty-format@29.7.0: - dependencies: - '@jest/schemas': 29.6.3 - ansi-styles: 5.2.0 - react-is: 18.3.1 - - process-nextick-args@2.0.1: {} - - pstree.remy@1.1.8: {} - - pump@3.0.0: - dependencies: - end-of-stream: 1.4.4 - once: 1.4.0 - - queue-microtask@1.2.3: {} - - react-is@18.3.1: {} - - readable-stream@2.3.8: - dependencies: - core-util-is: 1.0.3 - inherits: 2.0.4 - isarray: 1.0.0 - process-nextick-args: 2.0.1 - safe-buffer: 5.1.2 - string_decoder: 1.1.1 - util-deprecate: 1.0.2 - - readable-stream@3.6.2: - dependencies: - inherits: 2.0.4 - string_decoder: 1.3.0 - util-deprecate: 1.0.2 - - readdirp@3.6.0: - dependencies: - picomatch: 2.3.1 - - rechoir@0.6.2: - dependencies: - resolve: 1.22.8 - - repeat-string@1.6.1: {} - - require-directory@2.1.1: {} - - require-main-filename@1.0.1: {} - - resolve@1.22.8: - dependencies: - is-core-module: 2.15.0 - path-parse: 1.0.7 - supports-preserve-symlinks-flag: 1.0.0 - - retry@0.13.1: {} - - reusify@1.0.4: {} - - rimraf@3.0.2: - dependencies: - glob: 7.2.3 - - rollup@4.20.0: - dependencies: - '@types/estree': 1.0.5 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.20.0 - '@rollup/rollup-android-arm64': 4.20.0 - '@rollup/rollup-darwin-arm64': 4.20.0 - '@rollup/rollup-darwin-x64': 4.20.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.20.0 - '@rollup/rollup-linux-arm-musleabihf': 4.20.0 - '@rollup/rollup-linux-arm64-gnu': 4.20.0 - '@rollup/rollup-linux-arm64-musl': 4.20.0 - '@rollup/rollup-linux-powerpc64le-gnu': 4.20.0 - '@rollup/rollup-linux-riscv64-gnu': 4.20.0 - '@rollup/rollup-linux-s390x-gnu': 4.20.0 - '@rollup/rollup-linux-x64-gnu': 4.20.0 - '@rollup/rollup-linux-x64-musl': 4.20.0 - '@rollup/rollup-win32-arm64-msvc': 4.20.0 - '@rollup/rollup-win32-ia32-msvc': 4.20.0 - '@rollup/rollup-win32-x64-msvc': 4.20.0 - fsevents: 2.3.3 - - run-parallel@1.2.0: - dependencies: - queue-microtask: 1.2.3 - - safe-buffer@5.1.2: {} - - safe-buffer@5.2.1: {} - - safe-stable-stringify@2.4.3: {} - - sax@1.4.1: {} - - semver@5.7.2: {} - - semver@7.6.3: {} - - set-blocking@2.0.0: {} - - sha.js@2.4.11: - dependencies: - inherits: 2.0.4 - safe-buffer: 5.2.1 - - shebang-command@1.2.0: - dependencies: - shebang-regex: 1.0.0 - - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@1.0.0: {} - - shebang-regex@3.0.0: {} - - shelljs@0.8.5: - dependencies: - glob: 7.2.3 - interpret: 1.4.0 - rechoir: 0.6.2 - - siginfo@2.0.0: {} - - signal-exit@3.0.7: {} - - signal-exit@4.1.0: {} - - simple-concat@1.0.1: {} - - simple-get@3.1.1: - dependencies: - decompress-response: 4.2.1 - once: 1.4.0 - simple-concat: 1.0.1 - - simple-git@3.25.0: - dependencies: - '@kwsites/file-exists': 1.1.1 - '@kwsites/promise-deferred': 1.1.1 - debug: 4.3.6(supports-color@5.5.0) - transitivePeerDependencies: - - supports-color - - simple-swizzle@0.2.2: - dependencies: - is-arrayish: 0.3.2 - - simple-update-notifier@2.0.0: - dependencies: - semver: 7.6.3 - - source-map-js@1.2.0: {} - - sprintf-js@1.0.3: {} - - stack-trace@0.0.10: {} - - stackback@0.0.2: {} - - std-env@3.7.0: {} - - string-width@1.0.2: - dependencies: - code-point-at: 1.1.0 - is-fullwidth-code-point: 1.0.0 - strip-ansi: 3.0.1 - - string-width@2.1.1: - dependencies: - is-fullwidth-code-point: 2.0.0 - strip-ansi: 4.0.0 - - string.prototype.repeat@0.2.0: {} - - string_decoder@1.1.1: - dependencies: - safe-buffer: 5.1.2 - - string_decoder@1.3.0: - dependencies: - safe-buffer: 5.2.1 - - strip-ansi@3.0.1: - dependencies: - ansi-regex: 2.1.1 - - strip-ansi@4.0.0: - dependencies: - ansi-regex: 3.0.1 - - strip-eof@1.0.0: {} - - strip-final-newline@3.0.0: {} - - strip-literal@2.1.0: - dependencies: - js-tokens: 9.0.0 - - supports-color@5.5.0: - dependencies: - has-flag: 3.0.0 - - supports-preserve-symlinks-flag@1.0.0: {} - - tar-stream@2.2.0: - dependencies: - bl: 4.1.0 - end-of-stream: 1.4.4 - fs-constants: 1.0.0 - inherits: 2.0.4 - readable-stream: 3.6.2 - - text-hex@1.0.0: {} - - tinybench@2.9.0: {} - - tinypool@0.8.4: {} - - tinyspy@2.2.1: {} - - to-regex-range@5.0.1: - dependencies: - is-number: 7.0.0 - - to-utf8@0.0.1: {} - - touch@3.1.1: {} - - tr46@0.0.3: {} - - triple-beam@1.4.1: {} - - ts-morph@12.2.0: - dependencies: - '@ts-morph/common': 0.11.1 - code-block-writer: 10.1.1 - - ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.14.14 - acorn: 8.12.1 - acorn-walk: 8.3.3 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.5.4 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - - tslib@1.14.1: {} - - tslib@2.6.3: {} - - tunnel@0.0.6: {} - - type-detect@4.1.0: {} - - typescript@3.9.10: {} - - typescript@5.5.4: {} - - typical@4.0.0: {} - - ufo@1.5.4: {} - - undefsafe@2.0.5: {} - - undici-types@5.26.5: {} - - universal-user-agent@4.0.1: - dependencies: - os-name: 3.1.0 - - universal-user-agent@6.0.1: {} - - universal-user-agent@7.0.2: {} - - util-deprecate@1.0.2: {} - - uuid@8.3.2: {} - - v8-compile-cache-lib@3.0.1: {} - - varint@0.0.3: {} - - vite-node@1.6.0(@types/node@20.14.14): - dependencies: - cac: 6.7.14 - debug: 4.3.6(supports-color@5.5.0) - pathe: 1.1.2 - picocolors: 1.0.1 - vite: 5.3.5(@types/node@20.14.14) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - - vite@5.3.5(@types/node@20.14.14): - dependencies: - esbuild: 0.21.5 - postcss: 8.4.41 - rollup: 4.20.0 - optionalDependencies: - '@types/node': 20.14.14 - fsevents: 2.3.3 - - vitest@1.6.0(@types/node@20.14.14): - dependencies: - '@vitest/expect': 1.6.0 - '@vitest/runner': 1.6.0 - '@vitest/snapshot': 1.6.0 - '@vitest/spy': 1.6.0 - '@vitest/utils': 1.6.0 - acorn-walk: 8.3.3 - chai: 4.5.0 - debug: 4.3.6(supports-color@5.5.0) - execa: 8.0.1 - local-pkg: 0.5.0 - magic-string: 0.30.11 - pathe: 1.1.2 - picocolors: 1.0.1 - std-env: 3.7.0 - strip-literal: 2.1.0 - tinybench: 2.9.0 - tinypool: 0.8.4 - vite: 5.3.5(@types/node@20.14.14) - vite-node: 1.6.0(@types/node@20.14.14) - why-is-node-running: 2.3.0 - optionalDependencies: - '@types/node': 20.14.14 - transitivePeerDependencies: - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - - webidl-conversions@3.0.1: {} - - whatwg-url@5.0.0: - dependencies: - tr46: 0.0.3 - webidl-conversions: 3.0.1 - - which-module@2.0.1: {} - - which@1.3.1: - dependencies: - isexe: 2.0.0 - - which@2.0.2: - dependencies: - isexe: 2.0.0 - - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - - windows-release@3.3.3: - dependencies: - execa: 1.0.0 - - winston-transport@4.7.1: - dependencies: - logform: 2.6.1 - readable-stream: 3.6.2 - triple-beam: 1.4.1 - - winston@3.13.1: - dependencies: - '@colors/colors': 1.6.0 - '@dabh/diagnostics': 2.0.3 - async: 3.2.5 - is-stream: 2.0.1 - logform: 2.6.1 - one-time: 1.0.0 - readable-stream: 3.6.2 - safe-stable-stringify: 2.4.3 - stack-trace: 0.0.10 - triple-beam: 1.4.1 - winston-transport: 4.7.1 - - wrap-ansi@2.1.0: - dependencies: - string-width: 1.0.2 - strip-ansi: 3.0.1 - - wrappy@1.0.2: {} - - xml2js@0.5.0: - dependencies: - sax: 1.4.1 - xmlbuilder: 11.0.1 - - xmlbuilder@11.0.1: {} - - y18n@4.0.3: {} - - yaml@1.10.2: {} - - yargs-parser@11.1.1: - dependencies: - camelcase: 5.3.1 - decamelize: 1.2.0 - - yargs@12.0.5: - dependencies: - cliui: 4.1.0 - decamelize: 1.2.0 - find-up: 3.0.0 - get-caller-file: 1.0.3 - os-locale: 3.1.0 - require-directory: 2.1.1 - require-main-filename: 1.0.1 - set-blocking: 2.0.0 - string-width: 2.1.1 - which-module: 2.0.1 - y18n: 4.0.3 - yargs-parser: 11.1.1 - - yn@3.1.1: {} - - yocto-queue@1.1.1: {} - - zip-stream@2.1.3: - dependencies: - archiver-utils: 2.1.0 - compress-commons: 2.1.1 - readable-stream: 3.6.2 diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index 6c4c5c0fa06..8b97c547d08 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -173,7 +173,7 @@ export class Changelog { // TODO: add modular public async postProcess(baselinePackageRoot: string, currentPackageRoot: string, sdkType: SDKType): Promise { if (sdkType !== SDKType.RestLevelClient) { - logger.logWarn(`No need to post process changelog for ${sdkType}.`) + logger.warn(`No need to post process changelog for ${sdkType}.`) return; } try { @@ -190,8 +190,8 @@ export class Changelog { } private processInlineMessage(messages: InlineDeclarationNameSetMessage[]) { - logger.logInfo('Before post process rename messages in changelog') - logger.logGreen(this.displayChangeLog()); + logger.info('Before post process rename messages in changelog') + logger.info(this.displayChangeLog()); if (messages.length !== 1) { throw new Error(`Multiple inline messages are unsupported`) @@ -199,8 +199,8 @@ export class Changelog { const postProcesser = new RestLevelClientChangelogPostProcessor(this, messages[0]); postProcesser.run(); - logger.logInfo('After post process rename messages in changelog') - logger.logGreen(this.displayChangeLog()); + logger.info('After post process rename messages in changelog') + logger.info(this.displayChangeLog()); } private async postProcessForRestLevelClient(messageMap: Map) { diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package-lock.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package-lock.json new file mode 100644 index 00000000000..8f08a4badd8 --- /dev/null +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package-lock.json @@ -0,0 +1,4791 @@ +{ + "name": "typescript-codegen-breaking-change-detector", + "version": "0.4.6", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "typescript-codegen-breaking-change-detector", + "version": "0.4.6", + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" + }, + "devDependencies": { + "@types/eslint": "^8.56.10", + "@types/eslint-scope": "^3.7.7", + "@types/fs-extra": "^11.0.4", + "@typescript-eslint/eslint-plugin": "^7.17.0", + "@typescript-eslint/parser": "^7.17.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "husky": "^9.0.11", + "onchange": "^7.1.0", + "prettier": "3.3.2", + "rimraf": "^5.0.7", + "tsx": "^4.16.2", + "vitest": "^2.0.4" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@azure-tools/openapi-tools-common": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@azure-tools/openapi-tools-common/-/openapi-tools-common-1.2.2.tgz", + "integrity": "sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==", + "dependencies": { + "@types/async-retry": "^1.4.1", + "@types/commonmark": "^0.27.3", + "@types/node-fetch": "^2.5.7", + "async-retry": "^1.2.3", + "commonmark": "^0.28.1", + "front-matter": "^4.0.2", + "node-fetch": "^2.6.0", + "tslib": "^2.0.0" + } + }, + "node_modules/@blakeembrey/deque": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@blakeembrey/deque/-/deque-1.0.5.tgz", + "integrity": "sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==", + "dev": true + }, + "node_modules/@blakeembrey/template": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@blakeembrey/template/-/template-1.1.0.tgz", + "integrity": "sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==", + "dev": true + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.0.tgz", + "integrity": "sha512-3sG8Zwa5fMcA9bgqB8AfWPQ+HFke6uD3h1s3RIwUNK8EG7a4buxvuFTs3j1IMs2NXAk9F30C/FF4vxRgQCcmoQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.0.tgz", + "integrity": "sha512-+KuOHTKKyIKgEEqKbGTK8W7mPp+hKinbMBeEnNzjJGyFcWsfrXjSTNluJHCY1RqhxFurdD8uNXQDei7qDlR6+g==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.0.tgz", + "integrity": "sha512-EuHFUYkAVfU4qBdyivULuu03FhJO4IJN9PGuABGrFy4vUuzk91P2d+npxHcFdpUnfYKy0PuV+n6bKIpHOB3prQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.0.tgz", + "integrity": "sha512-WRrmKidLoKDl56LsbBMhzTTBxrsVwTKdNbKDalbEZr0tcsBgCLbEtoNthOW6PX942YiYq8HzEnb4yWQMLQuipQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.0.tgz", + "integrity": "sha512-YLntie/IdS31H54Ogdn+v50NuoWF5BDkEUFpiOChVa9UnKpftgwzZRrI4J132ETIi+D8n6xh9IviFV3eXdxfow==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.0.tgz", + "integrity": "sha512-IMQ6eme4AfznElesHUPDZ+teuGwoRmVuuixu7sv92ZkdQcPbsNHzutd+rAfaBKo8YK3IrBEi9SLLKWJdEvJniQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.0.tgz", + "integrity": "sha512-0muYWCng5vqaxobq6LB3YNtevDFSAZGlgtLoAc81PjUfiFz36n4KMpwhtAd4he8ToSI3TGyuhyx5xmiWNYZFyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.0.tgz", + "integrity": "sha512-XKDVu8IsD0/q3foBzsXGt/KjD/yTKBCIwOHE1XwiXmrRwrX6Hbnd5Eqn/WvDekddK21tfszBSrE/WMaZh+1buQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.0.tgz", + "integrity": "sha512-SEELSTEtOFu5LPykzA395Mc+54RMg1EUgXP+iw2SJ72+ooMwVsgfuwXo5Fn0wXNgWZsTVHwY2cg4Vi/bOD88qw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.0.tgz", + "integrity": "sha512-j1t5iG8jE7BhonbsEg5d9qOYcVZv/Rv6tghaXM/Ug9xahM0nX/H2gfu6X6z11QRTMT6+aywOMA8TDkhPo8aCGw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.0.tgz", + "integrity": "sha512-P7O5Tkh2NbgIm2R6x1zGJJsnacDzTFcRWZyTTMgFdVit6E98LTxO+v8LCCLWRvPrjdzXHx9FEOA8oAZPyApWUA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.0.tgz", + "integrity": "sha512-InQwepswq6urikQiIC/kkx412fqUZudBO4SYKu0N+tGhXRWUqAx+Q+341tFV6QdBifpjYgUndV1hhMq3WeJi7A==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.0.tgz", + "integrity": "sha512-J9rflLtqdYrxHv2FqXE2i1ELgNjT+JFURt/uDMoPQLcjWQA5wDKgQA4t/dTqGa88ZVECKaD0TctwsUfHbVoi4w==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.0.tgz", + "integrity": "sha512-cShCXtEOVc5GxU0fM+dsFD10qZ5UpcQ8AM22bYj0u/yaAykWnqXJDpd77ublcX6vdDsWLuweeuSNZk4yUxZwtw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.0.tgz", + "integrity": "sha512-HEtaN7Y5UB4tZPeQmgz/UhzoEyYftbMXrBCUjINGjh3uil+rB/QzzpMshz3cNUxqXN7Vr93zzVtpIDL99t9aRw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.0.tgz", + "integrity": "sha512-WDi3+NVAuyjg/Wxi+o5KPqRbZY0QhI9TjrEEm+8dmpY9Xir8+HE/HNx2JoLckhKbFopW0RdO2D72w8trZOV+Wg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.0.tgz", + "integrity": "sha512-a3pMQhUEJkITgAw6e0bWA+F+vFtCciMjW/LPtoj99MhVt+Mfb6bbL9hu2wmTZgNd994qTAEw+U/r6k3qHWWaOQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.0.tgz", + "integrity": "sha512-cRK+YDem7lFTs2Q5nEv/HHc4LnrfBCbH5+JHu6wm2eP+d8OZNoSMYgPZJq78vqQ9g+9+nMuIsAO7skzphRXHyw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.0.tgz", + "integrity": "sha512-suXjq53gERueVWu0OKxzWqk7NxiUWSUlrxoZK7usiF50C6ipColGR5qie2496iKGYNLhDZkPxBI3erbnYkU0rQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.0.tgz", + "integrity": "sha512-6p3nHpby0DM/v15IFKMjAaayFhqnXV52aEmv1whZHX56pdkK+MEaLoQWj+H42ssFarP1PcomVhbsR4pkz09qBg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.0.tgz", + "integrity": "sha512-BFelBGfrBwk6LVrmFzCq1u1dZbG4zy/Kp93w2+y83Q5UGYF1d8sCzeLI9NXjKyujjBBniQa8R8PzLFAUrSM9OA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.0.tgz", + "integrity": "sha512-lY6AC8p4Cnb7xYHuIxQ6iYPe6MfO2CC43XXKo9nBXDb35krYt7KGhQnOkRGar5psxYkircpCqfbNDB4uJbS2jQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.0.tgz", + "integrity": "sha512-7L1bHlOTcO4ByvI7OXVI5pNN6HSu6pUQq9yodga8izeuB1KcT2UkHaH6118QJwopExPn0rMHIseCTx1CRo/uNA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.0.tgz", + "integrity": "sha512-Arm+WgUFLUATuoxCJcahGuk6Yj9Pzxd6l11Zb/2aAuv5kWWvvfhLFo2fni4uSK5vzlUdCGZ/BdV5tH8klj8p8g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", + "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "peer": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "peer": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "deprecated": "Use @eslint/config-array instead", + "peer": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "peer": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "peer": true + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.20.0.tgz", + "integrity": "sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.20.0.tgz", + "integrity": "sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.20.0.tgz", + "integrity": "sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.20.0.tgz", + "integrity": "sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.20.0.tgz", + "integrity": "sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.20.0.tgz", + "integrity": "sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.20.0.tgz", + "integrity": "sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.20.0.tgz", + "integrity": "sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.20.0.tgz", + "integrity": "sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.20.0.tgz", + "integrity": "sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.20.0.tgz", + "integrity": "sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.20.0.tgz", + "integrity": "sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.20.0.tgz", + "integrity": "sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.20.0.tgz", + "integrity": "sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.20.0.tgz", + "integrity": "sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.20.0.tgz", + "integrity": "sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@ts-morph/common": { + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.24.0.tgz", + "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", + "dependencies": { + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" + } + }, + "node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@types/async-retry": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.8.tgz", + "integrity": "sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==", + "dependencies": { + "@types/retry": "*" + } + }, + "node_modules/@types/commonmark": { + "version": "0.27.9", + "resolved": "https://registry.npmjs.org/@types/commonmark/-/commonmark-0.27.9.tgz", + "integrity": "sha512-d3+57WgyPCcIc6oshmcPkmP4+JqRRot9eeZLsBsutWtIxwWivpoyc2wEcolOp8MyO3ZWN846mMdoR02kdHSMCw==" + }, + "node_modules/@types/eslint": { + "version": "8.56.11", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.11.tgz", + "integrity": "sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/fs-extra": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", + "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", + "dev": true, + "dependencies": { + "@types/jsonfile": "*", + "@types/node": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/jsonfile": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.4.tgz", + "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/node": { + "version": "22.2.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.2.0.tgz", + "integrity": "sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==", + "dependencies": { + "undici-types": "~6.13.0" + } + }, + "node_modules/@types/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/retry": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.5.tgz", + "integrity": "sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", + "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz", + "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", + "dependencies": { + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", + "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", + "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", + "dependencies": { + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz", + "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", + "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", + "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", + "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "peer": true + }, + "node_modules/@vitest/expect": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "2.0.5", + "@vitest/utils": "2.0.5", + "chai": "^5.1.1", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/pretty-format": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.0.5.tgz", + "integrity": "sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==", + "dev": true, + "dependencies": { + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/utils": "2.0.5", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "2.0.5", + "magic-string": "^0.30.10", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyspy": "^3.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "2.0.5", + "estree-walker": "^3.0.3", + "loupe": "^3.1.1", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "peer": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "peer": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/async-retry": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", + "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", + "dependencies": { + "retry": "0.13.1" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", + "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chai": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.1.tgz", + "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==", + "dev": true, + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "peer": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/check-error": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "dev": true, + "engines": { + "node": ">= 16" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/code-block-writer": { + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.2.tgz", + "integrity": "sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", + "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", + "engines": { + "node": ">=18" + } + }, + "node_modules/commonmark": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.28.1.tgz", + "integrity": "sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==", + "dependencies": { + "entities": "~ 1.1.1", + "mdurl": "~ 1.0.1", + "minimist": "~ 1.2.0", + "string.prototype.repeat": "^0.2.0" + }, + "bin": { + "commonmark": "bin/commonmark" + }, + "engines": { + "node": "*" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "peer": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/dateformat": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", + "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", + "engines": { + "node": "*" + } + }, + "node_modules/debug": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "peer": true + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "peer": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/entities": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" + }, + "node_modules/esbuild": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.0.tgz", + "integrity": "sha512-1lvV17H2bMYda/WaFb2jLPeHU3zml2k4/yagNMG8Q/YtfMjCwEUZa2eXXMgZTVSL5q1n4H7sQ0X6CdJDqqeCFA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.23.0", + "@esbuild/android-arm": "0.23.0", + "@esbuild/android-arm64": "0.23.0", + "@esbuild/android-x64": "0.23.0", + "@esbuild/darwin-arm64": "0.23.0", + "@esbuild/darwin-x64": "0.23.0", + "@esbuild/freebsd-arm64": "0.23.0", + "@esbuild/freebsd-x64": "0.23.0", + "@esbuild/linux-arm": "0.23.0", + "@esbuild/linux-arm64": "0.23.0", + "@esbuild/linux-ia32": "0.23.0", + "@esbuild/linux-loong64": "0.23.0", + "@esbuild/linux-mips64el": "0.23.0", + "@esbuild/linux-ppc64": "0.23.0", + "@esbuild/linux-riscv64": "0.23.0", + "@esbuild/linux-s390x": "0.23.0", + "@esbuild/linux-x64": "0.23.0", + "@esbuild/netbsd-x64": "0.23.0", + "@esbuild/openbsd-arm64": "0.23.0", + "@esbuild/openbsd-x64": "0.23.0", + "@esbuild/sunos-x64": "0.23.0", + "@esbuild/win32-arm64": "0.23.0", + "@esbuild/win32-ia32": "0.23.0", + "@esbuild/win32-x64": "0.23.0" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", + "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.9.1" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "peer": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "peer": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "peer": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "8.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/fast-copy": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-3.0.2.tgz", + "integrity": "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "peer": true + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "peer": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "peer": true + }, + "node_modules/fast-redact": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", + "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "peer": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "peer": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "peer": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flat-cache/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/flat-cache/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "peer": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/flat-cache/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/flat-cache/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "peer": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "peer": true + }, + "node_modules/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/front-matter": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-4.0.2.tgz", + "integrity": "sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==", + "dependencies": { + "js-yaml": "^3.13.1" + } + }, + "node_modules/front-matter/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/front-matter/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "peer": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/get-stream": { + "version": "8.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-tsconfig": { + "version": "4.7.6", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.6.tgz", + "integrity": "sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==", + "dev": true, + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/glob": { + "version": "11.0.0", + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "peer": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "peer": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/help-me": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz", + "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==" + }, + "node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "engines": { + "node": ">=16.17.0" + } + }, + "node_modules/husky": { + "version": "9.1.4", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.4.tgz", + "integrity": "sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==", + "dev": true, + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "peer": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "peer": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "peer": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "peer": true + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-stream": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/jackspeak": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz", + "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/joycon": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", + "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", + "engines": { + "node": ">=10" + } + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "peer": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "peer": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "peer": true + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "peer": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "peer": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "peer": true + }, + "node_modules/loupe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.1.tgz", + "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.1" + } + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "dev": true, + "license": "ISC" + }, + "node_modules/magic-string": { + "version": "0.30.11", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", + "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/marked": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-13.0.3.tgz", + "integrity": "sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "10.0.1", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "5.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/on-exit-leak-free": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", + "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onchange": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/onchange/-/onchange-7.1.0.tgz", + "integrity": "sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==", + "dev": true, + "dependencies": { + "@blakeembrey/deque": "^1.0.5", + "@blakeembrey/template": "^1.0.0", + "arg": "^4.1.3", + "chokidar": "^3.3.1", + "cross-spawn": "^7.0.1", + "ignore": "^5.1.4", + "tree-kill": "^1.2.2" + }, + "bin": { + "onchange": "dist/bin.js" + } + }, + "node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "peer": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "peer": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "peer": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", + "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "peer": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", + "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/pathe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "dev": true + }, + "node_modules/pathval": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", + "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", + "dev": true, + "engines": { + "node": ">= 14.16" + } + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pino": { + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.3.2.tgz", + "integrity": "sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==", + "dependencies": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.1.1", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.2.0", + "pino-std-serializers": "^7.0.0", + "process-warning": "^4.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.2.0", + "safe-stable-stringify": "^2.3.1", + "sonic-boom": "^4.0.1", + "thread-stream": "^3.0.0" + }, + "bin": { + "pino": "bin.js" + } + }, + "node_modules/pino-abstract-transport": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", + "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", + "dependencies": { + "readable-stream": "^4.0.0", + "split2": "^4.0.0" + } + }, + "node_modules/pino-pretty": { + "version": "11.2.2", + "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-11.2.2.tgz", + "integrity": "sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==", + "dependencies": { + "colorette": "^2.0.7", + "dateformat": "^4.6.3", + "fast-copy": "^3.0.2", + "fast-safe-stringify": "^2.1.1", + "help-me": "^5.0.0", + "joycon": "^3.1.1", + "minimist": "^1.2.6", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.0.0", + "pump": "^3.0.0", + "readable-stream": "^4.0.0", + "secure-json-parse": "^2.4.0", + "sonic-boom": "^4.0.1", + "strip-json-comments": "^3.1.1" + }, + "bin": { + "pino-pretty": "bin.js" + } + }, + "node_modules/pino-std-serializers": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz", + "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==" + }, + "node_modules/postcss": { + "version": "8.4.41", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz", + "integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.1", + "source-map-js": "^1.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", + "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-warning": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.0.tgz", + "integrity": "sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==" + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-format-unescaped": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" + }, + "node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/real-require": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", + "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "5.0.10", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "10.4.5", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/jackspeak": { + "version": "3.4.3", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/rimraf/node_modules/minimatch": { + "version": "9.0.5", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/path-scurry": { + "version": "1.11.1", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.20.0.tgz", + "integrity": "sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.20.0", + "@rollup/rollup-android-arm64": "4.20.0", + "@rollup/rollup-darwin-arm64": "4.20.0", + "@rollup/rollup-darwin-x64": "4.20.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.20.0", + "@rollup/rollup-linux-arm-musleabihf": "4.20.0", + "@rollup/rollup-linux-arm64-gnu": "4.20.0", + "@rollup/rollup-linux-arm64-musl": "4.20.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0", + "@rollup/rollup-linux-riscv64-gnu": "4.20.0", + "@rollup/rollup-linux-s390x-gnu": "4.20.0", + "@rollup/rollup-linux-x64-gnu": "4.20.0", + "@rollup/rollup-linux-x64-musl": "4.20.0", + "@rollup/rollup-win32-arm64-msvc": "4.20.0", + "@rollup/rollup-win32-ia32-msvc": "4.20.0", + "@rollup/rollup-win32-x64-msvc": "4.20.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-stable-stringify": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", + "engines": { + "node": ">=10" + } + }, + "node_modules/secure-json-parse": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", + "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" + }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/sonic-boom": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.0.1.tgz", + "integrity": "sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==", + "dependencies": { + "atomic-sleep": "^1.0.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true + }, + "node_modules/std-env": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", + "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", + "dev": true + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/string.prototype.repeat": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", + "integrity": "sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==" + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/synckit": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.1.tgz", + "integrity": "sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "peer": true + }, + "node_modules/thread-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.1.0.tgz", + "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", + "dependencies": { + "real-require": "^0.2.0" + } + }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true + }, + "node_modules/tinypool": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/tinyrainbow": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", + "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true, + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/ts-api-utils": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-morph": { + "version": "23.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-23.0.0.tgz", + "integrity": "sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==", + "dependencies": { + "@ts-morph/common": "~0.24.0", + "code-block-writer": "^13.0.1" + } + }, + "node_modules/tslib": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" + }, + "node_modules/tsx": { + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.17.0.tgz", + "integrity": "sha512-eN4mnDA5UMKDt4YZixo9tBioibaMBpoxBkD+rIPAjVmYERSG0/dWEY1CEFuV89CgASlKL499q8AhmkMnnjtOJg==", + "dev": true, + "dependencies": { + "esbuild": "~0.23.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-7.18.0.tgz", + "integrity": "sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==", + "dependencies": { + "@typescript-eslint/eslint-plugin": "7.18.0", + "@typescript-eslint/parser": "7.18.0", + "@typescript-eslint/utils": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/undici-types": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", + "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "peer": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/vite": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.0.tgz", + "integrity": "sha512-5xokfMX0PIiwCMCMb9ZJcMyh5wbBun0zUzKib+L65vAZ8GY9ePZMXxFrHbr/Kyll2+LSCY7xtERPpxkBDKngwg==", + "dev": true, + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.40", + "rollup": "^4.13.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-node": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.3.5", + "pathe": "^1.1.2", + "tinyrainbow": "^1.2.0", + "vite": "^5.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vite/node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/vitest": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.3.0", + "@vitest/expect": "2.0.5", + "@vitest/pretty-format": "^2.0.5", + "@vitest/runner": "2.0.5", + "@vitest/snapshot": "2.0.5", + "@vitest/spy": "2.0.5", + "@vitest/utils": "2.0.5", + "chai": "^5.1.1", + "debug": "^4.3.5", + "execa": "^8.0.1", + "magic-string": "^0.30.10", + "pathe": "^1.1.2", + "std-env": "^3.7.0", + "tinybench": "^2.8.0", + "tinypool": "^1.0.0", + "tinyrainbow": "^1.2.0", + "vite": "^5.0.0", + "vite-node": "2.0.5", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/node": "^18.0.0 || >=20.0.0", + "@vitest/browser": "2.0.5", + "@vitest/ui": "2.0.5", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/pnpm-lock.yaml b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/pnpm-lock.yaml deleted file mode 100644 index 9fc21622ca8..00000000000 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/pnpm-lock.yaml +++ /dev/null @@ -1,3019 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - dependencies: - '@azure-tools/openapi-tools-common': - specifier: ^1.2.2 - version: 1.2.2 - '@typescript-eslint/scope-manager': - specifier: ^7.17.0 - version: 7.17.0 - '@typescript-eslint/types': - specifier: ^7.17.0 - version: 7.17.0 - '@typescript-eslint/typescript-estree': - specifier: ^7.17.0 - version: 7.17.0(typescript@5.5.3) - '@typescript-eslint/utils': - specifier: ^7.17.0 - version: 7.17.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/visitor-keys': - specifier: ^7.17.0 - version: 7.17.0 - commander: - specifier: ^12.1.0 - version: 12.1.0 - fs-extra: - specifier: ^11.2.0 - version: 11.2.0 - glob: - specifier: ^11.0.0 - version: 11.0.0 - marked: - specifier: ^13.0.2 - version: 13.0.2 - pino: - specifier: ^9.3.1 - version: 9.3.1 - pino-pretty: - specifier: ^11.2.1 - version: 11.2.1 - ts-morph: - specifier: ^23.0.0 - version: 23.0.0 - typescript: - specifier: 5.5.3 - version: 5.5.3 - typescript-eslint: - specifier: ^7.17.0 - version: 7.17.0(eslint@8.57.0)(typescript@5.5.3) - devDependencies: - '@rollup/plugin-commonjs': - specifier: ^26.0.1 - version: 26.0.1(rollup@4.19.0) - '@types/eslint': - specifier: ^8.56.10 - version: 8.56.11 - '@types/eslint-scope': - specifier: ^3.7.7 - version: 3.7.7 - '@types/fs-extra': - specifier: ^11.0.4 - version: 11.0.4 - '@typescript-eslint/eslint-plugin': - specifier: ^7.17.0 - version: 7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/parser': - specifier: ^7.17.0 - version: 7.17.0(eslint@8.57.0)(typescript@5.5.3) - eslint-config-prettier: - specifier: ^9.1.0 - version: 9.1.0(eslint@8.57.0) - eslint-plugin-prettier: - specifier: ^5.1.3 - version: 5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2) - husky: - specifier: ^9.0.11 - version: 9.1.1 - onchange: - specifier: ^7.1.0 - version: 7.1.0 - prettier: - specifier: 3.3.2 - version: 3.3.2 - rimraf: - specifier: ^5.0.7 - version: 5.0.9 - tsx: - specifier: ^4.16.2 - version: 4.16.2 - vitest: - specifier: ^2.0.4 - version: 2.0.4(@types/node@20.14.11) - -packages: - - '@ampproject/remapping@2.3.0': - resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} - engines: {node: '>=6.0.0'} - - '@azure-tools/openapi-tools-common@1.2.2': - resolution: {integrity: sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==} - - '@blakeembrey/deque@1.0.5': - resolution: {integrity: sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==} - - '@blakeembrey/template@1.1.0': - resolution: {integrity: sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==} - - '@esbuild/aix-ppc64@0.21.5': - resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [aix] - - '@esbuild/android-arm64@0.21.5': - resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - - '@esbuild/android-arm@0.21.5': - resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - - '@esbuild/android-x64@0.21.5': - resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - - '@esbuild/darwin-arm64@0.21.5': - resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - - '@esbuild/darwin-x64@0.21.5': - resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - - '@esbuild/freebsd-arm64@0.21.5': - resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - - '@esbuild/freebsd-x64@0.21.5': - resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - - '@esbuild/linux-arm64@0.21.5': - resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - - '@esbuild/linux-arm@0.21.5': - resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - - '@esbuild/linux-ia32@0.21.5': - resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - - '@esbuild/linux-loong64@0.21.5': - resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - - '@esbuild/linux-mips64el@0.21.5': - resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - - '@esbuild/linux-ppc64@0.21.5': - resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - - '@esbuild/linux-riscv64@0.21.5': - resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - - '@esbuild/linux-s390x@0.21.5': - resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - - '@esbuild/linux-x64@0.21.5': - resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - - '@esbuild/netbsd-x64@0.21.5': - resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - - '@esbuild/openbsd-x64@0.21.5': - resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - - '@esbuild/sunos-x64@0.21.5': - resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - - '@esbuild/win32-arm64@0.21.5': - resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - - '@esbuild/win32-ia32@0.21.5': - resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - - '@esbuild/win32-x64@0.21.5': - resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - - '@eslint-community/eslint-utils@4.4.0': - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - - '@eslint-community/regexpp@4.11.0': - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - - '@eslint/eslintrc@2.1.4': - resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - '@eslint/js@8.57.0': - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - '@humanwhocodes/config-array@0.11.14': - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} - engines: {node: '>=10.10.0'} - deprecated: Use @eslint/config-array instead - - '@humanwhocodes/module-importer@1.0.1': - resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} - engines: {node: '>=12.22'} - - '@humanwhocodes/object-schema@2.0.3': - resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} - deprecated: Use @eslint/object-schema instead - - '@isaacs/cliui@8.0.2': - resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} - engines: {node: '>=12'} - - '@jridgewell/gen-mapping@0.3.5': - resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} - engines: {node: '>=6.0.0'} - - '@jridgewell/resolve-uri@3.1.2': - resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} - engines: {node: '>=6.0.0'} - - '@jridgewell/set-array@1.2.1': - resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} - engines: {node: '>=6.0.0'} - - '@jridgewell/sourcemap-codec@1.5.0': - resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} - - '@jridgewell/trace-mapping@0.3.25': - resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - - '@nodelib/fs.scandir@2.1.5': - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} - - '@nodelib/fs.stat@2.0.5': - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} - - '@nodelib/fs.walk@1.2.8': - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} - - '@pkgjs/parseargs@0.11.0': - resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} - engines: {node: '>=14'} - - '@pkgr/core@0.1.1': - resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} - engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - - '@rollup/plugin-commonjs@26.0.1': - resolution: {integrity: sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ==} - engines: {node: '>=16.0.0 || 14 >= 14.17'} - peerDependencies: - rollup: ^2.68.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/pluginutils@5.1.0': - resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/rollup-android-arm-eabi@4.19.0': - resolution: {integrity: sha512-JlPfZ/C7yn5S5p0yKk7uhHTTnFlvTgLetl2VxqE518QgyM7C9bSfFTYvB/Q/ftkq0RIPY4ySxTz+/wKJ/dXC0w==} - cpu: [arm] - os: [android] - - '@rollup/rollup-android-arm64@4.19.0': - resolution: {integrity: sha512-RDxUSY8D1tWYfn00DDi5myxKgOk6RvWPxhmWexcICt/MEC6yEMr4HNCu1sXXYLw8iAsg0D44NuU+qNq7zVWCrw==} - cpu: [arm64] - os: [android] - - '@rollup/rollup-darwin-arm64@4.19.0': - resolution: {integrity: sha512-emvKHL4B15x6nlNTBMtIaC9tLPRpeA5jMvRLXVbl/W9Ie7HhkrE7KQjvgS9uxgatL1HmHWDXk5TTS4IaNJxbAA==} - cpu: [arm64] - os: [darwin] - - '@rollup/rollup-darwin-x64@4.19.0': - resolution: {integrity: sha512-fO28cWA1dC57qCd+D0rfLC4VPbh6EOJXrreBmFLWPGI9dpMlER2YwSPZzSGfq11XgcEpPukPTfEVFtw2q2nYJg==} - cpu: [x64] - os: [darwin] - - '@rollup/rollup-linux-arm-gnueabihf@4.19.0': - resolution: {integrity: sha512-2Rn36Ubxdv32NUcfm0wB1tgKqkQuft00PtM23VqLuCUR4N5jcNWDoV5iBC9jeGdgS38WK66ElncprqgMUOyomw==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm-musleabihf@4.19.0': - resolution: {integrity: sha512-gJuzIVdq/X1ZA2bHeCGCISe0VWqCoNT8BvkQ+BfsixXwTOndhtLUpOg0A1Fcx/+eA6ei6rMBzlOz4JzmiDw7JQ==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm64-gnu@4.19.0': - resolution: {integrity: sha512-0EkX2HYPkSADo9cfeGFoQ7R0/wTKb7q6DdwI4Yn/ULFE1wuRRCHybxpl2goQrx4c/yzK3I8OlgtBu4xvted0ug==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-arm64-musl@4.19.0': - resolution: {integrity: sha512-GlIQRj9px52ISomIOEUq/IojLZqzkvRpdP3cLgIE1wUWaiU5Takwlzpz002q0Nxxr1y2ZgxC2obWxjr13lvxNQ==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-powerpc64le-gnu@4.19.0': - resolution: {integrity: sha512-N6cFJzssruDLUOKfEKeovCKiHcdwVYOT1Hs6dovDQ61+Y9n3Ek4zXvtghPPelt6U0AH4aDGnDLb83uiJMkWYzQ==} - cpu: [ppc64] - os: [linux] - - '@rollup/rollup-linux-riscv64-gnu@4.19.0': - resolution: {integrity: sha512-2DnD3mkS2uuam/alF+I7M84koGwvn3ZVD7uG+LEWpyzo/bq8+kKnus2EVCkcvh6PlNB8QPNFOz6fWd5N8o1CYg==} - cpu: [riscv64] - os: [linux] - - '@rollup/rollup-linux-s390x-gnu@4.19.0': - resolution: {integrity: sha512-D6pkaF7OpE7lzlTOFCB2m3Ngzu2ykw40Nka9WmKGUOTS3xcIieHe82slQlNq69sVB04ch73thKYIWz/Ian8DUA==} - cpu: [s390x] - os: [linux] - - '@rollup/rollup-linux-x64-gnu@4.19.0': - resolution: {integrity: sha512-HBndjQLP8OsdJNSxpNIN0einbDmRFg9+UQeZV1eiYupIRuZsDEoeGU43NQsS34Pp166DtwQOnpcbV/zQxM+rWA==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-linux-x64-musl@4.19.0': - resolution: {integrity: sha512-HxfbvfCKJe/RMYJJn0a12eiOI9OOtAUF4G6ozrFUK95BNyoJaSiBjIOHjZskTUffUrB84IPKkFG9H9nEvJGW6A==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-win32-arm64-msvc@4.19.0': - resolution: {integrity: sha512-HxDMKIhmcguGTiP5TsLNolwBUK3nGGUEoV/BO9ldUBoMLBssvh4J0X8pf11i1fTV7WShWItB1bKAKjX4RQeYmg==} - cpu: [arm64] - os: [win32] - - '@rollup/rollup-win32-ia32-msvc@4.19.0': - resolution: {integrity: sha512-xItlIAZZaiG/u0wooGzRsx11rokP4qyc/79LkAOdznGRAbOFc+SfEdfUOszG1odsHNgwippUJavag/+W/Etc6Q==} - cpu: [ia32] - os: [win32] - - '@rollup/rollup-win32-x64-msvc@4.19.0': - resolution: {integrity: sha512-xNo5fV5ycvCCKqiZcpB65VMR11NJB+StnxHz20jdqRAktfdfzhgjTiJ2doTDQE/7dqGaV5I7ZGqKpgph6lCIag==} - cpu: [x64] - os: [win32] - - '@ts-morph/common@0.24.0': - resolution: {integrity: sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==} - - '@types/async-retry@1.4.8': - resolution: {integrity: sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==} - - '@types/commonmark@0.27.9': - resolution: {integrity: sha512-d3+57WgyPCcIc6oshmcPkmP4+JqRRot9eeZLsBsutWtIxwWivpoyc2wEcolOp8MyO3ZWN846mMdoR02kdHSMCw==} - - '@types/eslint-scope@3.7.7': - resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} - - '@types/eslint@8.56.11': - resolution: {integrity: sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==} - - '@types/estree@1.0.5': - resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - - '@types/fs-extra@11.0.4': - resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} - - '@types/json-schema@7.0.15': - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - - '@types/jsonfile@6.1.4': - resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} - - '@types/node-fetch@2.6.11': - resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} - - '@types/node@20.14.11': - resolution: {integrity: sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==} - - '@types/retry@0.12.5': - resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==} - - '@typescript-eslint/eslint-plugin@7.17.0': - resolution: {integrity: sha512-pyiDhEuLM3PuANxH7uNYan1AaFs5XE0zw1hq69JBvGvE7gSuEoQl1ydtEe/XQeoC3GQxLXyOVa5kNOATgM638A==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - '@typescript-eslint/parser': ^7.0.0 - eslint: ^8.56.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@typescript-eslint/parser@7.17.0': - resolution: {integrity: sha512-puiYfGeg5Ydop8eusb/Hy1k7QmOU6X3nvsqCgzrB2K4qMavK//21+PzNE8qeECgNOIoertJPUC1SpegHDI515A==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - eslint: ^8.56.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@typescript-eslint/scope-manager@7.17.0': - resolution: {integrity: sha512-0P2jTTqyxWp9HiKLu/Vemr2Rg1Xb5B7uHItdVZ6iAenXmPo4SZ86yOPCJwMqpCyaMiEHTNqizHfsbmCFT1x9SA==} - engines: {node: ^18.18.0 || >=20.0.0} - - '@typescript-eslint/type-utils@7.17.0': - resolution: {integrity: sha512-XD3aaBt+orgkM/7Cei0XNEm1vwUxQ958AOLALzPlbPqb8C1G8PZK85tND7Jpe69Wualri81PLU+Zc48GVKIMMA==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - eslint: ^8.56.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@typescript-eslint/types@7.17.0': - resolution: {integrity: sha512-a29Ir0EbyKTKHnZWbNsrc/gqfIBqYPwj3F2M+jWE/9bqfEHg0AMtXzkbUkOG6QgEScxh2+Pz9OXe11jHDnHR7A==} - engines: {node: ^18.18.0 || >=20.0.0} - - '@typescript-eslint/typescript-estree@7.17.0': - resolution: {integrity: sha512-72I3TGq93t2GoSBWI093wmKo0n6/b7O4j9o8U+f65TVD0FS6bI2180X5eGEr8MA8PhKMvYe9myZJquUT2JkCZw==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@typescript-eslint/utils@7.17.0': - resolution: {integrity: sha512-r+JFlm5NdB+JXc7aWWZ3fKSm1gn0pkswEwIYsrGPdsT2GjsRATAKXiNtp3vgAAO1xZhX8alIOEQnNMl3kbTgJw==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - eslint: ^8.56.0 - - '@typescript-eslint/visitor-keys@7.17.0': - resolution: {integrity: sha512-RVGC9UhPOCsfCdI9pU++K4nD7to+jTcMIbXTSOcrLqUEW6gF2pU1UUbYJKc9cvcRSK1UDeMJ7pdMxf4bhMpV/A==} - engines: {node: ^18.18.0 || >=20.0.0} - - '@ungap/structured-clone@1.2.0': - resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - - '@vitest/expect@2.0.4': - resolution: {integrity: sha512-39jr5EguIoanChvBqe34I8m1hJFI4+jxvdOpD7gslZrVQBKhh8H9eD7J/LJX4zakrw23W+dITQTDqdt43xVcJw==} - - '@vitest/pretty-format@2.0.4': - resolution: {integrity: sha512-RYZl31STbNGqf4l2eQM1nvKPXE0NhC6Eq0suTTePc4mtMQ1Fn8qZmjV4emZdEdG2NOWGKSCrHZjmTqDCDoeFBw==} - - '@vitest/runner@2.0.4': - resolution: {integrity: sha512-Gk+9Su/2H2zNfNdeJR124gZckd5st4YoSuhF1Rebi37qTXKnqYyFCd9KP4vl2cQHbtuVKjfEKrNJxHHCW8thbQ==} - - '@vitest/snapshot@2.0.4': - resolution: {integrity: sha512-or6Mzoz/pD7xTvuJMFYEtso1vJo1S5u6zBTinfl+7smGUhqybn6VjzCDMhmTyVOFWwkCMuNjmNNxnyXPgKDoPw==} - - '@vitest/spy@2.0.4': - resolution: {integrity: sha512-uTXU56TNoYrTohb+6CseP8IqNwlNdtPwEO0AWl+5j7NelS6x0xZZtP0bDWaLvOfUbaYwhhWp1guzXUxkC7mW7Q==} - - '@vitest/utils@2.0.4': - resolution: {integrity: sha512-Zc75QuuoJhOBnlo99ZVUkJIuq4Oj0zAkrQ2VzCqNCx6wAwViHEh5Fnp4fiJTE9rA+sAoXRf00Z9xGgfEzV6fzQ==} - - abort-controller@3.0.0: - resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} - engines: {node: '>=6.5'} - - acorn-jsx@5.3.2: - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - - acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} - engines: {node: '>=0.4.0'} - hasBin: true - - ajv@6.12.6: - resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - - ansi-regex@6.0.1: - resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} - engines: {node: '>=12'} - - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - ansi-styles@6.2.1: - resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} - engines: {node: '>=12'} - - anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} - engines: {node: '>= 8'} - - arg@4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - - argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - - array-union@2.1.0: - resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} - engines: {node: '>=8'} - - assertion-error@2.0.1: - resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} - engines: {node: '>=12'} - - async-retry@1.3.3: - resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==} - - asynckit@0.4.0: - resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} - - atomic-sleep@1.0.0: - resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} - engines: {node: '>=8.0.0'} - - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - base64-js@1.5.1: - resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - - binary-extensions@2.3.0: - resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} - engines: {node: '>=8'} - - brace-expansion@1.1.11: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} - - brace-expansion@2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - - buffer@6.0.3: - resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - - cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - - chai@5.1.1: - resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} - engines: {node: '>=12'} - - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - check-error@2.1.1: - resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} - engines: {node: '>= 16'} - - chokidar@3.6.0: - resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} - engines: {node: '>= 8.10.0'} - - code-block-writer@13.0.2: - resolution: {integrity: sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - - colorette@2.0.20: - resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} - - combined-stream@1.0.8: - resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} - engines: {node: '>= 0.8'} - - commander@12.1.0: - resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} - engines: {node: '>=18'} - - commondir@1.0.1: - resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} - - commonmark@0.28.1: - resolution: {integrity: sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==} - hasBin: true - - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - - cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} - engines: {node: '>= 8'} - - dateformat@4.6.3: - resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} - - debug@4.3.5: - resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - deep-eql@5.0.2: - resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} - engines: {node: '>=6'} - - deep-is@0.1.4: - resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - - delayed-stream@1.0.0: - resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} - engines: {node: '>=0.4.0'} - - dir-glob@3.0.1: - resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} - engines: {node: '>=8'} - - doctrine@3.0.0: - resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} - engines: {node: '>=6.0.0'} - - eastasianwidth@0.2.0: - resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - - emoji-regex@8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - - emoji-regex@9.2.2: - resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - - end-of-stream@1.4.4: - resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} - - entities@1.1.2: - resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} - - esbuild@0.21.5: - resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} - engines: {node: '>=12'} - hasBin: true - - escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - - eslint-config-prettier@9.1.0: - resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} - hasBin: true - peerDependencies: - eslint: '>=7.0.0' - - eslint-plugin-prettier@5.2.1: - resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - '@types/eslint': '>=8.0.0' - eslint: '>=8.0.0' - eslint-config-prettier: '*' - prettier: '>=3.0.0' - peerDependenciesMeta: - '@types/eslint': - optional: true - eslint-config-prettier: - optional: true - - eslint-scope@7.2.2: - resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - eslint-visitor-keys@3.4.3: - resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - hasBin: true - - espree@9.6.1: - resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - - esquery@1.6.0: - resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} - engines: {node: '>=0.10'} - - esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} - engines: {node: '>=4.0'} - - estraverse@5.3.0: - resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} - engines: {node: '>=4.0'} - - estree-walker@2.0.2: - resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - - estree-walker@3.0.3: - resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - - esutils@2.0.3: - resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} - engines: {node: '>=0.10.0'} - - event-target-shim@5.0.1: - resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} - engines: {node: '>=6'} - - events@3.3.0: - resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} - engines: {node: '>=0.8.x'} - - execa@8.0.1: - resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} - engines: {node: '>=16.17'} - - fast-copy@3.0.2: - resolution: {integrity: sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==} - - fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - - fast-diff@1.3.0: - resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} - - fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} - engines: {node: '>=8.6.0'} - - fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - - fast-levenshtein@2.0.6: - resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - - fast-redact@3.5.0: - resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==} - engines: {node: '>=6'} - - fast-safe-stringify@2.1.1: - resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} - - fastq@1.17.1: - resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} - - file-entry-cache@6.0.1: - resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} - engines: {node: ^10.12.0 || >=12.0.0} - - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} - - find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - - flat-cache@3.2.0: - resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} - engines: {node: ^10.12.0 || >=12.0.0} - - flatted@3.3.1: - resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} - - foreground-child@3.2.1: - resolution: {integrity: sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==} - engines: {node: '>=14'} - - form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} - engines: {node: '>= 6'} - - front-matter@4.0.2: - resolution: {integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==} - - fs-extra@11.2.0: - resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} - engines: {node: '>=14.14'} - - fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - - fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - - get-func-name@2.0.2: - resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} - - get-stream@8.0.1: - resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} - engines: {node: '>=16'} - - get-tsconfig@4.7.6: - resolution: {integrity: sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==} - - glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - - glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - - glob@10.4.5: - resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} - hasBin: true - - glob@11.0.0: - resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} - engines: {node: 20 || >=22} - hasBin: true - - glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported - - globals@13.24.0: - resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} - engines: {node: '>=8'} - - globby@11.1.0: - resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} - engines: {node: '>=10'} - - graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - - graphemer@1.4.0: - resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} - - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - - help-me@5.0.0: - resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} - - human-signals@5.0.0: - resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} - engines: {node: '>=16.17.0'} - - husky@9.1.1: - resolution: {integrity: sha512-fCqlqLXcBnXa/TJXmT93/A36tJsjdJkibQ1MuIiFyCCYUlpYpIaj2mv1w+3KR6Rzu1IC3slFTje5f6DUp2A2rg==} - engines: {node: '>=18'} - hasBin: true - - ieee754@1.2.1: - resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - - ignore@5.3.1: - resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} - engines: {node: '>= 4'} - - import-fresh@3.3.0: - resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} - engines: {node: '>=6'} - - imurmurhash@0.1.4: - resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} - engines: {node: '>=0.8.19'} - - inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - - inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - - is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} - engines: {node: '>=8'} - - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-fullwidth-code-point@3.0.0: - resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} - engines: {node: '>=8'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-path-inside@3.0.3: - resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} - engines: {node: '>=8'} - - is-reference@1.2.1: - resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} - - is-stream@3.0.0: - resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - jackspeak@3.4.3: - resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - - jackspeak@4.0.1: - resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==} - engines: {node: 20 || >=22} - - joycon@3.1.1: - resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} - engines: {node: '>=10'} - - js-yaml@3.14.1: - resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} - hasBin: true - - js-yaml@4.1.0: - resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} - hasBin: true - - json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - - json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - - json-stable-stringify-without-jsonify@1.0.1: - resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - - jsonfile@6.1.0: - resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} - - keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - - levn@0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} - engines: {node: '>= 0.8.0'} - - locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - - loupe@3.1.1: - resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} - - lru-cache@10.4.3: - resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} - - lru-cache@11.0.0: - resolution: {integrity: sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==} - engines: {node: 20 || >=22} - - magic-string@0.30.10: - resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==} - - marked@13.0.2: - resolution: {integrity: sha512-J6CPjP8pS5sgrRqxVRvkCIkZ6MFdRIjDkwUwgJ9nL2fbmM6qGQeB2C16hi8Cc9BOzj6xXzy0jyi0iPIfnMHYzA==} - engines: {node: '>= 18'} - hasBin: true - - mdurl@1.0.1: - resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} - - merge-stream@2.0.0: - resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} - - merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} - engines: {node: '>= 8'} - - micromatch@4.0.7: - resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} - engines: {node: '>=8.6'} - - mime-db@1.52.0: - resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} - engines: {node: '>= 0.6'} - - mime-types@2.1.35: - resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} - engines: {node: '>= 0.6'} - - mimic-fn@4.0.0: - resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} - engines: {node: '>=12'} - - minimatch@10.0.1: - resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} - engines: {node: 20 || >=22} - - minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - - minimatch@9.0.5: - resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} - engines: {node: '>=16 || 14 >=14.17'} - - minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - - minipass@7.1.2: - resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} - engines: {node: '>=16 || 14 >=14.17'} - - mkdirp@3.0.1: - resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} - engines: {node: '>=10'} - hasBin: true - - ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - - nanoid@3.3.7: - resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - - natural-compare@1.4.0: - resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - - node-fetch@2.7.0: - resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} - engines: {node: 4.x || >=6.0.0} - peerDependencies: - encoding: ^0.1.0 - peerDependenciesMeta: - encoding: - optional: true - - normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - - npm-run-path@5.3.0: - resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - on-exit-leak-free@2.1.2: - resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} - engines: {node: '>=14.0.0'} - - once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} - - onchange@7.1.0: - resolution: {integrity: sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==} - hasBin: true - - onetime@6.0.0: - resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} - engines: {node: '>=12'} - - optionator@0.9.4: - resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} - engines: {node: '>= 0.8.0'} - - p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - - p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - - package-json-from-dist@1.0.0: - resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} - - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - - path-browserify@1.0.1: - resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} - - path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - - path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} - engines: {node: '>=0.10.0'} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - - path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - - path-scurry@1.11.1: - resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} - engines: {node: '>=16 || 14 >=14.18'} - - path-scurry@2.0.0: - resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} - engines: {node: 20 || >=22} - - path-type@4.0.0: - resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} - engines: {node: '>=8'} - - pathe@1.1.2: - resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - - pathval@2.0.0: - resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} - engines: {node: '>= 14.16'} - - picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} - - picomatch@2.3.1: - resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} - engines: {node: '>=8.6'} - - pino-abstract-transport@1.2.0: - resolution: {integrity: sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==} - - pino-pretty@11.2.1: - resolution: {integrity: sha512-O05NuD9tkRasFRWVaF/uHLOvoRDFD7tb5VMertr78rbsYFjYp48Vg3477EshVAF5eZaEw+OpDl/tu+B0R5o+7g==} - hasBin: true - - pino-std-serializers@7.0.0: - resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==} - - pino@9.3.1: - resolution: {integrity: sha512-afSfrq/hUiW/MFmQcLEwV9Zh8Ry6MrMTOyBU53o/fc0gEl+1OZ/Fks/xQCM2nOC0C/OfDtQMnT2d8c3kpcfSzA==} - hasBin: true - - postcss@8.4.39: - resolution: {integrity: sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==} - engines: {node: ^10 || ^12 || >=14} - - prelude-ls@1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} - engines: {node: '>= 0.8.0'} - - prettier-linter-helpers@1.0.0: - resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} - engines: {node: '>=6.0.0'} - - prettier@3.3.2: - resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==} - engines: {node: '>=14'} - hasBin: true - - process-warning@3.0.0: - resolution: {integrity: sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==} - - process@0.11.10: - resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} - engines: {node: '>= 0.6.0'} - - pump@3.0.0: - resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} - - punycode@2.3.1: - resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} - engines: {node: '>=6'} - - queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - - quick-format-unescaped@4.0.4: - resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} - - readable-stream@4.5.2: - resolution: {integrity: sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} - engines: {node: '>=8.10.0'} - - real-require@0.2.0: - resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} - engines: {node: '>= 12.13.0'} - - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - - resolve-pkg-maps@1.0.0: - resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - - retry@0.13.1: - resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} - engines: {node: '>= 4'} - - reusify@1.0.4: - resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - - rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported - hasBin: true - - rimraf@5.0.9: - resolution: {integrity: sha512-3i7b8OcswU6CpU8Ej89quJD4O98id7TtVM5U4Mybh84zQXdrFmDLouWBEEaD/QfO3gDDfH+AGFCGsR7kngzQnA==} - engines: {node: 14 >=14.20 || 16 >=16.20 || >=18} - hasBin: true - - rollup@4.19.0: - resolution: {integrity: sha512-5r7EYSQIowHsK4eTZ0Y81qpZuJz+MUuYeqmmYmRMl1nwhdmbiYqt5jwzf6u7wyOzJgYqtCRMtVRKOtHANBz7rA==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - - run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - - safe-buffer@5.2.1: - resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - - safe-stable-stringify@2.4.3: - resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} - engines: {node: '>=10'} - - secure-json-parse@2.7.0: - resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} - - semver@7.6.3: - resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} - engines: {node: '>=10'} - hasBin: true - - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - - siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - - slash@3.0.0: - resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} - engines: {node: '>=8'} - - sonic-boom@4.0.1: - resolution: {integrity: sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==} - - source-map-js@1.2.0: - resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} - engines: {node: '>=0.10.0'} - - split2@4.2.0: - resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} - engines: {node: '>= 10.x'} - - sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - - std-env@3.7.0: - resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} - - string-width@4.2.3: - resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} - engines: {node: '>=8'} - - string-width@5.1.2: - resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} - engines: {node: '>=12'} - - string.prototype.repeat@0.2.0: - resolution: {integrity: sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==} - - string_decoder@1.3.0: - resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} - - strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} - - strip-ansi@7.1.0: - resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} - engines: {node: '>=12'} - - strip-final-newline@3.0.0: - resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} - engines: {node: '>=12'} - - strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - - synckit@0.9.1: - resolution: {integrity: sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==} - engines: {node: ^14.18.0 || >=16.0.0} - - text-table@0.2.0: - resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} - - thread-stream@3.1.0: - resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} - - tinybench@2.8.0: - resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==} - - tinypool@1.0.0: - resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} - engines: {node: ^18.0.0 || >=20.0.0} - - tinyrainbow@1.2.0: - resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} - engines: {node: '>=14.0.0'} - - tinyspy@3.0.0: - resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==} - engines: {node: '>=14.0.0'} - - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - - tr46@0.0.3: - resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - - tree-kill@1.2.2: - resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} - hasBin: true - - ts-api-utils@1.3.0: - resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} - engines: {node: '>=16'} - peerDependencies: - typescript: '>=4.2.0' - - ts-morph@23.0.0: - resolution: {integrity: sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==} - - tslib@2.6.3: - resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} - - tsx@4.16.2: - resolution: {integrity: sha512-C1uWweJDgdtX2x600HjaFaucXTilT7tgUZHbOE4+ypskZ1OP8CRCSDkCxG6Vya9EwaFIVagWwpaVAn5wzypaqQ==} - engines: {node: '>=18.0.0'} - hasBin: true - - type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} - - type-fest@0.20.2: - resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} - engines: {node: '>=10'} - - typescript-eslint@7.17.0: - resolution: {integrity: sha512-spQxsQvPguduCUfyUvLItvKqK3l8KJ/kqs5Pb/URtzQ5AC53Z6us32St37rpmlt2uESG23lOFpV4UErrmy4dZQ==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - eslint: ^8.56.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - typescript@5.5.3: - resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==} - engines: {node: '>=14.17'} - hasBin: true - - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - - universalify@2.0.1: - resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} - engines: {node: '>= 10.0.0'} - - uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - - vite-node@2.0.4: - resolution: {integrity: sha512-ZpJVkxcakYtig5iakNeL7N3trufe3M6vGuzYAr4GsbCTwobDeyPJpE4cjDhhPluv8OvQCFzu2LWp6GkoKRITXA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - - vite@5.3.4: - resolution: {integrity: sha512-Cw+7zL3ZG9/NZBB8C+8QbQZmR54GwqIz+WMI4b3JgdYJvX+ny9AjJXqkGQlDXSXRP9rP0B4tbciRMOVEKulVOA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - - vitest@2.0.4: - resolution: {integrity: sha512-luNLDpfsnxw5QSW4bISPe6tkxVvv5wn2BBs/PuDRkhXZ319doZyLOBr1sjfB5yCEpTiU7xCAdViM8TNVGPwoog==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 2.0.4 - '@vitest/ui': 2.0.4 - happy-dom: '*' - jsdom: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@types/node': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - - webidl-conversions@3.0.1: - resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - - whatwg-url@5.0.0: - resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} - - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} - hasBin: true - - word-wrap@1.2.5: - resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} - engines: {node: '>=0.10.0'} - - wrap-ansi@7.0.0: - resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} - engines: {node: '>=10'} - - wrap-ansi@8.1.0: - resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} - engines: {node: '>=12'} - - wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - - yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} - -snapshots: - - '@ampproject/remapping@2.3.0': - dependencies: - '@jridgewell/gen-mapping': 0.3.5 - '@jridgewell/trace-mapping': 0.3.25 - - '@azure-tools/openapi-tools-common@1.2.2': - dependencies: - '@types/async-retry': 1.4.8 - '@types/commonmark': 0.27.9 - '@types/node-fetch': 2.6.11 - async-retry: 1.3.3 - commonmark: 0.28.1 - front-matter: 4.0.2 - node-fetch: 2.7.0 - tslib: 2.6.3 - transitivePeerDependencies: - - encoding - - '@blakeembrey/deque@1.0.5': {} - - '@blakeembrey/template@1.1.0': {} - - '@esbuild/aix-ppc64@0.21.5': - optional: true - - '@esbuild/android-arm64@0.21.5': - optional: true - - '@esbuild/android-arm@0.21.5': - optional: true - - '@esbuild/android-x64@0.21.5': - optional: true - - '@esbuild/darwin-arm64@0.21.5': - optional: true - - '@esbuild/darwin-x64@0.21.5': - optional: true - - '@esbuild/freebsd-arm64@0.21.5': - optional: true - - '@esbuild/freebsd-x64@0.21.5': - optional: true - - '@esbuild/linux-arm64@0.21.5': - optional: true - - '@esbuild/linux-arm@0.21.5': - optional: true - - '@esbuild/linux-ia32@0.21.5': - optional: true - - '@esbuild/linux-loong64@0.21.5': - optional: true - - '@esbuild/linux-mips64el@0.21.5': - optional: true - - '@esbuild/linux-ppc64@0.21.5': - optional: true - - '@esbuild/linux-riscv64@0.21.5': - optional: true - - '@esbuild/linux-s390x@0.21.5': - optional: true - - '@esbuild/linux-x64@0.21.5': - optional: true - - '@esbuild/netbsd-x64@0.21.5': - optional: true - - '@esbuild/openbsd-x64@0.21.5': - optional: true - - '@esbuild/sunos-x64@0.21.5': - optional: true - - '@esbuild/win32-arm64@0.21.5': - optional: true - - '@esbuild/win32-ia32@0.21.5': - optional: true - - '@esbuild/win32-x64@0.21.5': - optional: true - - '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': - dependencies: - eslint: 8.57.0 - eslint-visitor-keys: 3.4.3 - - '@eslint-community/regexpp@4.11.0': {} - - '@eslint/eslintrc@2.1.4': - dependencies: - ajv: 6.12.6 - debug: 4.3.5 - espree: 9.6.1 - globals: 13.24.0 - ignore: 5.3.1 - import-fresh: 3.3.0 - js-yaml: 4.1.0 - minimatch: 3.1.2 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@8.57.0': {} - - '@humanwhocodes/config-array@0.11.14': - dependencies: - '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.5 - minimatch: 3.1.2 - transitivePeerDependencies: - - supports-color - - '@humanwhocodes/module-importer@1.0.1': {} - - '@humanwhocodes/object-schema@2.0.3': {} - - '@isaacs/cliui@8.0.2': - dependencies: - string-width: 5.1.2 - string-width-cjs: string-width@4.2.3 - strip-ansi: 7.1.0 - strip-ansi-cjs: strip-ansi@6.0.1 - wrap-ansi: 8.1.0 - wrap-ansi-cjs: wrap-ansi@7.0.0 - - '@jridgewell/gen-mapping@0.3.5': - dependencies: - '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.5.0 - '@jridgewell/trace-mapping': 0.3.25 - - '@jridgewell/resolve-uri@3.1.2': {} - - '@jridgewell/set-array@1.2.1': {} - - '@jridgewell/sourcemap-codec@1.5.0': {} - - '@jridgewell/trace-mapping@0.3.25': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.0 - - '@nodelib/fs.scandir@2.1.5': - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 - - '@nodelib/fs.stat@2.0.5': {} - - '@nodelib/fs.walk@1.2.8': - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.17.1 - - '@pkgjs/parseargs@0.11.0': - optional: true - - '@pkgr/core@0.1.1': {} - - '@rollup/plugin-commonjs@26.0.1(rollup@4.19.0)': - dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.19.0) - commondir: 1.0.1 - estree-walker: 2.0.2 - glob: 10.4.5 - is-reference: 1.2.1 - magic-string: 0.30.10 - optionalDependencies: - rollup: 4.19.0 - - '@rollup/pluginutils@5.1.0(rollup@4.19.0)': - dependencies: - '@types/estree': 1.0.5 - estree-walker: 2.0.2 - picomatch: 2.3.1 - optionalDependencies: - rollup: 4.19.0 - - '@rollup/rollup-android-arm-eabi@4.19.0': - optional: true - - '@rollup/rollup-android-arm64@4.19.0': - optional: true - - '@rollup/rollup-darwin-arm64@4.19.0': - optional: true - - '@rollup/rollup-darwin-x64@4.19.0': - optional: true - - '@rollup/rollup-linux-arm-gnueabihf@4.19.0': - optional: true - - '@rollup/rollup-linux-arm-musleabihf@4.19.0': - optional: true - - '@rollup/rollup-linux-arm64-gnu@4.19.0': - optional: true - - '@rollup/rollup-linux-arm64-musl@4.19.0': - optional: true - - '@rollup/rollup-linux-powerpc64le-gnu@4.19.0': - optional: true - - '@rollup/rollup-linux-riscv64-gnu@4.19.0': - optional: true - - '@rollup/rollup-linux-s390x-gnu@4.19.0': - optional: true - - '@rollup/rollup-linux-x64-gnu@4.19.0': - optional: true - - '@rollup/rollup-linux-x64-musl@4.19.0': - optional: true - - '@rollup/rollup-win32-arm64-msvc@4.19.0': - optional: true - - '@rollup/rollup-win32-ia32-msvc@4.19.0': - optional: true - - '@rollup/rollup-win32-x64-msvc@4.19.0': - optional: true - - '@ts-morph/common@0.24.0': - dependencies: - fast-glob: 3.3.2 - minimatch: 9.0.5 - mkdirp: 3.0.1 - path-browserify: 1.0.1 - - '@types/async-retry@1.4.8': - dependencies: - '@types/retry': 0.12.5 - - '@types/commonmark@0.27.9': {} - - '@types/eslint-scope@3.7.7': - dependencies: - '@types/eslint': 8.56.11 - '@types/estree': 1.0.5 - - '@types/eslint@8.56.11': - dependencies: - '@types/estree': 1.0.5 - '@types/json-schema': 7.0.15 - - '@types/estree@1.0.5': {} - - '@types/fs-extra@11.0.4': - dependencies: - '@types/jsonfile': 6.1.4 - '@types/node': 20.14.11 - - '@types/json-schema@7.0.15': {} - - '@types/jsonfile@6.1.4': - dependencies: - '@types/node': 20.14.11 - - '@types/node-fetch@2.6.11': - dependencies: - '@types/node': 20.14.11 - form-data: 4.0.0 - - '@types/node@20.14.11': - dependencies: - undici-types: 5.26.5 - - '@types/retry@0.12.5': {} - - '@typescript-eslint/eslint-plugin@7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.17.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/scope-manager': 7.17.0 - '@typescript-eslint/type-utils': 7.17.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/visitor-keys': 7.17.0 - eslint: 8.57.0 - graphemer: 1.4.0 - ignore: 5.3.1 - natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.3) - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@typescript-eslint/scope-manager': 7.17.0 - '@typescript-eslint/types': 7.17.0 - '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.3) - '@typescript-eslint/visitor-keys': 7.17.0 - debug: 4.3.5 - eslint: 8.57.0 - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/scope-manager@7.17.0': - dependencies: - '@typescript-eslint/types': 7.17.0 - '@typescript-eslint/visitor-keys': 7.17.0 - - '@typescript-eslint/type-utils@7.17.0(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.3) - '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.3) - debug: 4.3.5 - eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.5.3) - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/types@7.17.0': {} - - '@typescript-eslint/typescript-estree@7.17.0(typescript@5.5.3)': - dependencies: - '@typescript-eslint/types': 7.17.0 - '@typescript-eslint/visitor-keys': 7.17.0 - debug: 4.3.5 - globby: 11.1.0 - is-glob: 4.0.3 - minimatch: 9.0.5 - semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.5.3) - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/utils@7.17.0(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@typescript-eslint/scope-manager': 7.17.0 - '@typescript-eslint/types': 7.17.0 - '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.3) - eslint: 8.57.0 - transitivePeerDependencies: - - supports-color - - typescript - - '@typescript-eslint/visitor-keys@7.17.0': - dependencies: - '@typescript-eslint/types': 7.17.0 - eslint-visitor-keys: 3.4.3 - - '@ungap/structured-clone@1.2.0': {} - - '@vitest/expect@2.0.4': - dependencies: - '@vitest/spy': 2.0.4 - '@vitest/utils': 2.0.4 - chai: 5.1.1 - tinyrainbow: 1.2.0 - - '@vitest/pretty-format@2.0.4': - dependencies: - tinyrainbow: 1.2.0 - - '@vitest/runner@2.0.4': - dependencies: - '@vitest/utils': 2.0.4 - pathe: 1.1.2 - - '@vitest/snapshot@2.0.4': - dependencies: - '@vitest/pretty-format': 2.0.4 - magic-string: 0.30.10 - pathe: 1.1.2 - - '@vitest/spy@2.0.4': - dependencies: - tinyspy: 3.0.0 - - '@vitest/utils@2.0.4': - dependencies: - '@vitest/pretty-format': 2.0.4 - estree-walker: 3.0.3 - loupe: 3.1.1 - tinyrainbow: 1.2.0 - - abort-controller@3.0.0: - dependencies: - event-target-shim: 5.0.1 - - acorn-jsx@5.3.2(acorn@8.12.1): - dependencies: - acorn: 8.12.1 - - acorn@8.12.1: {} - - ajv@6.12.6: - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 - - ansi-regex@5.0.1: {} - - ansi-regex@6.0.1: {} - - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - ansi-styles@6.2.1: {} - - anymatch@3.1.3: - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.1 - - arg@4.1.3: {} - - argparse@1.0.10: - dependencies: - sprintf-js: 1.0.3 - - argparse@2.0.1: {} - - array-union@2.1.0: {} - - assertion-error@2.0.1: {} - - async-retry@1.3.3: - dependencies: - retry: 0.13.1 - - asynckit@0.4.0: {} - - atomic-sleep@1.0.0: {} - - balanced-match@1.0.2: {} - - base64-js@1.5.1: {} - - binary-extensions@2.3.0: {} - - brace-expansion@1.1.11: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - - brace-expansion@2.0.1: - dependencies: - balanced-match: 1.0.2 - - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - - buffer@6.0.3: - dependencies: - base64-js: 1.5.1 - ieee754: 1.2.1 - - cac@6.7.14: {} - - callsites@3.1.0: {} - - chai@5.1.1: - dependencies: - assertion-error: 2.0.1 - check-error: 2.1.1 - deep-eql: 5.0.2 - loupe: 3.1.1 - pathval: 2.0.0 - - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - - check-error@2.1.1: {} - - chokidar@3.6.0: - dependencies: - anymatch: 3.1.3 - braces: 3.0.3 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - - code-block-writer@13.0.2: {} - - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - - colorette@2.0.20: {} - - combined-stream@1.0.8: - dependencies: - delayed-stream: 1.0.0 - - commander@12.1.0: {} - - commondir@1.0.1: {} - - commonmark@0.28.1: - dependencies: - entities: 1.1.2 - mdurl: 1.0.1 - minimist: 1.2.8 - string.prototype.repeat: 0.2.0 - - concat-map@0.0.1: {} - - cross-spawn@7.0.3: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - - dateformat@4.6.3: {} - - debug@4.3.5: - dependencies: - ms: 2.1.2 - - deep-eql@5.0.2: {} - - deep-is@0.1.4: {} - - delayed-stream@1.0.0: {} - - dir-glob@3.0.1: - dependencies: - path-type: 4.0.0 - - doctrine@3.0.0: - dependencies: - esutils: 2.0.3 - - eastasianwidth@0.2.0: {} - - emoji-regex@8.0.0: {} - - emoji-regex@9.2.2: {} - - end-of-stream@1.4.4: - dependencies: - once: 1.4.0 - - entities@1.1.2: {} - - esbuild@0.21.5: - optionalDependencies: - '@esbuild/aix-ppc64': 0.21.5 - '@esbuild/android-arm': 0.21.5 - '@esbuild/android-arm64': 0.21.5 - '@esbuild/android-x64': 0.21.5 - '@esbuild/darwin-arm64': 0.21.5 - '@esbuild/darwin-x64': 0.21.5 - '@esbuild/freebsd-arm64': 0.21.5 - '@esbuild/freebsd-x64': 0.21.5 - '@esbuild/linux-arm': 0.21.5 - '@esbuild/linux-arm64': 0.21.5 - '@esbuild/linux-ia32': 0.21.5 - '@esbuild/linux-loong64': 0.21.5 - '@esbuild/linux-mips64el': 0.21.5 - '@esbuild/linux-ppc64': 0.21.5 - '@esbuild/linux-riscv64': 0.21.5 - '@esbuild/linux-s390x': 0.21.5 - '@esbuild/linux-x64': 0.21.5 - '@esbuild/netbsd-x64': 0.21.5 - '@esbuild/openbsd-x64': 0.21.5 - '@esbuild/sunos-x64': 0.21.5 - '@esbuild/win32-arm64': 0.21.5 - '@esbuild/win32-ia32': 0.21.5 - '@esbuild/win32-x64': 0.21.5 - - escape-string-regexp@4.0.0: {} - - eslint-config-prettier@9.1.0(eslint@8.57.0): - dependencies: - eslint: 8.57.0 - - eslint-plugin-prettier@5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2): - dependencies: - eslint: 8.57.0 - prettier: 3.3.2 - prettier-linter-helpers: 1.0.0 - synckit: 0.9.1 - optionalDependencies: - '@types/eslint': 8.56.11 - eslint-config-prettier: 9.1.0(eslint@8.57.0) - - eslint-scope@7.2.2: - dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 - - eslint-visitor-keys@3.4.3: {} - - eslint@8.57.0: - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 - '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 - '@humanwhocodes/module-importer': 1.0.1 - '@nodelib/fs.walk': 1.2.8 - '@ungap/structured-clone': 1.2.0 - ajv: 6.12.6 - chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.5 - doctrine: 3.0.0 - escape-string-regexp: 4.0.0 - eslint-scope: 7.2.2 - eslint-visitor-keys: 3.4.3 - espree: 9.6.1 - esquery: 1.6.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 6.0.1 - find-up: 5.0.0 - glob-parent: 6.0.2 - globals: 13.24.0 - graphemer: 1.4.0 - ignore: 5.3.1 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - is-path-inside: 3.0.3 - js-yaml: 4.1.0 - json-stable-stringify-without-jsonify: 1.0.1 - levn: 0.4.1 - lodash.merge: 4.6.2 - minimatch: 3.1.2 - natural-compare: 1.4.0 - optionator: 0.9.4 - strip-ansi: 6.0.1 - text-table: 0.2.0 - transitivePeerDependencies: - - supports-color - - espree@9.6.1: - dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) - eslint-visitor-keys: 3.4.3 - - esprima@4.0.1: {} - - esquery@1.6.0: - dependencies: - estraverse: 5.3.0 - - esrecurse@4.3.0: - dependencies: - estraverse: 5.3.0 - - estraverse@5.3.0: {} - - estree-walker@2.0.2: {} - - estree-walker@3.0.3: - dependencies: - '@types/estree': 1.0.5 - - esutils@2.0.3: {} - - event-target-shim@5.0.1: {} - - events@3.3.0: {} - - execa@8.0.1: - dependencies: - cross-spawn: 7.0.3 - get-stream: 8.0.1 - human-signals: 5.0.0 - is-stream: 3.0.0 - merge-stream: 2.0.0 - npm-run-path: 5.3.0 - onetime: 6.0.0 - signal-exit: 4.1.0 - strip-final-newline: 3.0.0 - - fast-copy@3.0.2: {} - - fast-deep-equal@3.1.3: {} - - fast-diff@1.3.0: {} - - fast-glob@3.3.2: - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.7 - - fast-json-stable-stringify@2.1.0: {} - - fast-levenshtein@2.0.6: {} - - fast-redact@3.5.0: {} - - fast-safe-stringify@2.1.1: {} - - fastq@1.17.1: - dependencies: - reusify: 1.0.4 - - file-entry-cache@6.0.1: - dependencies: - flat-cache: 3.2.0 - - fill-range@7.1.1: - dependencies: - to-regex-range: 5.0.1 - - find-up@5.0.0: - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - - flat-cache@3.2.0: - dependencies: - flatted: 3.3.1 - keyv: 4.5.4 - rimraf: 3.0.2 - - flatted@3.3.1: {} - - foreground-child@3.2.1: - dependencies: - cross-spawn: 7.0.3 - signal-exit: 4.1.0 - - form-data@4.0.0: - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - - front-matter@4.0.2: - dependencies: - js-yaml: 3.14.1 - - fs-extra@11.2.0: - dependencies: - graceful-fs: 4.2.11 - jsonfile: 6.1.0 - universalify: 2.0.1 - - fs.realpath@1.0.0: {} - - fsevents@2.3.3: - optional: true - - get-func-name@2.0.2: {} - - get-stream@8.0.1: {} - - get-tsconfig@4.7.6: - dependencies: - resolve-pkg-maps: 1.0.0 - - glob-parent@5.1.2: - dependencies: - is-glob: 4.0.3 - - glob-parent@6.0.2: - dependencies: - is-glob: 4.0.3 - - glob@10.4.5: - dependencies: - foreground-child: 3.2.1 - jackspeak: 3.4.3 - minimatch: 9.0.5 - minipass: 7.1.2 - package-json-from-dist: 1.0.0 - path-scurry: 1.11.1 - - glob@11.0.0: - dependencies: - foreground-child: 3.2.1 - jackspeak: 4.0.1 - minimatch: 10.0.1 - minipass: 7.1.2 - package-json-from-dist: 1.0.0 - path-scurry: 2.0.0 - - glob@7.2.3: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - - globals@13.24.0: - dependencies: - type-fest: 0.20.2 - - globby@11.1.0: - dependencies: - array-union: 2.1.0 - dir-glob: 3.0.1 - fast-glob: 3.3.2 - ignore: 5.3.1 - merge2: 1.4.1 - slash: 3.0.0 - - graceful-fs@4.2.11: {} - - graphemer@1.4.0: {} - - has-flag@4.0.0: {} - - help-me@5.0.0: {} - - human-signals@5.0.0: {} - - husky@9.1.1: {} - - ieee754@1.2.1: {} - - ignore@5.3.1: {} - - import-fresh@3.3.0: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - - imurmurhash@0.1.4: {} - - inflight@1.0.6: - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - - inherits@2.0.4: {} - - is-binary-path@2.1.0: - dependencies: - binary-extensions: 2.3.0 - - is-extglob@2.1.1: {} - - is-fullwidth-code-point@3.0.0: {} - - is-glob@4.0.3: - dependencies: - is-extglob: 2.1.1 - - is-number@7.0.0: {} - - is-path-inside@3.0.3: {} - - is-reference@1.2.1: - dependencies: - '@types/estree': 1.0.5 - - is-stream@3.0.0: {} - - isexe@2.0.0: {} - - jackspeak@3.4.3: - dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 - - jackspeak@4.0.1: - dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 - - joycon@3.1.1: {} - - js-yaml@3.14.1: - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - - js-yaml@4.1.0: - dependencies: - argparse: 2.0.1 - - json-buffer@3.0.1: {} - - json-schema-traverse@0.4.1: {} - - json-stable-stringify-without-jsonify@1.0.1: {} - - jsonfile@6.1.0: - dependencies: - universalify: 2.0.1 - optionalDependencies: - graceful-fs: 4.2.11 - - keyv@4.5.4: - dependencies: - json-buffer: 3.0.1 - - levn@0.4.1: - dependencies: - prelude-ls: 1.2.1 - type-check: 0.4.0 - - locate-path@6.0.0: - dependencies: - p-locate: 5.0.0 - - lodash.merge@4.6.2: {} - - loupe@3.1.1: - dependencies: - get-func-name: 2.0.2 - - lru-cache@10.4.3: {} - - lru-cache@11.0.0: {} - - magic-string@0.30.10: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 - - marked@13.0.2: {} - - mdurl@1.0.1: {} - - merge-stream@2.0.0: {} - - merge2@1.4.1: {} - - micromatch@4.0.7: - dependencies: - braces: 3.0.3 - picomatch: 2.3.1 - - mime-db@1.52.0: {} - - mime-types@2.1.35: - dependencies: - mime-db: 1.52.0 - - mimic-fn@4.0.0: {} - - minimatch@10.0.1: - dependencies: - brace-expansion: 2.0.1 - - minimatch@3.1.2: - dependencies: - brace-expansion: 1.1.11 - - minimatch@9.0.5: - dependencies: - brace-expansion: 2.0.1 - - minimist@1.2.8: {} - - minipass@7.1.2: {} - - mkdirp@3.0.1: {} - - ms@2.1.2: {} - - nanoid@3.3.7: {} - - natural-compare@1.4.0: {} - - node-fetch@2.7.0: - dependencies: - whatwg-url: 5.0.0 - - normalize-path@3.0.0: {} - - npm-run-path@5.3.0: - dependencies: - path-key: 4.0.0 - - on-exit-leak-free@2.1.2: {} - - once@1.4.0: - dependencies: - wrappy: 1.0.2 - - onchange@7.1.0: - dependencies: - '@blakeembrey/deque': 1.0.5 - '@blakeembrey/template': 1.1.0 - arg: 4.1.3 - chokidar: 3.6.0 - cross-spawn: 7.0.3 - ignore: 5.3.1 - tree-kill: 1.2.2 - - onetime@6.0.0: - dependencies: - mimic-fn: 4.0.0 - - optionator@0.9.4: - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - word-wrap: 1.2.5 - - p-limit@3.1.0: - dependencies: - yocto-queue: 0.1.0 - - p-locate@5.0.0: - dependencies: - p-limit: 3.1.0 - - package-json-from-dist@1.0.0: {} - - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - - path-browserify@1.0.1: {} - - path-exists@4.0.0: {} - - path-is-absolute@1.0.1: {} - - path-key@3.1.1: {} - - path-key@4.0.0: {} - - path-scurry@1.11.1: - dependencies: - lru-cache: 10.4.3 - minipass: 7.1.2 - - path-scurry@2.0.0: - dependencies: - lru-cache: 11.0.0 - minipass: 7.1.2 - - path-type@4.0.0: {} - - pathe@1.1.2: {} - - pathval@2.0.0: {} - - picocolors@1.0.1: {} - - picomatch@2.3.1: {} - - pino-abstract-transport@1.2.0: - dependencies: - readable-stream: 4.5.2 - split2: 4.2.0 - - pino-pretty@11.2.1: - dependencies: - colorette: 2.0.20 - dateformat: 4.6.3 - fast-copy: 3.0.2 - fast-safe-stringify: 2.1.1 - help-me: 5.0.0 - joycon: 3.1.1 - minimist: 1.2.8 - on-exit-leak-free: 2.1.2 - pino-abstract-transport: 1.2.0 - pump: 3.0.0 - readable-stream: 4.5.2 - secure-json-parse: 2.7.0 - sonic-boom: 4.0.1 - strip-json-comments: 3.1.1 - - pino-std-serializers@7.0.0: {} - - pino@9.3.1: - dependencies: - atomic-sleep: 1.0.0 - fast-redact: 3.5.0 - on-exit-leak-free: 2.1.2 - pino-abstract-transport: 1.2.0 - pino-std-serializers: 7.0.0 - process-warning: 3.0.0 - quick-format-unescaped: 4.0.4 - real-require: 0.2.0 - safe-stable-stringify: 2.4.3 - sonic-boom: 4.0.1 - thread-stream: 3.1.0 - - postcss@8.4.39: - dependencies: - nanoid: 3.3.7 - picocolors: 1.0.1 - source-map-js: 1.2.0 - - prelude-ls@1.2.1: {} - - prettier-linter-helpers@1.0.0: - dependencies: - fast-diff: 1.3.0 - - prettier@3.3.2: {} - - process-warning@3.0.0: {} - - process@0.11.10: {} - - pump@3.0.0: - dependencies: - end-of-stream: 1.4.4 - once: 1.4.0 - - punycode@2.3.1: {} - - queue-microtask@1.2.3: {} - - quick-format-unescaped@4.0.4: {} - - readable-stream@4.5.2: - dependencies: - abort-controller: 3.0.0 - buffer: 6.0.3 - events: 3.3.0 - process: 0.11.10 - string_decoder: 1.3.0 - - readdirp@3.6.0: - dependencies: - picomatch: 2.3.1 - - real-require@0.2.0: {} - - resolve-from@4.0.0: {} - - resolve-pkg-maps@1.0.0: {} - - retry@0.13.1: {} - - reusify@1.0.4: {} - - rimraf@3.0.2: - dependencies: - glob: 7.2.3 - - rimraf@5.0.9: - dependencies: - glob: 10.4.5 - - rollup@4.19.0: - dependencies: - '@types/estree': 1.0.5 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.19.0 - '@rollup/rollup-android-arm64': 4.19.0 - '@rollup/rollup-darwin-arm64': 4.19.0 - '@rollup/rollup-darwin-x64': 4.19.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.19.0 - '@rollup/rollup-linux-arm-musleabihf': 4.19.0 - '@rollup/rollup-linux-arm64-gnu': 4.19.0 - '@rollup/rollup-linux-arm64-musl': 4.19.0 - '@rollup/rollup-linux-powerpc64le-gnu': 4.19.0 - '@rollup/rollup-linux-riscv64-gnu': 4.19.0 - '@rollup/rollup-linux-s390x-gnu': 4.19.0 - '@rollup/rollup-linux-x64-gnu': 4.19.0 - '@rollup/rollup-linux-x64-musl': 4.19.0 - '@rollup/rollup-win32-arm64-msvc': 4.19.0 - '@rollup/rollup-win32-ia32-msvc': 4.19.0 - '@rollup/rollup-win32-x64-msvc': 4.19.0 - fsevents: 2.3.3 - - run-parallel@1.2.0: - dependencies: - queue-microtask: 1.2.3 - - safe-buffer@5.2.1: {} - - safe-stable-stringify@2.4.3: {} - - secure-json-parse@2.7.0: {} - - semver@7.6.3: {} - - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - - siginfo@2.0.0: {} - - signal-exit@4.1.0: {} - - slash@3.0.0: {} - - sonic-boom@4.0.1: - dependencies: - atomic-sleep: 1.0.0 - - source-map-js@1.2.0: {} - - split2@4.2.0: {} - - sprintf-js@1.0.3: {} - - stackback@0.0.2: {} - - std-env@3.7.0: {} - - string-width@4.2.3: - dependencies: - emoji-regex: 8.0.0 - is-fullwidth-code-point: 3.0.0 - strip-ansi: 6.0.1 - - string-width@5.1.2: - dependencies: - eastasianwidth: 0.2.0 - emoji-regex: 9.2.2 - strip-ansi: 7.1.0 - - string.prototype.repeat@0.2.0: {} - - string_decoder@1.3.0: - dependencies: - safe-buffer: 5.2.1 - - strip-ansi@6.0.1: - dependencies: - ansi-regex: 5.0.1 - - strip-ansi@7.1.0: - dependencies: - ansi-regex: 6.0.1 - - strip-final-newline@3.0.0: {} - - strip-json-comments@3.1.1: {} - - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - - synckit@0.9.1: - dependencies: - '@pkgr/core': 0.1.1 - tslib: 2.6.3 - - text-table@0.2.0: {} - - thread-stream@3.1.0: - dependencies: - real-require: 0.2.0 - - tinybench@2.8.0: {} - - tinypool@1.0.0: {} - - tinyrainbow@1.2.0: {} - - tinyspy@3.0.0: {} - - to-regex-range@5.0.1: - dependencies: - is-number: 7.0.0 - - tr46@0.0.3: {} - - tree-kill@1.2.2: {} - - ts-api-utils@1.3.0(typescript@5.5.3): - dependencies: - typescript: 5.5.3 - - ts-morph@23.0.0: - dependencies: - '@ts-morph/common': 0.24.0 - code-block-writer: 13.0.2 - - tslib@2.6.3: {} - - tsx@4.16.2: - dependencies: - esbuild: 0.21.5 - get-tsconfig: 4.7.6 - optionalDependencies: - fsevents: 2.3.3 - - type-check@0.4.0: - dependencies: - prelude-ls: 1.2.1 - - type-fest@0.20.2: {} - - typescript-eslint@7.17.0(eslint@8.57.0)(typescript@5.5.3): - dependencies: - '@typescript-eslint/eslint-plugin': 7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/parser': 7.17.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.3) - eslint: 8.57.0 - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - typescript@5.5.3: {} - - undici-types@5.26.5: {} - - universalify@2.0.1: {} - - uri-js@4.4.1: - dependencies: - punycode: 2.3.1 - - vite-node@2.0.4(@types/node@20.14.11): - dependencies: - cac: 6.7.14 - debug: 4.3.5 - pathe: 1.1.2 - tinyrainbow: 1.2.0 - vite: 5.3.4(@types/node@20.14.11) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - - vite@5.3.4(@types/node@20.14.11): - dependencies: - esbuild: 0.21.5 - postcss: 8.4.39 - rollup: 4.19.0 - optionalDependencies: - '@types/node': 20.14.11 - fsevents: 2.3.3 - - vitest@2.0.4(@types/node@20.14.11): - dependencies: - '@ampproject/remapping': 2.3.0 - '@vitest/expect': 2.0.4 - '@vitest/pretty-format': 2.0.4 - '@vitest/runner': 2.0.4 - '@vitest/snapshot': 2.0.4 - '@vitest/spy': 2.0.4 - '@vitest/utils': 2.0.4 - chai: 5.1.1 - debug: 4.3.5 - execa: 8.0.1 - magic-string: 0.30.10 - pathe: 1.1.2 - std-env: 3.7.0 - tinybench: 2.8.0 - tinypool: 1.0.0 - tinyrainbow: 1.2.0 - vite: 5.3.4(@types/node@20.14.11) - vite-node: 2.0.4(@types/node@20.14.11) - why-is-node-running: 2.3.0 - optionalDependencies: - '@types/node': 20.14.11 - transitivePeerDependencies: - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - - webidl-conversions@3.0.1: {} - - whatwg-url@5.0.0: - dependencies: - tr46: 0.0.3 - webidl-conversions: 3.0.1 - - which@2.0.2: - dependencies: - isexe: 2.0.0 - - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - - word-wrap@1.2.5: {} - - wrap-ansi@7.0.0: - dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - - wrap-ansi@8.1.0: - dependencies: - ansi-styles: 6.2.1 - string-width: 5.1.2 - strip-ansi: 7.1.0 - - wrappy@1.0.2: {} - - yocto-queue@0.1.0: {} From 42446fb1bcd9d1ccf7b49b59172e44006e72dd25 Mon Sep 17 00:00:00 2001 From: wanl Date: Wed, 14 Aug 2024 14:03:41 +0800 Subject: [PATCH 21/35] debug --- .gitignore | 3 ++- .../src/changelog/changelogGenerator.ts | 1 + .../src/llc/apiVersion/apiVersionTypeExtractor.ts | 1 + tools/js-sdk-release-tools/src/utils/logger.ts | 1 - .../ignore-inline-declarations-in-operation-group.ts | 5 +++++ .../src/azure/detect-breaking-changes.ts | 5 ++++- .../src/tests/rest-level-client-rule.test.ts | 11 +++++++---- .../src/utils/ast-utils.ts | 1 + 8 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index fdacc65c4d0..bcd5534e36b 100644 --- a/.gitignore +++ b/.gitignore @@ -513,4 +513,5 @@ src/swift/**/*.xcodeproj/xcuserdata/ tools/apiview/emitters/cadl-apiview/cadl-output/ tools/apiview/emitters/cadl-apiview/temp/ tools/apiview/emitters/typespec-apiview/tsp-output/ -tools/apiview/emitters/typespec-apiview/temp/ \ No newline at end of file +tools/apiview/emitters/typespec-apiview/temp/ +tools/js-sdk-release-tools/azure-rest-load-testing-1.0.0/ diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index 8b97c547d08..1a8293a9e68 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -208,6 +208,7 @@ export class Changelog { const key = Array.from(messageMap.keys())[0] const messages = messageMap.get(key)! const inlineMessages = messages.filter(m => m.kind === RuleMessageKind.InlineDeclarationNameSetMessage).map(m => m as InlineDeclarationNameSetMessage) + console.log("🚀 ~ Changelog ~ postProcessForRestLevelClient ~ inlineMessages:", inlineMessages) this.processInlineMessage(inlineMessages) } } diff --git a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts index 4a7ac15176f..c934992cad2 100644 --- a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts @@ -7,6 +7,7 @@ import { findParametersPath, getApiVersionTypeFromOperations, getApiVersionTypeF const findRestClientPath = (packageRoot: string): string => { const restPath = path.join(packageRoot, "src/"); const fileNames = shell.ls(restPath); + console.log("🚀 ~ findRestClientPath ~ fileNames:", fileNames) const clientFiles = fileNames.filter((f) => f.endsWith("Client.ts")); if (clientFiles.length !== 1) throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); diff --git a/tools/js-sdk-release-tools/src/utils/logger.ts b/tools/js-sdk-release-tools/src/utils/logger.ts index ecae194606e..3890305fc17 100644 --- a/tools/js-sdk-release-tools/src/utils/logger.ts +++ b/tools/js-sdk-release-tools/src/utils/logger.ts @@ -14,7 +14,6 @@ const pipeline = winston.format((info, opts) => { export const logger = winston.createLogger({ level: "info", format: winston.format.combine(winston.format.json(), pipeline()), - defaultMeta: { service: "user-service" }, }); if (process.env.NODE_ENV !== "production") { diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts index 100f19a5561..27afe10f383 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts @@ -23,10 +23,13 @@ import { Scope } from '@typescript-eslint/scope-manager'; import { getSettings } from '../../../utils/common-utils.js'; function getInlineDeclarationNameSet(service: ParserServicesWithTypeInformation, scope: Scope) { + console.log('--------------start 0') const inlineDeclarationMap = new Map(); const routes = findDeclaration('Routes', scope, isInterfaceDeclarationNode); const moNode = convertToMorphNode(routes, service); + console.log('--------------start') const result = findAllRenameableDeclarationsUnder(moNode, scope, service); + console.log('--------------end') result.interfaces.forEach((i) => inlineDeclarationMap.set(i.getName(), { node: i, used: false })); result.typeAliases.forEach((t) => inlineDeclarationMap.set(t.getName(), { node: t, used: false })); result.enums.forEach((e) => inlineDeclarationMap.set(e.getName(), { node: e, used: false })); @@ -34,12 +37,14 @@ function getInlineDeclarationNameSet(service: ParserServicesWithTypeInformation, } const rule: CreateOperationRule = (baselineParsedResult: ParseForESLintResult | undefined) => { + console.log('--------------start -1.01') if (!baselineParsedResult) throw new Error(`ParseForESLintResult is required in ${ignoreInlineDeclarationsInOperationGroup} rule`); const baselineService = baselineParsedResult.services; if (!isParseServiceWithTypeInfo(baselineService)) { throw new Error(`Failed to get ParserServicesWithTypeInformation. It indicates the parser configuration is wrong.`); } + console.log('--------------start -1.1') const baselineGlobalScope = getGlobalScope(baselineParsedResult.scopeManager); const baselineInlineDeclarationNameSet = getInlineDeclarationNameSet(baselineService, baselineGlobalScope); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts index 6612843e26b..4a6d89c04fd 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts @@ -70,6 +70,7 @@ async function prepareProject( loadCodeFromApiView(currentPackageFolder), loadCodeFromApiView(baselinePackageFolder), ]); + console.log('--------------loaded api view') const relativeCurrentPath = join('current', 'review', 'index.ts'); const relativeBaselinePath = join('baseline', 'review', 'index.ts'); @@ -81,6 +82,7 @@ async function prepareProject( outputFile(currentPath, currentCode, 'utf-8'), outputFile(baselinePath, baselineCode, 'utf-8'), ]); + console.log('--------------ourput file') return { root: tempFolder, baseline: { @@ -109,6 +111,7 @@ async function parseBaselinePackage(projectContext: ProjectContext): Promise { try { + console.log('--------------start aaa') const breakingChangeResults: RuleMessage[] = []; const baselineParsed = await parseBaselinePackage(projectContext); const linter = new TSESLint.Linter({ cwd: projectContext.root }); @@ -174,7 +177,7 @@ export async function detectBreakingChangesBetweenPackages( const apiViewBasename = basename(relativeApiViewPath); const currentApiViewPath = join(currentPackageFolder!, relativeApiViewPath); if (!(await exists(currentApiViewPath))) throw new Error(`Failed to find API view: ${currentApiViewPath}`); - + console.log('--------------prepare project') const projectContext = await prepareProject(currentApiViewPath, baselineApiViewPath, tempFolder!); const messages = await detectBreakingChangesCore(projectContext); return { name: apiViewBasename, messages }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts index 7f3ac892eaa..148bcc58793 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts @@ -18,7 +18,7 @@ async function createTempFolder(tempFolderPrefix: string): Promise { const maxRetry = 1000; let tempFolder = ''; for (let i = 0; i < maxRetry; i++) { - const tempFolder = `${tempFolderPrefix}-${Math.round(Math.random() * 1000)}`; + tempFolder = `${tempFolderPrefix}-${Math.round(Math.random() * 1000)}`; if (await pathExists(tempFolder)) continue; await mkdirp(tempFolder); @@ -29,9 +29,12 @@ async function createTempFolder(tempFolderPrefix: string): Promise { describe('detect rest level client breaking changes', async () => { test('should ignore operation rename', async () => { - const testCaseDir = '../../misc/test-cases/rest-level-client-to-rest-level-client/'; - const currentPackageFolder = join(__dirname, testCaseDir, 'current-package'); - const baselinePackageFolder = join(__dirname, testCaseDir, 'baseline-package'); + // const testCaseDir = '../../misc/test-cases/rest-level-client-to-rest-level-client/'; + // const currentPackageFolder = join(__dirname, testCaseDir, 'current-package'); + // const baselinePackageFolder = join(__dirname, testCaseDir, 'baseline-package'); + console.log('--------------start -1') + const currentPackageFolder = 'C:/Users/wanl/workspace/test-azure-sdk-for-js/sdk/loadtesting/load-testing-rest'; + const baselinePackageFolder = 'C:/Users/wanl/workspace/wanl-fork-azure-sdk-tools/tools/js-sdk-release-tools/azure-rest-load-testing-1.0.0/package'; const date = getFormattedDate(); const tempFolder = await createTempFolder(`./tmp/temp-${date}`); const messagesMap = await detectBreakingChangesBetweenPackages( diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts index d1ebec2ad8c..1ef953dabe5 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts @@ -117,6 +117,7 @@ export function findAllRenameableDeclarationsUnder( const typeAliases: TypeAliasDeclaration[] = []; const enums: EnumDeclaration[] = []; if (!node) return { interfaces, typeAliases, enums }; +// console.log("🚀 ~ node:", node.getText()); const findNext = (node: Node) => { const result = findAllRenameableDeclarationsUnder(node, scope, service); interfaces.push(...result.interfaces); From def3cf51980c6e7c1547a8538ec05d3428eeb8fb Mon Sep 17 00:00:00 2001 From: wanl Date: Wed, 14 Aug 2024 14:36:08 +0800 Subject: [PATCH 22/35] debug --- .gitignore | 2 ++ .../src/tests/rest-level-client-rule.test.ts | 18 +++++++++++------- .../src/utils/ast-utils.ts | 15 ++++++++------- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index bcd5534e36b..76843415220 100644 --- a/.gitignore +++ b/.gitignore @@ -515,3 +515,5 @@ tools/apiview/emitters/cadl-apiview/temp/ tools/apiview/emitters/typespec-apiview/tsp-output/ tools/apiview/emitters/typespec-apiview/temp/ tools/js-sdk-release-tools/azure-rest-load-testing-1.0.0/ + +tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tmp/ diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts index 148bcc58793..97f1133e192 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, test } from 'vitest'; +// import { describe, expect, test } from 'vitest'; import { mkdirp, pathExists } from 'fs-extra'; import { detectBreakingChangesBetweenPackages } from '../azure/detect-breaking-changes.js'; @@ -27,12 +27,13 @@ async function createTempFolder(tempFolderPrefix: string): Promise { throw new Error(`Failed to create temp folder at "${tempFolder}" for ${maxRetry} times`); } -describe('detect rest level client breaking changes', async () => { - test('should ignore operation rename', async () => { +// describe('detect rest level client breaking changes', async () => { +// test('should ignore operation rename', async () => { // const testCaseDir = '../../misc/test-cases/rest-level-client-to-rest-level-client/'; // const currentPackageFolder = join(__dirname, testCaseDir, 'current-package'); // const baselinePackageFolder = join(__dirname, testCaseDir, 'baseline-package'); - console.log('--------------start -1') +async function test() { + console.log('--------------start -1') const currentPackageFolder = 'C:/Users/wanl/workspace/test-azure-sdk-for-js/sdk/loadtesting/load-testing-rest'; const baselinePackageFolder = 'C:/Users/wanl/workspace/wanl-fork-azure-sdk-tools/tools/js-sdk-release-tools/azure-rest-load-testing-1.0.0/package'; const date = getFormattedDate(); @@ -43,7 +44,10 @@ describe('detect rest level client breaking changes', async () => { tempFolder, true ); - expect(messagesMap.size).toBe(1); + // expect(messagesMap.size).toBe(1); // TODO: add more checks - }); -}); +} + +test() +// }); +// }); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts index 1ef953dabe5..d4c981f7fd8 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts @@ -112,16 +112,17 @@ export function findAllRenameableDeclarationsUnder( node: Node, scope: Scope, service: ParserServicesWithTypeInformation -): { interfaces: InterfaceDeclaration[]; typeAliases: TypeAliasDeclaration[]; enums: EnumDeclaration[] } { - const interfaces: InterfaceDeclaration[] = []; - const typeAliases: TypeAliasDeclaration[] = []; - const enums: EnumDeclaration[] = []; +): { interfaces: Set; typeAliases: Set; enums: Set } { + const interfaces = new Set(); + const typeAliases = new Set(); + const enums = new Set(); if (!node) return { interfaces, typeAliases, enums }; -// console.log("🚀 ~ node:", node.getText()); + console.log("🚀 ~ node:", node.getText()); const findNext = (node: Node) => { const result = findAllRenameableDeclarationsUnder(node, scope, service); - interfaces.push(...result.interfaces); - typeAliases.push(...result.typeAliases); + + interfaces.(result.interfaces); + typeAliases.add(result.typeAliases); enums.push(...result.enums); }; From aef3b35a0458a9ab73fcc88cd10d563465dee583 Mon Sep 17 00:00:00 2001 From: wanl Date: Wed, 14 Aug 2024 19:12:08 +0800 Subject: [PATCH 23/35] fixed endless calls --- ...-inline-declarations-in-operation-group.ts | 2 +- .../src/tests/rest-level-client-rule.test.ts | 6 ++ .../src/utils/ast-utils.ts | 69 +++++++++++++------ 3 files changed, 55 insertions(+), 22 deletions(-) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts index 27afe10f383..aa5926ddec7 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts @@ -46,7 +46,7 @@ const rule: CreateOperationRule = (baselineParsedResult: ParseForESLintResult | } console.log('--------------start -1.1') const baselineGlobalScope = getGlobalScope(baselineParsedResult.scopeManager); - const baselineInlineDeclarationNameSet = getInlineDeclarationNameSet(baselineService, baselineGlobalScope); +// const baselineInlineDeclarationNameSet = getInlineDeclarationNameSet(baselineService, baselineGlobalScope); return createOperationRuleListener( ignoreInlineDeclarationsInOperationGroup, diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts index 97f1133e192..18e3c214ffb 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts @@ -3,6 +3,7 @@ import { mkdirp, pathExists } from 'fs-extra'; import { detectBreakingChangesBetweenPackages } from '../azure/detect-breaking-changes.js'; import { join } from 'node:path'; +import { InlineDeclarationNameSetMessage } from '../azure/common/types.js'; function getFormattedDate(): string { const today = new Date(); @@ -44,6 +45,11 @@ async function test() { tempFolder, true ); + console.log('-------------') + const messages = ([...messagesMap][0][1] as InlineDeclarationNameSetMessage[])! + const currents = messages.map(m => m.current) + console.log(currents) + console.log(Object.keys(currents)) // expect(messagesMap.size).toBe(1); // TODO: add more checks } diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts index d4c981f7fd8..a18da1920c3 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts @@ -41,15 +41,18 @@ function isEnumDeclarationNode(node: TSESTree.Node): node is TSESTree.TSEnumDecl return node.type === TSESTree.AST_NODE_TYPES.TSEnumDeclaration; } -function getTypeReferencesUnder(node: Node) { +function getNewTypeReferencesUnder(node: Node, found: Set) { const types: TypeReferenceNode[] = []; if (!node) return types; node.forEachChild((child) => { - if (Node.isTypeReference(child)) { + if (Node.isTypeReference(child) && !found.has(child.getText())) { types.push(child); } - const childTypeAliases = getTypeReferencesUnder(child); - types.push(...childTypeAliases); + + const childTypes = getNewTypeReferencesUnder(child, found); + childTypes.forEach(c => { + types.push(c); + }); }); return types; } @@ -58,22 +61,26 @@ function handleTypeReference< TEsDeclaration extends TSESTree.TSInterfaceDeclaration | TSESTree.TSTypeAliasDeclaration | TSESTree.TSEnumDeclaration, TDeclaration extends TypeAliasDeclaration | InterfaceDeclaration | EnumDeclaration, >( - r: TypeReferenceNode, + reference: TypeReferenceNode, scope: Scope, service: ParserServicesWithTypeInformation, list: TDeclaration[], findNext: (node: Node) => void, kind: SyntaxKind, typeGuardForEs: (node: TSESTree.Node) => node is TEsDeclaration, - typeGuardForMo: (node: Node) => node is TDeclaration + typeGuardForMo: (node: Node) => node is TDeclaration, + found: Set ) { - const esDeclaration = tryFindDeclaration(r.getText(), scope, typeGuardForEs, false); + const esDeclaration = tryFindDeclaration(reference.getText(), scope, typeGuardForEs, false); if (!esDeclaration) return; const declaration = convertToMorphNode(esDeclaration, service).asKindOrThrow(kind); if (!typeGuardForMo(declaration)) { - throw new Error(`Failed to find expected type from reference ${r.getText()}`); + throw new Error(`Failed to find expected type from reference ${reference.getText()}`); } + const foundDeclarations = new Set(list.map(i => i.getName())); + if (foundDeclarations.has(declaration.getName())) return; list.push(declaration); + found.add(declaration.getName()); findNext(declaration); } @@ -112,22 +119,39 @@ export function findAllRenameableDeclarationsUnder( node: Node, scope: Scope, service: ParserServicesWithTypeInformation -): { interfaces: Set; typeAliases: Set; enums: Set } { - const interfaces = new Set(); - const typeAliases = new Set(); - const enums = new Set(); +): { interfaces: InterfaceDeclaration[]; typeAliases: TypeAliasDeclaration[]; enums: EnumDeclaration[] } { + return findAllRenameableDeclarationsUnderCore(node, scope, service, new Set()); +} + +// TODO: move +function findAllRenameableDeclarationsUnderCore( + node: Node, + scope: Scope, + service: ParserServicesWithTypeInformation, + found: Set +): { interfaces: InterfaceDeclaration[]; typeAliases: TypeAliasDeclaration[]; enums: EnumDeclaration[] } { + const interfaces: InterfaceDeclaration[] = []; + const typeAliases: TypeAliasDeclaration[] = []; + const enums: EnumDeclaration[] = []; if (!node) return { interfaces, typeAliases, enums }; - console.log("🚀 ~ node:", node.getText()); const findNext = (node: Node) => { - const result = findAllRenameableDeclarationsUnder(node, scope, service); - - interfaces.(result.interfaces); - typeAliases.add(result.typeAliases); + const result = findAllRenameableDeclarationsUnderCore(node, scope, service, found); + interfaces.push(...result.interfaces); + typeAliases.push(...result.typeAliases); enums.push(...result.enums); }; - const references = getTypeReferencesUnder(node); + console.log('|||||||||||||||||||||||||||||||||||||||||||') + console.log('|||||||||||||||||||||||||||||||||||||||||||') + console.log('|||||||||||||||||||||||||||||||||||||||||||') + console.log('****************** node', node.getText()) + console.log('****************** found', found) + console.log('|||||||||||||||||||||||||||||||||||||||||||') + console.log('|||||||||||||||||||||||||||||||||||||||||||') + const references = getNewTypeReferencesUnder(node, found); + console.log('****************** found', found) references.forEach((r) => { + console.log('****************** ref', r.getText()) handleTypeReference( r, scope, @@ -136,7 +160,8 @@ export function findAllRenameableDeclarationsUnder( findNext, SyntaxKind.InterfaceDeclaration, isInterfaceDeclarationNode, - Node.isInterfaceDeclaration + Node.isInterfaceDeclaration, + found ); handleTypeReference( r, @@ -146,7 +171,8 @@ export function findAllRenameableDeclarationsUnder( findNext, SyntaxKind.TypeAliasDeclaration, isTypeAliasDeclarationNode, - Node.isTypeAliasDeclaration + Node.isTypeAliasDeclaration, + found ); handleTypeReference( r, @@ -156,7 +182,8 @@ export function findAllRenameableDeclarationsUnder( findNext, SyntaxKind.EnumDeclaration, isEnumDeclarationNode, - Node.isEnumDeclaration + Node.isEnumDeclaration, + found ); }); return { interfaces, typeAliases, enums }; From b94e3a91cd2f36be3783f1d125b6afb96439663c Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 15 Aug 2024 10:36:10 +0800 Subject: [PATCH 24/35] Fix recursive issue --- ...-inline-declarations-in-operation-group.ts | 23 +-- .../src/azure/common/types.ts | 6 + .../src/azure/detect-breaking-changes.ts | 14 +- .../src/azure/utils/azure-rule-utils.ts | 2 +- .../common/models/rules/rule-descriptions.ts | 2 +- .../src/logging/logger.ts | 3 +- .../src/tests/rest-level-client-rule.test.ts | 34 +-- .../src/utils/ast-utils.ts | 195 ++++++++---------- .../src/utils/common-utils.ts | 2 +- .../tsconfig.json | 2 +- 10 files changed, 118 insertions(+), 165 deletions(-) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts index aa5926ddec7..af0e9bccad7 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts @@ -4,32 +4,29 @@ import { NodeContext, ParseForESLintResult, RuleMessageKind, -} from '../types.js'; +} from '../types'; import { RuleListener, getParserServices } from '@typescript-eslint/utils/eslint-utils'; import { convertToMorphNode, - findAllRenameableDeclarationsUnder, + findAllRenameAbleDeclarationsInNode, findDeclaration, getGlobalScope, isInterfaceDeclarationNode, isParseServiceWithTypeInfo, -} from '../../../utils/ast-utils.js'; +} from '../../../utils/ast-utils'; -import { RuleContext } from '@typescript-eslint/utils/ts-eslint'; -import { createOperationRuleListener } from '../../utils/azure-rule-utils.js'; -import { ignoreInlineDeclarationsInOperationGroup } from '../../../common/models/rules/rule-ids.js'; import { ParserServicesWithTypeInformation } from '@typescript-eslint/typescript-estree'; +import { RuleContext } from '@typescript-eslint/utils/ts-eslint'; import { Scope } from '@typescript-eslint/scope-manager'; -import { getSettings } from '../../../utils/common-utils.js'; +import { createOperationRuleListener } from '../../utils/azure-rule-utils'; +import { getSettings } from '../../../utils/common-utils'; +import { ignoreInlineDeclarationsInOperationGroup } from '../../../common/models/rules/rule-ids'; function getInlineDeclarationNameSet(service: ParserServicesWithTypeInformation, scope: Scope) { - console.log('--------------start 0') const inlineDeclarationMap = new Map(); const routes = findDeclaration('Routes', scope, isInterfaceDeclarationNode); const moNode = convertToMorphNode(routes, service); - console.log('--------------start') - const result = findAllRenameableDeclarationsUnder(moNode, scope, service); - console.log('--------------end') + const result = findAllRenameAbleDeclarationsInNode(moNode, scope, service); result.interfaces.forEach((i) => inlineDeclarationMap.set(i.getName(), { node: i, used: false })); result.typeAliases.forEach((t) => inlineDeclarationMap.set(t.getName(), { node: t, used: false })); result.enums.forEach((e) => inlineDeclarationMap.set(e.getName(), { node: e, used: false })); @@ -37,16 +34,14 @@ function getInlineDeclarationNameSet(service: ParserServicesWithTypeInformation, } const rule: CreateOperationRule = (baselineParsedResult: ParseForESLintResult | undefined) => { - console.log('--------------start -1.01') if (!baselineParsedResult) throw new Error(`ParseForESLintResult is required in ${ignoreInlineDeclarationsInOperationGroup} rule`); const baselineService = baselineParsedResult.services; if (!isParseServiceWithTypeInfo(baselineService)) { throw new Error(`Failed to get ParserServicesWithTypeInformation. It indicates the parser configuration is wrong.`); } - console.log('--------------start -1.1') const baselineGlobalScope = getGlobalScope(baselineParsedResult.scopeManager); -// const baselineInlineDeclarationNameSet = getInlineDeclarationNameSet(baselineService, baselineGlobalScope); + const baselineInlineDeclarationNameSet = getInlineDeclarationNameSet(baselineService, baselineGlobalScope); return createOperationRuleListener( ignoreInlineDeclarationsInOperationGroup, diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts index 2f51bb1a65d..df767f424b4 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts @@ -44,3 +44,9 @@ export interface NodeContext { node: InterfaceDeclaration | TypeAliasDeclaration | EnumDeclaration; used: boolean; } + +export interface RenameAbleDeclarations { + interfaces: InterfaceDeclaration[]; + typeAliases: TypeAliasDeclaration[]; + enums: EnumDeclaration[]; +} diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts index 4a6d89c04fd..7ee330fc8e3 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts @@ -1,21 +1,21 @@ import * as parser from '@typescript-eslint/parser'; -import * as ruleIds from '../common/models/rules/rule-ids.js'; +import * as ruleIds from '../common/models/rules/rule-ids'; import { InlineDeclarationNameSetMessage, LinterSettings, ParseForESLintResult, RuleMessage, -} from './common/types.js'; +} from './common/types'; import { Renderer, marked } from 'marked'; import { basename, join, posix, relative } from 'node:path'; -import { devConsolelog, toPosixPath } from '../utils/common-utils.js'; +import { devConsolelog, toPosixPath } from '../utils/common-utils'; import { exists, outputFile, readFile, remove } from 'fs-extra'; import { TSESLint } from '@typescript-eslint/utils'; -import ignoreInlineDeclarationsInOperationGroup from './common/rules/ignore-inline-declarations-in-operation-group.js'; +import ignoreInlineDeclarationsInOperationGroup from './common/rules/ignore-inline-declarations-in-operation-group'; import { glob } from 'glob'; -import { logger } from '../logging/logger.js'; +import { logger } from '../logging/logger'; const tsconfig = ` { @@ -70,7 +70,6 @@ async function prepareProject( loadCodeFromApiView(currentPackageFolder), loadCodeFromApiView(baselinePackageFolder), ]); - console.log('--------------loaded api view') const relativeCurrentPath = join('current', 'review', 'index.ts'); const relativeBaselinePath = join('baseline', 'review', 'index.ts'); @@ -82,7 +81,6 @@ async function prepareProject( outputFile(currentPath, currentCode, 'utf-8'), outputFile(baselinePath, baselineCode, 'utf-8'), ]); - console.log('--------------ourput file') return { root: tempFolder, baseline: { @@ -111,7 +109,6 @@ async function parseBaselinePackage(projectContext: ProjectContext): Promise { try { - console.log('--------------start aaa') const breakingChangeResults: RuleMessage[] = []; const baselineParsed = await parseBaselinePackage(projectContext); const linter = new TSESLint.Linter({ cwd: projectContext.root }); @@ -177,7 +174,6 @@ export async function detectBreakingChangesBetweenPackages( const apiViewBasename = basename(relativeApiViewPath); const currentApiViewPath = join(currentPackageFolder!, relativeApiViewPath); if (!(await exists(currentApiViewPath))) throw new Error(`Failed to find API view: ${currentApiViewPath}`); - console.log('--------------prepare project') const projectContext = await prepareProject(currentApiViewPath, baselineApiViewPath, tempFolder!); const messages = await detectBreakingChangesCore(projectContext); return { name: apiViewBasename, messages }; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts index a353cb986eb..d7fd8af28f5 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts @@ -1,7 +1,7 @@ import { ESLintUtils } from '@typescript-eslint/utils'; import { RuleContext } from '@typescript-eslint/utils/ts-eslint'; import { RuleListener } from '@typescript-eslint/utils/eslint-utils'; -import { ruleDescriptions } from '../../common/models/rules/rule-descriptions.js'; +import { ruleDescriptions } from '../../common/models/rules/rule-descriptions'; // TODO: provide correct endpint const endpoint = 'https://a.b.c/rules'; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts index 0c53c834de2..37efbaafa44 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts @@ -1,6 +1,6 @@ import { ignoreInlineDeclarationsInOperationGroup -} from './rule-ids.js'; +} from './rule-ids'; export const ruleDescriptions: { [ruleId: string]: string } = { [ignoreInlineDeclarationsInOperationGroup]: 'Ignore inline types in routes', diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts index 49f3e207437..ff2a9837697 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts @@ -1,6 +1,5 @@ import { pino } from 'pino'; - -const pretty = require('pino-pretty'); +import pretty from 'pino-pretty'; const devStream = pretty({ colorize: false, diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts index 18e3c214ffb..9c94e748b99 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts @@ -1,9 +1,9 @@ -// import { describe, expect, test } from 'vitest'; +import { describe, expect, test } from 'vitest'; import { mkdirp, pathExists } from 'fs-extra'; -import { detectBreakingChangesBetweenPackages } from '../azure/detect-breaking-changes.js'; +import { InlineDeclarationNameSetMessage } from '../azure/common/types'; +import { detectBreakingChangesBetweenPackages } from '../azure/detect-breaking-changes'; import { join } from 'node:path'; -import { InlineDeclarationNameSetMessage } from '../azure/common/types.js'; function getFormattedDate(): string { const today = new Date(); @@ -28,15 +28,11 @@ async function createTempFolder(tempFolderPrefix: string): Promise { throw new Error(`Failed to create temp folder at "${tempFolder}" for ${maxRetry} times`); } -// describe('detect rest level client breaking changes', async () => { -// test('should ignore operation rename', async () => { - // const testCaseDir = '../../misc/test-cases/rest-level-client-to-rest-level-client/'; - // const currentPackageFolder = join(__dirname, testCaseDir, 'current-package'); - // const baselinePackageFolder = join(__dirname, testCaseDir, 'baseline-package'); -async function test() { - console.log('--------------start -1') - const currentPackageFolder = 'C:/Users/wanl/workspace/test-azure-sdk-for-js/sdk/loadtesting/load-testing-rest'; - const baselinePackageFolder = 'C:/Users/wanl/workspace/wanl-fork-azure-sdk-tools/tools/js-sdk-release-tools/azure-rest-load-testing-1.0.0/package'; +describe('detect rest level client breaking changes', async () => { + test('should ignore operation rename', async () => { + const testCaseDir = '../../misc/test-cases/rest-level-client-to-rest-level-client/'; + const currentPackageFolder = join(__dirname, testCaseDir, 'current-package'); + const baselinePackageFolder = join(__dirname, testCaseDir, 'baseline-package'); const date = getFormattedDate(); const tempFolder = await createTempFolder(`./tmp/temp-${date}`); const messagesMap = await detectBreakingChangesBetweenPackages( @@ -45,15 +41,7 @@ async function test() { tempFolder, true ); - console.log('-------------') - const messages = ([...messagesMap][0][1] as InlineDeclarationNameSetMessage[])! - const currents = messages.map(m => m.current) - console.log(currents) - console.log(Object.keys(currents)) - // expect(messagesMap.size).toBe(1); + expect(messagesMap.size).toBe(1); // TODO: add more checks -} - -test() -// }); -// }); + }); +}); diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts index a18da1920c3..6e900fd0ce1 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts @@ -1,23 +1,24 @@ -import { ParserServices, ParserServicesWithTypeInformation } from '@typescript-eslint/typescript-estree'; -import { Scope, ScopeManager } from '@typescript-eslint/scope-manager'; - -import { TSESTree } from '@typescript-eslint/types'; -import { findVariable } from '@typescript-eslint/utils/ast-utils'; -import { logger } from '../logging/logger.js'; import { + EnumDeclaration, InterfaceDeclaration, - TypeAliasDeclaration, Node, - createWrappedNode, - TypeReferenceNode, SyntaxKind, - EnumDeclaration, + TypeAliasDeclaration, + TypeReferenceNode, + createWrappedNode, } from 'ts-morph'; +import { ParserServices, ParserServicesWithTypeInformation } from '@typescript-eslint/typescript-estree'; +import { Scope, ScopeManager } from '@typescript-eslint/scope-manager'; + +import { RenameAbleDeclarations } from '../azure/common/types'; +import { TSESTree } from '@typescript-eslint/types'; +import { findVariable } from '@typescript-eslint/utils/ast-utils'; +import { logger } from '../logging/logger'; function tryFindDeclaration( name: string, scope: Scope, - typeGuard: (node: TSESTree.Node) => node is TNode, + typeGuard: ((node: TSESTree.Node) => node is TNode) | undefined, shouldLog: boolean = true ): TNode | undefined { const variable = findVariable(scope as Scope, name); @@ -26,22 +27,14 @@ function tryFindDeclaration( if (shouldLog) logger.warn(`Failed to find ${name}'s declaration`); return undefined; } - if (!typeGuard(node)) { + if (typeGuard && !typeGuard(node)) { if (shouldLog) logger.warn(`Found ${name}'s declaration but with another node type "${node.type}"`); return undefined; } - return node; + return node as TNode; } -function isTypeAliasDeclarationNode(node: TSESTree.Node): node is TSESTree.TSTypeAliasDeclaration { - return node.type === TSESTree.AST_NODE_TYPES.TSTypeAliasDeclaration; -} - -function isEnumDeclarationNode(node: TSESTree.Node): node is TSESTree.TSEnumDeclaration { - return node.type === TSESTree.AST_NODE_TYPES.TSEnumDeclaration; -} - -function getNewTypeReferencesUnder(node: Node, found: Set) { +function getAllTypeReferencesInNode(node: Node, found: Set) { const types: TypeReferenceNode[] = []; if (!node) return types; node.forEachChild((child) => { @@ -49,39 +42,74 @@ function getNewTypeReferencesUnder(node: Node, found: Set) { types.push(child); } - const childTypes = getNewTypeReferencesUnder(child, found); - childTypes.forEach(c => { - types.push(c); + const childTypes = getAllTypeReferencesInNode(child, found); + childTypes.forEach((c) => { + types.push(c); }); }); return types; } -function handleTypeReference< - TEsDeclaration extends TSESTree.TSInterfaceDeclaration | TSESTree.TSTypeAliasDeclaration | TSESTree.TSEnumDeclaration, - TDeclaration extends TypeAliasDeclaration | InterfaceDeclaration | EnumDeclaration, ->( - reference: TypeReferenceNode, - scope: Scope, - service: ParserServicesWithTypeInformation, - list: TDeclaration[], - findNext: (node: Node) => void, - kind: SyntaxKind, - typeGuardForEs: (node: TSESTree.Node) => node is TEsDeclaration, - typeGuardForMo: (node: Node) => node is TDeclaration, +function updateRenameAbleDeclarations( + declaration: TypeAliasDeclaration | InterfaceDeclaration | EnumDeclaration, + renameAbleDeclarations: RenameAbleDeclarations, found: Set ) { - const esDeclaration = tryFindDeclaration(reference.getText(), scope, typeGuardForEs, false); - if (!esDeclaration) return; - const declaration = convertToMorphNode(esDeclaration, service).asKindOrThrow(kind); - if (!typeGuardForMo(declaration)) { - throw new Error(`Failed to find expected type from reference ${reference.getText()}`); - } - const foundDeclarations = new Set(list.map(i => i.getName())); + const foundDeclarations = new Set( + [...renameAbleDeclarations.interfaces, ...renameAbleDeclarations.typeAliases, ...renameAbleDeclarations.enums].map( + (i) => i.getName() + ) + ); if (foundDeclarations.has(declaration.getName())) return; - list.push(declaration); + switch (declaration.getKind()) { + case SyntaxKind.InterfaceDeclaration: + renameAbleDeclarations.interfaces.push(declaration as InterfaceDeclaration); + break; + case SyntaxKind.TypeAliasDeclaration: + renameAbleDeclarations.typeAliases.push(declaration as TypeAliasDeclaration); + break; + case SyntaxKind.EnumDeclaration: + renameAbleDeclarations.enums.push(declaration as EnumDeclaration); + break; + } found.add(declaration.getName()); - findNext(declaration); +} + +function findDeclarationOfTypeReference( + reference: TypeReferenceNode, + scope: Scope, + service: ParserServicesWithTypeInformation +): (TypeAliasDeclaration | InterfaceDeclaration | EnumDeclaration) | undefined { + const esDeclaration = tryFindDeclaration(reference.getText(), scope, undefined, false); + if (!esDeclaration) return; + const msDeclaration = convertToMorphNode(esDeclaration, service); + const msDeclarationKind = msDeclaration.getKind(); + if ( + msDeclarationKind !== SyntaxKind.InterfaceDeclaration && + msDeclarationKind !== SyntaxKind.TypeAliasDeclaration && + msDeclarationKind !== SyntaxKind.EnumDeclaration + ) + return; + const declaration = msDeclaration as TypeAliasDeclaration | InterfaceDeclaration | EnumDeclaration; + return declaration; +} + +function findAllRenameAbleDeclarationsInNodeCore( + node: Node, + scope: Scope, + service: ParserServicesWithTypeInformation, + renameAbleDeclarations: RenameAbleDeclarations, + found: Set +): void { + if (!node) return; + + const references = getAllTypeReferencesInNode(node, found); + references.forEach((reference) => { + const declaration = findDeclarationOfTypeReference(reference, scope, service); + if (!declaration) return; + updateRenameAbleDeclarations(declaration, renameAbleDeclarations, found); + findAllRenameAbleDeclarationsInNodeCore(declaration, scope, service, renameAbleDeclarations, found); + }); } export function getGlobalScope(scopeManager: ScopeManager | null): Scope { @@ -115,76 +143,17 @@ export function convertToMorphNode(node: TSESTree.Node, service: ParserServicesW return moNode; } -export function findAllRenameableDeclarationsUnder( +export function findAllRenameAbleDeclarationsInNode( node: Node, scope: Scope, service: ParserServicesWithTypeInformation ): { interfaces: InterfaceDeclaration[]; typeAliases: TypeAliasDeclaration[]; enums: EnumDeclaration[] } { - return findAllRenameableDeclarationsUnderCore(node, scope, service, new Set()); -} - -// TODO: move -function findAllRenameableDeclarationsUnderCore( - node: Node, - scope: Scope, - service: ParserServicesWithTypeInformation, - found: Set -): { interfaces: InterfaceDeclaration[]; typeAliases: TypeAliasDeclaration[]; enums: EnumDeclaration[] } { - const interfaces: InterfaceDeclaration[] = []; - const typeAliases: TypeAliasDeclaration[] = []; - const enums: EnumDeclaration[] = []; - if (!node) return { interfaces, typeAliases, enums }; - const findNext = (node: Node) => { - const result = findAllRenameableDeclarationsUnderCore(node, scope, service, found); - interfaces.push(...result.interfaces); - typeAliases.push(...result.typeAliases); - enums.push(...result.enums); + const renameAbleDeclarations: RenameAbleDeclarations = { + interfaces: [], + typeAliases: [], + enums: [], }; - - console.log('|||||||||||||||||||||||||||||||||||||||||||') - console.log('|||||||||||||||||||||||||||||||||||||||||||') - console.log('|||||||||||||||||||||||||||||||||||||||||||') - console.log('****************** node', node.getText()) - console.log('****************** found', found) - console.log('|||||||||||||||||||||||||||||||||||||||||||') - console.log('|||||||||||||||||||||||||||||||||||||||||||') - const references = getNewTypeReferencesUnder(node, found); - console.log('****************** found', found) - references.forEach((r) => { - console.log('****************** ref', r.getText()) - handleTypeReference( - r, - scope, - service, - interfaces, - findNext, - SyntaxKind.InterfaceDeclaration, - isInterfaceDeclarationNode, - Node.isInterfaceDeclaration, - found - ); - handleTypeReference( - r, - scope, - service, - typeAliases, - findNext, - SyntaxKind.TypeAliasDeclaration, - isTypeAliasDeclarationNode, - Node.isTypeAliasDeclaration, - found - ); - handleTypeReference( - r, - scope, - service, - enums, - findNext, - SyntaxKind.EnumDeclaration, - isEnumDeclarationNode, - Node.isEnumDeclaration, - found - ); - }); - return { interfaces, typeAliases, enums }; + const found = new Set(); + findAllRenameAbleDeclarationsInNodeCore(node, scope, service, renameAbleDeclarations, found); + return renameAbleDeclarations; } diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts index d6f25ac56ea..a45fafebabf 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts @@ -1,4 +1,4 @@ -import { LinterSettings } from '../azure/common/types.js'; +import { LinterSettings } from '../azure/common/types'; import { RuleContext } from '@typescript-eslint/utils/ts-eslint'; import path from 'path'; import util from 'util'; diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json index ca215c5c9cf..4f676c888c4 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json @@ -100,6 +100,6 @@ "typeRoots": ["./node_modules/@types", "./dist/src"], }, - "exclude": ["**/tests/**/cases/**"], + "exclude": ["**/tests/**/cases/**", "dist/**"], "include": ["src/**/*.ts"] } \ No newline at end of file From 02966da907cb50c35ca272ce19e1068f47df140d Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 15 Aug 2024 10:36:25 +0800 Subject: [PATCH 25/35] Add Recursive test case --- .../baseline-package/review/ai-translation-text.api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md index 73254703a10..0c59225e6d7 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md +++ b/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md @@ -92,6 +92,7 @@ export interface DictionaryTranslationOutput { export interface ErrorDetailsOutput { code: number; message: string; + recursive: Array; } // @public From d41730f838cdceb0ba262110cc2dfafe4d6ed87f Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 15 Aug 2024 12:27:47 +0800 Subject: [PATCH 26/35] Fix signature issue --- .gitignore | 4 +--- tools/js-sdk-release-tools/package-lock.json | 15 ------------ .../RestLevelClientChangelogPostProcessor.ts | 2 +- .../src/changelog/changelogGenerator.ts | 23 ++++++++++++------- .../llc/apiVersion/apiVersionTypeExtractor.ts | 8 +++---- 5 files changed, 21 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 76843415220..a9ce147484b 100644 --- a/.gitignore +++ b/.gitignore @@ -514,6 +514,4 @@ tools/apiview/emitters/cadl-apiview/cadl-output/ tools/apiview/emitters/cadl-apiview/temp/ tools/apiview/emitters/typespec-apiview/tsp-output/ tools/apiview/emitters/typespec-apiview/temp/ -tools/js-sdk-release-tools/azure-rest-load-testing-1.0.0/ - -tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tmp/ +tools/js-sdk-release-tools/azure-rest-load-testing-1.0.0/ \ No newline at end of file diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index 9d9c141c570..6952699b875 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -19,7 +19,6 @@ "parse-ts-to-ast": "^0.1.1", "semver": "^7.3.5", "shelljs": "^0.8.4", - "shx": "^0.3.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", "tslib": "^1.9.3", @@ -2514,20 +2513,6 @@ "node": ">=4" } }, - "node_modules/shx": { - "version": "0.3.4", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.3", - "shelljs": "^0.8.5" - }, - "bin": { - "shx": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/siginfo": { "version": "2.0.0", "dev": true, diff --git a/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts b/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts index 885a9abf11f..5ac66c4f437 100644 --- a/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts +++ b/tools/js-sdk-release-tools/src/changelog/RestLevelClientChangelogPostProcessor.ts @@ -1,5 +1,5 @@ -import { InlineDeclarationNameSetMessage, NodeContext } from 'typescript-codegen-breaking-change-detector'; import { Changelog, ChangelogItem } from './changelogGenerator'; +import { InlineDeclarationNameSetMessage, NodeContext } from 'typescript-codegen-breaking-change-detector'; export class RestLevelClientChangelogPostProcessor { private changelog: Changelog; diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index 1a8293a9e68..e00057f3337 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -4,14 +4,18 @@ import { InterfaceDeclaration, TypeAliasDeclaration } from "parse-ts-to-ast"; +import { InlineDeclarationNameSetMessage, RuleMessage, RuleMessageKind, detectBreakingChangesBetweenPackages } from "typescript-codegen-breaking-change-detector"; + import { IntersectionDeclaration } from "parse-ts-to-ast/build/declarations/IntersectionDeclaration"; -import { TypeLiteralDeclaration } from "parse-ts-to-ast/build/declarations/TypeLiteralDeclaration"; -import { TSExportedMetaData } from "./extractMetaData"; +import { RestLevelClientChangelogPostProcessor } from "./RestLevelClientChangelogPostProcessor"; import { SDKType } from "../common/types"; +import { TSExportedMetaData } from "./extractMetaData"; +import { TypeLiteralDeclaration } from "parse-ts-to-ast/build/declarations/TypeLiteralDeclaration"; import { logger } from "../utils/logger"; + // TODO: add detection for routes and overloads in base detector -import { detectBreakingChangesBetweenPackages, InlineDeclarationNameSetMessage, RuleMessage, RuleMessageKind } from "typescript-codegen-breaking-change-detector"; -import { RestLevelClientChangelogPostProcessor } from "./RestLevelClientChangelogPostProcessor"; + + export interface ChangelogItem { line: string; @@ -208,7 +212,6 @@ export class Changelog { const key = Array.from(messageMap.keys())[0] const messages = messageMap.get(key)! const inlineMessages = messages.filter(m => m.kind === RuleMessageKind.InlineDeclarationNameSetMessage).map(m => m as InlineDeclarationNameSetMessage) - console.log("🚀 ~ Changelog ~ postProcessForRestLevelClient ~ inlineMessages:", inlineMessages) this.processInlineMessage(inlineMessages) } } @@ -587,13 +590,13 @@ const findOperationSignatureChange = (metaDataOld: TSExportedMetaData, metaDataN const parametersOld = mOld.parameters; const parametersNew = mNew.parameters; if (parametersNew.length !== parametersOld.length) { - operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', newName: mNew.type }); + operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature' }); } else { for (let index = 0; index < parametersNew.length; index++) { const pOld = parametersOld[index]; const pNew = parametersNew[index]; if (pOld.type !== pNew.type || pOld.isOptional !== pNew.isOptional) { - operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', newName: mNew.type }); + operationSignatureChange.push({ line:'Operation ' + newOperationGroup + '.' + mNew.name + ' has a new signature', newName: pNew.type }); return; } } @@ -638,10 +641,14 @@ const findClassSignatureChange = (metaDataOld: TSExportedMetaData, metaDataNew: for (let index = 0; index < parametersNew.length; index++) { const pOld = parametersOld[index]; const pNew = parametersNew[index]; - if (pOld.type !== pNew.type || pOld.isOptional !== pNew.isOptional) { + if (pOld.isOptional !== pNew.isOptional) { classSignatureChange.push({ line: 'Class ' + model + ' has a new signature' }); return; } + if (pOld.type !== pNew.type) { + classSignatureChange.push({ line: 'Class ' + model + ' has a new signature', oldName: pOld.type, newName: pNew.type }); + return; + } } } } diff --git a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts index c934992cad2..b5f13008fc6 100644 --- a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts @@ -1,13 +1,13 @@ -import shell from "shelljs"; -import path from "path"; +import { findParametersPath, getApiVersionTypeFromOperations, getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; + import { ApiVersionType } from "../../common/types"; import { IApiVersionTypeExtractor } from "../../common/interfaces"; -import { findParametersPath, getApiVersionTypeFromOperations, getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; +import path from "path"; +import shell from "shelljs"; const findRestClientPath = (packageRoot: string): string => { const restPath = path.join(packageRoot, "src/"); const fileNames = shell.ls(restPath); - console.log("🚀 ~ findRestClientPath ~ fileNames:", fileNames) const clientFiles = fileNames.filter((f) => f.endsWith("Client.ts")); if (clientFiles.length !== 1) throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); From 4c643f833f27ff94bbbe9c6f9b1525f13e62134a Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 15 Aug 2024 13:45:42 +0800 Subject: [PATCH 27/35] Update CI --- tools/js-sdk-release-tools/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/js-sdk-release-tools/ci.yml b/tools/js-sdk-release-tools/ci.yml index c2158073ad9..b6550b2de3a 100644 --- a/tools/js-sdk-release-tools/ci.yml +++ b/tools/js-sdk-release-tools/ci.yml @@ -67,8 +67,8 @@ extends: workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: | - npm run pack:all - displayName: 'npm pack:all' + npm pack + displayName: 'npm pack' workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: 'cp azure-tools-js-sdk-release-tools-*.tgz $(Build.ArtifactStagingDirectory)' From 2f7ad476296c6c280d2b1cd66df989358ae3a27b Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 15 Aug 2024 14:09:21 +0800 Subject: [PATCH 28/35] Update gitignore --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a9ce147484b..eb4b9547c8e 100644 --- a/.gitignore +++ b/.gitignore @@ -514,4 +514,6 @@ tools/apiview/emitters/cadl-apiview/cadl-output/ tools/apiview/emitters/cadl-apiview/temp/ tools/apiview/emitters/typespec-apiview/tsp-output/ tools/apiview/emitters/typespec-apiview/temp/ -tools/js-sdk-release-tools/azure-rest-load-testing-1.0.0/ \ No newline at end of file + +# JS SDK Release Tools +!tools/js-sdk-release-tools/packages/* \ No newline at end of file From e16f54d5a8d6c4e96ea9c0c75282648d610636b7 Mon Sep 17 00:00:00 2001 From: wanl Date: Thu, 15 Aug 2024 16:45:48 +0800 Subject: [PATCH 29/35] Move folder --- .gitignore | 3 +- tools/js-sdk-release-tools/ci.yml | 8 +- tools/js-sdk-release-tools/package-lock.json | 8270 +++++++---------- tools/js-sdk-release-tools/package.json | 14 +- .../.eslintignore | 0 .../.eslintrc | 0 .../.gitignore | 0 .../.hintrc | 0 .../.npmrc | 0 .../.prettierignore | 0 .../.prettierrc | 0 .../README.md | 0 ...rest-level-client-breaking-change-rules.md | 0 .../baseline-package/CHANGELOG.md | 0 .../baseline-package/package.json | 0 .../review/ai-translation-text.api.md | 0 .../baseline-package/src/customClient.ts | 0 .../baseline-package/src/models.ts | 0 .../baseline-package/src/parameters.ts | 0 .../baseline-package/tsconfig.json | 0 .../current-package/CHANGELOG.md | 0 .../current-package/package.json | 0 .../review/ai-translation-text.api.md | 0 .../current-package/src/customClient.ts | 0 .../current-package/src/models.ts | 0 .../current-package/src/parameters.ts | 0 .../current-package/tsconfig.json | 0 .../package-lock.json | 180 +- .../package.json | 9 +- ...-inline-declarations-in-operation-group.ts | 0 .../src/azure/common/types.ts | 0 .../src/azure/detect-breaking-changes.ts | 0 .../rule-sets/rest-level-client-rule-sets.ts | 0 .../src/azure/utils/azure-rule-utils.ts | 0 .../common/models/rules/rule-descriptions.ts | 0 .../src/common/models/rules/rule-ids.ts | 0 .../src/index.ts | 0 .../src/logging/logger.ts | 0 .../src/tests/rest-level-client-rule.test.ts | 2 +- .../src/utils/ast-utils.ts | 0 .../src/utils/common-utils.ts | 0 .../tsconfig.json | 2 +- .../vitest.config.ts | 0 tools/js-sdk-release-tools/vitest.config.ts | 2 +- 44 files changed, 3500 insertions(+), 4990 deletions(-) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/.eslintignore (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/.eslintrc (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/.gitignore (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/.hintrc (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/.npmrc (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/.prettierignore (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/.prettierrc (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/README.md (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/package-lock.json (96%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/package.json (88%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/azure/common/types.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/index.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/logging/logger.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts (95%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts (100%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/tsconfig.json (99%) rename tools/js-sdk-release-tools/{workspaces => packages}/typescript-codegen-breaking-change-detector/vitest.config.ts (100%) diff --git a/.gitignore b/.gitignore index eb4b9547c8e..62e1df65316 100644 --- a/.gitignore +++ b/.gitignore @@ -516,4 +516,5 @@ tools/apiview/emitters/typespec-apiview/tsp-output/ tools/apiview/emitters/typespec-apiview/temp/ # JS SDK Release Tools -!tools/js-sdk-release-tools/packages/* \ No newline at end of file +!tools/js-sdk-release-tools/packages/* +tools/js-sdk-release-tools/.tmp/* \ No newline at end of file diff --git a/tools/js-sdk-release-tools/ci.yml b/tools/js-sdk-release-tools/ci.yml index b6550b2de3a..df14d4dd801 100644 --- a/tools/js-sdk-release-tools/ci.yml +++ b/tools/js-sdk-release-tools/ci.yml @@ -52,13 +52,13 @@ extends: displayName: 'Install Node.js' - script: | - npm run install:all - displayName: 'npm run install:all' + npm install + displayName: 'npm install' workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: | - npm run build:all - displayName: 'npm run build:all' + npm run build + displayName: 'npm run build' workingDirectory: $(System.DefaultWorkingDirectory)/tools/js-sdk-release-tools - script: | diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index 6952699b875..f1bb4f0015a 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "@azure-tools/js-sdk-release-tools", "version": "2.7.11", + "hasInstallScript": true, "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", @@ -19,10 +20,11 @@ "parse-ts-to-ast": "^0.1.1", "semver": "^7.3.5", "shelljs": "^0.8.4", + "shx": "^0.3.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", "tslib": "^1.9.3", - "typescript-codegen-breaking-change-detector": "0.4.6", + "typescript-codegen-breaking-change-detector": "file:packages/typescript-codegen-breaking-change-detector/typescript-codegen-breaking-change-detector-0.0.0.tgz", "winston": "^3.13.1", "yaml": "^1.10.2" }, @@ -57,36 +59,52 @@ } }, "node_modules/@azure-tools/openapi-tools-common/node_modules/tslib": { - "version": "2.4.0", + "version": "2.6.3", "license": "0BSD" }, "node_modules/@azure/abort-controller": { - "version": "1.1.0", + "version": "2.1.2", "license": "MIT", "dependencies": { - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=12.0.0" + "node": ">=18.0.0" } }, "node_modules/@azure/abort-controller/node_modules/tslib": { - "version": "2.4.0", + "version": "2.6.3", "license": "0BSD" }, "node_modules/@azure/core-auth": { - "version": "1.4.0", + "version": "1.7.2", "license": "MIT", "dependencies": { - "@azure/abort-controller": "^1.0.0", - "tslib": "^2.2.0" + "@azure/abort-controller": "^2.0.0", + "@azure/core-util": "^1.1.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=12.0.0" + "node": ">=18.0.0" } }, "node_modules/@azure/core-auth/node_modules/tslib": { - "version": "2.4.0", + "version": "2.6.3", + "license": "0BSD" + }, + "node_modules/@azure/core-util": { + "version": "1.9.2", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@azure/core-util/node_modules/tslib": { + "version": "2.6.3", "license": "0BSD" }, "node_modules/@azure/logger-js": { @@ -110,29 +128,6 @@ "xml2js": "^0.5.0" } }, - "node_modules/@azure/ms-rest-js/node_modules/form-data": { - "version": "2.5.1", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/@azure/ms-rest-js/node_modules/xml2js": { - "version": "0.5.0", - "license": "MIT", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/@azure/storage-blob": { "version": "10.5.0", "license": "MIT", @@ -159,7 +154,7 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.20.2", + "version": "0.23.0", "cpu": [ "x64" ], @@ -169,8 +164,186 @@ "os": [ "win32" ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", + "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "peer": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "peer": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "deprecated": "Use @eslint/config-array instead", + "peer": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "peer": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "peer": true + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, "engines": { "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/@jest/schemas": { @@ -185,7 +358,7 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", + "version": "1.5.0", "dev": true, "license": "MIT" }, @@ -229,5555 +402,3188 @@ "node": ">= 8" } }, - "node_modules/@octokit/rest": { - "version": "15.16.1", + "node_modules/@octokit/auth-token": { + "version": "2.5.0", "license": "MIT", "dependencies": { - "before-after-hook": "^1.1.0", - "btoa-lite": "^1.0.0", - "debug": "^3.1.0", - "http-proxy-agent": "^2.1.0", - "https-proxy-agent": "^2.2.0", - "lodash": "^4.17.4", - "node-fetch": "^2.1.1", - "universal-user-agent": "^2.0.0", - "url-template": "^2.0.8" - }, - "engines": { - "node": ">=4" + "@octokit/types": "^6.0.3" } }, - "node_modules/@octokit/rest/node_modules/debug": { - "version": "3.2.7", + "node_modules/@octokit/core": { + "version": "6.1.2", "license": "MIT", + "peer": true, "dependencies": { - "ms": "^2.1.1" + "@octokit/auth-token": "^5.0.0", + "@octokit/graphql": "^8.0.0", + "@octokit/request": "^9.0.0", + "@octokit/request-error": "^6.0.1", + "@octokit/types": "^13.0.0", + "before-after-hook": "^3.0.2", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.18.0", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/@octokit/core/node_modules/@octokit/auth-token": { + "version": "5.1.1", "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "dev": true, - "license": "MIT" + "peer": true, + "engines": { + "node": ">= 18" + } }, - "node_modules/@ts-common/azure-js-dev-tools": { - "version": "21.1.0", + "node_modules/@octokit/core/node_modules/@octokit/endpoint": { + "version": "10.1.1", "license": "MIT", + "peer": true, "dependencies": { - "@azure/logger-js": "^1.3.2", - "@azure/storage-blob": "^10.3.0", - "@octokit/rest": "~15.16.1", - "@types/archiver": "^2.1.2", - "@types/commonmark": "^0.27.1", - "@types/js-yaml": "^3.12.0", - "archiver": "^3.0.0", - "commonmark": "^0.28.1", - "isomorphic-git": "^0.55.2", - "js-yaml": "^3.12.1", - "yargs": "^12.0.5" + "@octokit/types": "^13.0.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@ts-common/azure-js-dev-tools/node_modules/js-yaml": { - "version": "3.14.1", + "node_modules/@octokit/core/node_modules/@octokit/openapi-types": { + "version": "22.2.0", + "license": "MIT", + "peer": true + }, + "node_modules/@octokit/core/node_modules/@octokit/request": { + "version": "9.1.3", "license": "MIT", + "peer": true, "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "@octokit/endpoint": "^10.0.0", + "@octokit/request-error": "^6.0.1", + "@octokit/types": "^13.1.0", + "universal-user-agent": "^7.0.2" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": ">= 18" } }, - "node_modules/@ts-morph/common": { - "version": "0.24.0", + "node_modules/@octokit/core/node_modules/@octokit/request-error": { + "version": "6.1.4", "license": "MIT", + "peer": true, "dependencies": { - "fast-glob": "^3.3.2", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "path-browserify": "^1.0.1" + "@octokit/types": "^13.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@ts-morph/common/node_modules/brace-expansion": { - "version": "2.0.1", + "node_modules/@octokit/core/node_modules/@octokit/types": { + "version": "13.5.0", "license": "MIT", + "peer": true, "dependencies": { - "balanced-match": "^1.0.0" + "@octokit/openapi-types": "^22.2.0" } }, - "node_modules/@ts-morph/common/node_modules/minimatch": { - "version": "9.0.5", + "node_modules/@octokit/core/node_modules/before-after-hook": { + "version": "3.0.2", + "license": "Apache-2.0", + "peer": true + }, + "node_modules/@octokit/core/node_modules/universal-user-agent": { + "version": "7.0.2", "license": "ISC", + "peer": true + }, + "node_modules/@octokit/endpoint": { + "version": "6.0.12", + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" } }, - "node_modules/@types/archiver": { - "version": "2.1.3", + "node_modules/@octokit/endpoint/node_modules/universal-user-agent": { + "version": "6.0.1", + "license": "ISC" + }, + "node_modules/@octokit/graphql": { + "version": "8.1.1", "license": "MIT", + "peer": true, "dependencies": { - "@types/glob": "*" + "@octokit/request": "^9.0.0", + "@octokit/types": "^13.0.0", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@types/async-retry": { - "version": "1.4.5", + "node_modules/@octokit/graphql/node_modules/@octokit/endpoint": { + "version": "10.1.1", "license": "MIT", + "peer": true, "dependencies": { - "@types/retry": "*" + "@octokit/types": "^13.0.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@types/commonmark": { - "version": "0.27.5", - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.5", - "dev": true, - "license": "MIT" + "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": { + "version": "22.2.0", + "license": "MIT", + "peer": true }, - "node_modules/@types/glob": { - "version": "8.1.0", + "node_modules/@octokit/graphql/node_modules/@octokit/request": { + "version": "9.1.3", "license": "MIT", + "peer": true, "dependencies": { - "@types/minimatch": "^5.1.2", - "@types/node": "*" + "@octokit/endpoint": "^10.0.0", + "@octokit/request-error": "^6.0.1", + "@octokit/types": "^13.1.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@types/js-yaml": { - "version": "3.12.7", - "license": "MIT" - }, - "node_modules/@types/minimatch": { - "version": "5.1.2", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "20.12.12", + "node_modules/@octokit/graphql/node_modules/@octokit/request-error": { + "version": "6.1.4", "license": "MIT", + "peer": true, "dependencies": { - "undici-types": "~5.26.4" + "@octokit/types": "^13.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@types/node-fetch": { - "version": "2.6.2", + "node_modules/@octokit/graphql/node_modules/@octokit/types": { + "version": "13.5.0", "license": "MIT", + "peer": true, "dependencies": { - "@types/node": "*", - "form-data": "^3.0.0" + "@octokit/openapi-types": "^22.2.0" } }, - "node_modules/@types/retry": { - "version": "0.12.2", + "node_modules/@octokit/graphql/node_modules/universal-user-agent": { + "version": "7.0.2", + "license": "ISC", + "peer": true + }, + "node_modules/@octokit/openapi-types": { + "version": "12.11.0", "license": "MIT" }, - "node_modules/@types/shelljs": { - "version": "0.8.15", - "dev": true, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "1.1.2", "license": "MIT", "dependencies": { - "@types/glob": "~7.2.0", - "@types/node": "*" + "@octokit/types": "^2.0.1" } }, - "node_modules/@types/shelljs/node_modules/@types/glob": { - "version": "7.2.0", - "dev": true, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "2.16.2", "license": "MIT", "dependencies": { - "@types/minimatch": "*", - "@types/node": "*" + "@types/node": ">= 8" } }, - "node_modules/@types/triple-beam": { - "version": "1.3.5", - "license": "MIT" - }, - "node_modules/@vitest/expect": { - "version": "1.6.0", - "dev": true, + "node_modules/@octokit/plugin-request-log": { + "version": "1.0.4", "license": "MIT", - "dependencies": { - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "chai": "^4.3.10" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "peerDependencies": { + "@octokit/core": ">=3" } }, - "node_modules/@vitest/expect/node_modules/assertion-error": { - "version": "1.1.0", - "dev": true, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "2.4.0", "license": "MIT", - "engines": { - "node": "*" + "dependencies": { + "@octokit/types": "^2.0.1", + "deprecation": "^2.3.1" } }, - "node_modules/@vitest/expect/node_modules/chai": { - "version": "4.4.1", - "dev": true, + "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { + "version": "2.16.2", "license": "MIT", "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.0.8" - }, - "engines": { - "node": ">=4" + "@types/node": ">= 8" } }, - "node_modules/@vitest/expect/node_modules/check-error": { - "version": "1.0.3", - "dev": true, + "node_modules/@octokit/request": { + "version": "5.6.3", "license": "MIT", "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" } }, - "node_modules/@vitest/expect/node_modules/deep-eql": { - "version": "4.1.4", - "dev": true, + "node_modules/@octokit/request-error": { + "version": "1.2.1", "license": "MIT", "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" + "@octokit/types": "^2.0.0", + "deprecation": "^2.0.0", + "once": "^1.4.0" } }, - "node_modules/@vitest/expect/node_modules/loupe": { - "version": "2.3.7", - "dev": true, + "node_modules/@octokit/request-error/node_modules/@octokit/types": { + "version": "2.16.2", "license": "MIT", "dependencies": { - "get-func-name": "^2.0.1" + "@types/node": ">= 8" } }, - "node_modules/@vitest/expect/node_modules/pathval": { - "version": "1.1.1", - "dev": true, + "node_modules/@octokit/request/node_modules/@octokit/request-error": { + "version": "2.1.0", "license": "MIT", - "engines": { - "node": "*" + "dependencies": { + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" } }, - "node_modules/@vitest/runner": { - "version": "1.6.0", - "dev": true, + "node_modules/@octokit/request/node_modules/universal-user-agent": { + "version": "6.0.1", + "license": "ISC" + }, + "node_modules/@octokit/rest": { + "version": "16.43.2", "license": "MIT", "dependencies": { - "@vitest/utils": "1.6.0", - "p-limit": "^5.0.0", - "pathe": "^1.1.1" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "@octokit/auth-token": "^2.4.0", + "@octokit/plugin-paginate-rest": "^1.1.1", + "@octokit/plugin-request-log": "^1.0.0", + "@octokit/plugin-rest-endpoint-methods": "2.4.0", + "@octokit/request": "^5.2.0", + "@octokit/request-error": "^1.0.2", + "atob-lite": "^2.0.0", + "before-after-hook": "^2.0.0", + "btoa-lite": "^1.0.0", + "deprecation": "^2.0.0", + "lodash.get": "^4.4.2", + "lodash.set": "^4.3.2", + "lodash.uniq": "^4.5.0", + "octokit-pagination-methods": "^1.1.0", + "once": "^1.4.0", + "universal-user-agent": "^4.0.0" } }, - "node_modules/@vitest/runner/node_modules/p-limit": { - "version": "5.0.0", - "dev": true, + "node_modules/@octokit/types": { + "version": "6.41.0", "license": "MIT", "dependencies": { - "yocto-queue": "^1.0.0" - }, + "@octokit/openapi-types": "^12.11.0" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "optional": true, "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=14" } }, - "node_modules/@vitest/runner/node_modules/yocto-queue": { - "version": "1.0.0", + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.20.0", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "optional": true, + "os": [ + "win32" + ] }, - "node_modules/@vitest/snapshot": { - "version": "1.6.0", + "node_modules/@sinclair/typebox": { + "version": "0.27.8", "dev": true, + "license": "MIT" + }, + "node_modules/@ts-common/azure-js-dev-tools": { + "version": "21.4.0", "license": "MIT", "dependencies": { - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "pretty-format": "^29.7.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "@azure/logger-js": "^1.3.2", + "@azure/storage-blob": "^10.3.0", + "@octokit/rest": "^16.28.2", + "@types/archiver": "^2.1.2", + "@types/commonmark": "^0.27.1", + "@types/js-yaml": "^3.12.0", + "archiver": "^3.0.0", + "commonmark": "^0.28.1", + "isomorphic-git": "^0.55.2", + "js-yaml": "^3.12.1", + "yargs": "^12.0.5" } }, - "node_modules/@vitest/spy": { - "version": "1.6.0", - "dev": true, + "node_modules/@ts-common/azure-js-dev-tools/node_modules/argparse": { + "version": "1.0.10", "license": "MIT", "dependencies": { - "tinyspy": "^2.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "sprintf-js": "~1.0.2" } }, - "node_modules/@vitest/utils": { - "version": "1.6.0", - "dev": true, + "node_modules/@ts-common/azure-js-dev-tools/node_modules/js-yaml": { + "version": "3.14.1", "license": "MIT", "dependencies": { - "diff-sequences": "^29.6.3", - "estree-walker": "^3.0.3", - "loupe": "^2.3.7", - "pretty-format": "^29.7.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, - "funding": { - "url": "https://opencollective.com/vitest" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@vitest/utils/node_modules/loupe": { - "version": "2.3.7", - "dev": true, + "node_modules/@ts-morph/common": { + "version": "0.24.0", "license": "MIT", "dependencies": { - "get-func-name": "^2.0.1" + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" } }, - "node_modules/abort-controller": { - "version": "3.0.0", + "node_modules/@ts-morph/common/node_modules/brace-expansion": { + "version": "2.0.1", "license": "MIT", "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" + "balanced-match": "^1.0.0" } }, - "node_modules/acorn": { - "version": "8.11.3", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" + "node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "9.0.5", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=0.4.0" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/acorn-walk": { - "version": "8.3.2", - "dev": true, + "node_modules/@types/archiver": { + "version": "2.1.3", "license": "MIT", - "engines": { - "node": ">=0.4.0" + "dependencies": { + "@types/glob": "*" } }, - "node_modules/agent-base": { - "version": "4.3.0", + "node_modules/@types/async-retry": { + "version": "1.4.8", "license": "MIT", "dependencies": { - "es6-promisify": "^5.0.0" - }, - "engines": { - "node": ">= 4.0.0" + "@types/retry": "*" } }, - "node_modules/ansi-regex": { - "version": "3.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } + "node_modules/@types/commonmark": { + "version": "0.27.9", + "license": "MIT" }, - "node_modules/archiver": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "archiver-utils": "^2.1.0", - "async": "^2.6.3", - "buffer-crc32": "^0.2.1", - "glob": "^7.1.4", - "readable-stream": "^3.4.0", - "tar-stream": "^2.1.0", - "zip-stream": "^2.1.2" - }, - "engines": { - "node": ">= 6" - } + "node_modules/@types/estree": { + "version": "1.0.5", + "dev": true, + "license": "MIT" }, - "node_modules/archiver-utils": { - "version": "2.1.0", + "node_modules/@types/glob": { + "version": "8.1.0", "license": "MIT", "dependencies": { - "glob": "^7.1.4", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^2.0.0" - }, - "engines": { - "node": ">= 6" + "@types/minimatch": "^5.1.2", + "@types/node": "*" } }, - "node_modules/archiver-utils/node_modules/readable-stream": { - "version": "2.3.8", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } + "node_modules/@types/js-yaml": { + "version": "3.12.10", + "license": "MIT" }, - "node_modules/archiver-utils/node_modules/safe-buffer": { + "node_modules/@types/minimatch": { "version": "5.1.2", "license": "MIT" }, - "node_modules/archiver-utils/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/@types/node": { + "version": "20.14.15", "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.0" + "undici-types": "~5.26.4" } }, - "node_modules/argparse": { - "version": "1.0.10", + "node_modules/@types/node-fetch": { + "version": "2.6.11", "license": "MIT", "dependencies": { - "sprintf-js": "~1.0.2" + "@types/node": "*", + "form-data": "^4.0.0" } }, - "node_modules/array-back": { - "version": "3.1.0", + "node_modules/@types/node-fetch/node_modules/form-data": { + "version": "4.0.0", "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, "engines": { - "node": ">=6" + "node": ">= 6" } }, - "node_modules/array-timsort": { - "version": "1.0.3", + "node_modules/@types/retry": { + "version": "0.12.5", "license": "MIT" }, - "node_modules/async": { - "version": "2.6.4", + "node_modules/@types/shelljs": { + "version": "0.8.15", + "dev": true, "license": "MIT", "dependencies": { - "lodash": "^4.17.14" + "@types/glob": "~7.2.0", + "@types/node": "*" } }, - "node_modules/async-lock": { - "version": "1.4.1", - "license": "MIT" - }, - "node_modules/async-retry": { - "version": "1.3.3", + "node_modules/@types/shelljs/node_modules/@types/glob": { + "version": "7.2.0", + "dev": true, "license": "MIT", "dependencies": { - "retry": "0.13.1" + "@types/minimatch": "*", + "@types/node": "*" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "license": "MIT" - }, - "node_modules/balanced-match": { - "version": "1.0.2", + "node_modules/@types/triple-beam": { + "version": "1.3.5", "license": "MIT" }, - "node_modules/base64-js": { - "version": "0.0.2", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/before-after-hook": { - "version": "1.4.0", - "license": "Apache-2.0" - }, - "node_modules/bl": { - "version": "4.1.0", - "license": "MIT", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", + "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/bops": { - "version": "0.0.7", - "license": "MIT", + "node_modules/@typescript-eslint/parser": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz", + "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", "dependencies": { - "base64-js": "0.0.2", - "to-utf8": "0.0.1" + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", + "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/braces": { - "version": "3.0.3", - "license": "MIT", + "node_modules/@typescript-eslint/type-utils": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", + "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", "dependencies": { - "fill-range": "^7.1.1" + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" }, "engines": { - "node": ">=8" + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/btoa-lite": { - "version": "1.0.0", - "license": "MIT" + "node_modules/@typescript-eslint/types": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz", + "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } }, - "node_modules/buffer": { - "version": "5.7.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/buffer/node_modules/base64-js": { - "version": "1.5.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/cac": { - "version": "6.7.14", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/clean-git-ref": { - "version": "1.0.3", - "license": "Apache-2.0" - }, - "node_modules/cliui": { - "version": "4.1.0", - "license": "ISC", - "dependencies": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "node_modules/code-block-writer": { - "version": "13.0.2", - "license": "MIT" - }, - "node_modules/code-point-at": { - "version": "1.1.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/color": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.3", - "color-string": "^1.6.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/color-string": { - "version": "1.9.1", - "license": "MIT", - "dependencies": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" - } - }, - "node_modules/color/node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color/node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" - }, - "node_modules/colors": { - "version": "1.4.0", - "license": "MIT", - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/colorspace": { - "version": "1.1.4", - "license": "MIT", - "dependencies": { - "color": "^3.1.3", - "text-hex": "1.0.x" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/command-line-args": { - "version": "5.2.1", - "license": "MIT", - "dependencies": { - "array-back": "^3.1.0", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/comment-json": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "array-timsort": "^1.0.3", - "core-util-is": "^1.0.3", - "esprima": "^4.0.1", - "has-own-prop": "^2.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/commonmark": { - "version": "0.28.1", - "license": "BSD-2-Clause", - "dependencies": { - "entities": "~ 1.1.1", - "mdurl": "~ 1.0.1", - "minimist": "~ 1.2.0", - "string.prototype.repeat": "^0.2.0" - }, - "bin": { - "commonmark": "bin/commonmark" - }, - "engines": { - "node": "*" - } - }, - "node_modules/compress-commons": { - "version": "2.1.1", - "license": "MIT", - "dependencies": { - "buffer-crc32": "^0.2.13", - "crc32-stream": "^3.0.1", - "normalize-path": "^3.0.0", - "readable-stream": "^2.3.6" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/compress-commons/node_modules/readable-stream": { - "version": "2.3.8", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/compress-commons/node_modules/safe-buffer": { - "version": "5.1.2", - "license": "MIT" - }, - "node_modules/compress-commons/node_modules/string_decoder": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/confbox": { - "version": "0.1.7", - "dev": true, - "license": "MIT" - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "license": "MIT" - }, - "node_modules/crc": { - "version": "3.8.0", - "license": "MIT", - "dependencies": { - "buffer": "^5.1.0" - } - }, - "node_modules/crc-32": { - "version": "1.2.2", - "license": "Apache-2.0", - "bin": { - "crc32": "bin/crc32.njs" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/crc32-stream": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "crc": "^3.4.4", - "readable-stream": "^3.4.0" - }, - "engines": { - "node": ">= 6.9.0" - } - }, - "node_modules/cross-spawn": { - "version": "6.0.5", - "license": "MIT", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/cross-spawn/node_modules/semver": { - "version": "5.7.2", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/debug": { - "version": "4.3.6", - "license": "MIT", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decompress-response": { - "version": "4.2.1", - "license": "MIT", - "dependencies": { - "mimic-response": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/diff-lines": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "diff": "^3.5.0" - } - }, - "node_modules/diff-lines/node_modules/diff": { - "version": "3.5.0", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/enabled": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/entities": { - "version": "1.1.2", - "license": "BSD-2-Clause" - }, - "node_modules/es6-promise": { - "version": "4.2.8", - "license": "MIT" - }, - "node_modules/es6-promisify": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "es6-promise": "^4.0.3" - } - }, - "node_modules/esbuild": { - "version": "0.20.2", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.20.2", - "@esbuild/android-arm": "0.20.2", - "@esbuild/android-arm64": "0.20.2", - "@esbuild/android-x64": "0.20.2", - "@esbuild/darwin-arm64": "0.20.2", - "@esbuild/darwin-x64": "0.20.2", - "@esbuild/freebsd-arm64": "0.20.2", - "@esbuild/freebsd-x64": "0.20.2", - "@esbuild/linux-arm": "0.20.2", - "@esbuild/linux-arm64": "0.20.2", - "@esbuild/linux-ia32": "0.20.2", - "@esbuild/linux-loong64": "0.20.2", - "@esbuild/linux-mips64el": "0.20.2", - "@esbuild/linux-ppc64": "0.20.2", - "@esbuild/linux-riscv64": "0.20.2", - "@esbuild/linux-s390x": "0.20.2", - "@esbuild/linux-x64": "0.20.2", - "@esbuild/netbsd-x64": "0.20.2", - "@esbuild/openbsd-x64": "0.20.2", - "@esbuild/sunos-x64": "0.20.2", - "@esbuild/win32-arm64": "0.20.2", - "@esbuild/win32-ia32": "0.20.2", - "@esbuild/win32-x64": "0.20.2" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/events": { - "version": "3.3.0", - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fastq": { - "version": "1.17.1", - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fecha": { - "version": "4.2.3", - "license": "MIT" - }, - "node_modules/fill-range": { - "version": "7.1.1", - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-replace": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "array-back": "^3.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/find-up": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/fn.name": { - "version": "1.1.0", - "license": "MIT" - }, - "node_modules/form-data": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/front-matter": { - "version": "4.0.2", - "license": "MIT", - "dependencies": { - "js-yaml": "^3.13.1" - } - }, - "node_modules/front-matter/node_modules/js-yaml": { - "version": "3.14.1", - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/fs-extra": { - "version": "11.2.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "license": "ISC" - }, - "node_modules/function-bind": { - "version": "1.1.1", - "license": "MIT" - }, - "node_modules/get-caller-file": { - "version": "1.0.3", - "license": "ISC" - }, - "node_modules/get-func-name": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/get-stream": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/get-tsconfig": { - "version": "4.7.6", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/git-apply-delta": { - "version": "0.0.7", - "license": "MIT", - "dependencies": { - "bops": "~0.0.6", - "varint": "0.0.3" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/globalyzer": { - "version": "0.1.4", - "license": "MIT" - }, - "node_modules/globrex": { - "version": "0.1.2", - "license": "MIT" - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "license": "ISC" - }, - "node_modules/has": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-own-prop": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/http-proxy-agent": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "agent-base": "4", - "debug": "3.1.0" - }, - "engines": { - "node": ">= 4.5.0" - } - }, - "node_modules/http-proxy-agent/node_modules/debug": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/http-proxy-agent/node_modules/ms": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/https-proxy-agent": { - "version": "2.2.4", - "license": "MIT", - "dependencies": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" - }, - "engines": { - "node": ">= 4.5.0" - } - }, - "node_modules/https-proxy-agent/node_modules/debug": { - "version": "3.2.7", - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/human-signals": { - "version": "5.0.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=16.17.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.3.1", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "node_modules/interpret": { - "version": "1.4.0", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/invert-kv": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/is-arrayish": { - "version": "0.3.2", - "license": "MIT" - }, - "node_modules/is-core-module": { - "version": "2.10.0", - "license": "MIT", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-stream": { - "version": "1.1.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "license": "ISC" - }, - "node_modules/isomorphic-git": { - "version": "0.55.6", - "license": "MIT", - "dependencies": { - "async-lock": "^1.1.0", - "clean-git-ref": "1.0.3", - "crc-32": "^1.2.0", - "diff-lines": "^1.1.1", - "git-apply-delta": "0.0.7", - "globalyzer": "^0.1.0", - "globrex": "^0.1.2", - "ignore": "^5.0.4", - "marky": "^1.2.1", - "minimisted": "^2.0.0", - "pako": "^1.0.10", - "pify": "^4.0.1", - "readable-stream": "^3.1.1", - "sha.js": "^2.4.9", - "simple-get": "^3.0.2" - }, - "bin": { - "isogit": "cli.js" - }, - "engines": { - "node": ">=7.6.0" - } - }, - "node_modules/js-tokens": { - "version": "9.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/js-yaml/node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/kuler": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/lazystream": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "readable-stream": "^2.0.5" - }, - "engines": { - "node": ">= 0.6.3" - } - }, - "node_modules/lazystream/node_modules/readable-stream": { - "version": "2.3.8", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/lazystream/node_modules/safe-buffer": { - "version": "5.1.2", - "license": "MIT" - }, - "node_modules/lazystream/node_modules/string_decoder": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/lcid": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "invert-kv": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/local-pkg": { - "version": "0.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "mlly": "^1.4.2", - "pkg-types": "^1.0.3" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/locate-path": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "license": "MIT" - }, - "node_modules/lodash-es": { - "version": "4.17.21", - "license": "MIT" - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "license": "MIT" - }, - "node_modules/lodash.defaults": { - "version": "4.2.0", - "license": "MIT" - }, - "node_modules/lodash.difference": { - "version": "4.5.0", - "license": "MIT" - }, - "node_modules/lodash.flatten": { - "version": "4.4.0", - "license": "MIT" - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "license": "MIT" - }, - "node_modules/lodash.union": { - "version": "4.6.0", - "license": "MIT" - }, - "node_modules/logform": { - "version": "2.6.1", - "license": "MIT", - "dependencies": { - "@colors/colors": "1.6.0", - "@types/triple-beam": "^1.3.2", - "fecha": "^4.2.0", - "ms": "^2.1.1", - "safe-stable-stringify": "^2.3.1", - "triple-beam": "^1.3.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/macos-release": { - "version": "2.5.1", - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/magic-string": { - "version": "0.30.10", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.15" - } - }, - "node_modules/map-age-cleaner": { - "version": "0.1.3", - "license": "MIT", - "dependencies": { - "p-defer": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/marky": { - "version": "1.2.5", - "license": "Apache-2.0" - }, - "node_modules/mdurl": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/mem": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/mem/node_modules/mimic-fn": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.7", - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mimic-response": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.7", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minimisted": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.5" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mlly": { - "version": "1.7.1", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.11.3", - "pathe": "^1.1.2", - "pkg-types": "^1.1.1", - "ufo": "^1.5.3" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.7", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/nice-try": { - "version": "1.0.5", - "license": "MIT" - }, - "node_modules/node-fetch": { - "version": "2.6.7", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "path-key": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/once": { - "version": "1.4.0", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/one-time": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "fn.name": "1.x.x" - } - }, - "node_modules/onetime": { - "version": "6.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/os-locale": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/os-name": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "macos-release": "^2.2.0", - "windows-release": "^3.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/p-defer": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/p-finally": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/p-is-promise": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/p-limit": { - "version": "2.3.0", - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/pako": { - "version": "1.0.11", - "license": "(MIT AND Zlib)" - }, - "node_modules/parse-ts-to-ast": { - "version": "0.1.3", - "license": "MIT", - "dependencies": { - "lodash": "^4.17.10", - "lodash-es": "^4.17.10", - "tslib": "^1.9.3", - "typescript": "^3.0.3" - } - }, - "node_modules/parse-ts-to-ast/node_modules/typescript": { - "version": "3.9.10", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/path-browserify": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/path-exists": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "license": "MIT" - }, - "node_modules/pathe": { - "version": "1.1.2", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.0.1", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "4.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-types": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "confbox": "^0.1.7", - "mlly": "^1.7.0", - "pathe": "^1.1.2" - } - }, - "node_modules/postcss": { - "version": "8.4.38", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/pretty-format": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "license": "MIT" - }, - "node_modules/pump": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/react-is": { - "version": "18.3.1", - "dev": true, - "license": "MIT" - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/rechoir": { - "version": "0.6.2", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/repeat-string": { - "version": "1.6.1", - "license": "MIT", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "1.0.1", - "license": "ISC" - }, - "node_modules/resolve": { - "version": "1.22.1", - "license": "MIT", - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/retry": { - "version": "0.13.1", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "4.18.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.5" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.18.0", - "@rollup/rollup-android-arm64": "4.18.0", - "@rollup/rollup-darwin-arm64": "4.18.0", - "@rollup/rollup-darwin-x64": "4.18.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", - "@rollup/rollup-linux-arm-musleabihf": "4.18.0", - "@rollup/rollup-linux-arm64-gnu": "4.18.0", - "@rollup/rollup-linux-arm64-musl": "4.18.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", - "@rollup/rollup-linux-riscv64-gnu": "4.18.0", - "@rollup/rollup-linux-s390x-gnu": "4.18.0", - "@rollup/rollup-linux-x64-gnu": "4.18.0", - "@rollup/rollup-linux-x64-musl": "4.18.0", - "@rollup/rollup-win32-arm64-msvc": "4.18.0", - "@rollup/rollup-win32-ia32-msvc": "4.18.0", - "@rollup/rollup-win32-x64-msvc": "4.18.0", - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safe-stable-stringify": { - "version": "2.4.3", - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/sax": { - "version": "1.2.4", - "license": "ISC" - }, - "node_modules/semver": { - "version": "7.6.2", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "license": "ISC" - }, - "node_modules/sha.js": { - "version": "2.4.11", - "license": "(MIT AND BSD-3-Clause)", - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - }, - "bin": { - "sha.js": "bin.js" - } - }, - "node_modules/shebang-command": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shebang-regex": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "license": "BSD-3-Clause", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "license": "ISC" - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/simple-get": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "decompress-response": "^4.2.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/simple-git": { - "version": "3.16.0", - "license": "MIT", - "dependencies": { - "@kwsites/file-exists": "^1.1.1", - "@kwsites/promise-deferred": "^1.1.1", - "debug": "^4.3.4" - }, - "funding": { - "type": "github", - "url": "https://github.com/steveukx/git-js?sponsor=1" - } - }, - "node_modules/simple-swizzle": { - "version": "0.2.2", - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.3.1" - } - }, - "node_modules/source-map-js": { - "version": "1.2.0", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "license": "BSD-3-Clause" - }, - "node_modules/stack-trace": { - "version": "0.0.10", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/stackback": { - "version": "0.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "3.7.0", - "dev": true, - "license": "MIT" - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-width": { - "version": "2.1.1", - "license": "MIT", - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/string.prototype.repeat": { - "version": "0.2.0" - }, - "node_modules/strip-ansi": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-eof": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-literal": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^9.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "license": "MIT", - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/text-hex": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/tinybench": { - "version": "2.8.0", - "dev": true, - "license": "MIT" - }, - "node_modules/tinypool": { - "version": "0.8.4", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "2.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/to-utf8": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/triple-beam": { - "version": "1.4.1", - "license": "MIT", - "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/ts-morph": { - "version": "23.0.0", - "license": "MIT", - "dependencies": { - "@ts-morph/common": "~0.24.0", - "code-block-writer": "^13.0.1" - } - }, - "node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, - "node_modules/tsx": { - "version": "4.16.5", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "~0.21.5", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/tsx/node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/tsx/node_modules/esbuild": { - "version": "0.21.5", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" - } - }, - "node_modules/tunnel": { - "version": "0.0.6", - "license": "MIT", - "engines": { - "node": ">=0.6.11 <=0.7.0 || >=0.7.3" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/typescript": { - "version": "5.5.3", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-codegen-breaking-change-detector": { - "resolved": "workspaces/typescript-codegen-breaking-change-detector", - "link": true - }, - "node_modules/typical": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ufo": { - "version": "1.5.3", - "dev": true, - "license": "MIT" - }, - "node_modules/undici-types": { - "version": "5.26.5", - "license": "MIT" - }, - "node_modules/universal-user-agent": { - "version": "2.1.0", - "license": "ISC", - "dependencies": { - "os-name": "^3.0.0" - } - }, - "node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/url-template": { - "version": "2.0.8", - "license": "BSD" - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/varint": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/vite": { - "version": "5.2.13", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.20.1", - "postcss": "^8.4.38", - "rollup": "^4.13.0" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vite-node": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.3.4", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "vite": "^5.0.0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vitest": { - "version": "1.6.0", - "dev": true, - "license": "MIT", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", + "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", "dependencies": { - "@vitest/expect": "1.6.0", - "@vitest/runner": "1.6.0", - "@vitest/snapshot": "1.6.0", - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "acorn-walk": "^8.3.2", - "chai": "^4.3.10", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", "debug": "^4.3.4", - "execa": "^8.0.1", - "local-pkg": "^0.5.0", - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "std-env": "^3.5.0", - "strip-literal": "^2.0.0", - "tinybench": "^2.5.1", - "tinypool": "^0.8.3", - "vite": "^5.0.0", - "vite-node": "1.6.0", - "why-is-node-running": "^2.2.2" - }, - "bin": { - "vitest": "vitest.mjs" + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "1.6.0", - "@vitest/ui": "1.6.0", - "happy-dom": "*", - "jsdom": "*" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { + "typescript": { "optional": true } } }, - "node_modules/vitest/node_modules/assertion-error": { - "version": "1.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/vitest/node_modules/chai": { - "version": "4.4.1", - "dev": true, - "license": "MIT", - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.0.8" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/vitest/node_modules/check-error": { - "version": "1.0.3", - "dev": true, - "license": "MIT", + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" + "balanced-match": "^1.0.0" } }, - "node_modules/vitest/node_modules/cross-spawn": { - "version": "7.0.3", - "dev": true, - "license": "MIT", + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">= 8" - } - }, - "node_modules/vitest/node_modules/deep-eql": { - "version": "4.1.4", - "dev": true, - "license": "MIT", - "dependencies": { - "type-detect": "^4.0.0" + "node": ">=16 || 14 >=14.17" }, - "engines": { - "node": ">=6" + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/vitest/node_modules/execa": { - "version": "8.0.1", - "dev": true, - "license": "MIT", + "node_modules/@typescript-eslint/utils": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", + "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" }, "engines": { - "node": ">=16.17" + "node": "^18.18.0 || >=20.0.0" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/vitest/node_modules/get-stream": { - "version": "8.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "eslint": "^8.56.0" } }, - "node_modules/vitest/node_modules/is-stream": { - "version": "3.0.0", - "dev": true, - "license": "MIT", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", + "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" + }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/vitest/node_modules/loupe": { - "version": "2.3.7", - "dev": true, - "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.1" - } + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "peer": true }, - "node_modules/vitest/node_modules/npm-run-path": { - "version": "5.3.0", + "node_modules/@vitest/expect": { + "version": "1.6.0", "dev": true, "license": "MIT", "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "@vitest/spy": "1.6.0", + "@vitest/utils": "1.6.0", + "chai": "^4.3.10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/vitest" } }, - "node_modules/vitest/node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", + "node_modules/@vitest/runner": { + "version": "1.6.0", "dev": true, "license": "MIT", - "engines": { - "node": ">=12" + "dependencies": { + "@vitest/utils": "1.6.0", + "p-limit": "^5.0.0", + "pathe": "^1.1.1" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/vitest/node_modules/path-key": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/vitest/node_modules/pathval": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" + "url": "https://opencollective.com/vitest" } }, - "node_modules/vitest/node_modules/shebang-command": { - "version": "2.0.0", + "node_modules/@vitest/snapshot": { + "version": "1.6.0", "dev": true, "license": "MIT", "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/vitest/node_modules/shebang-regex": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/vitest/node_modules/signal-exit": { - "version": "4.1.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" + "magic-string": "^0.30.5", + "pathe": "^1.1.1", + "pretty-format": "^29.7.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://opencollective.com/vitest" } }, - "node_modules/vitest/node_modules/which": { - "version": "2.0.2", + "node_modules/@vitest/spy": { + "version": "1.6.0", "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", "license": "MIT", "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "1.3.1", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" + "tinyspy": "^2.2.0" }, - "bin": { - "which": "bin/which" + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/which-module": { - "version": "2.0.1", - "license": "ISC" - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", + "node_modules/@vitest/utils": { + "version": "1.6.0", "dev": true, "license": "MIT", "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/windows-release": { - "version": "3.3.3", - "license": "MIT", - "dependencies": { - "execa": "^1.0.0" - }, - "engines": { - "node": ">=6" + "diff-sequences": "^29.6.3", + "estree-walker": "^3.0.3", + "loupe": "^2.3.7", + "pretty-format": "^29.7.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/vitest" } }, - "node_modules/winston": { - "version": "3.14.1", + "node_modules/abort-controller": { + "version": "3.0.0", "license": "MIT", "dependencies": { - "@colors/colors": "^1.6.0", - "@dabh/diagnostics": "^2.0.2", - "async": "^3.2.3", - "is-stream": "^2.0.0", - "logform": "^2.6.0", - "one-time": "^1.0.0", - "readable-stream": "^3.4.0", - "safe-stable-stringify": "^2.3.1", - "stack-trace": "0.0.x", - "triple-beam": "^1.3.0", - "winston-transport": "^4.7.0" + "event-target-shim": "^5.0.0" }, "engines": { - "node": ">= 12.0.0" + "node": ">=6.5" } }, - "node_modules/winston-transport": { - "version": "4.7.1", + "node_modules/acorn": { + "version": "8.12.1", "license": "MIT", - "dependencies": { - "logform": "^2.6.1", - "readable-stream": "^3.6.2", - "triple-beam": "^1.3.0" + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">= 12.0.0" + "node": ">=0.4.0" } }, - "node_modules/winston/node_modules/async": { - "version": "3.2.5", - "license": "MIT" + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "peer": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } }, - "node_modules/winston/node_modules/is-stream": { - "version": "2.0.1", + "node_modules/acorn-walk": { + "version": "8.3.3", + "dev": true, "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, "engines": { - "node": ">=8" + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/wrap-ansi": { - "version": "2.1.0", + "node_modules/ansi-regex": { + "version": "3.0.1", "license": "MIT", - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "2.1.1", + "node_modules/ansi-styles": { + "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", + "node_modules/archiver": { + "version": "3.1.1", "license": "MIT", "dependencies": { - "number-is-nan": "^1.0.0" + "archiver-utils": "^2.1.0", + "async": "^2.6.3", + "buffer-crc32": "^0.2.1", + "glob": "^7.1.4", + "readable-stream": "^3.4.0", + "tar-stream": "^2.1.0", + "zip-stream": "^2.1.2" }, "engines": { - "node": ">=0.10.0" + "node": ">= 6" } }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "1.0.2", + "node_modules/archiver-utils": { + "version": "2.1.0", "license": "MIT", "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "glob": "^7.1.4", + "graceful-fs": "^4.2.0", + "lazystream": "^1.0.0", + "lodash.defaults": "^4.2.0", + "lodash.difference": "^4.5.0", + "lodash.flatten": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.union": "^4.6.0", + "normalize-path": "^3.0.0", + "readable-stream": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">= 6" } }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "3.0.1", + "node_modules/archiver-utils/node_modules/readable-stream": { + "version": "2.3.8", "license": "MIT", "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "node_modules/wrappy": { - "version": "1.0.2", - "license": "ISC" + "node_modules/archiver-utils/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" }, - "node_modules/xmlbuilder": { - "version": "11.0.1", + "node_modules/archiver-utils/node_modules/string_decoder": { + "version": "1.1.1", "license": "MIT", - "engines": { - "node": ">=4.0" + "dependencies": { + "safe-buffer": "~5.1.0" } }, - "node_modules/y18n": { - "version": "4.0.3", - "license": "ISC" + "node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" }, - "node_modules/yaml": { - "version": "1.10.2", - "license": "ISC", + "node_modules/array-back": { + "version": "3.1.0", + "license": "MIT", "engines": { - "node": ">= 6" + "node": ">=6" } }, - "node_modules/yargs": { - "version": "12.0.5", - "license": "MIT", - "dependencies": { - "cliui": "^4.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1 || ^4.0.0", - "yargs-parser": "^11.1.1" - } + "node_modules/array-timsort": { + "version": "1.0.3", + "license": "MIT" }, - "node_modules/yargs-parser": { - "version": "11.1.1", - "license": "ISC", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "engines": { + "node": ">=8" } }, - "node_modules/zip-stream": { - "version": "2.1.3", + "node_modules/assertion-error": { + "version": "1.1.0", + "dev": true, "license": "MIT", - "dependencies": { - "archiver-utils": "^2.1.0", - "compress-commons": "^2.1.1", - "readable-stream": "^3.4.0" - }, "engines": { - "node": ">= 6" + "node": "*" } }, - "workspaces/typescript-codegen-breaking-change-detector": { - "version": "0.4.6", + "node_modules/async": { + "version": "2.6.4", "license": "MIT", "dependencies": { - "@azure-tools/openapi-tools-common": "^1.2.2", - "@typescript-eslint/scope-manager": "^7.17.0", - "@typescript-eslint/types": "^7.17.0", - "@typescript-eslint/typescript-estree": "^7.17.0", - "@typescript-eslint/utils": "^7.17.0", - "@typescript-eslint/visitor-keys": "^7.17.0", - "commander": "^12.1.0", - "fs-extra": "^11.2.0", - "glob": "^11.0.0", - "marked": "^13.0.2", - "pino": "^9.3.1", - "pino-pretty": "^11.2.1", - "ts-morph": "^23.0.0", - "typescript": "5.5.3", - "typescript-eslint": "^7.17.0" - }, - "devDependencies": { - "@types/eslint": "^8.56.10", - "@types/eslint-scope": "^3.7.7", - "@types/fs-extra": "^11.0.4", - "@typescript-eslint/eslint-plugin": "^7.17.0", - "@typescript-eslint/parser": "^7.17.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", - "onchange": "^7.1.0", - "prettier": "3.3.2", - "rimraf": "^5.0.7", - "tsx": "^4.16.2", - "vitest": "^2.0.4" + "lodash": "^4.17.14" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@ampproject/remapping": { - "version": "2.3.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } + "node_modules/async-lock": { + "version": "1.4.1", + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@azure-tools/openapi-tools-common": { - "version": "1.2.2", + "node_modules/async-retry": { + "version": "1.3.3", "license": "MIT", "dependencies": { - "@types/async-retry": "^1.4.1", - "@types/commonmark": "^0.27.3", - "@types/node-fetch": "^2.5.7", - "async-retry": "^1.2.3", - "commonmark": "^0.28.1", - "front-matter": "^4.0.2", - "node-fetch": "^2.6.0", - "tslib": "^2.0.0" + "retry": "0.13.1" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/atob-lite": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", + "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", + "engines": { + "node": ">=8.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@blakeembrey/deque": { - "version": "1.0.5", - "dev": true, - "license": "Apache-2.0" + "node_modules/balanced-match": { + "version": "1.0.2", + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@blakeembrey/template": { - "version": "1.1.0", - "dev": true, + "node_modules/base64-js": { + "version": "0.0.2", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/before-after-hook": { + "version": "2.2.3", "license": "Apache-2.0" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@esbuild/win32-x64": { - "version": "0.23.0", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/bl": { + "version": "4.1.0", "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", + "node_modules/bops": { + "version": "0.0.7", "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + "base64-js": "0.0.2", + "to-utf8": "0.0.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint-community/regexpp": { - "version": "4.11.0", + "node_modules/brace-expansion": { + "version": "1.1.11", "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint/eslintrc": { - "version": "2.1.4", + "node_modules/braces": { + "version": "3.0.3", "license": "MIT", - "peer": true, "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "fill-range": "^7.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.11", + "node_modules/btoa-lite": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "license": "MIT", - "peer": true, "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "license": "MIT", "engines": { "node": "*" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@eslint/js": { - "version": "8.57.0", + "node_modules/buffer/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/cac": { + "version": "6.7.14", + "dev": true, "license": "MIT", - "peer": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "license": "Apache-2.0", + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "peer": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, "engines": { - "node": ">=10.10.0" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { - "version": "1.1.11", + "node_modules/camelcase": { + "version": "5.3.1", "license": "MIT", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "engines": { + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/config-array/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "peer": true, + "node_modules/chai": { + "version": "4.5.0", + "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" + "assertion-error": "^1.1.0", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", + "pathval": "^1.1.1", + "type-detect": "^4.1.0" }, "engines": { - "node": "*" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "license": "Apache-2.0", + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "peer": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">=12.22" + "node": ">=10" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "license": "BSD-3-Clause", - "peer": true - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@isaacs/cliui": { - "version": "8.0.2", - "license": "ISC", + "node_modules/chalk/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "peer": true, "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=12" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "license": "MIT", - "engines": { - "node": ">=12" + "node": ">=8" }, "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "license": "MIT", + "node_modules/chalk/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "peer": true, "dependencies": { - "ansi-regex": "^6.0.1" + "color-name": "~1.1.4" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "node": ">=7.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", + "node_modules/chalk/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "peer": true + }, + "node_modules/check-error": { + "version": "1.0.3", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" + "get-func-name": "^2.0.2" }, "engines": { - "node": ">=6.0.0" + "node": "*" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "dev": true, + "node_modules/clean-git-ref": { + "version": "1.0.3", + "license": "Apache-2.0" + }, + "node_modules/cliui": { + "version": "4.1.0", + "license": "ISC", + "dependencies": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "node_modules/code-block-writer": { + "version": "13.0.2", + "license": "MIT" + }, + "node_modules/code-point-at": { + "version": "1.1.0", "license": "MIT", "engines": { - "node": ">=6.0.0" + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "dev": true, + "node_modules/color": { + "version": "3.2.1", "license": "MIT", - "engines": { - "node": ">=6.0.0" + "dependencies": { + "color-convert": "^1.9.3", + "color-string": "^1.6.0" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "dev": true, + "node_modules/color-name": { + "version": "1.1.3", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "dev": true, + "node_modules/color-string": { + "version": "1.9.1", "license": "MIT", "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + }, + "node_modules/colors": { + "version": "1.4.0", "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, "engines": { - "node": ">= 8" + "node": ">=0.1.90" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@nodelib/fs.stat": { - "version": "2.0.5", + "node_modules/colorspace": { + "version": "1.1.4", "license": "MIT", - "engines": { - "node": ">= 8" + "dependencies": { + "color": "^3.1.3", + "text-hex": "1.0.x" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@nodelib/fs.walk": { - "version": "1.2.8", + "node_modules/combined-stream": { + "version": "1.0.8", "license": "MIT", "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" + "delayed-stream": "~1.0.0" }, "engines": { - "node": ">= 8" + "node": ">= 0.8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@pkgjs/parseargs": { - "version": "0.11.0", + "node_modules/command-line-args": { + "version": "5.2.1", "license": "MIT", - "optional": true, + "dependencies": { + "array-back": "^3.1.0", + "find-replace": "^3.0.0", + "lodash.camelcase": "^4.3.0", + "typical": "^4.0.0" + }, "engines": { - "node": ">=14" + "node": ">=4.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@pkgr/core": { - "version": "0.1.1", - "dev": true, - "license": "MIT", + "node_modules/commander": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", + "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" + "node": ">=18" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.20.0", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@ts-morph/common": { - "version": "0.24.0", + "node_modules/comment-json": { + "version": "4.2.5", "license": "MIT", "dependencies": { - "fast-glob": "^3.3.2", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "path-browserify": "^1.0.1" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@ts-morph/common/node_modules/minimatch": { - "version": "9.0.5", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" + "array-timsort": "^1.0.3", + "core-util-is": "^1.0.3", + "esprima": "^4.0.1", + "has-own-prop": "^2.0.0", + "repeat-string": "^1.6.1" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">= 6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/async-retry": { - "version": "1.4.8", - "license": "MIT", + "node_modules/commonmark": { + "version": "0.28.1", + "license": "BSD-2-Clause", "dependencies": { - "@types/retry": "*" + "entities": "~ 1.1.1", + "mdurl": "~ 1.0.1", + "minimist": "~ 1.2.0", + "string.prototype.repeat": "^0.2.0" + }, + "bin": { + "commonmark": "bin/commonmark" + }, + "engines": { + "node": "*" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/commonmark": { - "version": "0.27.9", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/eslint": { - "version": "8.56.11", - "dev": true, + "node_modules/compress-commons": { + "version": "2.1.1", "license": "MIT", "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" + "buffer-crc32": "^0.2.13", + "crc32-stream": "^3.0.1", + "normalize-path": "^3.0.0", + "readable-stream": "^2.3.6" + }, + "engines": { + "node": ">= 6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/eslint-scope": { - "version": "3.7.7", - "dev": true, + "node_modules/compress-commons/node_modules/readable-stream": { + "version": "2.3.8", "license": "MIT", "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/estree": { - "version": "1.0.5", - "dev": true, + "node_modules/compress-commons/node_modules/safe-buffer": { + "version": "5.1.2", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/fs-extra": { - "version": "11.0.4", - "dev": true, + "node_modules/compress-commons/node_modules/string_decoder": { + "version": "1.1.1", "license": "MIT", "dependencies": { - "@types/jsonfile": "*", - "@types/node": "*" + "safe-buffer": "~5.1.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/json-schema": { - "version": "7.0.15", - "dev": true, + "node_modules/concat-map": { + "version": "0.0.1", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/jsonfile": { - "version": "6.1.4", + "node_modules/confbox": { + "version": "0.1.7", "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/node": { - "version": "22.2.0", - "license": "MIT", - "dependencies": { - "undici-types": "~6.13.0" - } + "node_modules/core-util-is": { + "version": "1.0.3", + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/node-fetch": { - "version": "2.6.11", + "node_modules/crc": { + "version": "3.8.0", "license": "MIT", "dependencies": { - "@types/node": "*", - "form-data": "^4.0.0" + "buffer": "^5.1.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@types/retry": { - "version": "0.12.5", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/type-utils": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" + "node_modules/crc-32": { + "version": "1.2.2", + "license": "Apache-2.0", + "bin": { + "crc32": "bin/crc32.njs" }, "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^7.0.0", - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=0.8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/parser": { - "version": "7.18.0", - "license": "BSD-2-Clause", + "node_modules/crc32-stream": { + "version": "3.0.1", + "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4" + "crc": "^3.4.4", + "readable-stream": "^3.4.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">= 6.9.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/scope-manager": { - "version": "7.18.0", + "node_modules/cross-spawn": { + "version": "7.0.3", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">= 8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/type-utils": { - "version": "7.18.0", + "node_modules/dateformat": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", + "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", + "engines": { + "node": "*" + } + }, + "node_modules/debug": { + "version": "4.3.6", "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "ms": "2.1.2" }, - "peerDependencies": { - "eslint": "^8.56.0" + "engines": { + "node": ">=6.0" }, "peerDependenciesMeta": { - "typescript": { + "supports-color": { "optional": true } } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/types": { - "version": "7.18.0", + "node_modules/decamelize": { + "version": "1.2.0", "license": "MIT", "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/typescript-estree": { - "version": "7.18.0", - "license": "BSD-2-Clause", + "node_modules/decompress-response": { + "version": "4.2.1", + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" + "mimic-response": "^2.0.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "license": "ISC", + "node_modules/deep-eql": { + "version": "4.1.4", + "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" + "type-detect": "^4.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/utils": { - "version": "7.18.0", + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "peer": true + }, + "node_modules/delayed-stream": { + "version": "1.0.0", "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0" - }, "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" + "node": ">=0.4.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@typescript-eslint/visitor-keys": { - "version": "7.18.0", + "node_modules/deprecation": { + "version": "2.3.1", + "license": "ISC" + }, + "node_modules/diff": { + "version": "3.5.0", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-lines": { + "version": "1.1.1", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "7.18.0", - "eslint-visitor-keys": "^3.4.3" + "diff": "^3.5.0" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "peer": true, + "dependencies": { + "esutils": "^2.0.2" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "engines": { + "node": ">=6.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "license": "ISC", - "peer": true + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/expect": { - "version": "2.0.5", - "dev": true, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/enabled": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", "license": "MIT", "dependencies": { - "@vitest/spy": "2.0.5", - "@vitest/utils": "2.0.5", - "chai": "^5.1.1", - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "once": "^1.4.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/pretty-format": { - "version": "2.0.5", + "node_modules/entities": { + "version": "1.1.2", + "license": "BSD-2-Clause" + }, + "node_modules/esbuild": { + "version": "0.23.0", "dev": true, + "hasInstallScript": true, "license": "MIT", - "dependencies": { - "tinyrainbow": "^1.2.0" + "bin": { + "esbuild": "bin/esbuild" }, - "funding": { - "url": "https://opencollective.com/vitest" + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.23.0", + "@esbuild/android-arm": "0.23.0", + "@esbuild/android-arm64": "0.23.0", + "@esbuild/android-x64": "0.23.0", + "@esbuild/darwin-arm64": "0.23.0", + "@esbuild/darwin-x64": "0.23.0", + "@esbuild/freebsd-arm64": "0.23.0", + "@esbuild/freebsd-x64": "0.23.0", + "@esbuild/linux-arm": "0.23.0", + "@esbuild/linux-arm64": "0.23.0", + "@esbuild/linux-ia32": "0.23.0", + "@esbuild/linux-loong64": "0.23.0", + "@esbuild/linux-mips64el": "0.23.0", + "@esbuild/linux-ppc64": "0.23.0", + "@esbuild/linux-riscv64": "0.23.0", + "@esbuild/linux-s390x": "0.23.0", + "@esbuild/linux-x64": "0.23.0", + "@esbuild/netbsd-x64": "0.23.0", + "@esbuild/openbsd-arm64": "0.23.0", + "@esbuild/openbsd-x64": "0.23.0", + "@esbuild/sunos-x64": "0.23.0", + "@esbuild/win32-arm64": "0.23.0", + "@esbuild/win32-ia32": "0.23.0", + "@esbuild/win32-x64": "0.23.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/runner": { - "version": "2.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "2.0.5", - "pathe": "^1.1.2" + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "peer": true, + "engines": { + "node": ">=10" }, "funding": { - "url": "https://opencollective.com/vitest" + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/snapshot": { - "version": "2.0.5", - "dev": true, - "license": "MIT", + "node_modules/eslint": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "peer": true, "dependencies": { - "@vitest/pretty-format": "2.0.5", - "magic-string": "^0.30.10", - "pathe": "^1.1.2" + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://opencollective.com/vitest" + "url": "https://opencollective.com/eslint" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/spy": { - "version": "2.0.5", - "dev": true, - "license": "MIT", + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "peer": true, "dependencies": { - "tinyspy": "^3.0.0" + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://opencollective.com/vitest" + "url": "https://opencollective.com/eslint" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/@vitest/utils": { - "version": "2.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "2.0.5", - "estree-walker": "^3.0.3", - "loupe": "^3.1.1", - "tinyrainbow": "^1.2.0" + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://opencollective.com/vitest" + "url": "https://opencollective.com/eslint" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/abort-controller": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "event-target-shim": "^5.0.0" - }, + "node_modules/eslint/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "peer": true, "engines": { - "node": ">=6.5" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/acorn": { - "version": "8.12.1", - "license": "MIT", + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "peer": true, - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">=0.4.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/acorn-jsx": { - "version": "5.3.2", - "license": "MIT", + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "peer": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/ajv": { - "version": "6.12.6", - "license": "MIT", + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "peer": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "p-locate": "^5.0.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "peer": true, "dependencies": { - "color-convert": "^2.0.1" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/anymatch": { - "version": "3.1.3", - "dev": true, - "license": "ISC", + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "peer": true, "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" + "p-limit": "^3.0.2" }, "engines": { - "node": ">= 8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/arg": { - "version": "4.1.3", - "dev": true, - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0", - "peer": true - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/array-union": { - "version": "2.1.0", - "license": "MIT", + "node_modules/eslint/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "peer": true, "engines": { "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/assertion-error": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/async-retry": { - "version": "1.3.3", - "license": "MIT", + "node_modules/eslint/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "peer": true, "dependencies": { - "retry": "0.13.1" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/asynckit": { - "version": "0.4.0", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/atomic-sleep": { - "version": "1.0.0", - "license": "MIT", + "ansi-regex": "^5.0.1" + }, "engines": { - "node": ">=8.0.0" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/base64-js": { - "version": "1.5.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/binary-extensions": { - "version": "2.3.0", - "dev": true, - "license": "MIT", + "node_modules/eslint/node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "peer": true, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/brace-expansion": { - "version": "2.0.1", - "license": "MIT", + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "peer": true, "dependencies": { - "balanced-match": "^1.0.0" + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/braces": { - "version": "3.0.3", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/buffer": { - "version": "6.0.3", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "peer": true, "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/cac": { - "version": "6.7.14", - "dev": true, - "license": "MIT", + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "peer": true, + "dependencies": { + "estraverse": "^5.2.0" + }, "engines": { - "node": ">=8" + "node": ">=4.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/callsites": { - "version": "3.1.0", - "license": "MIT", + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "peer": true, "engines": { - "node": ">=6" + "node": ">=4.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/chai": { - "version": "5.1.1", + "node_modules/estree-walker": { + "version": "3.0.3", "dev": true, "license": "MIT", "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, - "engines": { - "node": ">=12" + "@types/estree": "^1.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/chalk": { - "version": "4.1.2", - "license": "MIT", + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "peer": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/check-error": { - "version": "2.1.1", - "dev": true, + "node_modules/event-target-shim": { + "version": "5.0.1", "license": "MIT", "engines": { - "node": ">= 16" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/chokidar": { - "version": "3.6.0", - "dev": true, + "node_modules/events": { + "version": "3.3.0", "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "node": ">=0.8.x" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", + "node_modules/execa": { + "version": "8.0.1", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "is-glob": "^4.0.1" + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" }, "engines": { - "node": ">= 6" + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/code-block-writer": { - "version": "13.0.2", - "license": "MIT" + "node_modules/fast-copy": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-3.0.2.tgz", + "integrity": "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/color-convert": { - "version": "2.0.1", + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "peer": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" }, "engines": { - "node": ">=7.0.0" + "node": ">=8.6.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "peer": true }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/colorette": { - "version": "2.0.20", - "license": "MIT" + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "peer": true }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/combined-stream": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, + "node_modules/fast-redact": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", + "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", "engines": { - "node": ">= 0.8" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/commander": { - "version": "12.1.0", - "license": "MIT", - "engines": { - "node": ">=18" + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, + "node_modules/fastq": { + "version": "1.17.1", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/commonmark": { - "version": "0.28.1", - "license": "BSD-2-Clause", + "node_modules/fecha": { + "version": "4.2.3", + "license": "MIT" + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "peer": true, "dependencies": { - "entities": "~ 1.1.1", - "mdurl": "~ 1.0.1", - "minimist": "~ 1.2.0", - "string.prototype.repeat": "^0.2.0" - }, - "bin": { - "commonmark": "bin/commonmark" + "flat-cache": "^3.0.4" }, "engines": { - "node": "*" + "node": "^10.12.0 || >=12.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/concat-map": { - "version": "0.0.1", - "license": "MIT", - "peer": true - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/cross-spawn": { - "version": "7.0.3", + "node_modules/fill-range": { + "version": "7.1.1", "license": "MIT", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "to-regex-range": "^5.0.1" }, "engines": { - "node": ">= 8" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/dateformat": { - "version": "4.6.3", + "node_modules/find-replace": { + "version": "3.0.0", "license": "MIT", + "dependencies": { + "array-back": "^3.0.1" + }, "engines": { - "node": "*" + "node": ">=4.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/debug": { - "version": "4.3.6", + "node_modules/find-up": { + "version": "3.0.0", "license": "MIT", "dependencies": { - "ms": "2.1.2" + "locate-path": "^3.0.0" }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/deep-eql": { - "version": "5.0.2", - "dev": true, - "license": "MIT", + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "peer": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, "engines": { - "node": ">=6" + "node": "^10.12.0 || >=12.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/deep-is": { - "version": "0.1.4", - "license": "MIT", + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", "peer": true }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/delayed-stream": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } + "node_modules/fn.name": { + "version": "1.1.0", + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/dir-glob": { - "version": "3.0.1", - "license": "MIT", + "node_modules/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", "dependencies": { - "path-type": "^4.0.0" + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" }, "engines": { - "node": ">=8" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/doctrine": { - "version": "3.0.0", - "license": "Apache-2.0", - "peer": true, + "node_modules/form-data": { + "version": "2.5.1", + "license": "MIT", "dependencies": { - "esutils": "^2.0.2" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" }, "engines": { - "node": ">=6.0.0" + "node": ">= 0.12" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/eastasianwidth": { - "version": "0.2.0", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/emoji-regex": { - "version": "9.2.2", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/end-of-stream": { - "version": "1.4.4", + "node_modules/front-matter": { + "version": "4.0.2", "license": "MIT", "dependencies": { - "once": "^1.4.0" + "js-yaml": "^3.13.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/entities": { - "version": "1.1.2", - "license": "BSD-2-Clause" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/esbuild": { - "version": "0.23.0", - "dev": true, - "hasInstallScript": true, + "node_modules/front-matter/node_modules/argparse": { + "version": "1.0.10", "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.23.0", - "@esbuild/android-arm": "0.23.0", - "@esbuild/android-arm64": "0.23.0", - "@esbuild/android-x64": "0.23.0", - "@esbuild/darwin-arm64": "0.23.0", - "@esbuild/darwin-x64": "0.23.0", - "@esbuild/freebsd-arm64": "0.23.0", - "@esbuild/freebsd-x64": "0.23.0", - "@esbuild/linux-arm": "0.23.0", - "@esbuild/linux-arm64": "0.23.0", - "@esbuild/linux-ia32": "0.23.0", - "@esbuild/linux-loong64": "0.23.0", - "@esbuild/linux-mips64el": "0.23.0", - "@esbuild/linux-ppc64": "0.23.0", - "@esbuild/linux-riscv64": "0.23.0", - "@esbuild/linux-s390x": "0.23.0", - "@esbuild/linux-x64": "0.23.0", - "@esbuild/netbsd-x64": "0.23.0", - "@esbuild/openbsd-arm64": "0.23.0", - "@esbuild/openbsd-x64": "0.23.0", - "@esbuild/sunos-x64": "0.23.0", - "@esbuild/win32-arm64": "0.23.0", - "@esbuild/win32-ia32": "0.23.0", - "@esbuild/win32-x64": "0.23.0" + "dependencies": { + "sprintf-js": "~1.0.2" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/escape-string-regexp": { - "version": "4.0.0", + "node_modules/front-matter/node_modules/js-yaml": { + "version": "3.14.1", "license": "MIT", - "peer": true, - "engines": { - "node": ">=10" + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint": { - "version": "8.57.0", + "node_modules/fs-constants": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/fs-extra": { + "version": "11.2.0", "license": "MIT", - "peer": true, "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=14.14" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint-config-prettier": { - "version": "9.1.0", - "dev": true, + "node_modules/fs.realpath": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.2", "license": "MIT", - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint-plugin-prettier": { - "version": "5.2.1", + "node_modules/get-caller-file": { + "version": "1.0.3", + "license": "ISC" + }, + "node_modules/get-func-name": { + "version": "2.0.2", "dev": true, "license": "MIT", - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.9.1" - }, "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } + "node": "*" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint-scope": { - "version": "7.2.2", - "license": "BSD-2-Clause", - "peer": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, + "node_modules/get-stream": { + "version": "8.0.1", + "dev": true, + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=16" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node_modules/get-tsconfig": { + "version": "4.7.6", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.11", + "node_modules/git-apply-delta": { + "version": "0.0.7", "license": "MIT", - "peer": true, "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "bops": "~0.0.6", + "varint": "0.0.3" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/eslint/node_modules/minimatch": { - "version": "3.1.2", + "node_modules/glob": { + "version": "7.2.3", "license": "ISC", - "peer": true, "dependencies": { - "brace-expansion": "^1.1.7" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { "node": "*" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/espree": { - "version": "9.6.1", - "license": "BSD-2-Clause", - "peer": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/isaacs" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/esprima": { - "version": "4.0.1", - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" + "node_modules/glob-parent": { + "version": "5.1.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" }, "engines": { - "node": ">=4" + "node": ">= 6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/esquery": { - "version": "1.6.0", - "license": "BSD-3-Clause", + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "peer": true, "dependencies": { - "estraverse": "^5.1.0" + "type-fest": "^0.20.2" }, "engines": { - "node": ">=0.10" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/esrecurse": { - "version": "4.3.0", - "license": "BSD-2-Clause", - "peer": true, + "node_modules/globalyzer": { + "version": "0.1.4", + "license": "MIT" + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dependencies": { - "estraverse": "^5.2.0" + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" }, "engines": { - "node": ">=4.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/estraverse": { - "version": "5.3.0", - "license": "BSD-2-Clause", + "node_modules/globrex": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "peer": true, "engines": { - "node": ">=4.0" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/estree-walker": { - "version": "3.0.3", - "dev": true, + "node_modules/has-own-prop": { + "version": "2.0.0", "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" + "engines": { + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/esutils": { - "version": "2.0.3", - "license": "BSD-2-Clause", - "peer": true, + "node_modules/hasown": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/event-target-shim": { - "version": "5.0.1", - "license": "MIT", + "node_modules/help-me": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz", + "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==" + }, + "node_modules/human-signals": { + "version": "5.0.0", + "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">=6" + "node": ">=16.17.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/events": { - "version": "3.3.0", + "node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", "license": "MIT", "engines": { - "node": ">=0.8.x" + "node": ">= 4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/execa": { - "version": "8.0.1", - "dev": true, - "license": "MIT", + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "peer": true, "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "engines": { - "node": ">=16.17" + "node": ">=6" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-copy": { - "version": "3.0.2", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-deep-equal": { - "version": "3.1.3", - "license": "MIT", - "peer": true - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-diff": { - "version": "1.3.0", - "dev": true, - "license": "Apache-2.0" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-glob": { - "version": "3.3.2", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "peer": true, "engines": { - "node": ">=8.6.0" + "node": ">=0.8.19" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", + "node_modules/inflight": { + "version": "1.0.6", "license": "ISC", "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" + "once": "^1.3.0", + "wrappy": "1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "license": "MIT", - "peer": true + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-levenshtein": { - "version": "2.0.6", + "node_modules/interpret": { + "version": "1.4.0", "license": "MIT", - "peer": true + "engines": { + "node": ">= 0.10" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-redact": { - "version": "3.5.0", + "node_modules/invert-kv": { + "version": "2.0.0", "license": "MIT", "engines": { - "node": ">=6" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fast-safe-stringify": { - "version": "2.1.1", + "node_modules/is-arrayish": { + "version": "0.3.2", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fastq": { - "version": "1.17.1", - "license": "ISC", + "node_modules/is-core-module": { + "version": "2.15.0", + "license": "MIT", "dependencies": { - "reusify": "^1.0.4" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/file-entry-cache": { - "version": "6.0.1", + "node_modules/is-extglob": { + "version": "2.1.1", "license": "MIT", - "peer": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fill-range": { - "version": "7.1.1", + "node_modules/is-fullwidth-code-point": { + "version": "2.0.0", "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/find-up": { - "version": "5.0.0", + "node_modules/is-glob": { + "version": "4.0.3", "license": "MIT", - "peer": true, "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "is-extglob": "^2.1.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache": { - "version": "3.2.0", + "node_modules/is-number": { + "version": "7.0.0", "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "peer": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache/node_modules/brace-expansion": { - "version": "1.1.11", + "node_modules/is-plain-object": { + "version": "5.0.0", "license": "MIT", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "engines": { + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache/node_modules/glob": { - "version": "7.2.3", - "license": "ISC", - "peer": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, + "node_modules/is-stream": { + "version": "3.0.0", + "dev": true, + "license": "MIT", "engines": { - "node": "*" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } + "node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/flat-cache/node_modules/rimraf": { - "version": "3.0.2", - "license": "ISC", - "peer": true, + "node_modules/isexe": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/isomorphic-git": { + "version": "0.55.6", + "license": "MIT", "dependencies": { - "glob": "^7.1.3" + "async-lock": "^1.1.0", + "clean-git-ref": "1.0.3", + "crc-32": "^1.2.0", + "diff-lines": "^1.1.1", + "git-apply-delta": "0.0.7", + "globalyzer": "^0.1.0", + "globrex": "^0.1.2", + "ignore": "^5.0.4", + "marky": "^1.2.1", + "minimisted": "^2.0.0", + "pako": "^1.0.10", + "pify": "^4.0.1", + "readable-stream": "^3.1.1", + "sha.js": "^2.4.9", + "simple-get": "^3.0.2" }, "bin": { - "rimraf": "bin.js" + "isogit": "cli.js" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">=7.6.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/flatted": { - "version": "3.3.1", - "license": "ISC", - "peer": true - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/foreground-child": { - "version": "3.3.0", - "license": "ISC", + "node_modules/jackspeak": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz", + "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" + "@isaacs/cliui": "^8.0.2" }, "engines": { - "node": ">=14" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/form-data": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" }, - "engines": { - "node": ">= 6" + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/front-matter": { - "version": "4.0.2", - "license": "MIT", - "dependencies": { - "js-yaml": "^3.13.1" + "node_modules/joycon": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", + "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", + "engines": { + "node": ">=10" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/front-matter/node_modules/argparse": { - "version": "1.0.10", - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } + "node_modules/js-tokens": { + "version": "9.0.0", + "dev": true, + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/front-matter/node_modules/js-yaml": { - "version": "3.14.1", + "node_modules/js-yaml": { + "version": "4.1.0", "license": "MIT", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fs-extra": { - "version": "11.2.0", + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "peer": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "peer": true + }, + "node_modules/jsonfile": { + "version": "6.1.0", "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, - "engines": { - "node": ">=14.14" + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/fs.realpath": { - "version": "1.0.0", - "license": "ISC", - "peer": true + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "peer": true, + "dependencies": { + "json-buffer": "3.0.1" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/get-func-name": { - "version": "2.0.2", - "dev": true, + "node_modules/kuler": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/lazystream": { + "version": "1.0.1", "license": "MIT", + "dependencies": { + "readable-stream": "^2.0.5" + }, "engines": { - "node": "*" + "node": ">= 0.6.3" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/get-stream": { - "version": "8.0.1", - "dev": true, + "node_modules/lazystream/node_modules/readable-stream": { + "version": "2.3.8", "license": "MIT", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/get-tsconfig": { - "version": "4.7.6", - "dev": true, + "node_modules/lazystream/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/lazystream/node_modules/string_decoder": { + "version": "1.1.1", "license": "MIT", "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + "safe-buffer": "~5.1.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/glob": { - "version": "11.0.0", - "license": "ISC", + "node_modules/lcid": { + "version": "2.0.0", + "license": "MIT", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" + "invert-kv": "^2.0.0" }, "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/glob-parent": { - "version": "6.0.2", - "license": "ISC", + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "peer": true, "dependencies": { - "is-glob": "^4.0.3" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" }, "engines": { - "node": ">=10.13.0" + "node": ">= 0.8.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/globals": { - "version": "13.24.0", + "node_modules/local-pkg": { + "version": "0.5.0", + "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "type-fest": "^0.20.2" + "mlly": "^1.4.2", + "pkg-types": "^1.0.3" }, "engines": { - "node": ">=8" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/antfu" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/globby": { - "version": "11.1.0", + "node_modules/locate-path": { + "version": "3.0.0", "license": "MIT", "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/graceful-fs": { - "version": "4.2.11", - "license": "ISC" + "node_modules/lodash": { + "version": "4.17.21", + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/graphemer": { - "version": "1.4.0", + "node_modules/lodash-es": { + "version": "4.17.21", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/has-flag": { - "version": "4.0.0", + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "license": "MIT" + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/lodash.difference": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/lodash.flatten": { + "version": "4.4.0", + "license": "MIT" + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "peer": true + }, + "node_modules/lodash.set": { + "version": "4.3.2", + "license": "MIT" + }, + "node_modules/lodash.union": { + "version": "4.6.0", + "license": "MIT" + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/logform": { + "version": "2.6.1", "license": "MIT", - "peer": true, + "dependencies": { + "@colors/colors": "1.6.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" + }, "engines": { - "node": ">=8" + "node": ">= 12.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/help-me": { - "version": "5.0.0", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/human-signals": { - "version": "5.0.0", + "node_modules/loupe": { + "version": "2.3.7", "dev": true, - "license": "Apache-2.0", + "license": "MIT", + "dependencies": { + "get-func-name": "^2.0.1" + } + }, + "node_modules/lru-cache": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", + "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", "engines": { - "node": ">=16.17.0" + "node": "20 || >=22" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/husky": { - "version": "9.1.4", - "dev": true, + "node_modules/macos-release": { + "version": "2.5.1", "license": "MIT", - "bin": { - "husky": "bin.js" - }, "engines": { - "node": ">=18" + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/typicode" + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/ieee754": { - "version": "1.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/ignore": { - "version": "5.3.2", + "node_modules/magic-string": { + "version": "0.30.11", + "dev": true, "license": "MIT", - "engines": { - "node": ">= 4" + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/import-fresh": { - "version": "3.3.0", + "node_modules/map-age-cleaner": { + "version": "0.1.3", "license": "MIT", - "peer": true, "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "p-defer": "^1.0.0" }, "engines": { "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/imurmurhash": { - "version": "0.1.4", - "license": "MIT", - "peer": true, + "node_modules/marked": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-13.0.3.tgz", + "integrity": "sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==", + "bin": { + "marked": "bin/marked.js" + }, "engines": { - "node": ">=0.8.19" + "node": ">= 18" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "peer": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } + "node_modules/marky": { + "version": "1.2.5", + "license": "Apache-2.0" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/inherits": { - "version": "2.0.4", - "license": "ISC", - "peer": true + "node_modules/mdurl": { + "version": "1.0.1", + "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-binary-path": { - "version": "2.1.0", - "dev": true, + "node_modules/mem": { + "version": "4.3.0", "license": "MIT", "dependencies": { - "binary-extensions": "^2.0.0" + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-extglob": { - "version": "2.1.1", + "node_modules/mem/node_modules/mimic-fn": { + "version": "2.1.0", "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", + "node_modules/merge-stream": { + "version": "2.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-glob": { - "version": "4.0.3", + "node_modules/micromatch": { + "version": "4.0.7", "license": "MIT", "dependencies": { - "is-extglob": "^2.1.1" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "engines": { - "node": ">=0.10.0" + "node": ">=8.6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-number": { - "version": "7.0.0", + "node_modules/mime-db": { + "version": "1.52.0", "license": "MIT", "engines": { - "node": ">=0.12.0" + "node": ">= 0.6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-path-inside": { - "version": "3.0.3", + "node_modules/mime-types": { + "version": "2.1.35", "license": "MIT", - "peer": true, + "dependencies": { + "mime-db": "1.52.0" + }, "engines": { - "node": ">=8" + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/is-stream": { - "version": "3.0.0", - "dev": true, + "node_modules/mimic-response": { + "version": "2.1.0", "license": "MIT", "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/isexe": { - "version": "2.0.0", - "license": "ISC" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/jackspeak": { - "version": "4.0.1", - "license": "BlueOak-1.0.0", + "node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", "dependencies": { - "@isaacs/cliui": "^8.0.2" + "brace-expansion": "^1.1.7" }, "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" + "node": "*" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/joycon": { - "version": "3.1.1", + "node_modules/minimist": { + "version": "1.2.8", "license": "MIT", - "engines": { - "node": ">=10" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/js-yaml": { - "version": "4.1.0", + "node_modules/minimisted": { + "version": "2.0.1", "license": "MIT", - "peer": true, "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "minimist": "^1.2.5" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/json-buffer": { - "version": "3.0.1", - "license": "MIT", - "peer": true - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/json-schema-traverse": { - "version": "0.4.1", - "license": "MIT", - "peer": true - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "license": "MIT", - "peer": true + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "engines": { + "node": ">=16 || 14 >=14.17" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/jsonfile": { - "version": "6.1.0", + "node_modules/mkdirp": { + "version": "3.0.1", "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" + "bin": { + "mkdirp": "dist/cjs/src/bin.js" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/keyv": { - "version": "4.5.4", + "node_modules/mlly": { + "version": "1.7.1", + "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "json-buffer": "3.0.1" + "acorn": "^8.11.3", + "pathe": "^1.1.2", + "pkg-types": "^1.1.1", + "ufo": "^1.5.3" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/levn": { - "version": "0.4.1", + "node_modules/ms": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.7", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "license": "MIT", - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" + "bin": { + "nanoid": "bin/nanoid.cjs" }, "engines": { - "node": ">= 0.8.0" + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/locate-path": { - "version": "6.0.0", + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + }, + "node_modules/nice-try": { + "version": "1.0.5", + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", "license": "MIT", - "peer": true, "dependencies": { - "p-locate": "^5.0.0" + "whatwg-url": "^5.0.0" }, "engines": { - "node": ">=10" + "node": "4.x || >=6.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/lodash.merge": { - "version": "4.6.2", + "node_modules/normalize-path": { + "version": "3.0.0", "license": "MIT", - "peer": true + "engines": { + "node": ">=0.10.0" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/loupe": { - "version": "3.1.1", + "node_modules/npm-run-path": { + "version": "5.3.0", "dev": true, "license": "MIT", "dependencies": { - "get-func-name": "^2.0.1" + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/lru-cache": { - "version": "10.4.3", - "dev": true, - "license": "ISC" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/magic-string": { - "version": "0.30.11", + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", "dev": true, "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/marked": { - "version": "13.0.3", + "node_modules/number-is-nan": { + "version": "1.0.1", "license": "MIT", - "bin": { - "marked": "bin/marked.js" - }, "engines": { - "node": ">= 18" + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/mdurl": { - "version": "1.0.1", + "node_modules/octokit-pagination-methods": { + "version": "1.1.0", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/merge-stream": { - "version": "2.0.0", - "dev": true, - "license": "MIT" + "node_modules/on-exit-leak-free": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", + "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", + "engines": { + "node": ">=14.0.0" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/merge2": { - "version": "1.4.1", + "node_modules/once": { + "version": "1.4.0", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/one-time": { + "version": "1.0.0", "license": "MIT", - "engines": { - "node": ">= 8" + "dependencies": { + "fn.name": "1.x.x" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/micromatch": { - "version": "4.0.7", + "node_modules/onetime": { + "version": "6.0.0", + "dev": true, "license": "MIT", "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" + "mimic-fn": "^4.0.0" }, "engines": { - "node": ">=8.6" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/mime-db": { - "version": "1.52.0", - "license": "MIT", + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "peer": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, "engines": { - "node": ">= 0.6" + "node": ">= 0.8.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/mime-types": { - "version": "2.1.35", + "node_modules/os-locale": { + "version": "3.1.0", "license": "MIT", "dependencies": { - "mime-db": "1.52.0" + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" }, "engines": { - "node": ">= 0.6" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/mimic-fn": { - "version": "4.0.0", - "dev": true, + "node_modules/os-locale/node_modules/cross-spawn": { + "version": "6.0.5", "license": "MIT", - "engines": { - "node": ">=12" + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=4.8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/minimatch": { - "version": "10.0.1", - "license": "ISC", + "node_modules/os-locale/node_modules/execa": { + "version": "1.0.0", + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" }, "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/minimist": { - "version": "1.2.8", + "node_modules/os-locale/node_modules/get-stream": { + "version": "4.1.0", "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/minipass": { - "version": "7.1.2", - "license": "ISC", + "node_modules/os-locale/node_modules/is-stream": { + "version": "1.1.0", + "license": "MIT", "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/mkdirp": { - "version": "3.0.1", + "node_modules/os-locale/node_modules/npm-run-path": { + "version": "2.0.2", "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" + "dependencies": { + "path-key": "^2.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/ms": { - "version": "2.1.2", - "license": "MIT" - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/nanoid": { - "version": "3.3.7", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], + "node_modules/os-locale/node_modules/path-key": { + "version": "2.0.1", "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/natural-compare": { - "version": "1.4.0", - "license": "MIT" + "node_modules/os-locale/node_modules/semver": { + "version": "5.7.2", + "license": "ISC", + "bin": { + "semver": "bin/semver" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/node-fetch": { - "version": "2.7.0", + "node_modules/os-locale/node_modules/shebang-command": { + "version": "1.2.0", "license": "MIT", "dependencies": { - "whatwg-url": "^5.0.0" + "shebang-regex": "^1.0.0" }, "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/normalize-path": { - "version": "3.0.0", - "dev": true, + "node_modules/os-locale/node_modules/shebang-regex": { + "version": "1.0.0", "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/npm-run-path": { - "version": "5.3.0", - "dev": true, - "license": "MIT", + "node_modules/os-locale/node_modules/signal-exit": { + "version": "3.0.7", + "license": "ISC" + }, + "node_modules/os-locale/node_modules/which": { + "version": "1.3.1", + "license": "ISC", "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "isexe": "^2.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bin": { + "which": "bin/which" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "dev": true, + "node_modules/os-name": { + "version": "3.1.0", "license": "MIT", - "engines": { - "node": ">=12" + "dependencies": { + "macos-release": "^2.2.0", + "windows-release": "^3.1.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/on-exit-leak-free": { - "version": "2.1.2", + "node_modules/p-defer": { + "version": "1.0.0", "license": "MIT", "engines": { - "node": ">=14.0.0" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/once": { - "version": "1.4.0", - "license": "ISC", - "dependencies": { - "wrappy": "1" + "node_modules/p-finally": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/onchange": { - "version": "7.1.0", - "dev": true, + "node_modules/p-is-promise": { + "version": "2.1.0", "license": "MIT", - "dependencies": { - "@blakeembrey/deque": "^1.0.5", - "@blakeembrey/template": "^1.0.0", - "arg": "^4.1.3", - "chokidar": "^3.3.1", - "cross-spawn": "^7.0.1", - "ignore": "^5.1.4", - "tree-kill": "^1.2.2" - }, - "bin": { - "onchange": "dist/bin.js" + "engines": { + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/onetime": { - "version": "6.0.0", + "node_modules/p-limit": { + "version": "5.0.0", "dev": true, "license": "MIT", "dependencies": { - "mimic-fn": "^4.0.0" + "yocto-queue": "^1.0.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/optionator": { - "version": "0.9.4", + "node_modules/p-locate": { + "version": "3.0.0", "license": "MIT", - "peer": true, "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" + "p-limit": "^2.0.0" }, "engines": { - "node": ">= 0.8.0" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/p-limit": { - "version": "3.1.0", + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", "license": "MIT", - "peer": true, "dependencies": { - "yocto-queue": "^0.1.0" + "p-try": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/p-locate": { - "version": "5.0.0", + "node_modules/p-try": { + "version": "2.2.0", "license": "MIT", - "peer": true, - "dependencies": { - "p-limit": "^3.0.2" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/package-json-from-dist": { + "node_modules/package-json-from-dist": { "version": "1.0.0", - "license": "BlueOak-1.0.0" + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", + "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" + }, + "node_modules/pako": { + "version": "1.0.11", + "license": "(MIT AND Zlib)" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/parent-module": { + "node_modules/parent-module": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "peer": true, "dependencies": { "callsites": "^3.0.0" @@ -5786,36 +3592,60 @@ "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-browserify": { + "node_modules/parse-ts-to-ast": { + "version": "0.1.4", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.10", + "lodash-es": "^4.17.10", + "tslib": "^1.9.3", + "typescript": "^3.0.3" + } + }, + "node_modules/parse-ts-to-ast/node_modules/typescript": { + "version": "3.9.10", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/path-browserify": { "version": "1.0.1", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-exists": { - "version": "4.0.0", + "node_modules/path-exists": { + "version": "3.0.0", "license": "MIT", - "peer": true, "engines": { - "node": ">=8" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-is-absolute": { + "node_modules/path-is-absolute": { "version": "1.0.1", "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-key": { + "node_modules/path-key": { "version": "3.1.1", "license": "MIT", "engines": { "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-scurry": { + "node_modules/path-parse": { + "version": "1.0.7", + "license": "MIT" + }, + "node_modules/path-scurry": { "version": "2.0.0", - "license": "BlueOak-1.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", "dependencies": { "lru-cache": "^11.0.0", "minipass": "^7.1.2" @@ -5827,39 +3657,33 @@ "url": "https://github.com/sponsors/isaacs" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-scurry/node_modules/lru-cache": { - "version": "11.0.0", - "license": "ISC", - "engines": { - "node": "20 || >=22" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/path-type": { + "node_modules/path-type": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "engines": { "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/pathe": { + "node_modules/pathe": { "version": "1.1.2", "dev": true, "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/pathval": { - "version": "2.0.0", + "node_modules/pathval": { + "version": "1.1.1", "dev": true, "license": "MIT", "engines": { - "node": ">= 14.16" + "node": "*" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/picocolors": { + "node_modules/picocolors": { "version": "1.0.1", "dev": true, "license": "ISC" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/picomatch": { + "node_modules/picomatch": { "version": "2.3.1", "license": "MIT", "engines": { @@ -5869,37 +3693,104 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/pino": { - "version": "9.3.2", - "license": "MIT", + "node_modules/pify": { + "version": "4.0.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pino": { + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.3.2.tgz", + "integrity": "sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==", + "dependencies": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.1.1", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.2.0", + "pino-std-serializers": "^7.0.0", + "process-warning": "^4.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.2.0", + "safe-stable-stringify": "^2.3.1", + "sonic-boom": "^4.0.1", + "thread-stream": "^3.0.0" + }, + "bin": { + "pino": "bin.js" + } + }, + "node_modules/pino-abstract-transport": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", + "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", + "dependencies": { + "readable-stream": "^4.0.0", + "split2": "^4.0.0" + } + }, + "node_modules/pino-abstract-transport/node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/pino-abstract-transport/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "dependencies": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^7.0.0", - "process-warning": "^4.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^4.0.1", - "thread-stream": "^3.0.0" - }, - "bin": { - "pino": "bin.js" + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/pino-abstract-transport": { - "version": "1.2.0", - "license": "MIT", + "node_modules/pino-abstract-transport/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", "dependencies": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/pino-pretty": { + "node_modules/pino-pretty": { "version": "11.2.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-11.2.2.tgz", + "integrity": "sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==", "dependencies": { "colorette": "^2.0.7", "dateformat": "^4.6.3", @@ -5920,11 +3811,79 @@ "pino-pretty": "bin.js" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/pino-std-serializers": { + "node_modules/pino-pretty/node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/pino-pretty/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/pino-pretty/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/pino-std-serializers": { "version": "7.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz", + "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==" + }, + "node_modules/pkg-types": { + "version": "1.1.3", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.1.7", + "mlly": "^1.7.1", + "pathe": "^1.1.2" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/postcss": { + "node_modules/postcss": { "version": "8.4.41", "dev": true, "funding": [ @@ -5951,51 +3910,46 @@ "node": "^10 || ^12 || >=14" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/prelude-ls": { + "node_modules/prelude-ls": { "version": "1.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "peer": true, "engines": { "node": ">= 0.8.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/prettier": { - "version": "3.3.2", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/prettier-linter-helpers": { - "version": "1.0.0", + "node_modules/pretty-format": { + "version": "29.7.0", "dev": true, "license": "MIT", "dependencies": { - "fast-diff": "^1.1.2" + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": ">=6.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/process": { + "node_modules/process": { "version": "0.11.10", - "license": "MIT", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", "engines": { "node": ">= 0.6.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/process-warning": { - "version": "4.0.0", + "node_modules/process-nextick-args": { + "version": "2.0.1", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/pump": { + "node_modules/process-warning": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.0.tgz", + "integrity": "sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==" + }, + "node_modules/pump": { "version": "3.0.0", "license": "MIT", "dependencies": { @@ -6003,15 +3957,16 @@ "once": "^1.3.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/punycode": { + "node_modules/punycode": { "version": "2.3.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "peer": true, "engines": { "node": ">=6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/queue-microtask": { + "node_modules/queue-microtask": { "version": "1.2.3", "funding": [ { @@ -6029,51 +3984,88 @@ ], "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/quick-format-unescaped": { + "node_modules/quick-format-unescaped": { "version": "4.0.4", + "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" + }, + "node_modules/react-is": { + "version": "18.3.1", + "dev": true, "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/readable-stream": { - "version": "4.5.2", + "node_modules/readable-stream": { + "version": "3.6.2", "license": "MIT", "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 6" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/readdirp": { - "version": "3.6.0", - "dev": true, - "license": "MIT", + "node_modules/real-require": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", + "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", "dependencies": { - "picomatch": "^2.2.1" + "resolve": "^1.1.6" }, "engines": { - "node": ">=8.10.0" + "node": ">= 0.10" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/real-require": { - "version": "0.2.0", + "node_modules/repeat-string": { + "version": "1.6.1", "license": "MIT", "engines": { - "node": ">= 12.13.0" + "node": ">=0.10" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/resolve-from": { - "version": "4.0.0", + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "1.0.1", + "license": "ISC" + }, + "node_modules/resolve": { + "version": "1.22.8", "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "peer": true, "engines": { "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/resolve-pkg-maps": { + "node_modules/resolve-pkg-maps": { "version": "1.0.0", "dev": true, "license": "MIT", @@ -6081,14 +4073,14 @@ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/retry": { + "node_modules/retry": { "version": "0.13.1", "license": "MIT", "engines": { "node": ">= 4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/reusify": { + "node_modules/reusify": { "version": "1.0.4", "license": "MIT", "engines": { @@ -6096,83 +4088,20 @@ "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf": { - "version": "5.0.10", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/glob": { - "version": "10.4.5", - "dev": true, + "node_modules/rimraf": { + "version": "3.0.2", "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" + "glob": "^7.1.3" }, "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/jackspeak": { - "version": "3.4.3", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/minimatch": { - "version": "9.0.5", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rimraf/node_modules/path-scurry": { - "version": "1.11.1", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" + "rimraf": "bin.js" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/rollup": { + "node_modules/rollup": { "version": "4.20.0", "dev": true, "license": "MIT", @@ -6206,7 +4135,7 @@ "fsevents": "~2.3.2" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/run-parallel": { + "node_modules/run-parallel": { "version": "1.2.0", "funding": [ { @@ -6227,7 +4156,7 @@ "queue-microtask": "^1.2.2" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/safe-buffer": { + "node_modules/safe-buffer": { "version": "5.2.1", "funding": [ { @@ -6245,18 +4174,23 @@ ], "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/safe-stable-stringify": { + "node_modules/safe-stable-stringify": { "version": "2.4.3", "license": "MIT", "engines": { "node": ">=10" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/secure-json-parse": { + "node_modules/sax": { + "version": "1.4.1", + "license": "ISC" + }, + "node_modules/secure-json-parse": { "version": "2.7.0", - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", + "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/semver": { + "node_modules/semver": { "version": "7.6.3", "license": "ISC", "bin": { @@ -6266,7 +4200,22 @@ "node": ">=10" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/shebang-command": { + "node_modules/set-blocking": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/sha.js": { + "version": "2.4.11", + "license": "(MIT AND BSD-3-Clause)", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, + "node_modules/shebang-command": { "version": "2.0.0", "license": "MIT", "dependencies": { @@ -6276,19 +4225,48 @@ "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/shebang-regex": { + "node_modules/shebang-regex": { "version": "3.0.0", "license": "MIT", "engines": { "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/siginfo": { + "node_modules/shelljs": { + "version": "0.8.5", + "license": "BSD-3-Clause", + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shx": { + "version": "0.3.4", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + }, + "bin": { + "shx": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/siginfo": { "version": "2.0.0", "dev": true, "license": "ISC" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/signal-exit": { + "node_modules/signal-exit": { "version": "4.1.0", "license": "ISC", "engines": { @@ -6298,21 +4276,70 @@ "url": "https://github.com/sponsors/isaacs" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/slash": { - "version": "3.0.0", + "node_modules/simple-concat": { + "version": "1.0.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/simple-get": { + "version": "3.1.1", + "license": "MIT", + "dependencies": { + "decompress-response": "^4.2.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "node_modules/simple-git": { + "version": "3.25.0", + "license": "MIT", + "dependencies": { + "@kwsites/file-exists": "^1.1.1", + "@kwsites/promise-deferred": "^1.1.1", + "debug": "^4.3.5" + }, + "funding": { + "type": "github", + "url": "https://github.com/steveukx/git-js?sponsor=1" + } + }, + "node_modules/simple-swizzle": { + "version": "0.2.2", "license": "MIT", + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "engines": { "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/sonic-boom": { + "node_modules/sonic-boom": { "version": "4.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.0.1.tgz", + "integrity": "sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==", "dependencies": { "atomic-sleep": "^1.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/source-map-js": { + "node_modules/source-map-js": { "version": "1.2.0", "dev": true, "license": "BSD-3-Clause", @@ -6320,53 +4347,58 @@ "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/split2": { + "node_modules/split2": { "version": "4.2.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", "engines": { "node": ">= 10.x" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/sprintf-js": { + "node_modules/sprintf-js": { "version": "1.0.3", "license": "BSD-3-Clause" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/stackback": { + "node_modules/stack-trace": { + "version": "0.0.10", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/stackback": { "version": "0.0.2", "dev": true, "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/std-env": { + "node_modules/std-env": { "version": "3.7.0", "dev": true, "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/string_decoder": { + "node_modules/string_decoder": { "version": "1.3.0", "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width": { - "version": "5.1.2", + "node_modules/string-width": { + "version": "2.1.1", "license": "MIT", "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width-cjs": { + "node_modules/string-width-cjs": { "name": "string-width", "version": "4.2.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -6376,50 +4408,51 @@ "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "license": "MIT" + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width/node_modules/ansi-regex": { - "version": "6.0.1", - "license": "MIT", + "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/string-width/node_modules/strip-ansi": { - "version": "7.1.0", - "license": "MIT", + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dependencies": { - "ansi-regex": "^6.0.1" + "ansi-regex": "^5.0.1" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/string.prototype.repeat": { + "node_modules/string.prototype.repeat": { "version": "0.2.0" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/strip-ansi": { - "version": "6.0.1", + "node_modules/strip-ansi": { + "version": "4.0.0", "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1" + "ansi-regex": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/strip-ansi-cjs": { + "node_modules/strip-ansi-cjs": { "name": "strip-ansi", "version": "6.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -6427,7 +4460,22 @@ "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/strip-final-newline": { + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-eof": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { "version": "3.0.0", "dev": true, "license": "MIT", @@ -6438,9 +4486,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/strip-json-comments": { + "node_modules/strip-json-comments": { "version": "3.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "engines": { "node": ">=8" }, @@ -6448,9 +4497,21 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/supports-color": { - "version": "7.2.0", + "node_modules/strip-literal": { + "version": "2.1.0", + "dev": true, "license": "MIT", + "dependencies": { + "js-tokens": "^9.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "peer": true, "dependencies": { "has-flag": "^4.0.0" @@ -6459,63 +4520,70 @@ "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/synckit": { - "version": "0.9.1", - "dev": true, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", "license": "MIT", - "dependencies": { - "@pkgr/core": "^0.1.0", - "tslib": "^2.6.2" - }, "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "url": "https://opencollective.com/unts" + "url": "https://github.com/sponsors/ljharb" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/text-table": { - "version": "0.2.0", + "node_modules/tar-stream": { + "version": "2.2.0", "license": "MIT", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/text-hex": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "peer": true }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/thread-stream": { + "node_modules/thread-stream": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.1.0.tgz", + "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", "dependencies": { "real-require": "^0.2.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinybench": { + "node_modules/tinybench": { "version": "2.9.0", "dev": true, "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinypool": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinyrainbow": { - "version": "1.2.0", + "node_modules/tinypool": { + "version": "0.8.4", "dev": true, "license": "MIT", "engines": { "node": ">=14.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tinyspy": { - "version": "3.0.0", + "node_modules/tinyspy": { + "version": "2.2.1", "dev": true, "license": "MIT", "engines": { "node": ">=14.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/to-regex-range": { + "node_modules/to-regex-range": { "version": "5.0.1", "license": "MIT", "dependencies": { @@ -6525,21 +4593,25 @@ "node": ">=8.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tr46": { + "node_modules/to-utf8": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/tr46": { "version": "0.0.3", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tree-kill": { - "version": "1.2.2", - "dev": true, + "node_modules/triple-beam": { + "version": "1.4.1", "license": "MIT", - "bin": { - "tree-kill": "cli.js" + "engines": { + "node": ">= 14.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/ts-api-utils": { + "node_modules/ts-api-utils": { "version": "1.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", "engines": { "node": ">=16" }, @@ -6547,7 +4619,7 @@ "typescript": ">=4.2.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/ts-morph": { + "node_modules/ts-morph": { "version": "23.0.0", "license": "MIT", "dependencies": { @@ -6555,11 +4627,11 @@ "code-block-writer": "^13.0.1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tslib": { - "version": "2.6.3", + "node_modules/tslib": { + "version": "1.14.1", "license": "0BSD" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/tsx": { + "node_modules/tsx": { "version": "4.17.0", "dev": true, "license": "MIT", @@ -6577,20 +4649,37 @@ "fsevents": "~2.3.3" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/type-check": { - "version": "0.4.0", + "node_modules/tunnel": { + "version": "0.0.6", "license": "MIT", + "engines": { + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "peer": true, "dependencies": { "prelude-ls": "^1.2.1" }, "engines": { - "node": ">= 0.8.0" + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/type-fest": { + "node_modules/type-fest": { "version": "0.20.2", - "license": "(MIT OR CC0-1.0)", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "peer": true, "engines": { "node": ">=10" @@ -6599,7 +4688,7 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/typescript": { + "node_modules/typescript": { "version": "5.5.3", "license": "Apache-2.0", "bin": { @@ -6610,9 +4699,77 @@ "node": ">=14.17" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/typescript-eslint": { - "version": "7.18.0", + "node_modules/typescript-codegen-breaking-change-detector": { + "version": "0.0.0", + "resolved": "file:packages/typescript-codegen-breaking-change-detector/typescript-codegen-breaking-change-detector-0.0.0.tgz", + "integrity": "sha512-Sp9um6KYup1wGv8pIFH5uU+udPy/pYVWHDfSZNZeGcYIqIpBkGt7a/YdV75jvmrl3hHrM11hvcTjlCoy6Whf2g==", "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" + } + }, + "node_modules/typescript-codegen-breaking-change-detector/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/typescript-codegen-breaking-change-detector/node_modules/glob": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz", + "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/typescript-codegen-breaking-change-detector/node_modules/minimatch": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/typescript-eslint": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-7.18.0.tgz", + "integrity": "sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==", "dependencies": { "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", @@ -6634,26 +4791,61 @@ } } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/undici-types": { - "version": "6.13.0", + "node_modules/typical": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ufo": { + "version": "1.5.4", + "dev": true, + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "5.26.5", "license": "MIT" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/universalify": { + "node_modules/universal-user-agent": { + "version": "4.0.1", + "license": "ISC", + "dependencies": { + "os-name": "^3.1.0" + } + }, + "node_modules/universalify": { "version": "2.0.1", "license": "MIT", "engines": { "node": ">= 10.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/uri-js": { + "node_modules/uri-js": { "version": "4.4.1", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "peer": true, "dependencies": { "punycode": "^2.1.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite": { + "node_modules/util-deprecate": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "8.3.2", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/varint": { + "version": "0.0.3", + "license": "MIT" + }, + "node_modules/vite": { "version": "5.4.0", "dev": true, "license": "MIT", @@ -6711,15 +4903,15 @@ } } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite-node": { - "version": "2.0.5", + "node_modules/vite-node": { + "version": "1.6.0", "dev": true, "license": "MIT", "dependencies": { "cac": "^6.7.14", - "debug": "^4.3.5", - "pathe": "^1.1.2", - "tinyrainbow": "^1.2.0", + "debug": "^4.3.4", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", "vite": "^5.0.0" }, "bin": { @@ -6732,7 +4924,7 @@ "url": "https://opencollective.com/vitest" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite/node_modules/@esbuild/win32-x64": { + "node_modules/vite/node_modules/@esbuild/win32-x64": { "version": "0.21.5", "cpu": [ "x64" @@ -6747,7 +4939,7 @@ "node": ">=12" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/vite/node_modules/esbuild": { + "node_modules/vite/node_modules/esbuild": { "version": "0.21.5", "dev": true, "hasInstallScript": true, @@ -6784,30 +4976,31 @@ "@esbuild/win32-x64": "0.21.5" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/vitest": { - "version": "2.0.5", + "node_modules/vitest": { + "version": "1.6.0", "dev": true, "license": "MIT", "dependencies": { - "@ampproject/remapping": "^2.3.0", - "@vitest/expect": "2.0.5", - "@vitest/pretty-format": "^2.0.5", - "@vitest/runner": "2.0.5", - "@vitest/snapshot": "2.0.5", - "@vitest/spy": "2.0.5", - "@vitest/utils": "2.0.5", - "chai": "^5.1.1", - "debug": "^4.3.5", + "@vitest/expect": "1.6.0", + "@vitest/runner": "1.6.0", + "@vitest/snapshot": "1.6.0", + "@vitest/spy": "1.6.0", + "@vitest/utils": "1.6.0", + "acorn-walk": "^8.3.2", + "chai": "^4.3.10", + "debug": "^4.3.4", "execa": "^8.0.1", - "magic-string": "^0.30.10", - "pathe": "^1.1.2", - "std-env": "^3.7.0", - "tinybench": "^2.8.0", - "tinypool": "^1.0.0", - "tinyrainbow": "^1.2.0", + "local-pkg": "^0.5.0", + "magic-string": "^0.30.5", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "std-env": "^3.5.0", + "strip-literal": "^2.0.0", + "tinybench": "^2.5.1", + "tinypool": "^0.8.3", "vite": "^5.0.0", - "vite-node": "2.0.5", - "why-is-node-running": "^2.3.0" + "vite-node": "1.6.0", + "why-is-node-running": "^2.2.2" }, "bin": { "vitest": "vitest.mjs" @@ -6821,8 +5014,8 @@ "peerDependencies": { "@edge-runtime/vm": "*", "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "2.0.5", - "@vitest/ui": "2.0.5", + "@vitest/browser": "1.6.0", + "@vitest/ui": "1.6.0", "happy-dom": "*", "jsdom": "*" }, @@ -6847,73 +5040,236 @@ } } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/webidl-conversions": { + "node_modules/webidl-conversions": { "version": "3.0.1", "license": "BSD-2-Clause" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/whatwg-url": { + "node_modules/whatwg-url": { "version": "5.0.0", "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "license": "ISC" + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/windows-release": { + "version": "3.3.3", + "license": "MIT", + "dependencies": { + "execa": "^1.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/windows-release/node_modules/cross-spawn": { + "version": "6.0.5", + "license": "MIT", + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/windows-release/node_modules/execa": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/windows-release/node_modules/get-stream": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/windows-release/node_modules/is-stream": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/windows-release/node_modules/npm-run-path": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/windows-release/node_modules/path-key": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/windows-release/node_modules/semver": { + "version": "5.7.2", + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/windows-release/node_modules/shebang-command": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/windows-release/node_modules/shebang-regex": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/which": { - "version": "2.0.2", + "node_modules/windows-release/node_modules/signal-exit": { + "version": "3.0.7", + "license": "ISC" + }, + "node_modules/windows-release/node_modules/which": { + "version": "1.3.1", "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, "bin": { - "node-which": "bin/node-which" + "which": "bin/which" + } + }, + "node_modules/winston": { + "version": "3.14.2", + "license": "MIT", + "dependencies": { + "@colors/colors": "^1.6.0", + "@dabh/diagnostics": "^2.0.2", + "async": "^3.2.3", + "is-stream": "^2.0.0", + "logform": "^2.6.0", + "one-time": "^1.0.0", + "readable-stream": "^3.4.0", + "safe-stable-stringify": "^2.3.1", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.7.0" }, "engines": { - "node": ">= 8" + "node": ">= 12.0.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/why-is-node-running": { - "version": "2.3.0", - "dev": true, + "node_modules/winston-transport": { + "version": "4.7.1", "license": "MIT", "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" + "logform": "^2.6.1", + "readable-stream": "^3.6.2", + "triple-beam": "^1.3.0" }, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/winston/node_modules/async": { + "version": "3.2.5", + "license": "MIT" + }, + "node_modules/winston/node_modules/is-stream": { + "version": "2.0.1", + "license": "MIT", "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/word-wrap": { + "node_modules/word-wrap": { "version": "1.2.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "peer": true, "engines": { "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi": { - "version": "8.1.0", + "node_modules/wrap-ansi": { + "version": "2.1.0", "license": "MIT", "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi-cjs": { + "node_modules/wrap-ansi-cjs": { "name": "wrap-ansi", "version": "7.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -6926,13 +5282,56 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "license": "MIT" + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi-cjs/node_modules/string-width": { + "node_modules/wrap-ansi-cjs/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { "version": "4.2.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -6942,53 +5341,174 @@ "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi/node_modules/ansi-regex": { + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { "version": "6.0.1", - "license": "MIT", - "engines": { - "node": ">=12" + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "engines": { + "node": ">=8" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "2.1.1", "license": "MIT", "engines": { - "node": ">=12" + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "number-is-nan": "^1.0.0" }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "engines": { + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "7.1.0", + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "1.0.2", "license": "MIT", "dependencies": { - "ansi-regex": "^6.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" }, "engines": { - "node": ">=12" + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^2.0.0" }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "engines": { + "node": ">=0.10.0" } }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "license": "ISC" }, - "workspaces/typescript-codegen-breaking-change-detector/node_modules/yocto-queue": { - "version": "0.1.0", + "node_modules/xml2js": { + "version": "0.5.0", "license": "MIT", - "peer": true, + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, "engines": { - "node": ">=10" + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "license": "MIT", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "license": "ISC" + }, + "node_modules/yaml": { + "version": "1.10.2", + "license": "ISC", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "12.0.5", + "license": "MIT", + "dependencies": { + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" + } + }, + "node_modules/yargs-parser": { + "version": "11.1.1", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "node_modules/yocto-queue": { + "version": "1.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/zip-stream": { + "version": "2.1.3", + "license": "MIT", + "dependencies": { + "archiver-utils": "^2.1.0", + "compress-commons": "^2.1.1", + "readable-stream": "^3.4.0" + }, + "engines": { + "node": ">= 6" + } + }, + "packages/typescript-codegen-breaking-change-detector": { + "version": "0.0.0", + "extraneous": true, + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" + }, + "devDependencies": { + "@types/eslint": "^8.56.10", + "@types/eslint-scope": "^3.7.7", + "@types/fs-extra": "^11.0.4", + "@typescript-eslint/eslint-plugin": "^7.17.0", + "@typescript-eslint/parser": "^7.17.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "husky": "^9.0.11", + "onchange": "^7.1.0", + "prettier": "3.3.2", + "rimraf": "^5.0.7", + "tsx": "^4.16.2", + "vitest": "^2.0.4" + } } } } diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index c94e8c1f696..f3c94023201 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -2,22 +2,15 @@ "name": "@azure-tools/js-sdk-release-tools", "version": "2.7.11", "description": "", - "files": [ - "dist" - ], "scripts": { - "install:all": "npm run install:next-detector && npm install", - "install:next-detector": "cd ./workspaces/typescript-codegen-breaking-change-detector/ && npm install && cd ..", - "build:all": "npm run install:next-detector && npm run build:next-detector && npm run build", - "build:next-detector": "cd workspaces/typescript-codegen-breaking-change-detector && npm run build && cd ../..", + "preinstall": "cd ./packages/typescript-codegen-breaking-change-detector/ && npm install && npm run build && npm pack && cd ../.. && npm install typescript-codegen-breaking-change-detector file:packages/typescript-codegen-breaking-change-detector/typescript-codegen-breaking-change-detector-0.0.0.tgz", "dev": "tsx watch src/changelogToolCli.ts", "start": "node dist/changelogToolCli.js", "debug": "node --inspect-brk dist/changelogToolCli.js", "build": "rimraf dist && tsc -p .", "prepack": "npm run build", "test": "vitest --run", - "test:watch": "vitest", - "test:ci": "node dist/changelogToolCli.js src/test/testCases/ci/arm-networkanalytics" + "test:watch": "vitest" }, "bin": { "changelog-tool": "./dist/changelogToolCli.js", @@ -39,10 +32,11 @@ "parse-ts-to-ast": "^0.1.1", "semver": "^7.3.5", "shelljs": "^0.8.4", + "shx": "^0.3.4", "simple-git": "^3.5.0", "ts-morph": "^23.0.0", "tslib": "^1.9.3", - "typescript-codegen-breaking-change-detector": "0.4.6", + "typescript-codegen-breaking-change-detector": "file:packages/typescript-codegen-breaking-change-detector/typescript-codegen-breaking-change-detector-0.0.0.tgz", "winston": "^3.13.1", "yaml": "^1.10.2" }, diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintignore b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.eslintignore similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintignore rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.eslintignore diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintrc b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.eslintrc similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.eslintrc rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.eslintrc diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.gitignore b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.gitignore similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.gitignore rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.gitignore diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.hintrc b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.hintrc similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.hintrc rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.hintrc diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.npmrc b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.npmrc similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.npmrc rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.npmrc diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierignore b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.prettierignore similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierignore rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.prettierignore diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierrc b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.prettierrc similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/.prettierrc rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/.prettierrc diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/README.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/README.md similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/README.md rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/README.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/docs/azure-rest-level-client-breaking-change-rules.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package-lock.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package-lock.json similarity index 96% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package-lock.json rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package-lock.json index 8f08a4badd8..8d1db7e2f21 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package-lock.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package-lock.json @@ -1,12 +1,12 @@ { "name": "typescript-codegen-breaking-change-detector", - "version": "0.4.6", + "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "typescript-codegen-breaking-change-detector", - "version": "0.4.6", + "version": "0.0.0", "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", @@ -959,20 +959,6 @@ "path-browserify": "^1.0.1" } }, - "node_modules/@ts-morph/common/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/@types/async-retry": { "version": "1.4.8", "resolved": "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.8.tgz", @@ -1038,11 +1024,11 @@ } }, "node_modules/@types/node": { - "version": "22.2.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.2.0.tgz", - "integrity": "sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==", + "version": "22.3.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", + "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", "dependencies": { - "undici-types": "~6.13.0" + "undici-types": "~6.18.2" } }, "node_modules/@types/node-fetch": { @@ -1199,20 +1185,6 @@ } } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/@typescript-eslint/utils": { "version": "7.18.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", @@ -1258,8 +1230,9 @@ }, "node_modules/@vitest/expect": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.0.5.tgz", + "integrity": "sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==", "dev": true, - "license": "MIT", "dependencies": { "@vitest/spy": "2.0.5", "@vitest/utils": "2.0.5", @@ -1284,8 +1257,9 @@ }, "node_modules/@vitest/runner": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.0.5.tgz", + "integrity": "sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==", "dev": true, - "license": "MIT", "dependencies": { "@vitest/utils": "2.0.5", "pathe": "^1.1.2" @@ -1296,8 +1270,9 @@ }, "node_modules/@vitest/snapshot": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.0.5.tgz", + "integrity": "sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==", "dev": true, - "license": "MIT", "dependencies": { "@vitest/pretty-format": "2.0.5", "magic-string": "^0.30.10", @@ -1309,8 +1284,9 @@ }, "node_modules/@vitest/spy": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.0.5.tgz", + "integrity": "sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==", "dev": true, - "license": "MIT", "dependencies": { "tinyspy": "^3.0.0" }, @@ -1320,8 +1296,9 @@ }, "node_modules/@vitest/utils": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.0.5.tgz", + "integrity": "sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==", "dev": true, - "license": "MIT", "dependencies": { "@vitest/pretty-format": "2.0.5", "estree-walker": "^3.0.3", @@ -1503,7 +1480,8 @@ }, "node_modules/brace-expansion": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dependencies": { "balanced-match": "^1.0.0" } @@ -1707,7 +1685,8 @@ }, "node_modules/cross-spawn": { "version": "7.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -2105,8 +2084,9 @@ }, "node_modules/execa": { "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", "dev": true, - "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^8.0.1", @@ -2419,8 +2399,9 @@ }, "node_modules/get-stream": { "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", "dev": true, - "license": "MIT", "engines": { "node": ">=16" }, @@ -2442,7 +2423,8 @@ }, "node_modules/glob": { "version": "11.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz", + "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^4.0.1", @@ -2473,6 +2455,20 @@ "node": ">=10.13.0" } }, + "node_modules/glob/node_modules/minimatch": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/globals": { "version": "13.24.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", @@ -2682,8 +2678,9 @@ }, "node_modules/is-stream": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, - "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, @@ -2815,9 +2812,12 @@ } }, "node_modules/lru-cache": { - "version": "10.4.3", - "dev": true, - "license": "ISC" + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", + "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", + "engines": { + "node": "20 || >=22" + } }, "node_modules/magic-string": { "version": "0.30.11", @@ -2902,13 +2902,14 @@ } }, "node_modules/minimatch": { - "version": "10.0.1", - "license": "ISC", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": "20 || >=22" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -3002,8 +3003,9 @@ }, "node_modules/npm-run-path": { "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^4.0.0" }, @@ -3016,8 +3018,9 @@ }, "node_modules/npm-run-path/node_modules/path-key": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -3163,7 +3166,8 @@ }, "node_modules/path-key": { "version": "3.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "engines": { "node": ">=8" } @@ -3183,14 +3187,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", - "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", - "engines": { - "node": "20 || >=22" - } - }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -3481,8 +3477,9 @@ }, "node_modules/rimraf": { "version": "5.0.10", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", + "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", "dev": true, - "license": "ISC", "dependencies": { "glob": "^10.3.7" }, @@ -3495,8 +3492,9 @@ }, "node_modules/rimraf/node_modules/glob": { "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dev": true, - "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -3514,8 +3512,9 @@ }, "node_modules/rimraf/node_modules/jackspeak": { "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -3526,24 +3525,17 @@ "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/rimraf/node_modules/minimatch": { - "version": "9.0.5", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } + "node_modules/rimraf/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true }, "node_modules/rimraf/node_modules/path-scurry": { "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -3657,7 +3649,8 @@ }, "node_modules/shebang-command": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -3667,7 +3660,8 @@ }, "node_modules/shebang-regex": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "engines": { "node": ">=8" } @@ -3680,7 +3674,8 @@ }, "node_modules/signal-exit": { "version": "4.1.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "engines": { "node": ">=14" }, @@ -3907,8 +3902,9 @@ }, "node_modules/tinypool": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.0.tgz", + "integrity": "sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==", "dev": true, - "license": "MIT", "engines": { "node": "^18.0.0 || >=20.0.0" } @@ -3924,8 +3920,9 @@ }, "node_modules/tinyspy": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.0.tgz", + "integrity": "sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==", "dev": true, - "license": "MIT", "engines": { "node": ">=14.0.0" } @@ -4061,9 +4058,9 @@ } }, "node_modules/undici-types": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", - "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==" + "version": "6.18.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", + "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" }, "node_modules/universalify": { "version": "2.0.1", @@ -4143,8 +4140,9 @@ }, "node_modules/vite-node": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.0.5.tgz", + "integrity": "sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==", "dev": true, - "license": "MIT", "dependencies": { "cac": "^6.7.14", "debug": "^4.3.5", @@ -4570,8 +4568,9 @@ }, "node_modules/vitest": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.0.5.tgz", + "integrity": "sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==", "dev": true, - "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.3.0", "@vitest/expect": "2.0.5", @@ -4647,7 +4646,8 @@ }, "node_modules/which": { "version": "2.0.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dependencies": { "isexe": "^2.0.0" }, diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json similarity index 88% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package.json rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json index b8fd245b9e2..62b4d545a9d 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/package.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json @@ -1,6 +1,6 @@ { "name": "typescript-codegen-breaking-change-detector", - "version": "0.4.6", + "version": "0.0.0", "description": "Detect breaking changes to your TypeScript client generated by open api, typespec and more...", "main": "dist/src/index.js", "types": "./dist/src/index.d.ts", @@ -23,12 +23,7 @@ "prettier-watch:darwin:linux": "onchange 'src/**/*.ts' -- prettier --write {{changed}}", "prettier-watch:default": "onchange 'src/**/*.ts' -- prettier --write {{changed}}" }, - "author": "albertxavier100", - "repository": { - "type": "git", - "url": "https://github.com/albertxavier100/typescript-codegen-breaking-change-detector.git" - }, - "homepage": "https://github.com/albertxavier100/typescript-codegen-breaking-change-detector", + "author": "Microsoft Corporation", "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/common/rules/ignore-inline-declarations-in-operation-group.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/common/types.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/common/types.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/common/types.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/detect-breaking-changes.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/rule-sets/rest-level-client-rule-sets.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/azure/utils/azure-rule-utils.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-descriptions.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/common/models/rules/rule-ids.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/index.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/index.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/index.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/index.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/logging/logger.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/logging/logger.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/logging/logger.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts similarity index 95% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts index 9c94e748b99..c5b17d36be9 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts @@ -34,7 +34,7 @@ describe('detect rest level client breaking changes', async () => { const currentPackageFolder = join(__dirname, testCaseDir, 'current-package'); const baselinePackageFolder = join(__dirname, testCaseDir, 'baseline-package'); const date = getFormattedDate(); - const tempFolder = await createTempFolder(`./tmp/temp-${date}`); + const tempFolder = await createTempFolder(`.tmp/temp-${date}`); const messagesMap = await detectBreakingChangesBetweenPackages( baselinePackageFolder, currentPackageFolder, diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/utils/ast-utils.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/utils/common-utils.ts diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/tsconfig.json similarity index 99% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/tsconfig.json index 4f676c888c4..a1f30e01548 100644 --- a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/tsconfig.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/tsconfig.json @@ -100,6 +100,6 @@ "typeRoots": ["./node_modules/@types", "./dist/src"], }, - "exclude": ["**/tests/**/cases/**", "dist/**"], + "exclude": ["**/tests/**/cases/**", "dist/**", "packages/**"], "include": ["src/**/*.ts"] } \ No newline at end of file diff --git a/tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/vitest.config.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/vitest.config.ts similarity index 100% rename from tools/js-sdk-release-tools/workspaces/typescript-codegen-breaking-change-detector/vitest.config.ts rename to tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/vitest.config.ts diff --git a/tools/js-sdk-release-tools/vitest.config.ts b/tools/js-sdk-release-tools/vitest.config.ts index f251ef6db1d..e2c6f3a0eaa 100644 --- a/tools/js-sdk-release-tools/vitest.config.ts +++ b/tools/js-sdk-release-tools/vitest.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ "dist/**", "**/node_modules/**", "**/misc/**", - "workspaces/**/dist/**", + "packages/**/dist/**", ], }, }); From 1c76aeaa7726724762e0278435a5dd30b280f300 Mon Sep 17 00:00:00 2001 From: wanl Date: Fri, 16 Aug 2024 11:48:45 +0800 Subject: [PATCH 30/35] Update version in detector --- tools/js-sdk-release-tools/package.json | 3 +- .../package.json | 3 +- .../pnpm-lock.yaml | 3223 +++++++++++++++++ tools/js-sdk-release-tools/vitest.config.ts | 2 +- 4 files changed, 3226 insertions(+), 5 deletions(-) create mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index f3c94023201..41daaf1d378 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -3,7 +3,6 @@ "version": "2.7.11", "description": "", "scripts": { - "preinstall": "cd ./packages/typescript-codegen-breaking-change-detector/ && npm install && npm run build && npm pack && cd ../.. && npm install typescript-codegen-breaking-change-detector file:packages/typescript-codegen-breaking-change-detector/typescript-codegen-breaking-change-detector-0.0.0.tgz", "dev": "tsx watch src/changelogToolCli.ts", "start": "node dist/changelogToolCli.js", "debug": "node --inspect-brk dist/changelogToolCli.js", @@ -36,7 +35,7 @@ "simple-git": "^3.5.0", "ts-morph": "^23.0.0", "tslib": "^1.9.3", - "typescript-codegen-breaking-change-detector": "file:packages/typescript-codegen-breaking-change-detector/typescript-codegen-breaking-change-detector-0.0.0.tgz", + "typescript-codegen-breaking-change-detector": "0.4.7", "winston": "^3.13.1", "yaml": "^1.10.2" }, diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json index 62b4d545a9d..1b7a0584231 100644 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json @@ -1,6 +1,6 @@ { "name": "typescript-codegen-breaking-change-detector", - "version": "0.0.0", + "version": "0.4.7", "description": "Detect breaking changes to your TypeScript client generated by open api, typespec and more...", "main": "dist/src/index.js", "types": "./dist/src/index.d.ts", @@ -23,7 +23,6 @@ "prettier-watch:darwin:linux": "onchange 'src/**/*.ts' -- prettier --write {{changed}}", "prettier-watch:default": "onchange 'src/**/*.ts' -- prettier --write {{changed}}" }, - "author": "Microsoft Corporation", "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml new file mode 100644 index 00000000000..0fa606da052 --- /dev/null +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml @@ -0,0 +1,3223 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@azure-tools/openapi-tools-common': + specifier: ^1.2.2 + version: 1.2.2 + '@typescript-eslint/scope-manager': + specifier: ^7.17.0 + version: 7.18.0 + '@typescript-eslint/types': + specifier: ^7.17.0 + version: 7.18.0 + '@typescript-eslint/typescript-estree': + specifier: ^7.17.0 + version: 7.18.0(typescript@5.5.3) + '@typescript-eslint/utils': + specifier: ^7.17.0 + version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/visitor-keys': + specifier: ^7.17.0 + version: 7.18.0 + commander: + specifier: ^12.1.0 + version: 12.1.0 + fs-extra: + specifier: ^11.2.0 + version: 11.2.0 + glob: + specifier: ^11.0.0 + version: 11.0.0 + marked: + specifier: ^13.0.2 + version: 13.0.3 + pino: + specifier: ^9.3.1 + version: 9.3.2 + pino-pretty: + specifier: ^11.2.1 + version: 11.2.2 + ts-morph: + specifier: ^23.0.0 + version: 23.0.0 + typescript: + specifier: 5.5.3 + version: 5.5.3 + typescript-eslint: + specifier: ^7.17.0 + version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) + devDependencies: + '@types/eslint': + specifier: ^8.56.10 + version: 8.56.11 + '@types/eslint-scope': + specifier: ^3.7.7 + version: 3.7.7 + '@types/fs-extra': + specifier: ^11.0.4 + version: 11.0.4 + '@typescript-eslint/eslint-plugin': + specifier: ^7.17.0 + version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/parser': + specifier: ^7.17.0 + version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) + eslint-config-prettier: + specifier: ^9.1.0 + version: 9.1.0(eslint@8.57.0) + eslint-plugin-prettier: + specifier: ^5.1.3 + version: 5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2) + husky: + specifier: ^9.0.11 + version: 9.1.4 + onchange: + specifier: ^7.1.0 + version: 7.1.0 + prettier: + specifier: 3.3.2 + version: 3.3.2 + rimraf: + specifier: ^5.0.7 + version: 5.0.10 + tsx: + specifier: ^4.16.2 + version: 4.17.0 + vitest: + specifier: ^2.0.4 + version: 2.0.5(@types/node@22.3.0) + +packages: + + '@ampproject/remapping@2.3.0': + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} + engines: {node: '>=6.0.0'} + + '@azure-tools/openapi-tools-common@1.2.2': + resolution: {integrity: sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==} + + '@blakeembrey/deque@1.0.5': + resolution: {integrity: sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==} + + '@blakeembrey/template@1.1.0': + resolution: {integrity: sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==} + + '@esbuild/aix-ppc64@0.21.5': + resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + + '@esbuild/aix-ppc64@0.23.0': + resolution: {integrity: sha512-3sG8Zwa5fMcA9bgqB8AfWPQ+HFke6uD3h1s3RIwUNK8EG7a4buxvuFTs3j1IMs2NXAk9F30C/FF4vxRgQCcmoQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.21.5': + resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm64@0.23.0': + resolution: {integrity: sha512-EuHFUYkAVfU4qBdyivULuu03FhJO4IJN9PGuABGrFy4vUuzk91P2d+npxHcFdpUnfYKy0PuV+n6bKIpHOB3prQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.21.5': + resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + + '@esbuild/android-arm@0.23.0': + resolution: {integrity: sha512-+KuOHTKKyIKgEEqKbGTK8W7mPp+hKinbMBeEnNzjJGyFcWsfrXjSTNluJHCY1RqhxFurdD8uNXQDei7qDlR6+g==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.21.5': + resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + + '@esbuild/android-x64@0.23.0': + resolution: {integrity: sha512-WRrmKidLoKDl56LsbBMhzTTBxrsVwTKdNbKDalbEZr0tcsBgCLbEtoNthOW6PX942YiYq8HzEnb4yWQMLQuipQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.21.5': + resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-arm64@0.23.0': + resolution: {integrity: sha512-YLntie/IdS31H54Ogdn+v50NuoWF5BDkEUFpiOChVa9UnKpftgwzZRrI4J132ETIi+D8n6xh9IviFV3eXdxfow==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.21.5': + resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + + '@esbuild/darwin-x64@0.23.0': + resolution: {integrity: sha512-IMQ6eme4AfznElesHUPDZ+teuGwoRmVuuixu7sv92ZkdQcPbsNHzutd+rAfaBKo8YK3IrBEi9SLLKWJdEvJniQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.21.5': + resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-arm64@0.23.0': + resolution: {integrity: sha512-0muYWCng5vqaxobq6LB3YNtevDFSAZGlgtLoAc81PjUfiFz36n4KMpwhtAd4he8ToSI3TGyuhyx5xmiWNYZFyw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.21.5': + resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.23.0': + resolution: {integrity: sha512-XKDVu8IsD0/q3foBzsXGt/KjD/yTKBCIwOHE1XwiXmrRwrX6Hbnd5Eqn/WvDekddK21tfszBSrE/WMaZh+1buQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.21.5': + resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm64@0.23.0': + resolution: {integrity: sha512-j1t5iG8jE7BhonbsEg5d9qOYcVZv/Rv6tghaXM/Ug9xahM0nX/H2gfu6X6z11QRTMT6+aywOMA8TDkhPo8aCGw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.21.5': + resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-arm@0.23.0': + resolution: {integrity: sha512-SEELSTEtOFu5LPykzA395Mc+54RMg1EUgXP+iw2SJ72+ooMwVsgfuwXo5Fn0wXNgWZsTVHwY2cg4Vi/bOD88qw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.21.5': + resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-ia32@0.23.0': + resolution: {integrity: sha512-P7O5Tkh2NbgIm2R6x1zGJJsnacDzTFcRWZyTTMgFdVit6E98LTxO+v8LCCLWRvPrjdzXHx9FEOA8oAZPyApWUA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.21.5': + resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-loong64@0.23.0': + resolution: {integrity: sha512-InQwepswq6urikQiIC/kkx412fqUZudBO4SYKu0N+tGhXRWUqAx+Q+341tFV6QdBifpjYgUndV1hhMq3WeJi7A==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.21.5': + resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-mips64el@0.23.0': + resolution: {integrity: sha512-J9rflLtqdYrxHv2FqXE2i1ELgNjT+JFURt/uDMoPQLcjWQA5wDKgQA4t/dTqGa88ZVECKaD0TctwsUfHbVoi4w==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.21.5': + resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-ppc64@0.23.0': + resolution: {integrity: sha512-cShCXtEOVc5GxU0fM+dsFD10qZ5UpcQ8AM22bYj0u/yaAykWnqXJDpd77ublcX6vdDsWLuweeuSNZk4yUxZwtw==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.21.5': + resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-riscv64@0.23.0': + resolution: {integrity: sha512-HEtaN7Y5UB4tZPeQmgz/UhzoEyYftbMXrBCUjINGjh3uil+rB/QzzpMshz3cNUxqXN7Vr93zzVtpIDL99t9aRw==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.21.5': + resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-s390x@0.23.0': + resolution: {integrity: sha512-WDi3+NVAuyjg/Wxi+o5KPqRbZY0QhI9TjrEEm+8dmpY9Xir8+HE/HNx2JoLckhKbFopW0RdO2D72w8trZOV+Wg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.21.5': + resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + + '@esbuild/linux-x64@0.23.0': + resolution: {integrity: sha512-a3pMQhUEJkITgAw6e0bWA+F+vFtCciMjW/LPtoj99MhVt+Mfb6bbL9hu2wmTZgNd994qTAEw+U/r6k3qHWWaOQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-x64@0.21.5': + resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.23.0': + resolution: {integrity: sha512-cRK+YDem7lFTs2Q5nEv/HHc4LnrfBCbH5+JHu6wm2eP+d8OZNoSMYgPZJq78vqQ9g+9+nMuIsAO7skzphRXHyw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.23.0': + resolution: {integrity: sha512-suXjq53gERueVWu0OKxzWqk7NxiUWSUlrxoZK7usiF50C6ipColGR5qie2496iKGYNLhDZkPxBI3erbnYkU0rQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.21.5': + resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.23.0': + resolution: {integrity: sha512-6p3nHpby0DM/v15IFKMjAaayFhqnXV52aEmv1whZHX56pdkK+MEaLoQWj+H42ssFarP1PcomVhbsR4pkz09qBg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.21.5': + resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + + '@esbuild/sunos-x64@0.23.0': + resolution: {integrity: sha512-BFelBGfrBwk6LVrmFzCq1u1dZbG4zy/Kp93w2+y83Q5UGYF1d8sCzeLI9NXjKyujjBBniQa8R8PzLFAUrSM9OA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.21.5': + resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-arm64@0.23.0': + resolution: {integrity: sha512-lY6AC8p4Cnb7xYHuIxQ6iYPe6MfO2CC43XXKo9nBXDb35krYt7KGhQnOkRGar5psxYkircpCqfbNDB4uJbS2jQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.21.5': + resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-ia32@0.23.0': + resolution: {integrity: sha512-7L1bHlOTcO4ByvI7OXVI5pNN6HSu6pUQq9yodga8izeuB1KcT2UkHaH6118QJwopExPn0rMHIseCTx1CRo/uNA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.21.5': + resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + + '@esbuild/win32-x64@0.23.0': + resolution: {integrity: sha512-Arm+WgUFLUATuoxCJcahGuk6Yj9Pzxd6l11Zb/2aAuv5kWWvvfhLFo2fni4uSK5vzlUdCGZ/BdV5tH8klj8p8g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@eslint-community/eslint-utils@4.4.0': + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.11.0': + resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/eslintrc@2.1.4': + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@eslint/js@8.57.0': + resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@humanwhocodes/config-array@0.11.14': + resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/object-schema@2.0.3': + resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} + deprecated: Use @eslint/object-schema instead + + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + + '@jridgewell/gen-mapping@0.3.5': + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} + engines: {node: '>=6.0.0'} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@pkgr/core@0.1.1': + resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + + '@rollup/rollup-android-arm-eabi@4.20.0': + resolution: {integrity: sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.20.0': + resolution: {integrity: sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.20.0': + resolution: {integrity: sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.20.0': + resolution: {integrity: sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-linux-arm-gnueabihf@4.20.0': + resolution: {integrity: sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.20.0': + resolution: {integrity: sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.20.0': + resolution: {integrity: sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.20.0': + resolution: {integrity: sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': + resolution: {integrity: sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-gnu@4.20.0': + resolution: {integrity: sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-s390x-gnu@4.20.0': + resolution: {integrity: sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.20.0': + resolution: {integrity: sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.20.0': + resolution: {integrity: sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-win32-arm64-msvc@4.20.0': + resolution: {integrity: sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.20.0': + resolution: {integrity: sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.20.0': + resolution: {integrity: sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==} + cpu: [x64] + os: [win32] + + '@ts-morph/common@0.24.0': + resolution: {integrity: sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==} + + '@types/async-retry@1.4.8': + resolution: {integrity: sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==} + + '@types/commonmark@0.27.9': + resolution: {integrity: sha512-d3+57WgyPCcIc6oshmcPkmP4+JqRRot9eeZLsBsutWtIxwWivpoyc2wEcolOp8MyO3ZWN846mMdoR02kdHSMCw==} + + '@types/eslint-scope@3.7.7': + resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} + + '@types/eslint@8.56.11': + resolution: {integrity: sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==} + + '@types/estree@1.0.5': + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + + '@types/fs-extra@11.0.4': + resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@types/jsonfile@6.1.4': + resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} + + '@types/node-fetch@2.6.11': + resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} + + '@types/node@22.3.0': + resolution: {integrity: sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==} + + '@types/retry@0.12.5': + resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==} + + '@typescript-eslint/eslint-plugin@7.18.0': + resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + '@typescript-eslint/parser': ^7.0.0 + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/parser@7.18.0': + resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/scope-manager@7.18.0': + resolution: {integrity: sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/type-utils@7.18.0': + resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/types@7.18.0': + resolution: {integrity: sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/typescript-estree@7.18.0': + resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/utils@7.18.0': + resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + + '@typescript-eslint/visitor-keys@7.18.0': + resolution: {integrity: sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@ungap/structured-clone@1.2.0': + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + + '@vitest/expect@2.0.5': + resolution: {integrity: sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==} + + '@vitest/pretty-format@2.0.5': + resolution: {integrity: sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==} + + '@vitest/runner@2.0.5': + resolution: {integrity: sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==} + + '@vitest/snapshot@2.0.5': + resolution: {integrity: sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==} + + '@vitest/spy@2.0.5': + resolution: {integrity: sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==} + + '@vitest/utils@2.0.5': + resolution: {integrity: sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==} + + abort-controller@3.0.0: + resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} + engines: {node: '>=6.5'} + + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.12.1: + resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + arg@4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + + argparse@1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + async-retry@1.3.3: + resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==} + + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + atomic-sleep@1.0.0: + resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} + engines: {node: '>=8.0.0'} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + + brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + buffer@6.0.3: + resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} + + cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + chai@5.1.1: + resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} + engines: {node: '>=12'} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + check-error@2.1.1: + resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} + engines: {node: '>= 16'} + + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + code-block-writer@13.0.2: + resolution: {integrity: sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + + commander@12.1.0: + resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} + engines: {node: '>=18'} + + commonmark@0.28.1: + resolution: {integrity: sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==} + hasBin: true + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + + dateformat@4.6.3: + resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} + + debug@4.3.6: + resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + + doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + + end-of-stream@1.4.4: + resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + + entities@1.1.2: + resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} + + esbuild@0.21.5: + resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} + engines: {node: '>=12'} + hasBin: true + + esbuild@0.23.0: + resolution: {integrity: sha512-1lvV17H2bMYda/WaFb2jLPeHU3zml2k4/yagNMG8Q/YtfMjCwEUZa2eXXMgZTVSL5q1n4H7sQ0X6CdJDqqeCFA==} + engines: {node: '>=18'} + hasBin: true + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + eslint-config-prettier@9.1.0: + resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + + eslint-plugin-prettier@5.2.1: + resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + '@types/eslint': '>=8.0.0' + eslint: '>=8.0.0' + eslint-config-prettier: '*' + prettier: '>=3.0.0' + peerDependenciesMeta: + '@types/eslint': + optional: true + eslint-config-prettier: + optional: true + + eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint@8.57.0: + resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + hasBin: true + + espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + esquery@1.6.0: + resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + event-target-shim@5.0.1: + resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} + engines: {node: '>=6'} + + events@3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + + execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} + + fast-copy@3.0.2: + resolution: {integrity: sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-diff@1.3.0: + resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} + + fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} + engines: {node: '>=8.6.0'} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + + fast-redact@3.5.0: + resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==} + engines: {node: '>=6'} + + fast-safe-stringify@2.1.1: + resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + + fastq@1.17.1: + resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} + + file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} + + flatted@3.3.1: + resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + + foreground-child@3.3.0: + resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} + engines: {node: '>=14'} + + form-data@4.0.0: + resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + engines: {node: '>= 6'} + + front-matter@4.0.2: + resolution: {integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==} + + fs-extra@11.2.0: + resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} + engines: {node: '>=14.14'} + + fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + get-func-name@2.0.2: + resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} + + get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + + get-tsconfig@4.7.6: + resolution: {integrity: sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + + glob@10.4.5: + resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + hasBin: true + + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + + glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported + + globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + + globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + help-me@5.0.0: + resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} + + human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} + + husky@9.1.4: + resolution: {integrity: sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==} + engines: {node: '>=18'} + hasBin: true + + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + + is-stream@3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + + jackspeak@4.0.1: + resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==} + engines: {node: 20 || >=22} + + joycon@3.1.1: + resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} + engines: {node: '>=10'} + + js-yaml@3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + + js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + + json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + jsonfile@6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + + keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + + loupe@3.1.1: + resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@11.0.0: + resolution: {integrity: sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==} + engines: {node: 20 || >=22} + + magic-string@0.30.11: + resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} + + marked@13.0.3: + resolution: {integrity: sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==} + engines: {node: '>= 18'} + hasBin: true + + mdurl@1.0.1: + resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} + + merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + micromatch@4.0.7: + resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} + engines: {node: '>=8.6'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + mimic-fn@4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + + mkdirp@3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} + engines: {node: '>=10'} + hasBin: true + + ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + + nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + npm-run-path@5.3.0: + resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + on-exit-leak-free@2.1.2: + resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} + engines: {node: '>=14.0.0'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + onchange@7.1.0: + resolution: {integrity: sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==} + hasBin: true + + onetime@6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + package-json-from-dist@1.0.0: + resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + + path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + + pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + + pathval@2.0.0: + resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} + engines: {node: '>= 14.16'} + + picocolors@1.0.1: + resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + pino-abstract-transport@1.2.0: + resolution: {integrity: sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==} + + pino-pretty@11.2.2: + resolution: {integrity: sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==} + hasBin: true + + pino-std-serializers@7.0.0: + resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==} + + pino@9.3.2: + resolution: {integrity: sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==} + hasBin: true + + postcss@8.4.41: + resolution: {integrity: sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==} + engines: {node: ^10 || ^12 || >=14} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + prettier-linter-helpers@1.0.0: + resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} + engines: {node: '>=6.0.0'} + + prettier@3.3.2: + resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==} + engines: {node: '>=14'} + hasBin: true + + process-warning@4.0.0: + resolution: {integrity: sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==} + + process@0.11.10: + resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} + engines: {node: '>= 0.6.0'} + + pump@3.0.0: + resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + quick-format-unescaped@4.0.4: + resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} + + readable-stream@4.5.2: + resolution: {integrity: sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + real-require@0.2.0: + resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} + engines: {node: '>= 12.13.0'} + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + + retry@0.13.1: + resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} + engines: {node: '>= 4'} + + reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + + rimraf@5.0.10: + resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==} + hasBin: true + + rollup@4.20.0: + resolution: {integrity: sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + safe-stable-stringify@2.4.3: + resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} + engines: {node: '>=10'} + + secure-json-parse@2.7.0: + resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} + + semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} + engines: {node: '>=10'} + hasBin: true + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + + sonic-boom@4.0.1: + resolution: {integrity: sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==} + + source-map-js@1.2.0: + resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} + engines: {node: '>=0.10.0'} + + split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + + sprintf-js@1.0.3: + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@3.7.0: + resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + + string.prototype.repeat@0.2.0: + resolution: {integrity: sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + + strip-final-newline@3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + synckit@0.9.1: + resolution: {integrity: sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==} + engines: {node: ^14.18.0 || >=16.0.0} + + text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + + thread-stream@3.1.0: + resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinypool@1.0.0: + resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@1.2.0: + resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} + engines: {node: '>=14.0.0'} + + tinyspy@3.0.0: + resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==} + engines: {node: '>=14.0.0'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + + ts-api-utils@1.3.0: + resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} + engines: {node: '>=16'} + peerDependencies: + typescript: '>=4.2.0' + + ts-morph@23.0.0: + resolution: {integrity: sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==} + + tslib@2.6.3: + resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} + + tsx@4.17.0: + resolution: {integrity: sha512-eN4mnDA5UMKDt4YZixo9tBioibaMBpoxBkD+rIPAjVmYERSG0/dWEY1CEFuV89CgASlKL499q8AhmkMnnjtOJg==} + engines: {node: '>=18.0.0'} + hasBin: true + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + + typescript-eslint@7.18.0: + resolution: {integrity: sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + typescript@5.5.3: + resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.18.2: + resolution: {integrity: sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==} + + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + vite-node@2.0.5: + resolution: {integrity: sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + + vite@5.4.1: + resolution: {integrity: sha512-1oE6yuNXssjrZdblI9AfBbHCC41nnyoVoEZxQnID6yvQZAFBzxxkqoFLtHUMkYunL8hwOLEjgTuxpkRxvba3kA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + + vitest@2.0.5: + resolution: {integrity: sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/node': ^18.0.0 || >=20.0.0 + '@vitest/browser': 2.0.5 + '@vitest/ui': 2.0.5 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + + whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + +snapshots: + + '@ampproject/remapping@2.3.0': + dependencies: + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 + + '@azure-tools/openapi-tools-common@1.2.2': + dependencies: + '@types/async-retry': 1.4.8 + '@types/commonmark': 0.27.9 + '@types/node-fetch': 2.6.11 + async-retry: 1.3.3 + commonmark: 0.28.1 + front-matter: 4.0.2 + node-fetch: 2.7.0 + tslib: 2.6.3 + transitivePeerDependencies: + - encoding + + '@blakeembrey/deque@1.0.5': {} + + '@blakeembrey/template@1.1.0': {} + + '@esbuild/aix-ppc64@0.21.5': + optional: true + + '@esbuild/aix-ppc64@0.23.0': + optional: true + + '@esbuild/android-arm64@0.21.5': + optional: true + + '@esbuild/android-arm64@0.23.0': + optional: true + + '@esbuild/android-arm@0.21.5': + optional: true + + '@esbuild/android-arm@0.23.0': + optional: true + + '@esbuild/android-x64@0.21.5': + optional: true + + '@esbuild/android-x64@0.23.0': + optional: true + + '@esbuild/darwin-arm64@0.21.5': + optional: true + + '@esbuild/darwin-arm64@0.23.0': + optional: true + + '@esbuild/darwin-x64@0.21.5': + optional: true + + '@esbuild/darwin-x64@0.23.0': + optional: true + + '@esbuild/freebsd-arm64@0.21.5': + optional: true + + '@esbuild/freebsd-arm64@0.23.0': + optional: true + + '@esbuild/freebsd-x64@0.21.5': + optional: true + + '@esbuild/freebsd-x64@0.23.0': + optional: true + + '@esbuild/linux-arm64@0.21.5': + optional: true + + '@esbuild/linux-arm64@0.23.0': + optional: true + + '@esbuild/linux-arm@0.21.5': + optional: true + + '@esbuild/linux-arm@0.23.0': + optional: true + + '@esbuild/linux-ia32@0.21.5': + optional: true + + '@esbuild/linux-ia32@0.23.0': + optional: true + + '@esbuild/linux-loong64@0.21.5': + optional: true + + '@esbuild/linux-loong64@0.23.0': + optional: true + + '@esbuild/linux-mips64el@0.21.5': + optional: true + + '@esbuild/linux-mips64el@0.23.0': + optional: true + + '@esbuild/linux-ppc64@0.21.5': + optional: true + + '@esbuild/linux-ppc64@0.23.0': + optional: true + + '@esbuild/linux-riscv64@0.21.5': + optional: true + + '@esbuild/linux-riscv64@0.23.0': + optional: true + + '@esbuild/linux-s390x@0.21.5': + optional: true + + '@esbuild/linux-s390x@0.23.0': + optional: true + + '@esbuild/linux-x64@0.21.5': + optional: true + + '@esbuild/linux-x64@0.23.0': + optional: true + + '@esbuild/netbsd-x64@0.21.5': + optional: true + + '@esbuild/netbsd-x64@0.23.0': + optional: true + + '@esbuild/openbsd-arm64@0.23.0': + optional: true + + '@esbuild/openbsd-x64@0.21.5': + optional: true + + '@esbuild/openbsd-x64@0.23.0': + optional: true + + '@esbuild/sunos-x64@0.21.5': + optional: true + + '@esbuild/sunos-x64@0.23.0': + optional: true + + '@esbuild/win32-arm64@0.21.5': + optional: true + + '@esbuild/win32-arm64@0.23.0': + optional: true + + '@esbuild/win32-ia32@0.21.5': + optional: true + + '@esbuild/win32-ia32@0.23.0': + optional: true + + '@esbuild/win32-x64@0.21.5': + optional: true + + '@esbuild/win32-x64@0.23.0': + optional: true + + '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': + dependencies: + eslint: 8.57.0 + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.11.0': {} + + '@eslint/eslintrc@2.1.4': + dependencies: + ajv: 6.12.6 + debug: 4.3.6 + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.2 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@8.57.0': {} + + '@humanwhocodes/config-array@0.11.14': + dependencies: + '@humanwhocodes/object-schema': 2.0.3 + debug: 4.3.6 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/object-schema@2.0.3': {} + + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + + '@jridgewell/gen-mapping@0.3.5': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.17.1 + + '@pkgjs/parseargs@0.11.0': + optional: true + + '@pkgr/core@0.1.1': {} + + '@rollup/rollup-android-arm-eabi@4.20.0': + optional: true + + '@rollup/rollup-android-arm64@4.20.0': + optional: true + + '@rollup/rollup-darwin-arm64@4.20.0': + optional: true + + '@rollup/rollup-darwin-x64@4.20.0': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.20.0': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.20.0': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.20.0': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-x64-musl@4.20.0': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.20.0': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.20.0': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.20.0': + optional: true + + '@ts-morph/common@0.24.0': + dependencies: + fast-glob: 3.3.2 + minimatch: 9.0.5 + mkdirp: 3.0.1 + path-browserify: 1.0.1 + + '@types/async-retry@1.4.8': + dependencies: + '@types/retry': 0.12.5 + + '@types/commonmark@0.27.9': {} + + '@types/eslint-scope@3.7.7': + dependencies: + '@types/eslint': 8.56.11 + '@types/estree': 1.0.5 + + '@types/eslint@8.56.11': + dependencies: + '@types/estree': 1.0.5 + '@types/json-schema': 7.0.15 + + '@types/estree@1.0.5': {} + + '@types/fs-extra@11.0.4': + dependencies: + '@types/jsonfile': 6.1.4 + '@types/node': 22.3.0 + + '@types/json-schema@7.0.15': {} + + '@types/jsonfile@6.1.4': + dependencies: + '@types/node': 22.3.0 + + '@types/node-fetch@2.6.11': + dependencies: + '@types/node': 22.3.0 + form-data: 4.0.0 + + '@types/node@22.3.0': + dependencies: + undici-types: 6.18.2 + + '@types/retry@0.12.5': {} + + '@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@eslint-community/regexpp': 4.11.0 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/scope-manager': 7.18.0 + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/visitor-keys': 7.18.0 + eslint: 8.57.0 + graphemer: 1.4.0 + ignore: 5.3.2 + natural-compare: 1.4.0 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@typescript-eslint/scope-manager': 7.18.0 + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) + '@typescript-eslint/visitor-keys': 7.18.0 + debug: 4.3.6 + eslint: 8.57.0 + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/scope-manager@7.18.0': + dependencies: + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/visitor-keys': 7.18.0 + + '@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + debug: 4.3.6 + eslint: 8.57.0 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/types@7.18.0': {} + + '@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.3)': + dependencies: + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/visitor-keys': 7.18.0 + debug: 4.3.6 + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@typescript-eslint/scope-manager': 7.18.0 + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) + eslint: 8.57.0 + transitivePeerDependencies: + - supports-color + - typescript + + '@typescript-eslint/visitor-keys@7.18.0': + dependencies: + '@typescript-eslint/types': 7.18.0 + eslint-visitor-keys: 3.4.3 + + '@ungap/structured-clone@1.2.0': {} + + '@vitest/expect@2.0.5': + dependencies: + '@vitest/spy': 2.0.5 + '@vitest/utils': 2.0.5 + chai: 5.1.1 + tinyrainbow: 1.2.0 + + '@vitest/pretty-format@2.0.5': + dependencies: + tinyrainbow: 1.2.0 + + '@vitest/runner@2.0.5': + dependencies: + '@vitest/utils': 2.0.5 + pathe: 1.1.2 + + '@vitest/snapshot@2.0.5': + dependencies: + '@vitest/pretty-format': 2.0.5 + magic-string: 0.30.11 + pathe: 1.1.2 + + '@vitest/spy@2.0.5': + dependencies: + tinyspy: 3.0.0 + + '@vitest/utils@2.0.5': + dependencies: + '@vitest/pretty-format': 2.0.5 + estree-walker: 3.0.3 + loupe: 3.1.1 + tinyrainbow: 1.2.0 + + abort-controller@3.0.0: + dependencies: + event-target-shim: 5.0.1 + + acorn-jsx@5.3.2(acorn@8.12.1): + dependencies: + acorn: 8.12.1 + + acorn@8.12.1: {} + + ajv@6.12.6: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + ansi-regex@5.0.1: {} + + ansi-regex@6.0.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@6.2.1: {} + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + + arg@4.1.3: {} + + argparse@1.0.10: + dependencies: + sprintf-js: 1.0.3 + + argparse@2.0.1: {} + + array-union@2.1.0: {} + + assertion-error@2.0.1: {} + + async-retry@1.3.3: + dependencies: + retry: 0.13.1 + + asynckit@0.4.0: {} + + atomic-sleep@1.0.0: {} + + balanced-match@1.0.2: {} + + base64-js@1.5.1: {} + + binary-extensions@2.3.0: {} + + brace-expansion@1.1.11: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.0.1: + dependencies: + balanced-match: 1.0.2 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + buffer@6.0.3: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + + cac@6.7.14: {} + + callsites@3.1.0: {} + + chai@5.1.1: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.1 + deep-eql: 5.0.2 + loupe: 3.1.1 + pathval: 2.0.0 + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + check-error@2.1.1: {} + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + code-block-writer@13.0.2: {} + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + colorette@2.0.20: {} + + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + + commander@12.1.0: {} + + commonmark@0.28.1: + dependencies: + entities: 1.1.2 + mdurl: 1.0.1 + minimist: 1.2.8 + string.prototype.repeat: 0.2.0 + + concat-map@0.0.1: {} + + cross-spawn@7.0.3: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + dateformat@4.6.3: {} + + debug@4.3.6: + dependencies: + ms: 2.1.2 + + deep-eql@5.0.2: {} + + deep-is@0.1.4: {} + + delayed-stream@1.0.0: {} + + dir-glob@3.0.1: + dependencies: + path-type: 4.0.0 + + doctrine@3.0.0: + dependencies: + esutils: 2.0.3 + + eastasianwidth@0.2.0: {} + + emoji-regex@8.0.0: {} + + emoji-regex@9.2.2: {} + + end-of-stream@1.4.4: + dependencies: + once: 1.4.0 + + entities@1.1.2: {} + + esbuild@0.21.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.21.5 + '@esbuild/android-arm': 0.21.5 + '@esbuild/android-arm64': 0.21.5 + '@esbuild/android-x64': 0.21.5 + '@esbuild/darwin-arm64': 0.21.5 + '@esbuild/darwin-x64': 0.21.5 + '@esbuild/freebsd-arm64': 0.21.5 + '@esbuild/freebsd-x64': 0.21.5 + '@esbuild/linux-arm': 0.21.5 + '@esbuild/linux-arm64': 0.21.5 + '@esbuild/linux-ia32': 0.21.5 + '@esbuild/linux-loong64': 0.21.5 + '@esbuild/linux-mips64el': 0.21.5 + '@esbuild/linux-ppc64': 0.21.5 + '@esbuild/linux-riscv64': 0.21.5 + '@esbuild/linux-s390x': 0.21.5 + '@esbuild/linux-x64': 0.21.5 + '@esbuild/netbsd-x64': 0.21.5 + '@esbuild/openbsd-x64': 0.21.5 + '@esbuild/sunos-x64': 0.21.5 + '@esbuild/win32-arm64': 0.21.5 + '@esbuild/win32-ia32': 0.21.5 + '@esbuild/win32-x64': 0.21.5 + + esbuild@0.23.0: + optionalDependencies: + '@esbuild/aix-ppc64': 0.23.0 + '@esbuild/android-arm': 0.23.0 + '@esbuild/android-arm64': 0.23.0 + '@esbuild/android-x64': 0.23.0 + '@esbuild/darwin-arm64': 0.23.0 + '@esbuild/darwin-x64': 0.23.0 + '@esbuild/freebsd-arm64': 0.23.0 + '@esbuild/freebsd-x64': 0.23.0 + '@esbuild/linux-arm': 0.23.0 + '@esbuild/linux-arm64': 0.23.0 + '@esbuild/linux-ia32': 0.23.0 + '@esbuild/linux-loong64': 0.23.0 + '@esbuild/linux-mips64el': 0.23.0 + '@esbuild/linux-ppc64': 0.23.0 + '@esbuild/linux-riscv64': 0.23.0 + '@esbuild/linux-s390x': 0.23.0 + '@esbuild/linux-x64': 0.23.0 + '@esbuild/netbsd-x64': 0.23.0 + '@esbuild/openbsd-arm64': 0.23.0 + '@esbuild/openbsd-x64': 0.23.0 + '@esbuild/sunos-x64': 0.23.0 + '@esbuild/win32-arm64': 0.23.0 + '@esbuild/win32-ia32': 0.23.0 + '@esbuild/win32-x64': 0.23.0 + + escape-string-regexp@4.0.0: {} + + eslint-config-prettier@9.1.0(eslint@8.57.0): + dependencies: + eslint: 8.57.0 + + eslint-plugin-prettier@5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2): + dependencies: + eslint: 8.57.0 + prettier: 3.3.2 + prettier-linter-helpers: 1.0.0 + synckit: 0.9.1 + optionalDependencies: + '@types/eslint': 8.56.11 + eslint-config-prettier: 9.1.0(eslint@8.57.0) + + eslint-scope@7.2.2: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint@8.57.0: + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/regexpp': 4.11.0 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.57.0 + '@humanwhocodes/config-array': 0.11.14 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.6 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.6.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.24.0 + graphemer: 1.4.0 + ignore: 5.3.2 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.4 + strip-ansi: 6.0.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + + espree@9.6.1: + dependencies: + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) + eslint-visitor-keys: 3.4.3 + + esprima@4.0.1: {} + + esquery@1.6.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.5 + + esutils@2.0.3: {} + + event-target-shim@5.0.1: {} + + events@3.3.0: {} + + execa@8.0.1: + dependencies: + cross-spawn: 7.0.3 + get-stream: 8.0.1 + human-signals: 5.0.0 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.3.0 + onetime: 6.0.0 + signal-exit: 4.1.0 + strip-final-newline: 3.0.0 + + fast-copy@3.0.2: {} + + fast-deep-equal@3.1.3: {} + + fast-diff@1.3.0: {} + + fast-glob@3.3.2: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.7 + + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + + fast-redact@3.5.0: {} + + fast-safe-stringify@2.1.1: {} + + fastq@1.17.1: + dependencies: + reusify: 1.0.4 + + file-entry-cache@6.0.1: + dependencies: + flat-cache: 3.2.0 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@3.2.0: + dependencies: + flatted: 3.3.1 + keyv: 4.5.4 + rimraf: 3.0.2 + + flatted@3.3.1: {} + + foreground-child@3.3.0: + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + + form-data@4.0.0: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.35 + + front-matter@4.0.2: + dependencies: + js-yaml: 3.14.1 + + fs-extra@11.2.0: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.1 + + fs.realpath@1.0.0: {} + + fsevents@2.3.3: + optional: true + + get-func-name@2.0.2: {} + + get-stream@8.0.1: {} + + get-tsconfig@4.7.6: + dependencies: + resolve-pkg-maps: 1.0.0 + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + + glob@10.4.5: + dependencies: + foreground-child: 3.3.0 + jackspeak: 3.4.3 + minimatch: 9.0.5 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 1.11.1 + + glob@11.0.0: + dependencies: + foreground-child: 3.3.0 + jackspeak: 4.0.1 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 2.0.0 + + glob@7.2.3: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + + globals@13.24.0: + dependencies: + type-fest: 0.20.2 + + globby@11.1.0: + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.2 + ignore: 5.3.2 + merge2: 1.4.1 + slash: 3.0.0 + + graceful-fs@4.2.11: {} + + graphemer@1.4.0: {} + + has-flag@4.0.0: {} + + help-me@5.0.0: {} + + human-signals@5.0.0: {} + + husky@9.1.4: {} + + ieee754@1.2.1: {} + + ignore@5.3.2: {} + + import-fresh@3.3.0: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + imurmurhash@0.1.4: {} + + inflight@1.0.6: + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + inherits@2.0.4: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + + is-path-inside@3.0.3: {} + + is-stream@3.0.0: {} + + isexe@2.0.0: {} + + jackspeak@3.4.3: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + jackspeak@4.0.1: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + joycon@3.1.1: {} + + js-yaml@3.14.1: + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + + js-yaml@4.1.0: + dependencies: + argparse: 2.0.1 + + json-buffer@3.0.1: {} + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + jsonfile@6.1.0: + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + + keyv@4.5.4: + dependencies: + json-buffer: 3.0.1 + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + lodash.merge@4.6.2: {} + + loupe@3.1.1: + dependencies: + get-func-name: 2.0.2 + + lru-cache@10.4.3: {} + + lru-cache@11.0.0: {} + + magic-string@0.30.11: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + marked@13.0.3: {} + + mdurl@1.0.1: {} + + merge-stream@2.0.0: {} + + merge2@1.4.1: {} + + micromatch@4.0.7: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + mimic-fn@4.0.0: {} + + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.11 + + minimatch@9.0.5: + dependencies: + brace-expansion: 2.0.1 + + minimist@1.2.8: {} + + minipass@7.1.2: {} + + mkdirp@3.0.1: {} + + ms@2.1.2: {} + + nanoid@3.3.7: {} + + natural-compare@1.4.0: {} + + node-fetch@2.7.0: + dependencies: + whatwg-url: 5.0.0 + + normalize-path@3.0.0: {} + + npm-run-path@5.3.0: + dependencies: + path-key: 4.0.0 + + on-exit-leak-free@2.1.2: {} + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + onchange@7.1.0: + dependencies: + '@blakeembrey/deque': 1.0.5 + '@blakeembrey/template': 1.1.0 + arg: 4.1.3 + chokidar: 3.6.0 + cross-spawn: 7.0.3 + ignore: 5.3.2 + tree-kill: 1.2.2 + + onetime@6.0.0: + dependencies: + mimic-fn: 4.0.0 + + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + package-json-from-dist@1.0.0: {} + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + path-browserify@1.0.1: {} + + path-exists@4.0.0: {} + + path-is-absolute@1.0.1: {} + + path-key@3.1.1: {} + + path-key@4.0.0: {} + + path-scurry@1.11.1: + dependencies: + lru-cache: 10.4.3 + minipass: 7.1.2 + + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.0 + minipass: 7.1.2 + + path-type@4.0.0: {} + + pathe@1.1.2: {} + + pathval@2.0.0: {} + + picocolors@1.0.1: {} + + picomatch@2.3.1: {} + + pino-abstract-transport@1.2.0: + dependencies: + readable-stream: 4.5.2 + split2: 4.2.0 + + pino-pretty@11.2.2: + dependencies: + colorette: 2.0.20 + dateformat: 4.6.3 + fast-copy: 3.0.2 + fast-safe-stringify: 2.1.1 + help-me: 5.0.0 + joycon: 3.1.1 + minimist: 1.2.8 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 1.2.0 + pump: 3.0.0 + readable-stream: 4.5.2 + secure-json-parse: 2.7.0 + sonic-boom: 4.0.1 + strip-json-comments: 3.1.1 + + pino-std-serializers@7.0.0: {} + + pino@9.3.2: + dependencies: + atomic-sleep: 1.0.0 + fast-redact: 3.5.0 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 1.2.0 + pino-std-serializers: 7.0.0 + process-warning: 4.0.0 + quick-format-unescaped: 4.0.4 + real-require: 0.2.0 + safe-stable-stringify: 2.4.3 + sonic-boom: 4.0.1 + thread-stream: 3.1.0 + + postcss@8.4.41: + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.1 + source-map-js: 1.2.0 + + prelude-ls@1.2.1: {} + + prettier-linter-helpers@1.0.0: + dependencies: + fast-diff: 1.3.0 + + prettier@3.3.2: {} + + process-warning@4.0.0: {} + + process@0.11.10: {} + + pump@3.0.0: + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + + punycode@2.3.1: {} + + queue-microtask@1.2.3: {} + + quick-format-unescaped@4.0.4: {} + + readable-stream@4.5.2: + dependencies: + abort-controller: 3.0.0 + buffer: 6.0.3 + events: 3.3.0 + process: 0.11.10 + string_decoder: 1.3.0 + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + + real-require@0.2.0: {} + + resolve-from@4.0.0: {} + + resolve-pkg-maps@1.0.0: {} + + retry@0.13.1: {} + + reusify@1.0.4: {} + + rimraf@3.0.2: + dependencies: + glob: 7.2.3 + + rimraf@5.0.10: + dependencies: + glob: 10.4.5 + + rollup@4.20.0: + dependencies: + '@types/estree': 1.0.5 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.20.0 + '@rollup/rollup-android-arm64': 4.20.0 + '@rollup/rollup-darwin-arm64': 4.20.0 + '@rollup/rollup-darwin-x64': 4.20.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.20.0 + '@rollup/rollup-linux-arm-musleabihf': 4.20.0 + '@rollup/rollup-linux-arm64-gnu': 4.20.0 + '@rollup/rollup-linux-arm64-musl': 4.20.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.20.0 + '@rollup/rollup-linux-riscv64-gnu': 4.20.0 + '@rollup/rollup-linux-s390x-gnu': 4.20.0 + '@rollup/rollup-linux-x64-gnu': 4.20.0 + '@rollup/rollup-linux-x64-musl': 4.20.0 + '@rollup/rollup-win32-arm64-msvc': 4.20.0 + '@rollup/rollup-win32-ia32-msvc': 4.20.0 + '@rollup/rollup-win32-x64-msvc': 4.20.0 + fsevents: 2.3.3 + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + safe-buffer@5.2.1: {} + + safe-stable-stringify@2.4.3: {} + + secure-json-parse@2.7.0: {} + + semver@7.6.3: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + siginfo@2.0.0: {} + + signal-exit@4.1.0: {} + + slash@3.0.0: {} + + sonic-boom@4.0.1: + dependencies: + atomic-sleep: 1.0.0 + + source-map-js@1.2.0: {} + + split2@4.2.0: {} + + sprintf-js@1.0.3: {} + + stackback@0.0.2: {} + + std-env@3.7.0: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + + string.prototype.repeat@0.2.0: {} + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.1.0: + dependencies: + ansi-regex: 6.0.1 + + strip-final-newline@3.0.0: {} + + strip-json-comments@3.1.1: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + synckit@0.9.1: + dependencies: + '@pkgr/core': 0.1.1 + tslib: 2.6.3 + + text-table@0.2.0: {} + + thread-stream@3.1.0: + dependencies: + real-require: 0.2.0 + + tinybench@2.9.0: {} + + tinypool@1.0.0: {} + + tinyrainbow@1.2.0: {} + + tinyspy@3.0.0: {} + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tr46@0.0.3: {} + + tree-kill@1.2.2: {} + + ts-api-utils@1.3.0(typescript@5.5.3): + dependencies: + typescript: 5.5.3 + + ts-morph@23.0.0: + dependencies: + '@ts-morph/common': 0.24.0 + code-block-writer: 13.0.2 + + tslib@2.6.3: {} + + tsx@4.17.0: + dependencies: + esbuild: 0.23.0 + get-tsconfig: 4.7.6 + optionalDependencies: + fsevents: 2.3.3 + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + + type-fest@0.20.2: {} + + typescript-eslint@7.18.0(eslint@8.57.0)(typescript@5.5.3): + dependencies: + '@typescript-eslint/eslint-plugin': 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + eslint: 8.57.0 + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + typescript@5.5.3: {} + + undici-types@6.18.2: {} + + universalify@2.0.1: {} + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + + vite-node@2.0.5(@types/node@22.3.0): + dependencies: + cac: 6.7.14 + debug: 4.3.6 + pathe: 1.1.2 + tinyrainbow: 1.2.0 + vite: 5.4.1(@types/node@22.3.0) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + + vite@5.4.1(@types/node@22.3.0): + dependencies: + esbuild: 0.21.5 + postcss: 8.4.41 + rollup: 4.20.0 + optionalDependencies: + '@types/node': 22.3.0 + fsevents: 2.3.3 + + vitest@2.0.5(@types/node@22.3.0): + dependencies: + '@ampproject/remapping': 2.3.0 + '@vitest/expect': 2.0.5 + '@vitest/pretty-format': 2.0.5 + '@vitest/runner': 2.0.5 + '@vitest/snapshot': 2.0.5 + '@vitest/spy': 2.0.5 + '@vitest/utils': 2.0.5 + chai: 5.1.1 + debug: 4.3.6 + execa: 8.0.1 + magic-string: 0.30.11 + pathe: 1.1.2 + std-env: 3.7.0 + tinybench: 2.9.0 + tinypool: 1.0.0 + tinyrainbow: 1.2.0 + vite: 5.4.1(@types/node@22.3.0) + vite-node: 2.0.5(@types/node@22.3.0) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 22.3.0 + transitivePeerDependencies: + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + + webidl-conversions@3.0.1: {} + + whatwg-url@5.0.0: + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + word-wrap@1.2.5: {} + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + + wrappy@1.0.2: {} + + yocto-queue@0.1.0: {} diff --git a/tools/js-sdk-release-tools/vitest.config.ts b/tools/js-sdk-release-tools/vitest.config.ts index e2c6f3a0eaa..36bbb444907 100644 --- a/tools/js-sdk-release-tools/vitest.config.ts +++ b/tools/js-sdk-release-tools/vitest.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ "dist/**", "**/node_modules/**", "**/misc/**", - "packages/**/dist/**", + "packages/**", ], }, }); From 1a4bd0266b8888ea99298954a9b4f7b25b875942 Mon Sep 17 00:00:00 2001 From: wanl Date: Fri, 16 Aug 2024 12:37:51 +0800 Subject: [PATCH 31/35] . --- tools/js-sdk-release-tools/package-lock.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json index f1bb4f0015a..c2eebb23699 100644 --- a/tools/js-sdk-release-tools/package-lock.json +++ b/tools/js-sdk-release-tools/package-lock.json @@ -7,7 +7,6 @@ "": { "name": "@azure-tools/js-sdk-release-tools", "version": "2.7.11", - "hasInstallScript": true, "license": "MIT", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", @@ -24,7 +23,7 @@ "simple-git": "^3.5.0", "ts-morph": "^23.0.0", "tslib": "^1.9.3", - "typescript-codegen-breaking-change-detector": "file:packages/typescript-codegen-breaking-change-detector/typescript-codegen-breaking-change-detector-0.0.0.tgz", + "typescript-codegen-breaking-change-detector": "0.4.7", "winston": "^3.13.1", "yaml": "^1.10.2" }, @@ -4700,10 +4699,9 @@ } }, "node_modules/typescript-codegen-breaking-change-detector": { - "version": "0.0.0", - "resolved": "file:packages/typescript-codegen-breaking-change-detector/typescript-codegen-breaking-change-detector-0.0.0.tgz", - "integrity": "sha512-Sp9um6KYup1wGv8pIFH5uU+udPy/pYVWHDfSZNZeGcYIqIpBkGt7a/YdV75jvmrl3hHrM11hvcTjlCoy6Whf2g==", - "license": "MIT", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/typescript-codegen-breaking-change-detector/-/typescript-codegen-breaking-change-detector-0.4.7.tgz", + "integrity": "sha512-p1dkxBY98/4hJVI4OvJAb+5ItrtU+wTdS7ZKKujmeQ8je/fJJ0XM7UI5kMEmCiPAF1uQMPoA9qhMsgRMBc4BQQ==", "dependencies": { "@azure-tools/openapi-tools-common": "^1.2.2", "@typescript-eslint/scope-manager": "^7.17.0", From 073122d01ca2972a1d904d92c955f3fc3524a174 Mon Sep 17 00:00:00 2001 From: wanl Date: Fri, 16 Aug 2024 12:51:10 +0800 Subject: [PATCH 32/35] Update --- tools/js-sdk-release-tools/package-lock.json | 5512 ----------------- tools/js-sdk-release-tools/package.json | 2 +- .../package-lock.json | 4791 -------------- .../package.json | 2 +- .../pnpm-lock.yaml | 3223 ---------- 5 files changed, 2 insertions(+), 13528 deletions(-) delete mode 100644 tools/js-sdk-release-tools/package-lock.json delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package-lock.json delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json deleted file mode 100644 index c2eebb23699..00000000000 --- a/tools/js-sdk-release-tools/package-lock.json +++ /dev/null @@ -1,5512 +0,0 @@ -{ - "name": "@azure-tools/js-sdk-release-tools", - "version": "2.7.11", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@azure-tools/js-sdk-release-tools", - "version": "2.7.11", - "license": "MIT", - "dependencies": { - "@azure-tools/openapi-tools-common": "^1.2.2", - "@ts-common/azure-js-dev-tools": "^21.1.0", - "colors": "1.4.0", - "command-line-args": "^5.1.1", - "comment-json": "^4.1.0", - "fs-extra": "^11.2.0", - "js-yaml": "^4.1.0", - "parse-ts-to-ast": "^0.1.1", - "semver": "^7.3.5", - "shelljs": "^0.8.4", - "shx": "^0.3.4", - "simple-git": "^3.5.0", - "ts-morph": "^23.0.0", - "tslib": "^1.9.3", - "typescript-codegen-breaking-change-detector": "0.4.7", - "winston": "^3.13.1", - "yaml": "^1.10.2" - }, - "bin": { - "changelog-tool": "dist/changelogToolCli.js", - "code-gen-pipeline": "dist/autoGenerateInPipeline.js", - "hlc-code-gen": "dist/hlcCodeGenCli.js", - "hlc-code-gen-for-pipeline": "dist/autoGenerateInPipeline.js", - "rlc-code-gen": "dist/rlcCodegenCli.js" - }, - "devDependencies": { - "@types/node": "^20.12.12", - "@types/shelljs": "^0.8.15", - "rimraf": "^3.0.2", - "tsx": "^4.16.5", - "typescript": "5.5.3", - "vitest": "^1.6.0" - } - }, - "node_modules/@azure-tools/openapi-tools-common": { - "version": "1.2.2", - "license": "MIT", - "dependencies": { - "@types/async-retry": "^1.4.1", - "@types/commonmark": "^0.27.3", - "@types/node-fetch": "^2.5.7", - "async-retry": "^1.2.3", - "commonmark": "^0.28.1", - "front-matter": "^4.0.2", - "node-fetch": "^2.6.0", - "tslib": "^2.0.0" - } - }, - "node_modules/@azure-tools/openapi-tools-common/node_modules/tslib": { - "version": "2.6.3", - "license": "0BSD" - }, - "node_modules/@azure/abort-controller": { - "version": "2.1.2", - "license": "MIT", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@azure/abort-controller/node_modules/tslib": { - "version": "2.6.3", - "license": "0BSD" - }, - "node_modules/@azure/core-auth": { - "version": "1.7.2", - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.0.0", - "@azure/core-util": "^1.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@azure/core-auth/node_modules/tslib": { - "version": "2.6.3", - "license": "0BSD" - }, - "node_modules/@azure/core-util": { - "version": "1.9.2", - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@azure/core-util/node_modules/tslib": { - "version": "2.6.3", - "license": "0BSD" - }, - "node_modules/@azure/logger-js": { - "version": "1.3.2", - "license": "MIT", - "dependencies": { - "tslib": "^1.9.3" - } - }, - "node_modules/@azure/ms-rest-js": { - "version": "2.7.0", - "license": "MIT", - "dependencies": { - "@azure/core-auth": "^1.1.4", - "abort-controller": "^3.0.0", - "form-data": "^2.5.0", - "node-fetch": "^2.6.7", - "tslib": "^1.10.0", - "tunnel": "0.0.6", - "uuid": "^8.3.2", - "xml2js": "^0.5.0" - } - }, - "node_modules/@azure/storage-blob": { - "version": "10.5.0", - "license": "MIT", - "dependencies": { - "@azure/ms-rest-js": "^2.0.0", - "events": "^3.0.0", - "tslib": "^1.9.3" - } - }, - "node_modules/@colors/colors": { - "version": "1.6.0", - "license": "MIT", - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/@dabh/diagnostics": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "colorspace": "1.1.x", - "enabled": "2.0.x", - "kuler": "^2.0.0" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.23.0", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", - "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "peer": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", - "peer": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", - "deprecated": "Use @eslint/config-array instead", - "peer": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "peer": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead", - "peer": true - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@kwsites/file-exists": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "debug": "^4.1.1" - } - }, - "node_modules/@kwsites/promise-deferred": { - "version": "1.1.1", - "license": "MIT" - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@octokit/auth-token": { - "version": "2.5.0", - "license": "MIT", - "dependencies": { - "@octokit/types": "^6.0.3" - } - }, - "node_modules/@octokit/core": { - "version": "6.1.2", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/auth-token": "^5.0.0", - "@octokit/graphql": "^8.0.0", - "@octokit/request": "^9.0.0", - "@octokit/request-error": "^6.0.1", - "@octokit/types": "^13.0.0", - "before-after-hook": "^3.0.2", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/core/node_modules/@octokit/auth-token": { - "version": "5.1.1", - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/core/node_modules/@octokit/endpoint": { - "version": "10.1.1", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/types": "^13.0.0", - "universal-user-agent": "^7.0.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/core/node_modules/@octokit/openapi-types": { - "version": "22.2.0", - "license": "MIT", - "peer": true - }, - "node_modules/@octokit/core/node_modules/@octokit/request": { - "version": "9.1.3", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/endpoint": "^10.0.0", - "@octokit/request-error": "^6.0.1", - "@octokit/types": "^13.1.0", - "universal-user-agent": "^7.0.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/core/node_modules/@octokit/request-error": { - "version": "6.1.4", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/types": "^13.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/core/node_modules/@octokit/types": { - "version": "13.5.0", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/openapi-types": "^22.2.0" - } - }, - "node_modules/@octokit/core/node_modules/before-after-hook": { - "version": "3.0.2", - "license": "Apache-2.0", - "peer": true - }, - "node_modules/@octokit/core/node_modules/universal-user-agent": { - "version": "7.0.2", - "license": "ISC", - "peer": true - }, - "node_modules/@octokit/endpoint": { - "version": "6.0.12", - "license": "MIT", - "dependencies": { - "@octokit/types": "^6.0.3", - "is-plain-object": "^5.0.0", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/endpoint/node_modules/universal-user-agent": { - "version": "6.0.1", - "license": "ISC" - }, - "node_modules/@octokit/graphql": { - "version": "8.1.1", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/request": "^9.0.0", - "@octokit/types": "^13.0.0", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/graphql/node_modules/@octokit/endpoint": { - "version": "10.1.1", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/types": "^13.0.0", - "universal-user-agent": "^7.0.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": { - "version": "22.2.0", - "license": "MIT", - "peer": true - }, - "node_modules/@octokit/graphql/node_modules/@octokit/request": { - "version": "9.1.3", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/endpoint": "^10.0.0", - "@octokit/request-error": "^6.0.1", - "@octokit/types": "^13.1.0", - "universal-user-agent": "^7.0.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/graphql/node_modules/@octokit/request-error": { - "version": "6.1.4", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/types": "^13.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/graphql/node_modules/@octokit/types": { - "version": "13.5.0", - "license": "MIT", - "peer": true, - "dependencies": { - "@octokit/openapi-types": "^22.2.0" - } - }, - "node_modules/@octokit/graphql/node_modules/universal-user-agent": { - "version": "7.0.2", - "license": "ISC", - "peer": true - }, - "node_modules/@octokit/openapi-types": { - "version": "12.11.0", - "license": "MIT" - }, - "node_modules/@octokit/plugin-paginate-rest": { - "version": "1.1.2", - "license": "MIT", - "dependencies": { - "@octokit/types": "^2.0.1" - } - }, - "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { - "version": "2.16.2", - "license": "MIT", - "dependencies": { - "@types/node": ">= 8" - } - }, - "node_modules/@octokit/plugin-request-log": { - "version": "1.0.4", - "license": "MIT", - "peerDependencies": { - "@octokit/core": ">=3" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "2.4.0", - "license": "MIT", - "dependencies": { - "@octokit/types": "^2.0.1", - "deprecation": "^2.3.1" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { - "version": "2.16.2", - "license": "MIT", - "dependencies": { - "@types/node": ">= 8" - } - }, - "node_modules/@octokit/request": { - "version": "5.6.3", - "license": "MIT", - "dependencies": { - "@octokit/endpoint": "^6.0.1", - "@octokit/request-error": "^2.1.0", - "@octokit/types": "^6.16.1", - "is-plain-object": "^5.0.0", - "node-fetch": "^2.6.7", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/request-error": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "@octokit/types": "^2.0.0", - "deprecation": "^2.0.0", - "once": "^1.4.0" - } - }, - "node_modules/@octokit/request-error/node_modules/@octokit/types": { - "version": "2.16.2", - "license": "MIT", - "dependencies": { - "@types/node": ">= 8" - } - }, - "node_modules/@octokit/request/node_modules/@octokit/request-error": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "@octokit/types": "^6.0.3", - "deprecation": "^2.0.0", - "once": "^1.4.0" - } - }, - "node_modules/@octokit/request/node_modules/universal-user-agent": { - "version": "6.0.1", - "license": "ISC" - }, - "node_modules/@octokit/rest": { - "version": "16.43.2", - "license": "MIT", - "dependencies": { - "@octokit/auth-token": "^2.4.0", - "@octokit/plugin-paginate-rest": "^1.1.1", - "@octokit/plugin-request-log": "^1.0.0", - "@octokit/plugin-rest-endpoint-methods": "2.4.0", - "@octokit/request": "^5.2.0", - "@octokit/request-error": "^1.0.2", - "atob-lite": "^2.0.0", - "before-after-hook": "^2.0.0", - "btoa-lite": "^1.0.0", - "deprecation": "^2.0.0", - "lodash.get": "^4.4.2", - "lodash.set": "^4.3.2", - "lodash.uniq": "^4.5.0", - "octokit-pagination-methods": "^1.1.0", - "once": "^1.4.0", - "universal-user-agent": "^4.0.0" - } - }, - "node_modules/@octokit/types": { - "version": "6.41.0", - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^12.11.0" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.20.0", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "dev": true, - "license": "MIT" - }, - "node_modules/@ts-common/azure-js-dev-tools": { - "version": "21.4.0", - "license": "MIT", - "dependencies": { - "@azure/logger-js": "^1.3.2", - "@azure/storage-blob": "^10.3.0", - "@octokit/rest": "^16.28.2", - "@types/archiver": "^2.1.2", - "@types/commonmark": "^0.27.1", - "@types/js-yaml": "^3.12.0", - "archiver": "^3.0.0", - "commonmark": "^0.28.1", - "isomorphic-git": "^0.55.2", - "js-yaml": "^3.12.1", - "yargs": "^12.0.5" - } - }, - "node_modules/@ts-common/azure-js-dev-tools/node_modules/argparse": { - "version": "1.0.10", - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/@ts-common/azure-js-dev-tools/node_modules/js-yaml": { - "version": "3.14.1", - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@ts-morph/common": { - "version": "0.24.0", - "license": "MIT", - "dependencies": { - "fast-glob": "^3.3.2", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "path-browserify": "^1.0.1" - } - }, - "node_modules/@ts-morph/common/node_modules/brace-expansion": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@ts-morph/common/node_modules/minimatch": { - "version": "9.0.5", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@types/archiver": { - "version": "2.1.3", - "license": "MIT", - "dependencies": { - "@types/glob": "*" - } - }, - "node_modules/@types/async-retry": { - "version": "1.4.8", - "license": "MIT", - "dependencies": { - "@types/retry": "*" - } - }, - "node_modules/@types/commonmark": { - "version": "0.27.9", - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.5", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/glob": { - "version": "8.1.0", - "license": "MIT", - "dependencies": { - "@types/minimatch": "^5.1.2", - "@types/node": "*" - } - }, - "node_modules/@types/js-yaml": { - "version": "3.12.10", - "license": "MIT" - }, - "node_modules/@types/minimatch": { - "version": "5.1.2", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "20.14.15", - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/node-fetch": { - "version": "2.6.11", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "form-data": "^4.0.0" - } - }, - "node_modules/@types/node-fetch/node_modules/form-data": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/@types/retry": { - "version": "0.12.5", - "license": "MIT" - }, - "node_modules/@types/shelljs": { - "version": "0.8.15", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/glob": "~7.2.0", - "@types/node": "*" - } - }, - "node_modules/@types/shelljs/node_modules/@types/glob": { - "version": "7.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, - "node_modules/@types/triple-beam": { - "version": "1.3.5", - "license": "MIT" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", - "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/type-utils": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^7.0.0", - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz", - "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", - "dependencies": { - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", - "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", - "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", - "dependencies": { - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz", - "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", - "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", - "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", - "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "peer": true - }, - "node_modules/@vitest/expect": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "chai": "^4.3.10" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "1.6.0", - "p-limit": "^5.0.0", - "pathe": "^1.1.1" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/snapshot": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "pretty-format": "^29.7.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/spy": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyspy": "^2.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "diff-sequences": "^29.6.3", - "estree-walker": "^3.0.3", - "loupe": "^2.3.7", - "pretty-format": "^29.7.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/abort-controller": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } - }, - "node_modules/acorn": { - "version": "8.12.1", - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "peer": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.3", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.11.0" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "peer": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "3.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/ansi-styles": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/archiver": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "archiver-utils": "^2.1.0", - "async": "^2.6.3", - "buffer-crc32": "^0.2.1", - "glob": "^7.1.4", - "readable-stream": "^3.4.0", - "tar-stream": "^2.1.0", - "zip-stream": "^2.1.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/archiver-utils": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "glob": "^7.1.4", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^2.0.0" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/archiver-utils/node_modules/readable-stream": { - "version": "2.3.8", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/archiver-utils/node_modules/safe-buffer": { - "version": "5.1.2", - "license": "MIT" - }, - "node_modules/archiver-utils/node_modules/string_decoder": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "node_modules/array-back": { - "version": "3.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/array-timsort": { - "version": "1.0.3", - "license": "MIT" - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/assertion-error": { - "version": "1.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/async": { - "version": "2.6.4", - "license": "MIT", - "dependencies": { - "lodash": "^4.17.14" - } - }, - "node_modules/async-lock": { - "version": "1.4.1", - "license": "MIT" - }, - "node_modules/async-retry": { - "version": "1.3.3", - "license": "MIT", - "dependencies": { - "retry": "0.13.1" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "license": "MIT" - }, - "node_modules/atob-lite": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/atomic-sleep": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", - "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/base64-js": { - "version": "0.0.2", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/before-after-hook": { - "version": "2.2.3", - "license": "Apache-2.0" - }, - "node_modules/bl": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/bops": { - "version": "0.0.7", - "license": "MIT", - "dependencies": { - "base64-js": "0.0.2", - "to-utf8": "0.0.1" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/btoa-lite": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/buffer": { - "version": "5.7.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/buffer/node_modules/base64-js": { - "version": "1.5.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/cac": { - "version": "6.7.14", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chai": { - "version": "4.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "peer": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chalk/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "peer": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/chalk/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "peer": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/chalk/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "peer": true - }, - "node_modules/check-error": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" - } - }, - "node_modules/clean-git-ref": { - "version": "1.0.3", - "license": "Apache-2.0" - }, - "node_modules/cliui": { - "version": "4.1.0", - "license": "ISC", - "dependencies": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "node_modules/code-block-writer": { - "version": "13.0.2", - "license": "MIT" - }, - "node_modules/code-point-at": { - "version": "1.1.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/color": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.3", - "color-string": "^1.6.0" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" - }, - "node_modules/color-string": { - "version": "1.9.1", - "license": "MIT", - "dependencies": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" - } - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" - }, - "node_modules/colors": { - "version": "1.4.0", - "license": "MIT", - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/colorspace": { - "version": "1.1.4", - "license": "MIT", - "dependencies": { - "color": "^3.1.3", - "text-hex": "1.0.x" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/command-line-args": { - "version": "5.2.1", - "license": "MIT", - "dependencies": { - "array-back": "^3.1.0", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "engines": { - "node": ">=18" - } - }, - "node_modules/comment-json": { - "version": "4.2.5", - "license": "MIT", - "dependencies": { - "array-timsort": "^1.0.3", - "core-util-is": "^1.0.3", - "esprima": "^4.0.1", - "has-own-prop": "^2.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/commonmark": { - "version": "0.28.1", - "license": "BSD-2-Clause", - "dependencies": { - "entities": "~ 1.1.1", - "mdurl": "~ 1.0.1", - "minimist": "~ 1.2.0", - "string.prototype.repeat": "^0.2.0" - }, - "bin": { - "commonmark": "bin/commonmark" - }, - "engines": { - "node": "*" - } - }, - "node_modules/compress-commons": { - "version": "2.1.1", - "license": "MIT", - "dependencies": { - "buffer-crc32": "^0.2.13", - "crc32-stream": "^3.0.1", - "normalize-path": "^3.0.0", - "readable-stream": "^2.3.6" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/compress-commons/node_modules/readable-stream": { - "version": "2.3.8", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/compress-commons/node_modules/safe-buffer": { - "version": "5.1.2", - "license": "MIT" - }, - "node_modules/compress-commons/node_modules/string_decoder": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/confbox": { - "version": "0.1.7", - "dev": true, - "license": "MIT" - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "license": "MIT" - }, - "node_modules/crc": { - "version": "3.8.0", - "license": "MIT", - "dependencies": { - "buffer": "^5.1.0" - } - }, - "node_modules/crc-32": { - "version": "1.2.2", - "license": "Apache-2.0", - "bin": { - "crc32": "bin/crc32.njs" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/crc32-stream": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "crc": "^3.4.4", - "readable-stream": "^3.4.0" - }, - "engines": { - "node": ">= 6.9.0" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", - "engines": { - "node": "*" - } - }, - "node_modules/debug": { - "version": "4.3.6", - "license": "MIT", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decompress-response": { - "version": "4.2.1", - "license": "MIT", - "dependencies": { - "mimic-response": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/deep-eql": { - "version": "4.1.4", - "dev": true, - "license": "MIT", - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "peer": true - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/deprecation": { - "version": "2.3.1", - "license": "ISC" - }, - "node_modules/diff": { - "version": "3.5.0", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diff-lines": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "diff": "^3.5.0" - } - }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "peer": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/enabled": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/entities": { - "version": "1.1.2", - "license": "BSD-2-Clause" - }, - "node_modules/esbuild": { - "version": "0.23.0", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.23.0", - "@esbuild/android-arm": "0.23.0", - "@esbuild/android-arm64": "0.23.0", - "@esbuild/android-x64": "0.23.0", - "@esbuild/darwin-arm64": "0.23.0", - "@esbuild/darwin-x64": "0.23.0", - "@esbuild/freebsd-arm64": "0.23.0", - "@esbuild/freebsd-x64": "0.23.0", - "@esbuild/linux-arm": "0.23.0", - "@esbuild/linux-arm64": "0.23.0", - "@esbuild/linux-ia32": "0.23.0", - "@esbuild/linux-loong64": "0.23.0", - "@esbuild/linux-mips64el": "0.23.0", - "@esbuild/linux-ppc64": "0.23.0", - "@esbuild/linux-riscv64": "0.23.0", - "@esbuild/linux-s390x": "0.23.0", - "@esbuild/linux-x64": "0.23.0", - "@esbuild/netbsd-x64": "0.23.0", - "@esbuild/openbsd-arm64": "0.23.0", - "@esbuild/openbsd-x64": "0.23.0", - "@esbuild/sunos-x64": "0.23.0", - "@esbuild/win32-arm64": "0.23.0", - "@esbuild/win32-ia32": "0.23.0", - "@esbuild/win32-x64": "0.23.0" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", - "peer": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "peer": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "peer": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "peer": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/eslint/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "peer": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "peer": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "peer": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "peer": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "peer": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "peer": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "peer": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "peer": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/events": { - "version": "3.3.0", - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "8.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/fast-copy": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-3.0.2.tgz", - "integrity": "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "peer": true - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "peer": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "peer": true - }, - "node_modules/fast-redact": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", - "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/fast-safe-stringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" - }, - "node_modules/fastq": { - "version": "1.17.1", - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fecha": { - "version": "4.2.3", - "license": "MIT" - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "peer": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-replace": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "array-back": "^3.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/find-up": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "peer": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "peer": true - }, - "node_modules/fn.name": { - "version": "1.1.0", - "license": "MIT" - }, - "node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/form-data": { - "version": "2.5.1", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/front-matter": { - "version": "4.0.2", - "license": "MIT", - "dependencies": { - "js-yaml": "^3.13.1" - } - }, - "node_modules/front-matter/node_modules/argparse": { - "version": "1.0.10", - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/front-matter/node_modules/js-yaml": { - "version": "3.14.1", - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/fs-extra": { - "version": "11.2.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "license": "ISC" - }, - "node_modules/function-bind": { - "version": "1.1.2", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-caller-file": { - "version": "1.0.3", - "license": "ISC" - }, - "node_modules/get-func-name": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/get-stream": { - "version": "8.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-tsconfig": { - "version": "4.7.6", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/git-apply-delta": { - "version": "0.0.7", - "license": "MIT", - "dependencies": { - "bops": "~0.0.6", - "varint": "0.0.3" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "peer": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globalyzer": { - "version": "0.1.4", - "license": "MIT" - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globrex": { - "version": "0.1.2", - "license": "MIT" - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "license": "ISC" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-own-prop": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/help-me": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz", - "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==" - }, - "node_modules/human-signals": { - "version": "5.0.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=16.17.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.3.2", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "peer": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "peer": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "node_modules/interpret": { - "version": "1.4.0", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/invert-kv": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/is-arrayish": { - "version": "0.3.2", - "license": "MIT" - }, - "node_modules/is-core-module": { - "version": "2.15.0", - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-object": { - "version": "5.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-stream": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "license": "ISC" - }, - "node_modules/isomorphic-git": { - "version": "0.55.6", - "license": "MIT", - "dependencies": { - "async-lock": "^1.1.0", - "clean-git-ref": "1.0.3", - "crc-32": "^1.2.0", - "diff-lines": "^1.1.1", - "git-apply-delta": "0.0.7", - "globalyzer": "^0.1.0", - "globrex": "^0.1.2", - "ignore": "^5.0.4", - "marky": "^1.2.1", - "minimisted": "^2.0.0", - "pako": "^1.0.10", - "pify": "^4.0.1", - "readable-stream": "^3.1.1", - "sha.js": "^2.4.9", - "simple-get": "^3.0.2" - }, - "bin": { - "isogit": "cli.js" - }, - "engines": { - "node": ">=7.6.0" - } - }, - "node_modules/jackspeak": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz", - "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/joycon": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", - "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/js-tokens": { - "version": "9.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "peer": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "peer": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "peer": true - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "peer": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/kuler": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/lazystream": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "readable-stream": "^2.0.5" - }, - "engines": { - "node": ">= 0.6.3" - } - }, - "node_modules/lazystream/node_modules/readable-stream": { - "version": "2.3.8", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/lazystream/node_modules/safe-buffer": { - "version": "5.1.2", - "license": "MIT" - }, - "node_modules/lazystream/node_modules/string_decoder": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/lcid": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "invert-kv": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/local-pkg": { - "version": "0.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "mlly": "^1.4.2", - "pkg-types": "^1.0.3" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/locate-path": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "license": "MIT" - }, - "node_modules/lodash-es": { - "version": "4.17.21", - "license": "MIT" - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "license": "MIT" - }, - "node_modules/lodash.defaults": { - "version": "4.2.0", - "license": "MIT" - }, - "node_modules/lodash.difference": { - "version": "4.5.0", - "license": "MIT" - }, - "node_modules/lodash.flatten": { - "version": "4.4.0", - "license": "MIT" - }, - "node_modules/lodash.get": { - "version": "4.4.2", - "license": "MIT" - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "license": "MIT" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "peer": true - }, - "node_modules/lodash.set": { - "version": "4.3.2", - "license": "MIT" - }, - "node_modules/lodash.union": { - "version": "4.6.0", - "license": "MIT" - }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "license": "MIT" - }, - "node_modules/logform": { - "version": "2.6.1", - "license": "MIT", - "dependencies": { - "@colors/colors": "1.6.0", - "@types/triple-beam": "^1.3.2", - "fecha": "^4.2.0", - "ms": "^2.1.1", - "safe-stable-stringify": "^2.3.1", - "triple-beam": "^1.3.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/loupe": { - "version": "2.3.7", - "dev": true, - "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.1" - } - }, - "node_modules/lru-cache": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", - "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/macos-release": { - "version": "2.5.1", - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/magic-string": { - "version": "0.30.11", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" - } - }, - "node_modules/map-age-cleaner": { - "version": "0.1.3", - "license": "MIT", - "dependencies": { - "p-defer": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/marked": { - "version": "13.0.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-13.0.3.tgz", - "integrity": "sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/marky": { - "version": "1.2.5", - "license": "Apache-2.0" - }, - "node_modules/mdurl": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/mem": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/mem/node_modules/mimic-fn": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.7", - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mimic-response": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minimisted": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.5" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mlly": { - "version": "1.7.1", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.11.3", - "pathe": "^1.1.2", - "pkg-types": "^1.1.1", - "ufo": "^1.5.3" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.7", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" - }, - "node_modules/nice-try": { - "version": "1.0.5", - "license": "MIT" - }, - "node_modules/node-fetch": { - "version": "2.7.0", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "5.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/octokit-pagination-methods": { - "version": "1.1.0", - "license": "MIT" - }, - "node_modules/on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/once": { - "version": "1.4.0", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/one-time": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "fn.name": "1.x.x" - } - }, - "node_modules/onetime": { - "version": "6.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "peer": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/os-locale": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/os-locale/node_modules/cross-spawn": { - "version": "6.0.5", - "license": "MIT", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/os-locale/node_modules/execa": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/os-locale/node_modules/get-stream": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/os-locale/node_modules/is-stream": { - "version": "1.1.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/os-locale/node_modules/npm-run-path": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "path-key": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/os-locale/node_modules/path-key": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/os-locale/node_modules/semver": { - "version": "5.7.2", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/os-locale/node_modules/shebang-command": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/os-locale/node_modules/shebang-regex": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/os-locale/node_modules/signal-exit": { - "version": "3.0.7", - "license": "ISC" - }, - "node_modules/os-locale/node_modules/which": { - "version": "1.3.1", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/os-name": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "macos-release": "^2.2.0", - "windows-release": "^3.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/p-defer": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/p-finally": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/p-is-promise": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/p-limit": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^1.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "2.3.0", - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" - }, - "node_modules/pako": { - "version": "1.0.11", - "license": "(MIT AND Zlib)" - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "peer": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-ts-to-ast": { - "version": "0.1.4", - "license": "MIT", - "dependencies": { - "lodash": "^4.17.10", - "lodash-es": "^4.17.10", - "tslib": "^1.9.3", - "typescript": "^3.0.3" - } - }, - "node_modules/parse-ts-to-ast/node_modules/typescript": { - "version": "3.9.10", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/path-browserify": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/path-exists": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "license": "MIT" - }, - "node_modules/path-scurry": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", - "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", - "dependencies": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/pathe": { - "version": "1.1.2", - "dev": true, - "license": "MIT" - }, - "node_modules/pathval": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/picocolors": { - "version": "1.0.1", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "4.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/pino": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/pino/-/pino-9.3.2.tgz", - "integrity": "sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==", - "dependencies": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^7.0.0", - "process-warning": "^4.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^4.0.1", - "thread-stream": "^3.0.0" - }, - "bin": { - "pino": "bin.js" - } - }, - "node_modules/pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "dependencies": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "node_modules/pino-abstract-transport/node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/pino-abstract-transport/node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "node_modules/pino-abstract-transport/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/pino-pretty": { - "version": "11.2.2", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-11.2.2.tgz", - "integrity": "sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==", - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.2", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^4.0.1", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "pino-pretty": "bin.js" - } - }, - "node_modules/pino-pretty/node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/pino-pretty/node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "node_modules/pino-pretty/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/pino-std-serializers": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz", - "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==" - }, - "node_modules/pkg-types": { - "version": "1.1.3", - "dev": true, - "license": "MIT", - "dependencies": { - "confbox": "^0.1.7", - "mlly": "^1.7.1", - "pathe": "^1.1.2" - } - }, - "node_modules/postcss": { - "version": "8.4.41", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.1", - "source-map-js": "^1.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "peer": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/pretty-format": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "license": "MIT" - }, - "node_modules/process-warning": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.0.tgz", - "integrity": "sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==" - }, - "node_modules/pump": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/quick-format-unescaped": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", - "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" - }, - "node_modules/react-is": { - "version": "18.3.1", - "dev": true, - "license": "MIT" - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/rechoir": { - "version": "0.6.2", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/repeat-string": { - "version": "1.6.1", - "license": "MIT", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "1.0.1", - "license": "ISC" - }, - "node_modules/resolve": { - "version": "1.22.8", - "license": "MIT", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/retry": { - "version": "0.13.1", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "4.20.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.5" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.20.0", - "@rollup/rollup-android-arm64": "4.20.0", - "@rollup/rollup-darwin-arm64": "4.20.0", - "@rollup/rollup-darwin-x64": "4.20.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.20.0", - "@rollup/rollup-linux-arm-musleabihf": "4.20.0", - "@rollup/rollup-linux-arm64-gnu": "4.20.0", - "@rollup/rollup-linux-arm64-musl": "4.20.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0", - "@rollup/rollup-linux-riscv64-gnu": "4.20.0", - "@rollup/rollup-linux-s390x-gnu": "4.20.0", - "@rollup/rollup-linux-x64-gnu": "4.20.0", - "@rollup/rollup-linux-x64-musl": "4.20.0", - "@rollup/rollup-win32-arm64-msvc": "4.20.0", - "@rollup/rollup-win32-ia32-msvc": "4.20.0", - "@rollup/rollup-win32-x64-msvc": "4.20.0", - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safe-stable-stringify": { - "version": "2.4.3", - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/sax": { - "version": "1.4.1", - "license": "ISC" - }, - "node_modules/secure-json-parse": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", - "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" - }, - "node_modules/semver": { - "version": "7.6.3", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "license": "ISC" - }, - "node_modules/sha.js": { - "version": "2.4.11", - "license": "(MIT AND BSD-3-Clause)", - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - }, - "bin": { - "sha.js": "bin.js" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "license": "BSD-3-Clause", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/shx": { - "version": "0.3.4", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.3", - "shelljs": "^0.8.5" - }, - "bin": { - "shx": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/simple-get": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "decompress-response": "^4.2.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/simple-git": { - "version": "3.25.0", - "license": "MIT", - "dependencies": { - "@kwsites/file-exists": "^1.1.1", - "@kwsites/promise-deferred": "^1.1.1", - "debug": "^4.3.5" - }, - "funding": { - "type": "github", - "url": "https://github.com/steveukx/git-js?sponsor=1" - } - }, - "node_modules/simple-swizzle": { - "version": "0.2.2", - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.3.1" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/sonic-boom": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.0.1.tgz", - "integrity": "sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==", - "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, - "node_modules/source-map-js": { - "version": "1.2.0", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "engines": { - "node": ">= 10.x" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "license": "BSD-3-Clause" - }, - "node_modules/stack-trace": { - "version": "0.0.10", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/stackback": { - "version": "0.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "3.7.0", - "dev": true, - "license": "MIT" - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-width": { - "version": "2.1.1", - "license": "MIT", - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string.prototype.repeat": { - "version": "0.2.0" - }, - "node_modules/strip-ansi": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-eof": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-literal": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^9.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "peer": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "license": "MIT", - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/text-hex": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "peer": true - }, - "node_modules/thread-stream": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.1.0.tgz", - "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", - "dependencies": { - "real-require": "^0.2.0" - } - }, - "node_modules/tinybench": { - "version": "2.9.0", - "dev": true, - "license": "MIT" - }, - "node_modules/tinypool": { - "version": "0.8.4", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "2.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/to-utf8": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/triple-beam": { - "version": "1.4.1", - "license": "MIT", - "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/ts-api-utils": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", - "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - } - }, - "node_modules/ts-morph": { - "version": "23.0.0", - "license": "MIT", - "dependencies": { - "@ts-morph/common": "~0.24.0", - "code-block-writer": "^13.0.1" - } - }, - "node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, - "node_modules/tsx": { - "version": "4.17.0", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "~0.23.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/tunnel": { - "version": "0.0.6", - "license": "MIT", - "engines": { - "node": ">=0.6.11 <=0.7.0 || >=0.7.3" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "5.5.3", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-codegen-breaking-change-detector": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/typescript-codegen-breaking-change-detector/-/typescript-codegen-breaking-change-detector-0.4.7.tgz", - "integrity": "sha512-p1dkxBY98/4hJVI4OvJAb+5ItrtU+wTdS7ZKKujmeQ8je/fJJ0XM7UI5kMEmCiPAF1uQMPoA9qhMsgRMBc4BQQ==", - "dependencies": { - "@azure-tools/openapi-tools-common": "^1.2.2", - "@typescript-eslint/scope-manager": "^7.17.0", - "@typescript-eslint/types": "^7.17.0", - "@typescript-eslint/typescript-estree": "^7.17.0", - "@typescript-eslint/utils": "^7.17.0", - "@typescript-eslint/visitor-keys": "^7.17.0", - "commander": "^12.1.0", - "fs-extra": "^11.2.0", - "glob": "^11.0.0", - "marked": "^13.0.2", - "pino": "^9.3.1", - "pino-pretty": "^11.2.1", - "ts-morph": "^23.0.0", - "typescript": "5.5.3", - "typescript-eslint": "^7.17.0" - } - }, - "node_modules/typescript-codegen-breaking-change-detector/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/typescript-codegen-breaking-change-detector/node_modules/glob": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz", - "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/typescript-codegen-breaking-change-detector/node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/typescript-eslint": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-7.18.0.tgz", - "integrity": "sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==", - "dependencies": { - "@typescript-eslint/eslint-plugin": "7.18.0", - "@typescript-eslint/parser": "7.18.0", - "@typescript-eslint/utils": "7.18.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/typical": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ufo": { - "version": "1.5.4", - "dev": true, - "license": "MIT" - }, - "node_modules/undici-types": { - "version": "5.26.5", - "license": "MIT" - }, - "node_modules/universal-user-agent": { - "version": "4.0.1", - "license": "ISC", - "dependencies": { - "os-name": "^3.1.0" - } - }, - "node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "peer": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/varint": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/vite": { - "version": "5.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.40", - "rollup": "^4.13.0" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vite-node": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.3.4", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "vite": "^5.0.0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vite/node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/esbuild": { - "version": "0.21.5", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" - } - }, - "node_modules/vitest": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/expect": "1.6.0", - "@vitest/runner": "1.6.0", - "@vitest/snapshot": "1.6.0", - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "acorn-walk": "^8.3.2", - "chai": "^4.3.10", - "debug": "^4.3.4", - "execa": "^8.0.1", - "local-pkg": "^0.5.0", - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "std-env": "^3.5.0", - "strip-literal": "^2.0.0", - "tinybench": "^2.5.1", - "tinypool": "^0.8.3", - "vite": "^5.0.0", - "vite-node": "1.6.0", - "why-is-node-running": "^2.2.2" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "1.6.0", - "@vitest/ui": "1.6.0", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-module": { - "version": "2.0.1", - "license": "ISC" - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/windows-release": { - "version": "3.3.3", - "license": "MIT", - "dependencies": { - "execa": "^1.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/windows-release/node_modules/cross-spawn": { - "version": "6.0.5", - "license": "MIT", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/windows-release/node_modules/execa": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/windows-release/node_modules/get-stream": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/windows-release/node_modules/is-stream": { - "version": "1.1.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/windows-release/node_modules/npm-run-path": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "path-key": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/windows-release/node_modules/path-key": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/windows-release/node_modules/semver": { - "version": "5.7.2", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/windows-release/node_modules/shebang-command": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/windows-release/node_modules/shebang-regex": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/windows-release/node_modules/signal-exit": { - "version": "3.0.7", - "license": "ISC" - }, - "node_modules/windows-release/node_modules/which": { - "version": "1.3.1", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/winston": { - "version": "3.14.2", - "license": "MIT", - "dependencies": { - "@colors/colors": "^1.6.0", - "@dabh/diagnostics": "^2.0.2", - "async": "^3.2.3", - "is-stream": "^2.0.0", - "logform": "^2.6.0", - "one-time": "^1.0.0", - "readable-stream": "^3.4.0", - "safe-stable-stringify": "^2.3.1", - "stack-trace": "0.0.x", - "triple-beam": "^1.3.0", - "winston-transport": "^4.7.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/winston-transport": { - "version": "4.7.1", - "license": "MIT", - "dependencies": { - "logform": "^2.6.1", - "readable-stream": "^3.6.2", - "triple-beam": "^1.3.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/winston/node_modules/async": { - "version": "3.2.5", - "license": "MIT" - }, - "node_modules/winston/node_modules/is-stream": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "license": "ISC" - }, - "node_modules/xml2js": { - "version": "0.5.0", - "license": "MIT", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "license": "MIT", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/y18n": { - "version": "4.0.3", - "license": "ISC" - }, - "node_modules/yaml": { - "version": "1.10.2", - "license": "ISC", - "engines": { - "node": ">= 6" - } - }, - "node_modules/yargs": { - "version": "12.0.5", - "license": "MIT", - "dependencies": { - "cliui": "^4.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1 || ^4.0.0", - "yargs-parser": "^11.1.1" - } - }, - "node_modules/yargs-parser": { - "version": "11.1.1", - "license": "ISC", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, - "node_modules/yocto-queue": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zip-stream": { - "version": "2.1.3", - "license": "MIT", - "dependencies": { - "archiver-utils": "^2.1.0", - "compress-commons": "^2.1.1", - "readable-stream": "^3.4.0" - }, - "engines": { - "node": ">= 6" - } - }, - "packages/typescript-codegen-breaking-change-detector": { - "version": "0.0.0", - "extraneous": true, - "license": "MIT", - "dependencies": { - "@azure-tools/openapi-tools-common": "^1.2.2", - "@typescript-eslint/scope-manager": "^7.17.0", - "@typescript-eslint/types": "^7.17.0", - "@typescript-eslint/typescript-estree": "^7.17.0", - "@typescript-eslint/utils": "^7.17.0", - "@typescript-eslint/visitor-keys": "^7.17.0", - "commander": "^12.1.0", - "fs-extra": "^11.2.0", - "glob": "^11.0.0", - "marked": "^13.0.2", - "pino": "^9.3.1", - "pino-pretty": "^11.2.1", - "ts-morph": "^23.0.0", - "typescript": "5.5.3", - "typescript-eslint": "^7.17.0" - }, - "devDependencies": { - "@types/eslint": "^8.56.10", - "@types/eslint-scope": "^3.7.7", - "@types/fs-extra": "^11.0.4", - "@typescript-eslint/eslint-plugin": "^7.17.0", - "@typescript-eslint/parser": "^7.17.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", - "onchange": "^7.1.0", - "prettier": "3.3.2", - "rimraf": "^5.0.7", - "tsx": "^4.16.2", - "vitest": "^2.0.4" - } - } - } -} diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index 41daaf1d378..7de7644e833 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -35,7 +35,7 @@ "simple-git": "^3.5.0", "ts-morph": "^23.0.0", "tslib": "^1.9.3", - "typescript-codegen-breaking-change-detector": "0.4.7", + "typescript-codegen-breaking-change-detector": "0.4.8", "winston": "^3.13.1", "yaml": "^1.10.2" }, diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package-lock.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package-lock.json deleted file mode 100644 index 8d1db7e2f21..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package-lock.json +++ /dev/null @@ -1,4791 +0,0 @@ -{ - "name": "typescript-codegen-breaking-change-detector", - "version": "0.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "typescript-codegen-breaking-change-detector", - "version": "0.0.0", - "license": "MIT", - "dependencies": { - "@azure-tools/openapi-tools-common": "^1.2.2", - "@typescript-eslint/scope-manager": "^7.17.0", - "@typescript-eslint/types": "^7.17.0", - "@typescript-eslint/typescript-estree": "^7.17.0", - "@typescript-eslint/utils": "^7.17.0", - "@typescript-eslint/visitor-keys": "^7.17.0", - "commander": "^12.1.0", - "fs-extra": "^11.2.0", - "glob": "^11.0.0", - "marked": "^13.0.2", - "pino": "^9.3.1", - "pino-pretty": "^11.2.1", - "ts-morph": "^23.0.0", - "typescript": "5.5.3", - "typescript-eslint": "^7.17.0" - }, - "devDependencies": { - "@types/eslint": "^8.56.10", - "@types/eslint-scope": "^3.7.7", - "@types/fs-extra": "^11.0.4", - "@typescript-eslint/eslint-plugin": "^7.17.0", - "@typescript-eslint/parser": "^7.17.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", - "onchange": "^7.1.0", - "prettier": "3.3.2", - "rimraf": "^5.0.7", - "tsx": "^4.16.2", - "vitest": "^2.0.4" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@azure-tools/openapi-tools-common": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@azure-tools/openapi-tools-common/-/openapi-tools-common-1.2.2.tgz", - "integrity": "sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==", - "dependencies": { - "@types/async-retry": "^1.4.1", - "@types/commonmark": "^0.27.3", - "@types/node-fetch": "^2.5.7", - "async-retry": "^1.2.3", - "commonmark": "^0.28.1", - "front-matter": "^4.0.2", - "node-fetch": "^2.6.0", - "tslib": "^2.0.0" - } - }, - "node_modules/@blakeembrey/deque": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@blakeembrey/deque/-/deque-1.0.5.tgz", - "integrity": "sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==", - "dev": true - }, - "node_modules/@blakeembrey/template": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@blakeembrey/template/-/template-1.1.0.tgz", - "integrity": "sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==", - "dev": true - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.0.tgz", - "integrity": "sha512-3sG8Zwa5fMcA9bgqB8AfWPQ+HFke6uD3h1s3RIwUNK8EG7a4buxvuFTs3j1IMs2NXAk9F30C/FF4vxRgQCcmoQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.0.tgz", - "integrity": "sha512-+KuOHTKKyIKgEEqKbGTK8W7mPp+hKinbMBeEnNzjJGyFcWsfrXjSTNluJHCY1RqhxFurdD8uNXQDei7qDlR6+g==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.0.tgz", - "integrity": "sha512-EuHFUYkAVfU4qBdyivULuu03FhJO4IJN9PGuABGrFy4vUuzk91P2d+npxHcFdpUnfYKy0PuV+n6bKIpHOB3prQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.0.tgz", - "integrity": "sha512-WRrmKidLoKDl56LsbBMhzTTBxrsVwTKdNbKDalbEZr0tcsBgCLbEtoNthOW6PX942YiYq8HzEnb4yWQMLQuipQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.0.tgz", - "integrity": "sha512-YLntie/IdS31H54Ogdn+v50NuoWF5BDkEUFpiOChVa9UnKpftgwzZRrI4J132ETIi+D8n6xh9IviFV3eXdxfow==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.0.tgz", - "integrity": "sha512-IMQ6eme4AfznElesHUPDZ+teuGwoRmVuuixu7sv92ZkdQcPbsNHzutd+rAfaBKo8YK3IrBEi9SLLKWJdEvJniQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.0.tgz", - "integrity": "sha512-0muYWCng5vqaxobq6LB3YNtevDFSAZGlgtLoAc81PjUfiFz36n4KMpwhtAd4he8ToSI3TGyuhyx5xmiWNYZFyw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.0.tgz", - "integrity": "sha512-XKDVu8IsD0/q3foBzsXGt/KjD/yTKBCIwOHE1XwiXmrRwrX6Hbnd5Eqn/WvDekddK21tfszBSrE/WMaZh+1buQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.0.tgz", - "integrity": "sha512-SEELSTEtOFu5LPykzA395Mc+54RMg1EUgXP+iw2SJ72+ooMwVsgfuwXo5Fn0wXNgWZsTVHwY2cg4Vi/bOD88qw==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.0.tgz", - "integrity": "sha512-j1t5iG8jE7BhonbsEg5d9qOYcVZv/Rv6tghaXM/Ug9xahM0nX/H2gfu6X6z11QRTMT6+aywOMA8TDkhPo8aCGw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.0.tgz", - "integrity": "sha512-P7O5Tkh2NbgIm2R6x1zGJJsnacDzTFcRWZyTTMgFdVit6E98LTxO+v8LCCLWRvPrjdzXHx9FEOA8oAZPyApWUA==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.0.tgz", - "integrity": "sha512-InQwepswq6urikQiIC/kkx412fqUZudBO4SYKu0N+tGhXRWUqAx+Q+341tFV6QdBifpjYgUndV1hhMq3WeJi7A==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.0.tgz", - "integrity": "sha512-J9rflLtqdYrxHv2FqXE2i1ELgNjT+JFURt/uDMoPQLcjWQA5wDKgQA4t/dTqGa88ZVECKaD0TctwsUfHbVoi4w==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.0.tgz", - "integrity": "sha512-cShCXtEOVc5GxU0fM+dsFD10qZ5UpcQ8AM22bYj0u/yaAykWnqXJDpd77ublcX6vdDsWLuweeuSNZk4yUxZwtw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.0.tgz", - "integrity": "sha512-HEtaN7Y5UB4tZPeQmgz/UhzoEyYftbMXrBCUjINGjh3uil+rB/QzzpMshz3cNUxqXN7Vr93zzVtpIDL99t9aRw==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.0.tgz", - "integrity": "sha512-WDi3+NVAuyjg/Wxi+o5KPqRbZY0QhI9TjrEEm+8dmpY9Xir8+HE/HNx2JoLckhKbFopW0RdO2D72w8trZOV+Wg==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.0.tgz", - "integrity": "sha512-a3pMQhUEJkITgAw6e0bWA+F+vFtCciMjW/LPtoj99MhVt+Mfb6bbL9hu2wmTZgNd994qTAEw+U/r6k3qHWWaOQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.0.tgz", - "integrity": "sha512-cRK+YDem7lFTs2Q5nEv/HHc4LnrfBCbH5+JHu6wm2eP+d8OZNoSMYgPZJq78vqQ9g+9+nMuIsAO7skzphRXHyw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.0.tgz", - "integrity": "sha512-suXjq53gERueVWu0OKxzWqk7NxiUWSUlrxoZK7usiF50C6ipColGR5qie2496iKGYNLhDZkPxBI3erbnYkU0rQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.0.tgz", - "integrity": "sha512-6p3nHpby0DM/v15IFKMjAaayFhqnXV52aEmv1whZHX56pdkK+MEaLoQWj+H42ssFarP1PcomVhbsR4pkz09qBg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.0.tgz", - "integrity": "sha512-BFelBGfrBwk6LVrmFzCq1u1dZbG4zy/Kp93w2+y83Q5UGYF1d8sCzeLI9NXjKyujjBBniQa8R8PzLFAUrSM9OA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.0.tgz", - "integrity": "sha512-lY6AC8p4Cnb7xYHuIxQ6iYPe6MfO2CC43XXKo9nBXDb35krYt7KGhQnOkRGar5psxYkircpCqfbNDB4uJbS2jQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.0.tgz", - "integrity": "sha512-7L1bHlOTcO4ByvI7OXVI5pNN6HSu6pUQq9yodga8izeuB1KcT2UkHaH6118QJwopExPn0rMHIseCTx1CRo/uNA==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.0.tgz", - "integrity": "sha512-Arm+WgUFLUATuoxCJcahGuk6Yj9Pzxd6l11Zb/2aAuv5kWWvvfhLFo2fni4uSK5vzlUdCGZ/BdV5tH8klj8p8g==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", - "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "peer": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", - "peer": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", - "deprecated": "Use @eslint/config-array instead", - "peer": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "peer": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead", - "peer": true - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@pkgr/core": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", - "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.20.0.tgz", - "integrity": "sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.20.0.tgz", - "integrity": "sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.20.0.tgz", - "integrity": "sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.20.0.tgz", - "integrity": "sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.20.0.tgz", - "integrity": "sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.20.0.tgz", - "integrity": "sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.20.0.tgz", - "integrity": "sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.20.0.tgz", - "integrity": "sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.20.0.tgz", - "integrity": "sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.20.0.tgz", - "integrity": "sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.20.0.tgz", - "integrity": "sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.20.0.tgz", - "integrity": "sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.20.0.tgz", - "integrity": "sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.20.0.tgz", - "integrity": "sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.20.0.tgz", - "integrity": "sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.20.0.tgz", - "integrity": "sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@ts-morph/common": { - "version": "0.24.0", - "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.24.0.tgz", - "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", - "dependencies": { - "fast-glob": "^3.3.2", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "path-browserify": "^1.0.1" - } - }, - "node_modules/@types/async-retry": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.8.tgz", - "integrity": "sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==", - "dependencies": { - "@types/retry": "*" - } - }, - "node_modules/@types/commonmark": { - "version": "0.27.9", - "resolved": "https://registry.npmjs.org/@types/commonmark/-/commonmark-0.27.9.tgz", - "integrity": "sha512-d3+57WgyPCcIc6oshmcPkmP4+JqRRot9eeZLsBsutWtIxwWivpoyc2wEcolOp8MyO3ZWN846mMdoR02kdHSMCw==" - }, - "node_modules/@types/eslint": { - "version": "8.56.11", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.11.tgz", - "integrity": "sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==", - "dev": true, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "dev": true, - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", - "dev": true - }, - "node_modules/@types/fs-extra": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", - "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", - "dev": true, - "dependencies": { - "@types/jsonfile": "*", - "@types/node": "*" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "node_modules/@types/jsonfile": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.4.tgz", - "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", - "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", - "dependencies": { - "undici-types": "~6.18.2" - } - }, - "node_modules/@types/node-fetch": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", - "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", - "dependencies": { - "@types/node": "*", - "form-data": "^4.0.0" - } - }, - "node_modules/@types/retry": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.5.tgz", - "integrity": "sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", - "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/type-utils": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^7.0.0", - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz", - "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", - "dependencies": { - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", - "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", - "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", - "dependencies": { - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz", - "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", - "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", - "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", - "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "peer": true - }, - "node_modules/@vitest/expect": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.0.5.tgz", - "integrity": "sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==", - "dev": true, - "dependencies": { - "@vitest/spy": "2.0.5", - "@vitest/utils": "2.0.5", - "chai": "^5.1.1", - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/pretty-format": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.0.5.tgz", - "integrity": "sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==", - "dev": true, - "dependencies": { - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.0.5.tgz", - "integrity": "sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==", - "dev": true, - "dependencies": { - "@vitest/utils": "2.0.5", - "pathe": "^1.1.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/snapshot": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.0.5.tgz", - "integrity": "sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==", - "dev": true, - "dependencies": { - "@vitest/pretty-format": "2.0.5", - "magic-string": "^0.30.10", - "pathe": "^1.1.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/spy": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.0.5.tgz", - "integrity": "sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==", - "dev": true, - "dependencies": { - "tinyspy": "^3.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.0.5.tgz", - "integrity": "sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==", - "dev": true, - "dependencies": { - "@vitest/pretty-format": "2.0.5", - "estree-walker": "^3.0.3", - "loupe": "^3.1.1", - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } - }, - "node_modules/acorn": { - "version": "8.12.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", - "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", - "peer": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "peer": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "peer": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "peer": true - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/async-retry": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", - "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", - "dependencies": { - "retry": "0.13.1" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/atomic-sleep": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", - "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/chai": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.1.tgz", - "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==", - "dev": true, - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "peer": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/check-error": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", - "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", - "dev": true, - "engines": { - "node": ">= 16" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/code-block-writer": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.2.tgz", - "integrity": "sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==" - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "engines": { - "node": ">=18" - } - }, - "node_modules/commonmark": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.28.1.tgz", - "integrity": "sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==", - "dependencies": { - "entities": "~ 1.1.1", - "mdurl": "~ 1.0.1", - "minimist": "~ 1.2.0", - "string.prototype.repeat": "^0.2.0" - }, - "bin": { - "commonmark": "bin/commonmark" - }, - "engines": { - "node": "*" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "peer": true - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", - "engines": { - "node": "*" - } - }, - "node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "peer": true - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "peer": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" - }, - "node_modules/esbuild": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.0.tgz", - "integrity": "sha512-1lvV17H2bMYda/WaFb2jLPeHU3zml2k4/yagNMG8Q/YtfMjCwEUZa2eXXMgZTVSL5q1n4H7sQ0X6CdJDqqeCFA==", - "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.23.0", - "@esbuild/android-arm": "0.23.0", - "@esbuild/android-arm64": "0.23.0", - "@esbuild/android-x64": "0.23.0", - "@esbuild/darwin-arm64": "0.23.0", - "@esbuild/darwin-x64": "0.23.0", - "@esbuild/freebsd-arm64": "0.23.0", - "@esbuild/freebsd-x64": "0.23.0", - "@esbuild/linux-arm": "0.23.0", - "@esbuild/linux-arm64": "0.23.0", - "@esbuild/linux-ia32": "0.23.0", - "@esbuild/linux-loong64": "0.23.0", - "@esbuild/linux-mips64el": "0.23.0", - "@esbuild/linux-ppc64": "0.23.0", - "@esbuild/linux-riscv64": "0.23.0", - "@esbuild/linux-s390x": "0.23.0", - "@esbuild/linux-x64": "0.23.0", - "@esbuild/netbsd-x64": "0.23.0", - "@esbuild/openbsd-arm64": "0.23.0", - "@esbuild/openbsd-x64": "0.23.0", - "@esbuild/sunos-x64": "0.23.0", - "@esbuild/win32-arm64": "0.23.0", - "@esbuild/win32-ia32": "0.23.0", - "@esbuild/win32-x64": "0.23.0" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", - "peer": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-prettier": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", - "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", - "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.9.1" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "peer": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/eslint/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "peer": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "peer": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "peer": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "peer": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dev": true, - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/fast-copy": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-3.0.2.tgz", - "integrity": "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "peer": true - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "peer": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "peer": true - }, - "node_modules/fast-redact": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", - "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/fast-safe-stringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" - }, - "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "peer": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "peer": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "peer": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flat-cache/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/flat-cache/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "peer": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/flat-cache/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/flat-cache/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "peer": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "peer": true - }, - "node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/front-matter": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-4.0.2.tgz", - "integrity": "sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==", - "dependencies": { - "js-yaml": "^3.13.1" - } - }, - "node_modules/front-matter/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/front-matter/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "peer": true - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", - "dev": true, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-tsconfig": { - "version": "4.7.6", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.6.tgz", - "integrity": "sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==", - "dev": true, - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/glob": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz", - "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "peer": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "peer": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/help-me": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz", - "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==" - }, - "node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", - "dev": true, - "engines": { - "node": ">=16.17.0" - } - }, - "node_modules/husky": { - "version": "9.1.4", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.4.tgz", - "integrity": "sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==", - "dev": true, - "bin": { - "husky": "bin.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "peer": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "peer": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "peer": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "peer": true - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/jackspeak": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz", - "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/joycon": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", - "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "peer": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "peer": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "peer": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "peer": true - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "peer": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "peer": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "peer": true - }, - "node_modules/loupe": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.1.tgz", - "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==", - "dev": true, - "dependencies": { - "get-func-name": "^2.0.1" - } - }, - "node_modules/lru-cache": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", - "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/magic-string": { - "version": "0.30.11", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", - "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==", - "dev": true, - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" - } - }, - "node_modules/marked": { - "version": "13.0.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-13.0.3.tgz", - "integrity": "sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" - }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", - "dev": true, - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onchange": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/onchange/-/onchange-7.1.0.tgz", - "integrity": "sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==", - "dev": true, - "dependencies": { - "@blakeembrey/deque": "^1.0.5", - "@blakeembrey/template": "^1.0.0", - "arg": "^4.1.3", - "chokidar": "^3.3.1", - "cross-spawn": "^7.0.1", - "ignore": "^5.1.4", - "tree-kill": "^1.2.2" - }, - "bin": { - "onchange": "dist/bin.js" - } - }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "peer": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "peer": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "peer": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "peer": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-browserify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-scurry": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", - "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", - "dependencies": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/pathe": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", - "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", - "dev": true - }, - "node_modules/pathval": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", - "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", - "dev": true, - "engines": { - "node": ">= 14.16" - } - }, - "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pino": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/pino/-/pino-9.3.2.tgz", - "integrity": "sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==", - "dependencies": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^7.0.0", - "process-warning": "^4.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^4.0.1", - "thread-stream": "^3.0.0" - }, - "bin": { - "pino": "bin.js" - } - }, - "node_modules/pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "dependencies": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "node_modules/pino-pretty": { - "version": "11.2.2", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-11.2.2.tgz", - "integrity": "sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==", - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.2", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^4.0.1", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "pino-pretty": "bin.js" - } - }, - "node_modules/pino-std-serializers": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz", - "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==" - }, - "node_modules/postcss": { - "version": "8.4.41", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz", - "integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.1", - "source-map-js": "^1.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "peer": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", - "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", - "dev": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/process-warning": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.0.tgz", - "integrity": "sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==" - }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/quick-format-unescaped": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", - "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" - }, - "node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rimraf/node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rimraf/node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/rimraf/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "node_modules/rimraf/node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.20.0.tgz", - "integrity": "sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==", - "dev": true, - "dependencies": { - "@types/estree": "1.0.5" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.20.0", - "@rollup/rollup-android-arm64": "4.20.0", - "@rollup/rollup-darwin-arm64": "4.20.0", - "@rollup/rollup-darwin-x64": "4.20.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.20.0", - "@rollup/rollup-linux-arm-musleabihf": "4.20.0", - "@rollup/rollup-linux-arm64-gnu": "4.20.0", - "@rollup/rollup-linux-arm64-musl": "4.20.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0", - "@rollup/rollup-linux-riscv64-gnu": "4.20.0", - "@rollup/rollup-linux-s390x-gnu": "4.20.0", - "@rollup/rollup-linux-x64-gnu": "4.20.0", - "@rollup/rollup-linux-x64-musl": "4.20.0", - "@rollup/rollup-win32-arm64-msvc": "4.20.0", - "@rollup/rollup-win32-ia32-msvc": "4.20.0", - "@rollup/rollup-win32-x64-msvc": "4.20.0", - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-stable-stringify": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", - "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", - "engines": { - "node": ">=10" - } - }, - "node_modules/secure-json-parse": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", - "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" - }, - "node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "engines": { - "node": ">=8" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/sonic-boom": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.0.1.tgz", - "integrity": "sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==", - "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, - "node_modules/source-map-js": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", - "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "engines": { - "node": ">= 10.x" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true - }, - "node_modules/std-env": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", - "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/string.prototype.repeat": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", - "integrity": "sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==" - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "peer": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/synckit": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.1.tgz", - "integrity": "sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==", - "dev": true, - "dependencies": { - "@pkgr/core": "^0.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "peer": true - }, - "node_modules/thread-stream": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.1.0.tgz", - "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", - "dependencies": { - "real-require": "^0.2.0" - } - }, - "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", - "dev": true - }, - "node_modules/tinypool": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.0.tgz", - "integrity": "sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==", - "dev": true, - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, - "node_modules/tinyrainbow": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", - "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", - "dev": true, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.0.tgz", - "integrity": "sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==", - "dev": true, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/tree-kill": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", - "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "dev": true, - "bin": { - "tree-kill": "cli.js" - } - }, - "node_modules/ts-api-utils": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", - "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - } - }, - "node_modules/ts-morph": { - "version": "23.0.0", - "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-23.0.0.tgz", - "integrity": "sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==", - "dependencies": { - "@ts-morph/common": "~0.24.0", - "code-block-writer": "^13.0.1" - } - }, - "node_modules/tslib": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" - }, - "node_modules/tsx": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.17.0.tgz", - "integrity": "sha512-eN4mnDA5UMKDt4YZixo9tBioibaMBpoxBkD+rIPAjVmYERSG0/dWEY1CEFuV89CgASlKL499q8AhmkMnnjtOJg==", - "dev": true, - "dependencies": { - "esbuild": "~0.23.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", - "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-7.18.0.tgz", - "integrity": "sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==", - "dependencies": { - "@typescript-eslint/eslint-plugin": "7.18.0", - "@typescript-eslint/parser": "7.18.0", - "@typescript-eslint/utils": "7.18.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/undici-types": { - "version": "6.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", - "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" - }, - "node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "peer": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/vite": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.0.tgz", - "integrity": "sha512-5xokfMX0PIiwCMCMb9ZJcMyh5wbBun0zUzKib+L65vAZ8GY9ePZMXxFrHbr/Kyll2+LSCY7xtERPpxkBDKngwg==", - "dev": true, - "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.40", - "rollup": "^4.13.0" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vite-node": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.0.5.tgz", - "integrity": "sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==", - "dev": true, - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.3.5", - "pathe": "^1.1.2", - "tinyrainbow": "^1.2.0", - "vite": "^5.0.0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vite/node_modules/@esbuild/aix-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", - "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/android-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", - "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/android-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", - "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/android-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", - "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/darwin-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", - "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/darwin-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", - "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", - "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/freebsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", - "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", - "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", - "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", - "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-loong64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", - "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-mips64el": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", - "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", - "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-riscv64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", - "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-s390x": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", - "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", - "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/netbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", - "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/openbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", - "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/sunos-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", - "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/win32-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", - "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/win32-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", - "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/esbuild": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", - "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", - "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" - } - }, - "node_modules/vitest": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.0.5.tgz", - "integrity": "sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.3.0", - "@vitest/expect": "2.0.5", - "@vitest/pretty-format": "^2.0.5", - "@vitest/runner": "2.0.5", - "@vitest/snapshot": "2.0.5", - "@vitest/spy": "2.0.5", - "@vitest/utils": "2.0.5", - "chai": "^5.1.1", - "debug": "^4.3.5", - "execa": "^8.0.1", - "magic-string": "^0.30.10", - "pathe": "^1.1.2", - "std-env": "^3.7.0", - "tinybench": "^2.8.0", - "tinypool": "^1.0.0", - "tinyrainbow": "^1.2.0", - "vite": "^5.0.0", - "vite-node": "2.0.5", - "why-is-node-running": "^2.3.0" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "2.0.5", - "@vitest/ui": "2.0.5", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json index 1b7a0584231..813169f32be 100644 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json @@ -1,6 +1,6 @@ { "name": "typescript-codegen-breaking-change-detector", - "version": "0.4.7", + "version": "0.4.8", "description": "Detect breaking changes to your TypeScript client generated by open api, typespec and more...", "main": "dist/src/index.js", "types": "./dist/src/index.d.ts", diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml deleted file mode 100644 index 0fa606da052..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml +++ /dev/null @@ -1,3223 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - dependencies: - '@azure-tools/openapi-tools-common': - specifier: ^1.2.2 - version: 1.2.2 - '@typescript-eslint/scope-manager': - specifier: ^7.17.0 - version: 7.18.0 - '@typescript-eslint/types': - specifier: ^7.17.0 - version: 7.18.0 - '@typescript-eslint/typescript-estree': - specifier: ^7.17.0 - version: 7.18.0(typescript@5.5.3) - '@typescript-eslint/utils': - specifier: ^7.17.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/visitor-keys': - specifier: ^7.17.0 - version: 7.18.0 - commander: - specifier: ^12.1.0 - version: 12.1.0 - fs-extra: - specifier: ^11.2.0 - version: 11.2.0 - glob: - specifier: ^11.0.0 - version: 11.0.0 - marked: - specifier: ^13.0.2 - version: 13.0.3 - pino: - specifier: ^9.3.1 - version: 9.3.2 - pino-pretty: - specifier: ^11.2.1 - version: 11.2.2 - ts-morph: - specifier: ^23.0.0 - version: 23.0.0 - typescript: - specifier: 5.5.3 - version: 5.5.3 - typescript-eslint: - specifier: ^7.17.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) - devDependencies: - '@types/eslint': - specifier: ^8.56.10 - version: 8.56.11 - '@types/eslint-scope': - specifier: ^3.7.7 - version: 3.7.7 - '@types/fs-extra': - specifier: ^11.0.4 - version: 11.0.4 - '@typescript-eslint/eslint-plugin': - specifier: ^7.17.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/parser': - specifier: ^7.17.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) - eslint-config-prettier: - specifier: ^9.1.0 - version: 9.1.0(eslint@8.57.0) - eslint-plugin-prettier: - specifier: ^5.1.3 - version: 5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2) - husky: - specifier: ^9.0.11 - version: 9.1.4 - onchange: - specifier: ^7.1.0 - version: 7.1.0 - prettier: - specifier: 3.3.2 - version: 3.3.2 - rimraf: - specifier: ^5.0.7 - version: 5.0.10 - tsx: - specifier: ^4.16.2 - version: 4.17.0 - vitest: - specifier: ^2.0.4 - version: 2.0.5(@types/node@22.3.0) - -packages: - - '@ampproject/remapping@2.3.0': - resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} - engines: {node: '>=6.0.0'} - - '@azure-tools/openapi-tools-common@1.2.2': - resolution: {integrity: sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==} - - '@blakeembrey/deque@1.0.5': - resolution: {integrity: sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==} - - '@blakeembrey/template@1.1.0': - resolution: {integrity: sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==} - - '@esbuild/aix-ppc64@0.21.5': - resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [aix] - - '@esbuild/aix-ppc64@0.23.0': - resolution: {integrity: sha512-3sG8Zwa5fMcA9bgqB8AfWPQ+HFke6uD3h1s3RIwUNK8EG7a4buxvuFTs3j1IMs2NXAk9F30C/FF4vxRgQCcmoQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - - '@esbuild/android-arm64@0.21.5': - resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - - '@esbuild/android-arm64@0.23.0': - resolution: {integrity: sha512-EuHFUYkAVfU4qBdyivULuu03FhJO4IJN9PGuABGrFy4vUuzk91P2d+npxHcFdpUnfYKy0PuV+n6bKIpHOB3prQ==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - - '@esbuild/android-arm@0.21.5': - resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - - '@esbuild/android-arm@0.23.0': - resolution: {integrity: sha512-+KuOHTKKyIKgEEqKbGTK8W7mPp+hKinbMBeEnNzjJGyFcWsfrXjSTNluJHCY1RqhxFurdD8uNXQDei7qDlR6+g==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - - '@esbuild/android-x64@0.21.5': - resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - - '@esbuild/android-x64@0.23.0': - resolution: {integrity: sha512-WRrmKidLoKDl56LsbBMhzTTBxrsVwTKdNbKDalbEZr0tcsBgCLbEtoNthOW6PX942YiYq8HzEnb4yWQMLQuipQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - - '@esbuild/darwin-arm64@0.21.5': - resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - - '@esbuild/darwin-arm64@0.23.0': - resolution: {integrity: sha512-YLntie/IdS31H54Ogdn+v50NuoWF5BDkEUFpiOChVa9UnKpftgwzZRrI4J132ETIi+D8n6xh9IviFV3eXdxfow==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - - '@esbuild/darwin-x64@0.21.5': - resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - - '@esbuild/darwin-x64@0.23.0': - resolution: {integrity: sha512-IMQ6eme4AfznElesHUPDZ+teuGwoRmVuuixu7sv92ZkdQcPbsNHzutd+rAfaBKo8YK3IrBEi9SLLKWJdEvJniQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - - '@esbuild/freebsd-arm64@0.21.5': - resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - - '@esbuild/freebsd-arm64@0.23.0': - resolution: {integrity: sha512-0muYWCng5vqaxobq6LB3YNtevDFSAZGlgtLoAc81PjUfiFz36n4KMpwhtAd4he8ToSI3TGyuhyx5xmiWNYZFyw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - - '@esbuild/freebsd-x64@0.21.5': - resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - - '@esbuild/freebsd-x64@0.23.0': - resolution: {integrity: sha512-XKDVu8IsD0/q3foBzsXGt/KjD/yTKBCIwOHE1XwiXmrRwrX6Hbnd5Eqn/WvDekddK21tfszBSrE/WMaZh+1buQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - - '@esbuild/linux-arm64@0.21.5': - resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - - '@esbuild/linux-arm64@0.23.0': - resolution: {integrity: sha512-j1t5iG8jE7BhonbsEg5d9qOYcVZv/Rv6tghaXM/Ug9xahM0nX/H2gfu6X6z11QRTMT6+aywOMA8TDkhPo8aCGw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - - '@esbuild/linux-arm@0.21.5': - resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - - '@esbuild/linux-arm@0.23.0': - resolution: {integrity: sha512-SEELSTEtOFu5LPykzA395Mc+54RMg1EUgXP+iw2SJ72+ooMwVsgfuwXo5Fn0wXNgWZsTVHwY2cg4Vi/bOD88qw==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - - '@esbuild/linux-ia32@0.21.5': - resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - - '@esbuild/linux-ia32@0.23.0': - resolution: {integrity: sha512-P7O5Tkh2NbgIm2R6x1zGJJsnacDzTFcRWZyTTMgFdVit6E98LTxO+v8LCCLWRvPrjdzXHx9FEOA8oAZPyApWUA==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - - '@esbuild/linux-loong64@0.21.5': - resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - - '@esbuild/linux-loong64@0.23.0': - resolution: {integrity: sha512-InQwepswq6urikQiIC/kkx412fqUZudBO4SYKu0N+tGhXRWUqAx+Q+341tFV6QdBifpjYgUndV1hhMq3WeJi7A==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - - '@esbuild/linux-mips64el@0.21.5': - resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - - '@esbuild/linux-mips64el@0.23.0': - resolution: {integrity: sha512-J9rflLtqdYrxHv2FqXE2i1ELgNjT+JFURt/uDMoPQLcjWQA5wDKgQA4t/dTqGa88ZVECKaD0TctwsUfHbVoi4w==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - - '@esbuild/linux-ppc64@0.21.5': - resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - - '@esbuild/linux-ppc64@0.23.0': - resolution: {integrity: sha512-cShCXtEOVc5GxU0fM+dsFD10qZ5UpcQ8AM22bYj0u/yaAykWnqXJDpd77ublcX6vdDsWLuweeuSNZk4yUxZwtw==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - - '@esbuild/linux-riscv64@0.21.5': - resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - - '@esbuild/linux-riscv64@0.23.0': - resolution: {integrity: sha512-HEtaN7Y5UB4tZPeQmgz/UhzoEyYftbMXrBCUjINGjh3uil+rB/QzzpMshz3cNUxqXN7Vr93zzVtpIDL99t9aRw==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - - '@esbuild/linux-s390x@0.21.5': - resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - - '@esbuild/linux-s390x@0.23.0': - resolution: {integrity: sha512-WDi3+NVAuyjg/Wxi+o5KPqRbZY0QhI9TjrEEm+8dmpY9Xir8+HE/HNx2JoLckhKbFopW0RdO2D72w8trZOV+Wg==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - - '@esbuild/linux-x64@0.21.5': - resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - - '@esbuild/linux-x64@0.23.0': - resolution: {integrity: sha512-a3pMQhUEJkITgAw6e0bWA+F+vFtCciMjW/LPtoj99MhVt+Mfb6bbL9hu2wmTZgNd994qTAEw+U/r6k3qHWWaOQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - - '@esbuild/netbsd-x64@0.21.5': - resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - - '@esbuild/netbsd-x64@0.23.0': - resolution: {integrity: sha512-cRK+YDem7lFTs2Q5nEv/HHc4LnrfBCbH5+JHu6wm2eP+d8OZNoSMYgPZJq78vqQ9g+9+nMuIsAO7skzphRXHyw==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - - '@esbuild/openbsd-arm64@0.23.0': - resolution: {integrity: sha512-suXjq53gERueVWu0OKxzWqk7NxiUWSUlrxoZK7usiF50C6ipColGR5qie2496iKGYNLhDZkPxBI3erbnYkU0rQ==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - - '@esbuild/openbsd-x64@0.21.5': - resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - - '@esbuild/openbsd-x64@0.23.0': - resolution: {integrity: sha512-6p3nHpby0DM/v15IFKMjAaayFhqnXV52aEmv1whZHX56pdkK+MEaLoQWj+H42ssFarP1PcomVhbsR4pkz09qBg==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - - '@esbuild/sunos-x64@0.21.5': - resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - - '@esbuild/sunos-x64@0.23.0': - resolution: {integrity: sha512-BFelBGfrBwk6LVrmFzCq1u1dZbG4zy/Kp93w2+y83Q5UGYF1d8sCzeLI9NXjKyujjBBniQa8R8PzLFAUrSM9OA==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - - '@esbuild/win32-arm64@0.21.5': - resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - - '@esbuild/win32-arm64@0.23.0': - resolution: {integrity: sha512-lY6AC8p4Cnb7xYHuIxQ6iYPe6MfO2CC43XXKo9nBXDb35krYt7KGhQnOkRGar5psxYkircpCqfbNDB4uJbS2jQ==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - - '@esbuild/win32-ia32@0.21.5': - resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - - '@esbuild/win32-ia32@0.23.0': - resolution: {integrity: sha512-7L1bHlOTcO4ByvI7OXVI5pNN6HSu6pUQq9yodga8izeuB1KcT2UkHaH6118QJwopExPn0rMHIseCTx1CRo/uNA==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - - '@esbuild/win32-x64@0.21.5': - resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - - '@esbuild/win32-x64@0.23.0': - resolution: {integrity: sha512-Arm+WgUFLUATuoxCJcahGuk6Yj9Pzxd6l11Zb/2aAuv5kWWvvfhLFo2fni4uSK5vzlUdCGZ/BdV5tH8klj8p8g==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - - '@eslint-community/eslint-utils@4.4.0': - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - - '@eslint-community/regexpp@4.11.0': - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - - '@eslint/eslintrc@2.1.4': - resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - '@eslint/js@8.57.0': - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - '@humanwhocodes/config-array@0.11.14': - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} - engines: {node: '>=10.10.0'} - deprecated: Use @eslint/config-array instead - - '@humanwhocodes/module-importer@1.0.1': - resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} - engines: {node: '>=12.22'} - - '@humanwhocodes/object-schema@2.0.3': - resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} - deprecated: Use @eslint/object-schema instead - - '@isaacs/cliui@8.0.2': - resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} - engines: {node: '>=12'} - - '@jridgewell/gen-mapping@0.3.5': - resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} - engines: {node: '>=6.0.0'} - - '@jridgewell/resolve-uri@3.1.2': - resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} - engines: {node: '>=6.0.0'} - - '@jridgewell/set-array@1.2.1': - resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} - engines: {node: '>=6.0.0'} - - '@jridgewell/sourcemap-codec@1.5.0': - resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} - - '@jridgewell/trace-mapping@0.3.25': - resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - - '@nodelib/fs.scandir@2.1.5': - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} - - '@nodelib/fs.stat@2.0.5': - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} - - '@nodelib/fs.walk@1.2.8': - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} - - '@pkgjs/parseargs@0.11.0': - resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} - engines: {node: '>=14'} - - '@pkgr/core@0.1.1': - resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} - engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - - '@rollup/rollup-android-arm-eabi@4.20.0': - resolution: {integrity: sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==} - cpu: [arm] - os: [android] - - '@rollup/rollup-android-arm64@4.20.0': - resolution: {integrity: sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==} - cpu: [arm64] - os: [android] - - '@rollup/rollup-darwin-arm64@4.20.0': - resolution: {integrity: sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==} - cpu: [arm64] - os: [darwin] - - '@rollup/rollup-darwin-x64@4.20.0': - resolution: {integrity: sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==} - cpu: [x64] - os: [darwin] - - '@rollup/rollup-linux-arm-gnueabihf@4.20.0': - resolution: {integrity: sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-arm-musleabihf@4.20.0': - resolution: {integrity: sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==} - cpu: [arm] - os: [linux] - libc: [musl] - - '@rollup/rollup-linux-arm64-gnu@4.20.0': - resolution: {integrity: sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-arm64-musl@4.20.0': - resolution: {integrity: sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': - resolution: {integrity: sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-riscv64-gnu@4.20.0': - resolution: {integrity: sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-s390x-gnu@4.20.0': - resolution: {integrity: sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-x64-gnu@4.20.0': - resolution: {integrity: sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-x64-musl@4.20.0': - resolution: {integrity: sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@rollup/rollup-win32-arm64-msvc@4.20.0': - resolution: {integrity: sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==} - cpu: [arm64] - os: [win32] - - '@rollup/rollup-win32-ia32-msvc@4.20.0': - resolution: {integrity: sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==} - cpu: [ia32] - os: [win32] - - '@rollup/rollup-win32-x64-msvc@4.20.0': - resolution: {integrity: sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==} - cpu: [x64] - os: [win32] - - '@ts-morph/common@0.24.0': - resolution: {integrity: sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==} - - '@types/async-retry@1.4.8': - resolution: {integrity: sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==} - - '@types/commonmark@0.27.9': - resolution: {integrity: sha512-d3+57WgyPCcIc6oshmcPkmP4+JqRRot9eeZLsBsutWtIxwWivpoyc2wEcolOp8MyO3ZWN846mMdoR02kdHSMCw==} - - '@types/eslint-scope@3.7.7': - resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} - - '@types/eslint@8.56.11': - resolution: {integrity: sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==} - - '@types/estree@1.0.5': - resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - - '@types/fs-extra@11.0.4': - resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} - - '@types/json-schema@7.0.15': - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - - '@types/jsonfile@6.1.4': - resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} - - '@types/node-fetch@2.6.11': - resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} - - '@types/node@22.3.0': - resolution: {integrity: sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==} - - '@types/retry@0.12.5': - resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==} - - '@typescript-eslint/eslint-plugin@7.18.0': - resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - '@typescript-eslint/parser': ^7.0.0 - eslint: ^8.56.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@typescript-eslint/parser@7.18.0': - resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - eslint: ^8.56.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@typescript-eslint/scope-manager@7.18.0': - resolution: {integrity: sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==} - engines: {node: ^18.18.0 || >=20.0.0} - - '@typescript-eslint/type-utils@7.18.0': - resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - eslint: ^8.56.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@typescript-eslint/types@7.18.0': - resolution: {integrity: sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==} - engines: {node: ^18.18.0 || >=20.0.0} - - '@typescript-eslint/typescript-estree@7.18.0': - resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@typescript-eslint/utils@7.18.0': - resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - eslint: ^8.56.0 - - '@typescript-eslint/visitor-keys@7.18.0': - resolution: {integrity: sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==} - engines: {node: ^18.18.0 || >=20.0.0} - - '@ungap/structured-clone@1.2.0': - resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - - '@vitest/expect@2.0.5': - resolution: {integrity: sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==} - - '@vitest/pretty-format@2.0.5': - resolution: {integrity: sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==} - - '@vitest/runner@2.0.5': - resolution: {integrity: sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==} - - '@vitest/snapshot@2.0.5': - resolution: {integrity: sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==} - - '@vitest/spy@2.0.5': - resolution: {integrity: sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==} - - '@vitest/utils@2.0.5': - resolution: {integrity: sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==} - - abort-controller@3.0.0: - resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} - engines: {node: '>=6.5'} - - acorn-jsx@5.3.2: - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - - acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} - engines: {node: '>=0.4.0'} - hasBin: true - - ajv@6.12.6: - resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - - ansi-regex@6.0.1: - resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} - engines: {node: '>=12'} - - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - ansi-styles@6.2.1: - resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} - engines: {node: '>=12'} - - anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} - engines: {node: '>= 8'} - - arg@4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - - argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - - array-union@2.1.0: - resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} - engines: {node: '>=8'} - - assertion-error@2.0.1: - resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} - engines: {node: '>=12'} - - async-retry@1.3.3: - resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==} - - asynckit@0.4.0: - resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} - - atomic-sleep@1.0.0: - resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} - engines: {node: '>=8.0.0'} - - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - base64-js@1.5.1: - resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - - binary-extensions@2.3.0: - resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} - engines: {node: '>=8'} - - brace-expansion@1.1.11: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} - - brace-expansion@2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - - buffer@6.0.3: - resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - - cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - - chai@5.1.1: - resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} - engines: {node: '>=12'} - - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - check-error@2.1.1: - resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} - engines: {node: '>= 16'} - - chokidar@3.6.0: - resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} - engines: {node: '>= 8.10.0'} - - code-block-writer@13.0.2: - resolution: {integrity: sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - - colorette@2.0.20: - resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} - - combined-stream@1.0.8: - resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} - engines: {node: '>= 0.8'} - - commander@12.1.0: - resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} - engines: {node: '>=18'} - - commonmark@0.28.1: - resolution: {integrity: sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==} - hasBin: true - - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - - cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} - engines: {node: '>= 8'} - - dateformat@4.6.3: - resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} - - debug@4.3.6: - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - deep-eql@5.0.2: - resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} - engines: {node: '>=6'} - - deep-is@0.1.4: - resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - - delayed-stream@1.0.0: - resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} - engines: {node: '>=0.4.0'} - - dir-glob@3.0.1: - resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} - engines: {node: '>=8'} - - doctrine@3.0.0: - resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} - engines: {node: '>=6.0.0'} - - eastasianwidth@0.2.0: - resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - - emoji-regex@8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - - emoji-regex@9.2.2: - resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - - end-of-stream@1.4.4: - resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} - - entities@1.1.2: - resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} - - esbuild@0.21.5: - resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} - engines: {node: '>=12'} - hasBin: true - - esbuild@0.23.0: - resolution: {integrity: sha512-1lvV17H2bMYda/WaFb2jLPeHU3zml2k4/yagNMG8Q/YtfMjCwEUZa2eXXMgZTVSL5q1n4H7sQ0X6CdJDqqeCFA==} - engines: {node: '>=18'} - hasBin: true - - escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - - eslint-config-prettier@9.1.0: - resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} - hasBin: true - peerDependencies: - eslint: '>=7.0.0' - - eslint-plugin-prettier@5.2.1: - resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - '@types/eslint': '>=8.0.0' - eslint: '>=8.0.0' - eslint-config-prettier: '*' - prettier: '>=3.0.0' - peerDependenciesMeta: - '@types/eslint': - optional: true - eslint-config-prettier: - optional: true - - eslint-scope@7.2.2: - resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - eslint-visitor-keys@3.4.3: - resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - hasBin: true - - espree@9.6.1: - resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - - esquery@1.6.0: - resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} - engines: {node: '>=0.10'} - - esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} - engines: {node: '>=4.0'} - - estraverse@5.3.0: - resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} - engines: {node: '>=4.0'} - - estree-walker@3.0.3: - resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - - esutils@2.0.3: - resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} - engines: {node: '>=0.10.0'} - - event-target-shim@5.0.1: - resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} - engines: {node: '>=6'} - - events@3.3.0: - resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} - engines: {node: '>=0.8.x'} - - execa@8.0.1: - resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} - engines: {node: '>=16.17'} - - fast-copy@3.0.2: - resolution: {integrity: sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==} - - fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - - fast-diff@1.3.0: - resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} - - fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} - engines: {node: '>=8.6.0'} - - fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - - fast-levenshtein@2.0.6: - resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - - fast-redact@3.5.0: - resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==} - engines: {node: '>=6'} - - fast-safe-stringify@2.1.1: - resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} - - fastq@1.17.1: - resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} - - file-entry-cache@6.0.1: - resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} - engines: {node: ^10.12.0 || >=12.0.0} - - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} - - find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - - flat-cache@3.2.0: - resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} - engines: {node: ^10.12.0 || >=12.0.0} - - flatted@3.3.1: - resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} - - foreground-child@3.3.0: - resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} - engines: {node: '>=14'} - - form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} - engines: {node: '>= 6'} - - front-matter@4.0.2: - resolution: {integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==} - - fs-extra@11.2.0: - resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} - engines: {node: '>=14.14'} - - fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - - fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - - get-func-name@2.0.2: - resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} - - get-stream@8.0.1: - resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} - engines: {node: '>=16'} - - get-tsconfig@4.7.6: - resolution: {integrity: sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==} - - glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - - glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - - glob@10.4.5: - resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} - hasBin: true - - glob@11.0.0: - resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} - engines: {node: 20 || >=22} - hasBin: true - - glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported - - globals@13.24.0: - resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} - engines: {node: '>=8'} - - globby@11.1.0: - resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} - engines: {node: '>=10'} - - graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - - graphemer@1.4.0: - resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} - - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - - help-me@5.0.0: - resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} - - human-signals@5.0.0: - resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} - engines: {node: '>=16.17.0'} - - husky@9.1.4: - resolution: {integrity: sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==} - engines: {node: '>=18'} - hasBin: true - - ieee754@1.2.1: - resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - - ignore@5.3.2: - resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} - engines: {node: '>= 4'} - - import-fresh@3.3.0: - resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} - engines: {node: '>=6'} - - imurmurhash@0.1.4: - resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} - engines: {node: '>=0.8.19'} - - inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - - inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - - is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} - engines: {node: '>=8'} - - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-fullwidth-code-point@3.0.0: - resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} - engines: {node: '>=8'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-path-inside@3.0.3: - resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} - engines: {node: '>=8'} - - is-stream@3.0.0: - resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - jackspeak@3.4.3: - resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - - jackspeak@4.0.1: - resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==} - engines: {node: 20 || >=22} - - joycon@3.1.1: - resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} - engines: {node: '>=10'} - - js-yaml@3.14.1: - resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} - hasBin: true - - js-yaml@4.1.0: - resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} - hasBin: true - - json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - - json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - - json-stable-stringify-without-jsonify@1.0.1: - resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - - jsonfile@6.1.0: - resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} - - keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - - levn@0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} - engines: {node: '>= 0.8.0'} - - locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - - loupe@3.1.1: - resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} - - lru-cache@10.4.3: - resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} - - lru-cache@11.0.0: - resolution: {integrity: sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==} - engines: {node: 20 || >=22} - - magic-string@0.30.11: - resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} - - marked@13.0.3: - resolution: {integrity: sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==} - engines: {node: '>= 18'} - hasBin: true - - mdurl@1.0.1: - resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} - - merge-stream@2.0.0: - resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} - - merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} - engines: {node: '>= 8'} - - micromatch@4.0.7: - resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} - engines: {node: '>=8.6'} - - mime-db@1.52.0: - resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} - engines: {node: '>= 0.6'} - - mime-types@2.1.35: - resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} - engines: {node: '>= 0.6'} - - mimic-fn@4.0.0: - resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} - engines: {node: '>=12'} - - minimatch@10.0.1: - resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} - engines: {node: 20 || >=22} - - minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - - minimatch@9.0.5: - resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} - engines: {node: '>=16 || 14 >=14.17'} - - minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - - minipass@7.1.2: - resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} - engines: {node: '>=16 || 14 >=14.17'} - - mkdirp@3.0.1: - resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} - engines: {node: '>=10'} - hasBin: true - - ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - - nanoid@3.3.7: - resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - - natural-compare@1.4.0: - resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - - node-fetch@2.7.0: - resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} - engines: {node: 4.x || >=6.0.0} - peerDependencies: - encoding: ^0.1.0 - peerDependenciesMeta: - encoding: - optional: true - - normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - - npm-run-path@5.3.0: - resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - on-exit-leak-free@2.1.2: - resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} - engines: {node: '>=14.0.0'} - - once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} - - onchange@7.1.0: - resolution: {integrity: sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==} - hasBin: true - - onetime@6.0.0: - resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} - engines: {node: '>=12'} - - optionator@0.9.4: - resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} - engines: {node: '>= 0.8.0'} - - p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - - p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - - package-json-from-dist@1.0.0: - resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} - - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - - path-browserify@1.0.1: - resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} - - path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - - path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} - engines: {node: '>=0.10.0'} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - - path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - - path-scurry@1.11.1: - resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} - engines: {node: '>=16 || 14 >=14.18'} - - path-scurry@2.0.0: - resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} - engines: {node: 20 || >=22} - - path-type@4.0.0: - resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} - engines: {node: '>=8'} - - pathe@1.1.2: - resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - - pathval@2.0.0: - resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} - engines: {node: '>= 14.16'} - - picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} - - picomatch@2.3.1: - resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} - engines: {node: '>=8.6'} - - pino-abstract-transport@1.2.0: - resolution: {integrity: sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==} - - pino-pretty@11.2.2: - resolution: {integrity: sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==} - hasBin: true - - pino-std-serializers@7.0.0: - resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==} - - pino@9.3.2: - resolution: {integrity: sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==} - hasBin: true - - postcss@8.4.41: - resolution: {integrity: sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==} - engines: {node: ^10 || ^12 || >=14} - - prelude-ls@1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} - engines: {node: '>= 0.8.0'} - - prettier-linter-helpers@1.0.0: - resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} - engines: {node: '>=6.0.0'} - - prettier@3.3.2: - resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==} - engines: {node: '>=14'} - hasBin: true - - process-warning@4.0.0: - resolution: {integrity: sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==} - - process@0.11.10: - resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} - engines: {node: '>= 0.6.0'} - - pump@3.0.0: - resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} - - punycode@2.3.1: - resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} - engines: {node: '>=6'} - - queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - - quick-format-unescaped@4.0.4: - resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} - - readable-stream@4.5.2: - resolution: {integrity: sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} - engines: {node: '>=8.10.0'} - - real-require@0.2.0: - resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} - engines: {node: '>= 12.13.0'} - - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - - resolve-pkg-maps@1.0.0: - resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - - retry@0.13.1: - resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} - engines: {node: '>= 4'} - - reusify@1.0.4: - resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - - rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported - hasBin: true - - rimraf@5.0.10: - resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==} - hasBin: true - - rollup@4.20.0: - resolution: {integrity: sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - - run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - - safe-buffer@5.2.1: - resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - - safe-stable-stringify@2.4.3: - resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} - engines: {node: '>=10'} - - secure-json-parse@2.7.0: - resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} - - semver@7.6.3: - resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} - engines: {node: '>=10'} - hasBin: true - - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - - siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - - slash@3.0.0: - resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} - engines: {node: '>=8'} - - sonic-boom@4.0.1: - resolution: {integrity: sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==} - - source-map-js@1.2.0: - resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} - engines: {node: '>=0.10.0'} - - split2@4.2.0: - resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} - engines: {node: '>= 10.x'} - - sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - - std-env@3.7.0: - resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} - - string-width@4.2.3: - resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} - engines: {node: '>=8'} - - string-width@5.1.2: - resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} - engines: {node: '>=12'} - - string.prototype.repeat@0.2.0: - resolution: {integrity: sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==} - - string_decoder@1.3.0: - resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} - - strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} - - strip-ansi@7.1.0: - resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} - engines: {node: '>=12'} - - strip-final-newline@3.0.0: - resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} - engines: {node: '>=12'} - - strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - - synckit@0.9.1: - resolution: {integrity: sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==} - engines: {node: ^14.18.0 || >=16.0.0} - - text-table@0.2.0: - resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} - - thread-stream@3.1.0: - resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} - - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - - tinypool@1.0.0: - resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} - engines: {node: ^18.0.0 || >=20.0.0} - - tinyrainbow@1.2.0: - resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} - engines: {node: '>=14.0.0'} - - tinyspy@3.0.0: - resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==} - engines: {node: '>=14.0.0'} - - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - - tr46@0.0.3: - resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - - tree-kill@1.2.2: - resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} - hasBin: true - - ts-api-utils@1.3.0: - resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} - engines: {node: '>=16'} - peerDependencies: - typescript: '>=4.2.0' - - ts-morph@23.0.0: - resolution: {integrity: sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==} - - tslib@2.6.3: - resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} - - tsx@4.17.0: - resolution: {integrity: sha512-eN4mnDA5UMKDt4YZixo9tBioibaMBpoxBkD+rIPAjVmYERSG0/dWEY1CEFuV89CgASlKL499q8AhmkMnnjtOJg==} - engines: {node: '>=18.0.0'} - hasBin: true - - type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} - - type-fest@0.20.2: - resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} - engines: {node: '>=10'} - - typescript-eslint@7.18.0: - resolution: {integrity: sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==} - engines: {node: ^18.18.0 || >=20.0.0} - peerDependencies: - eslint: ^8.56.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - typescript@5.5.3: - resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==} - engines: {node: '>=14.17'} - hasBin: true - - undici-types@6.18.2: - resolution: {integrity: sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==} - - universalify@2.0.1: - resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} - engines: {node: '>= 10.0.0'} - - uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - - vite-node@2.0.5: - resolution: {integrity: sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - - vite@5.4.1: - resolution: {integrity: sha512-1oE6yuNXssjrZdblI9AfBbHCC41nnyoVoEZxQnID6yvQZAFBzxxkqoFLtHUMkYunL8hwOLEjgTuxpkRxvba3kA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - sass-embedded: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - - vitest@2.0.5: - resolution: {integrity: sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 2.0.5 - '@vitest/ui': 2.0.5 - happy-dom: '*' - jsdom: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@types/node': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - - webidl-conversions@3.0.1: - resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - - whatwg-url@5.0.0: - resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} - - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} - hasBin: true - - word-wrap@1.2.5: - resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} - engines: {node: '>=0.10.0'} - - wrap-ansi@7.0.0: - resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} - engines: {node: '>=10'} - - wrap-ansi@8.1.0: - resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} - engines: {node: '>=12'} - - wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - - yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} - -snapshots: - - '@ampproject/remapping@2.3.0': - dependencies: - '@jridgewell/gen-mapping': 0.3.5 - '@jridgewell/trace-mapping': 0.3.25 - - '@azure-tools/openapi-tools-common@1.2.2': - dependencies: - '@types/async-retry': 1.4.8 - '@types/commonmark': 0.27.9 - '@types/node-fetch': 2.6.11 - async-retry: 1.3.3 - commonmark: 0.28.1 - front-matter: 4.0.2 - node-fetch: 2.7.0 - tslib: 2.6.3 - transitivePeerDependencies: - - encoding - - '@blakeembrey/deque@1.0.5': {} - - '@blakeembrey/template@1.1.0': {} - - '@esbuild/aix-ppc64@0.21.5': - optional: true - - '@esbuild/aix-ppc64@0.23.0': - optional: true - - '@esbuild/android-arm64@0.21.5': - optional: true - - '@esbuild/android-arm64@0.23.0': - optional: true - - '@esbuild/android-arm@0.21.5': - optional: true - - '@esbuild/android-arm@0.23.0': - optional: true - - '@esbuild/android-x64@0.21.5': - optional: true - - '@esbuild/android-x64@0.23.0': - optional: true - - '@esbuild/darwin-arm64@0.21.5': - optional: true - - '@esbuild/darwin-arm64@0.23.0': - optional: true - - '@esbuild/darwin-x64@0.21.5': - optional: true - - '@esbuild/darwin-x64@0.23.0': - optional: true - - '@esbuild/freebsd-arm64@0.21.5': - optional: true - - '@esbuild/freebsd-arm64@0.23.0': - optional: true - - '@esbuild/freebsd-x64@0.21.5': - optional: true - - '@esbuild/freebsd-x64@0.23.0': - optional: true - - '@esbuild/linux-arm64@0.21.5': - optional: true - - '@esbuild/linux-arm64@0.23.0': - optional: true - - '@esbuild/linux-arm@0.21.5': - optional: true - - '@esbuild/linux-arm@0.23.0': - optional: true - - '@esbuild/linux-ia32@0.21.5': - optional: true - - '@esbuild/linux-ia32@0.23.0': - optional: true - - '@esbuild/linux-loong64@0.21.5': - optional: true - - '@esbuild/linux-loong64@0.23.0': - optional: true - - '@esbuild/linux-mips64el@0.21.5': - optional: true - - '@esbuild/linux-mips64el@0.23.0': - optional: true - - '@esbuild/linux-ppc64@0.21.5': - optional: true - - '@esbuild/linux-ppc64@0.23.0': - optional: true - - '@esbuild/linux-riscv64@0.21.5': - optional: true - - '@esbuild/linux-riscv64@0.23.0': - optional: true - - '@esbuild/linux-s390x@0.21.5': - optional: true - - '@esbuild/linux-s390x@0.23.0': - optional: true - - '@esbuild/linux-x64@0.21.5': - optional: true - - '@esbuild/linux-x64@0.23.0': - optional: true - - '@esbuild/netbsd-x64@0.21.5': - optional: true - - '@esbuild/netbsd-x64@0.23.0': - optional: true - - '@esbuild/openbsd-arm64@0.23.0': - optional: true - - '@esbuild/openbsd-x64@0.21.5': - optional: true - - '@esbuild/openbsd-x64@0.23.0': - optional: true - - '@esbuild/sunos-x64@0.21.5': - optional: true - - '@esbuild/sunos-x64@0.23.0': - optional: true - - '@esbuild/win32-arm64@0.21.5': - optional: true - - '@esbuild/win32-arm64@0.23.0': - optional: true - - '@esbuild/win32-ia32@0.21.5': - optional: true - - '@esbuild/win32-ia32@0.23.0': - optional: true - - '@esbuild/win32-x64@0.21.5': - optional: true - - '@esbuild/win32-x64@0.23.0': - optional: true - - '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': - dependencies: - eslint: 8.57.0 - eslint-visitor-keys: 3.4.3 - - '@eslint-community/regexpp@4.11.0': {} - - '@eslint/eslintrc@2.1.4': - dependencies: - ajv: 6.12.6 - debug: 4.3.6 - espree: 9.6.1 - globals: 13.24.0 - ignore: 5.3.2 - import-fresh: 3.3.0 - js-yaml: 4.1.0 - minimatch: 3.1.2 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@8.57.0': {} - - '@humanwhocodes/config-array@0.11.14': - dependencies: - '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6 - minimatch: 3.1.2 - transitivePeerDependencies: - - supports-color - - '@humanwhocodes/module-importer@1.0.1': {} - - '@humanwhocodes/object-schema@2.0.3': {} - - '@isaacs/cliui@8.0.2': - dependencies: - string-width: 5.1.2 - string-width-cjs: string-width@4.2.3 - strip-ansi: 7.1.0 - strip-ansi-cjs: strip-ansi@6.0.1 - wrap-ansi: 8.1.0 - wrap-ansi-cjs: wrap-ansi@7.0.0 - - '@jridgewell/gen-mapping@0.3.5': - dependencies: - '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.5.0 - '@jridgewell/trace-mapping': 0.3.25 - - '@jridgewell/resolve-uri@3.1.2': {} - - '@jridgewell/set-array@1.2.1': {} - - '@jridgewell/sourcemap-codec@1.5.0': {} - - '@jridgewell/trace-mapping@0.3.25': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.0 - - '@nodelib/fs.scandir@2.1.5': - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 - - '@nodelib/fs.stat@2.0.5': {} - - '@nodelib/fs.walk@1.2.8': - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.17.1 - - '@pkgjs/parseargs@0.11.0': - optional: true - - '@pkgr/core@0.1.1': {} - - '@rollup/rollup-android-arm-eabi@4.20.0': - optional: true - - '@rollup/rollup-android-arm64@4.20.0': - optional: true - - '@rollup/rollup-darwin-arm64@4.20.0': - optional: true - - '@rollup/rollup-darwin-x64@4.20.0': - optional: true - - '@rollup/rollup-linux-arm-gnueabihf@4.20.0': - optional: true - - '@rollup/rollup-linux-arm-musleabihf@4.20.0': - optional: true - - '@rollup/rollup-linux-arm64-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-arm64-musl@4.20.0': - optional: true - - '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-riscv64-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-s390x-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-x64-gnu@4.20.0': - optional: true - - '@rollup/rollup-linux-x64-musl@4.20.0': - optional: true - - '@rollup/rollup-win32-arm64-msvc@4.20.0': - optional: true - - '@rollup/rollup-win32-ia32-msvc@4.20.0': - optional: true - - '@rollup/rollup-win32-x64-msvc@4.20.0': - optional: true - - '@ts-morph/common@0.24.0': - dependencies: - fast-glob: 3.3.2 - minimatch: 9.0.5 - mkdirp: 3.0.1 - path-browserify: 1.0.1 - - '@types/async-retry@1.4.8': - dependencies: - '@types/retry': 0.12.5 - - '@types/commonmark@0.27.9': {} - - '@types/eslint-scope@3.7.7': - dependencies: - '@types/eslint': 8.56.11 - '@types/estree': 1.0.5 - - '@types/eslint@8.56.11': - dependencies: - '@types/estree': 1.0.5 - '@types/json-schema': 7.0.15 - - '@types/estree@1.0.5': {} - - '@types/fs-extra@11.0.4': - dependencies: - '@types/jsonfile': 6.1.4 - '@types/node': 22.3.0 - - '@types/json-schema@7.0.15': {} - - '@types/jsonfile@6.1.4': - dependencies: - '@types/node': 22.3.0 - - '@types/node-fetch@2.6.11': - dependencies: - '@types/node': 22.3.0 - form-data: 4.0.0 - - '@types/node@22.3.0': - dependencies: - undici-types: 6.18.2 - - '@types/retry@0.12.5': {} - - '@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 - graphemer: 1.4.0 - ignore: 5.3.2 - natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.3) - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) - '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6 - eslint: 8.57.0 - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/scope-manager@7.18.0': - dependencies: - '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/visitor-keys': 7.18.0 - - '@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) - debug: 4.3.6 - eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.5.3) - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/types@7.18.0': {} - - '@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.3)': - dependencies: - '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6 - globby: 11.1.0 - is-glob: 4.0.3 - minimatch: 9.0.5 - semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.5.3) - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) - eslint: 8.57.0 - transitivePeerDependencies: - - supports-color - - typescript - - '@typescript-eslint/visitor-keys@7.18.0': - dependencies: - '@typescript-eslint/types': 7.18.0 - eslint-visitor-keys: 3.4.3 - - '@ungap/structured-clone@1.2.0': {} - - '@vitest/expect@2.0.5': - dependencies: - '@vitest/spy': 2.0.5 - '@vitest/utils': 2.0.5 - chai: 5.1.1 - tinyrainbow: 1.2.0 - - '@vitest/pretty-format@2.0.5': - dependencies: - tinyrainbow: 1.2.0 - - '@vitest/runner@2.0.5': - dependencies: - '@vitest/utils': 2.0.5 - pathe: 1.1.2 - - '@vitest/snapshot@2.0.5': - dependencies: - '@vitest/pretty-format': 2.0.5 - magic-string: 0.30.11 - pathe: 1.1.2 - - '@vitest/spy@2.0.5': - dependencies: - tinyspy: 3.0.0 - - '@vitest/utils@2.0.5': - dependencies: - '@vitest/pretty-format': 2.0.5 - estree-walker: 3.0.3 - loupe: 3.1.1 - tinyrainbow: 1.2.0 - - abort-controller@3.0.0: - dependencies: - event-target-shim: 5.0.1 - - acorn-jsx@5.3.2(acorn@8.12.1): - dependencies: - acorn: 8.12.1 - - acorn@8.12.1: {} - - ajv@6.12.6: - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 - - ansi-regex@5.0.1: {} - - ansi-regex@6.0.1: {} - - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - ansi-styles@6.2.1: {} - - anymatch@3.1.3: - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.1 - - arg@4.1.3: {} - - argparse@1.0.10: - dependencies: - sprintf-js: 1.0.3 - - argparse@2.0.1: {} - - array-union@2.1.0: {} - - assertion-error@2.0.1: {} - - async-retry@1.3.3: - dependencies: - retry: 0.13.1 - - asynckit@0.4.0: {} - - atomic-sleep@1.0.0: {} - - balanced-match@1.0.2: {} - - base64-js@1.5.1: {} - - binary-extensions@2.3.0: {} - - brace-expansion@1.1.11: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - - brace-expansion@2.0.1: - dependencies: - balanced-match: 1.0.2 - - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - - buffer@6.0.3: - dependencies: - base64-js: 1.5.1 - ieee754: 1.2.1 - - cac@6.7.14: {} - - callsites@3.1.0: {} - - chai@5.1.1: - dependencies: - assertion-error: 2.0.1 - check-error: 2.1.1 - deep-eql: 5.0.2 - loupe: 3.1.1 - pathval: 2.0.0 - - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - - check-error@2.1.1: {} - - chokidar@3.6.0: - dependencies: - anymatch: 3.1.3 - braces: 3.0.3 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - - code-block-writer@13.0.2: {} - - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - - colorette@2.0.20: {} - - combined-stream@1.0.8: - dependencies: - delayed-stream: 1.0.0 - - commander@12.1.0: {} - - commonmark@0.28.1: - dependencies: - entities: 1.1.2 - mdurl: 1.0.1 - minimist: 1.2.8 - string.prototype.repeat: 0.2.0 - - concat-map@0.0.1: {} - - cross-spawn@7.0.3: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - - dateformat@4.6.3: {} - - debug@4.3.6: - dependencies: - ms: 2.1.2 - - deep-eql@5.0.2: {} - - deep-is@0.1.4: {} - - delayed-stream@1.0.0: {} - - dir-glob@3.0.1: - dependencies: - path-type: 4.0.0 - - doctrine@3.0.0: - dependencies: - esutils: 2.0.3 - - eastasianwidth@0.2.0: {} - - emoji-regex@8.0.0: {} - - emoji-regex@9.2.2: {} - - end-of-stream@1.4.4: - dependencies: - once: 1.4.0 - - entities@1.1.2: {} - - esbuild@0.21.5: - optionalDependencies: - '@esbuild/aix-ppc64': 0.21.5 - '@esbuild/android-arm': 0.21.5 - '@esbuild/android-arm64': 0.21.5 - '@esbuild/android-x64': 0.21.5 - '@esbuild/darwin-arm64': 0.21.5 - '@esbuild/darwin-x64': 0.21.5 - '@esbuild/freebsd-arm64': 0.21.5 - '@esbuild/freebsd-x64': 0.21.5 - '@esbuild/linux-arm': 0.21.5 - '@esbuild/linux-arm64': 0.21.5 - '@esbuild/linux-ia32': 0.21.5 - '@esbuild/linux-loong64': 0.21.5 - '@esbuild/linux-mips64el': 0.21.5 - '@esbuild/linux-ppc64': 0.21.5 - '@esbuild/linux-riscv64': 0.21.5 - '@esbuild/linux-s390x': 0.21.5 - '@esbuild/linux-x64': 0.21.5 - '@esbuild/netbsd-x64': 0.21.5 - '@esbuild/openbsd-x64': 0.21.5 - '@esbuild/sunos-x64': 0.21.5 - '@esbuild/win32-arm64': 0.21.5 - '@esbuild/win32-ia32': 0.21.5 - '@esbuild/win32-x64': 0.21.5 - - esbuild@0.23.0: - optionalDependencies: - '@esbuild/aix-ppc64': 0.23.0 - '@esbuild/android-arm': 0.23.0 - '@esbuild/android-arm64': 0.23.0 - '@esbuild/android-x64': 0.23.0 - '@esbuild/darwin-arm64': 0.23.0 - '@esbuild/darwin-x64': 0.23.0 - '@esbuild/freebsd-arm64': 0.23.0 - '@esbuild/freebsd-x64': 0.23.0 - '@esbuild/linux-arm': 0.23.0 - '@esbuild/linux-arm64': 0.23.0 - '@esbuild/linux-ia32': 0.23.0 - '@esbuild/linux-loong64': 0.23.0 - '@esbuild/linux-mips64el': 0.23.0 - '@esbuild/linux-ppc64': 0.23.0 - '@esbuild/linux-riscv64': 0.23.0 - '@esbuild/linux-s390x': 0.23.0 - '@esbuild/linux-x64': 0.23.0 - '@esbuild/netbsd-x64': 0.23.0 - '@esbuild/openbsd-arm64': 0.23.0 - '@esbuild/openbsd-x64': 0.23.0 - '@esbuild/sunos-x64': 0.23.0 - '@esbuild/win32-arm64': 0.23.0 - '@esbuild/win32-ia32': 0.23.0 - '@esbuild/win32-x64': 0.23.0 - - escape-string-regexp@4.0.0: {} - - eslint-config-prettier@9.1.0(eslint@8.57.0): - dependencies: - eslint: 8.57.0 - - eslint-plugin-prettier@5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2): - dependencies: - eslint: 8.57.0 - prettier: 3.3.2 - prettier-linter-helpers: 1.0.0 - synckit: 0.9.1 - optionalDependencies: - '@types/eslint': 8.56.11 - eslint-config-prettier: 9.1.0(eslint@8.57.0) - - eslint-scope@7.2.2: - dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 - - eslint-visitor-keys@3.4.3: {} - - eslint@8.57.0: - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 - '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 - '@humanwhocodes/module-importer': 1.0.1 - '@nodelib/fs.walk': 1.2.8 - '@ungap/structured-clone': 1.2.0 - ajv: 6.12.6 - chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6 - doctrine: 3.0.0 - escape-string-regexp: 4.0.0 - eslint-scope: 7.2.2 - eslint-visitor-keys: 3.4.3 - espree: 9.6.1 - esquery: 1.6.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 6.0.1 - find-up: 5.0.0 - glob-parent: 6.0.2 - globals: 13.24.0 - graphemer: 1.4.0 - ignore: 5.3.2 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - is-path-inside: 3.0.3 - js-yaml: 4.1.0 - json-stable-stringify-without-jsonify: 1.0.1 - levn: 0.4.1 - lodash.merge: 4.6.2 - minimatch: 3.1.2 - natural-compare: 1.4.0 - optionator: 0.9.4 - strip-ansi: 6.0.1 - text-table: 0.2.0 - transitivePeerDependencies: - - supports-color - - espree@9.6.1: - dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) - eslint-visitor-keys: 3.4.3 - - esprima@4.0.1: {} - - esquery@1.6.0: - dependencies: - estraverse: 5.3.0 - - esrecurse@4.3.0: - dependencies: - estraverse: 5.3.0 - - estraverse@5.3.0: {} - - estree-walker@3.0.3: - dependencies: - '@types/estree': 1.0.5 - - esutils@2.0.3: {} - - event-target-shim@5.0.1: {} - - events@3.3.0: {} - - execa@8.0.1: - dependencies: - cross-spawn: 7.0.3 - get-stream: 8.0.1 - human-signals: 5.0.0 - is-stream: 3.0.0 - merge-stream: 2.0.0 - npm-run-path: 5.3.0 - onetime: 6.0.0 - signal-exit: 4.1.0 - strip-final-newline: 3.0.0 - - fast-copy@3.0.2: {} - - fast-deep-equal@3.1.3: {} - - fast-diff@1.3.0: {} - - fast-glob@3.3.2: - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.7 - - fast-json-stable-stringify@2.1.0: {} - - fast-levenshtein@2.0.6: {} - - fast-redact@3.5.0: {} - - fast-safe-stringify@2.1.1: {} - - fastq@1.17.1: - dependencies: - reusify: 1.0.4 - - file-entry-cache@6.0.1: - dependencies: - flat-cache: 3.2.0 - - fill-range@7.1.1: - dependencies: - to-regex-range: 5.0.1 - - find-up@5.0.0: - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - - flat-cache@3.2.0: - dependencies: - flatted: 3.3.1 - keyv: 4.5.4 - rimraf: 3.0.2 - - flatted@3.3.1: {} - - foreground-child@3.3.0: - dependencies: - cross-spawn: 7.0.3 - signal-exit: 4.1.0 - - form-data@4.0.0: - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - - front-matter@4.0.2: - dependencies: - js-yaml: 3.14.1 - - fs-extra@11.2.0: - dependencies: - graceful-fs: 4.2.11 - jsonfile: 6.1.0 - universalify: 2.0.1 - - fs.realpath@1.0.0: {} - - fsevents@2.3.3: - optional: true - - get-func-name@2.0.2: {} - - get-stream@8.0.1: {} - - get-tsconfig@4.7.6: - dependencies: - resolve-pkg-maps: 1.0.0 - - glob-parent@5.1.2: - dependencies: - is-glob: 4.0.3 - - glob-parent@6.0.2: - dependencies: - is-glob: 4.0.3 - - glob@10.4.5: - dependencies: - foreground-child: 3.3.0 - jackspeak: 3.4.3 - minimatch: 9.0.5 - minipass: 7.1.2 - package-json-from-dist: 1.0.0 - path-scurry: 1.11.1 - - glob@11.0.0: - dependencies: - foreground-child: 3.3.0 - jackspeak: 4.0.1 - minimatch: 10.0.1 - minipass: 7.1.2 - package-json-from-dist: 1.0.0 - path-scurry: 2.0.0 - - glob@7.2.3: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - - globals@13.24.0: - dependencies: - type-fest: 0.20.2 - - globby@11.1.0: - dependencies: - array-union: 2.1.0 - dir-glob: 3.0.1 - fast-glob: 3.3.2 - ignore: 5.3.2 - merge2: 1.4.1 - slash: 3.0.0 - - graceful-fs@4.2.11: {} - - graphemer@1.4.0: {} - - has-flag@4.0.0: {} - - help-me@5.0.0: {} - - human-signals@5.0.0: {} - - husky@9.1.4: {} - - ieee754@1.2.1: {} - - ignore@5.3.2: {} - - import-fresh@3.3.0: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - - imurmurhash@0.1.4: {} - - inflight@1.0.6: - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - - inherits@2.0.4: {} - - is-binary-path@2.1.0: - dependencies: - binary-extensions: 2.3.0 - - is-extglob@2.1.1: {} - - is-fullwidth-code-point@3.0.0: {} - - is-glob@4.0.3: - dependencies: - is-extglob: 2.1.1 - - is-number@7.0.0: {} - - is-path-inside@3.0.3: {} - - is-stream@3.0.0: {} - - isexe@2.0.0: {} - - jackspeak@3.4.3: - dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 - - jackspeak@4.0.1: - dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 - - joycon@3.1.1: {} - - js-yaml@3.14.1: - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - - js-yaml@4.1.0: - dependencies: - argparse: 2.0.1 - - json-buffer@3.0.1: {} - - json-schema-traverse@0.4.1: {} - - json-stable-stringify-without-jsonify@1.0.1: {} - - jsonfile@6.1.0: - dependencies: - universalify: 2.0.1 - optionalDependencies: - graceful-fs: 4.2.11 - - keyv@4.5.4: - dependencies: - json-buffer: 3.0.1 - - levn@0.4.1: - dependencies: - prelude-ls: 1.2.1 - type-check: 0.4.0 - - locate-path@6.0.0: - dependencies: - p-locate: 5.0.0 - - lodash.merge@4.6.2: {} - - loupe@3.1.1: - dependencies: - get-func-name: 2.0.2 - - lru-cache@10.4.3: {} - - lru-cache@11.0.0: {} - - magic-string@0.30.11: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 - - marked@13.0.3: {} - - mdurl@1.0.1: {} - - merge-stream@2.0.0: {} - - merge2@1.4.1: {} - - micromatch@4.0.7: - dependencies: - braces: 3.0.3 - picomatch: 2.3.1 - - mime-db@1.52.0: {} - - mime-types@2.1.35: - dependencies: - mime-db: 1.52.0 - - mimic-fn@4.0.0: {} - - minimatch@10.0.1: - dependencies: - brace-expansion: 2.0.1 - - minimatch@3.1.2: - dependencies: - brace-expansion: 1.1.11 - - minimatch@9.0.5: - dependencies: - brace-expansion: 2.0.1 - - minimist@1.2.8: {} - - minipass@7.1.2: {} - - mkdirp@3.0.1: {} - - ms@2.1.2: {} - - nanoid@3.3.7: {} - - natural-compare@1.4.0: {} - - node-fetch@2.7.0: - dependencies: - whatwg-url: 5.0.0 - - normalize-path@3.0.0: {} - - npm-run-path@5.3.0: - dependencies: - path-key: 4.0.0 - - on-exit-leak-free@2.1.2: {} - - once@1.4.0: - dependencies: - wrappy: 1.0.2 - - onchange@7.1.0: - dependencies: - '@blakeembrey/deque': 1.0.5 - '@blakeembrey/template': 1.1.0 - arg: 4.1.3 - chokidar: 3.6.0 - cross-spawn: 7.0.3 - ignore: 5.3.2 - tree-kill: 1.2.2 - - onetime@6.0.0: - dependencies: - mimic-fn: 4.0.0 - - optionator@0.9.4: - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - word-wrap: 1.2.5 - - p-limit@3.1.0: - dependencies: - yocto-queue: 0.1.0 - - p-locate@5.0.0: - dependencies: - p-limit: 3.1.0 - - package-json-from-dist@1.0.0: {} - - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - - path-browserify@1.0.1: {} - - path-exists@4.0.0: {} - - path-is-absolute@1.0.1: {} - - path-key@3.1.1: {} - - path-key@4.0.0: {} - - path-scurry@1.11.1: - dependencies: - lru-cache: 10.4.3 - minipass: 7.1.2 - - path-scurry@2.0.0: - dependencies: - lru-cache: 11.0.0 - minipass: 7.1.2 - - path-type@4.0.0: {} - - pathe@1.1.2: {} - - pathval@2.0.0: {} - - picocolors@1.0.1: {} - - picomatch@2.3.1: {} - - pino-abstract-transport@1.2.0: - dependencies: - readable-stream: 4.5.2 - split2: 4.2.0 - - pino-pretty@11.2.2: - dependencies: - colorette: 2.0.20 - dateformat: 4.6.3 - fast-copy: 3.0.2 - fast-safe-stringify: 2.1.1 - help-me: 5.0.0 - joycon: 3.1.1 - minimist: 1.2.8 - on-exit-leak-free: 2.1.2 - pino-abstract-transport: 1.2.0 - pump: 3.0.0 - readable-stream: 4.5.2 - secure-json-parse: 2.7.0 - sonic-boom: 4.0.1 - strip-json-comments: 3.1.1 - - pino-std-serializers@7.0.0: {} - - pino@9.3.2: - dependencies: - atomic-sleep: 1.0.0 - fast-redact: 3.5.0 - on-exit-leak-free: 2.1.2 - pino-abstract-transport: 1.2.0 - pino-std-serializers: 7.0.0 - process-warning: 4.0.0 - quick-format-unescaped: 4.0.4 - real-require: 0.2.0 - safe-stable-stringify: 2.4.3 - sonic-boom: 4.0.1 - thread-stream: 3.1.0 - - postcss@8.4.41: - dependencies: - nanoid: 3.3.7 - picocolors: 1.0.1 - source-map-js: 1.2.0 - - prelude-ls@1.2.1: {} - - prettier-linter-helpers@1.0.0: - dependencies: - fast-diff: 1.3.0 - - prettier@3.3.2: {} - - process-warning@4.0.0: {} - - process@0.11.10: {} - - pump@3.0.0: - dependencies: - end-of-stream: 1.4.4 - once: 1.4.0 - - punycode@2.3.1: {} - - queue-microtask@1.2.3: {} - - quick-format-unescaped@4.0.4: {} - - readable-stream@4.5.2: - dependencies: - abort-controller: 3.0.0 - buffer: 6.0.3 - events: 3.3.0 - process: 0.11.10 - string_decoder: 1.3.0 - - readdirp@3.6.0: - dependencies: - picomatch: 2.3.1 - - real-require@0.2.0: {} - - resolve-from@4.0.0: {} - - resolve-pkg-maps@1.0.0: {} - - retry@0.13.1: {} - - reusify@1.0.4: {} - - rimraf@3.0.2: - dependencies: - glob: 7.2.3 - - rimraf@5.0.10: - dependencies: - glob: 10.4.5 - - rollup@4.20.0: - dependencies: - '@types/estree': 1.0.5 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.20.0 - '@rollup/rollup-android-arm64': 4.20.0 - '@rollup/rollup-darwin-arm64': 4.20.0 - '@rollup/rollup-darwin-x64': 4.20.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.20.0 - '@rollup/rollup-linux-arm-musleabihf': 4.20.0 - '@rollup/rollup-linux-arm64-gnu': 4.20.0 - '@rollup/rollup-linux-arm64-musl': 4.20.0 - '@rollup/rollup-linux-powerpc64le-gnu': 4.20.0 - '@rollup/rollup-linux-riscv64-gnu': 4.20.0 - '@rollup/rollup-linux-s390x-gnu': 4.20.0 - '@rollup/rollup-linux-x64-gnu': 4.20.0 - '@rollup/rollup-linux-x64-musl': 4.20.0 - '@rollup/rollup-win32-arm64-msvc': 4.20.0 - '@rollup/rollup-win32-ia32-msvc': 4.20.0 - '@rollup/rollup-win32-x64-msvc': 4.20.0 - fsevents: 2.3.3 - - run-parallel@1.2.0: - dependencies: - queue-microtask: 1.2.3 - - safe-buffer@5.2.1: {} - - safe-stable-stringify@2.4.3: {} - - secure-json-parse@2.7.0: {} - - semver@7.6.3: {} - - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - - siginfo@2.0.0: {} - - signal-exit@4.1.0: {} - - slash@3.0.0: {} - - sonic-boom@4.0.1: - dependencies: - atomic-sleep: 1.0.0 - - source-map-js@1.2.0: {} - - split2@4.2.0: {} - - sprintf-js@1.0.3: {} - - stackback@0.0.2: {} - - std-env@3.7.0: {} - - string-width@4.2.3: - dependencies: - emoji-regex: 8.0.0 - is-fullwidth-code-point: 3.0.0 - strip-ansi: 6.0.1 - - string-width@5.1.2: - dependencies: - eastasianwidth: 0.2.0 - emoji-regex: 9.2.2 - strip-ansi: 7.1.0 - - string.prototype.repeat@0.2.0: {} - - string_decoder@1.3.0: - dependencies: - safe-buffer: 5.2.1 - - strip-ansi@6.0.1: - dependencies: - ansi-regex: 5.0.1 - - strip-ansi@7.1.0: - dependencies: - ansi-regex: 6.0.1 - - strip-final-newline@3.0.0: {} - - strip-json-comments@3.1.1: {} - - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - - synckit@0.9.1: - dependencies: - '@pkgr/core': 0.1.1 - tslib: 2.6.3 - - text-table@0.2.0: {} - - thread-stream@3.1.0: - dependencies: - real-require: 0.2.0 - - tinybench@2.9.0: {} - - tinypool@1.0.0: {} - - tinyrainbow@1.2.0: {} - - tinyspy@3.0.0: {} - - to-regex-range@5.0.1: - dependencies: - is-number: 7.0.0 - - tr46@0.0.3: {} - - tree-kill@1.2.2: {} - - ts-api-utils@1.3.0(typescript@5.5.3): - dependencies: - typescript: 5.5.3 - - ts-morph@23.0.0: - dependencies: - '@ts-morph/common': 0.24.0 - code-block-writer: 13.0.2 - - tslib@2.6.3: {} - - tsx@4.17.0: - dependencies: - esbuild: 0.23.0 - get-tsconfig: 4.7.6 - optionalDependencies: - fsevents: 2.3.3 - - type-check@0.4.0: - dependencies: - prelude-ls: 1.2.1 - - type-fest@0.20.2: {} - - typescript-eslint@7.18.0(eslint@8.57.0)(typescript@5.5.3): - dependencies: - '@typescript-eslint/eslint-plugin': 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) - eslint: 8.57.0 - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color - - typescript@5.5.3: {} - - undici-types@6.18.2: {} - - universalify@2.0.1: {} - - uri-js@4.4.1: - dependencies: - punycode: 2.3.1 - - vite-node@2.0.5(@types/node@22.3.0): - dependencies: - cac: 6.7.14 - debug: 4.3.6 - pathe: 1.1.2 - tinyrainbow: 1.2.0 - vite: 5.4.1(@types/node@22.3.0) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - vite@5.4.1(@types/node@22.3.0): - dependencies: - esbuild: 0.21.5 - postcss: 8.4.41 - rollup: 4.20.0 - optionalDependencies: - '@types/node': 22.3.0 - fsevents: 2.3.3 - - vitest@2.0.5(@types/node@22.3.0): - dependencies: - '@ampproject/remapping': 2.3.0 - '@vitest/expect': 2.0.5 - '@vitest/pretty-format': 2.0.5 - '@vitest/runner': 2.0.5 - '@vitest/snapshot': 2.0.5 - '@vitest/spy': 2.0.5 - '@vitest/utils': 2.0.5 - chai: 5.1.1 - debug: 4.3.6 - execa: 8.0.1 - magic-string: 0.30.11 - pathe: 1.1.2 - std-env: 3.7.0 - tinybench: 2.9.0 - tinypool: 1.0.0 - tinyrainbow: 1.2.0 - vite: 5.4.1(@types/node@22.3.0) - vite-node: 2.0.5(@types/node@22.3.0) - why-is-node-running: 2.3.0 - optionalDependencies: - '@types/node': 22.3.0 - transitivePeerDependencies: - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - webidl-conversions@3.0.1: {} - - whatwg-url@5.0.0: - dependencies: - tr46: 0.0.3 - webidl-conversions: 3.0.1 - - which@2.0.2: - dependencies: - isexe: 2.0.0 - - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - - word-wrap@1.2.5: {} - - wrap-ansi@7.0.0: - dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - - wrap-ansi@8.1.0: - dependencies: - ansi-styles: 6.2.1 - string-width: 5.1.2 - strip-ansi: 7.1.0 - - wrappy@1.0.2: {} - - yocto-queue@0.1.0: {} From d139c08b707f1a9142c1facfb46a01e1410bdee2 Mon Sep 17 00:00:00 2001 From: wanl Date: Fri, 16 Aug 2024 12:51:59 +0800 Subject: [PATCH 33/35] Add lock --- .../pnpm-lock.yaml | 3214 +++++++++++++++++ 1 file changed, 3214 insertions(+) create mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml new file mode 100644 index 00000000000..4657607511f --- /dev/null +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/pnpm-lock.yaml @@ -0,0 +1,3214 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@azure-tools/openapi-tools-common': + specifier: ^1.2.2 + version: 1.2.2 + '@typescript-eslint/scope-manager': + specifier: ^7.17.0 + version: 7.18.0 + '@typescript-eslint/types': + specifier: ^7.17.0 + version: 7.18.0 + '@typescript-eslint/typescript-estree': + specifier: ^7.17.0 + version: 7.18.0(typescript@5.5.3) + '@typescript-eslint/utils': + specifier: ^7.17.0 + version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/visitor-keys': + specifier: ^7.17.0 + version: 7.18.0 + commander: + specifier: ^12.1.0 + version: 12.1.0 + fs-extra: + specifier: ^11.2.0 + version: 11.2.0 + glob: + specifier: ^11.0.0 + version: 11.0.0 + marked: + specifier: ^13.0.2 + version: 13.0.3 + pino: + specifier: ^9.3.1 + version: 9.3.2 + pino-pretty: + specifier: ^11.2.1 + version: 11.2.2 + ts-morph: + specifier: ^23.0.0 + version: 23.0.0 + typescript: + specifier: 5.5.3 + version: 5.5.3 + typescript-eslint: + specifier: ^7.17.0 + version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) + devDependencies: + '@types/eslint': + specifier: ^8.56.10 + version: 8.56.11 + '@types/eslint-scope': + specifier: ^3.7.7 + version: 3.7.7 + '@types/fs-extra': + specifier: ^11.0.4 + version: 11.0.4 + '@typescript-eslint/eslint-plugin': + specifier: ^7.17.0 + version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/parser': + specifier: ^7.17.0 + version: 7.18.0(eslint@8.57.0)(typescript@5.5.3) + eslint-config-prettier: + specifier: ^9.1.0 + version: 9.1.0(eslint@8.57.0) + eslint-plugin-prettier: + specifier: ^5.1.3 + version: 5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2) + husky: + specifier: ^9.0.11 + version: 9.1.4 + onchange: + specifier: ^7.1.0 + version: 7.1.0 + prettier: + specifier: 3.3.2 + version: 3.3.2 + rimraf: + specifier: ^5.0.7 + version: 5.0.10 + tsx: + specifier: ^4.16.2 + version: 4.17.0 + vitest: + specifier: ^2.0.4 + version: 2.0.5(@types/node@22.3.0) + +packages: + + '@ampproject/remapping@2.3.0': + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} + engines: {node: '>=6.0.0'} + + '@azure-tools/openapi-tools-common@1.2.2': + resolution: {integrity: sha512-r6oBkNsND1sA+ZjHlE1vTf2hUj4RUnbD9KG9uksEKnLVC6oOD5WuJYCO5y4xDzWWuR0x+9gImovQqXAE7ZXYfg==} + + '@blakeembrey/deque@1.0.5': + resolution: {integrity: sha512-6xnwtvp9DY1EINIKdTfvfeAtCYw4OqBZJhtiqkT3ivjnEfa25VQ3TsKvaFfKm8MyGIEfE95qLe+bNEt3nB0Ylg==} + + '@blakeembrey/template@1.1.0': + resolution: {integrity: sha512-iZf+UWfL+DogJVpd/xMQyP6X6McYd6ArdYoPMiv/zlOTzeXXfQbYxBNJJBF6tThvsjLMbA8tLjkCdm9RWMFCCw==} + + '@esbuild/aix-ppc64@0.21.5': + resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + + '@esbuild/aix-ppc64@0.23.0': + resolution: {integrity: sha512-3sG8Zwa5fMcA9bgqB8AfWPQ+HFke6uD3h1s3RIwUNK8EG7a4buxvuFTs3j1IMs2NXAk9F30C/FF4vxRgQCcmoQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.21.5': + resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm64@0.23.0': + resolution: {integrity: sha512-EuHFUYkAVfU4qBdyivULuu03FhJO4IJN9PGuABGrFy4vUuzk91P2d+npxHcFdpUnfYKy0PuV+n6bKIpHOB3prQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.21.5': + resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + + '@esbuild/android-arm@0.23.0': + resolution: {integrity: sha512-+KuOHTKKyIKgEEqKbGTK8W7mPp+hKinbMBeEnNzjJGyFcWsfrXjSTNluJHCY1RqhxFurdD8uNXQDei7qDlR6+g==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.21.5': + resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + + '@esbuild/android-x64@0.23.0': + resolution: {integrity: sha512-WRrmKidLoKDl56LsbBMhzTTBxrsVwTKdNbKDalbEZr0tcsBgCLbEtoNthOW6PX942YiYq8HzEnb4yWQMLQuipQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.21.5': + resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-arm64@0.23.0': + resolution: {integrity: sha512-YLntie/IdS31H54Ogdn+v50NuoWF5BDkEUFpiOChVa9UnKpftgwzZRrI4J132ETIi+D8n6xh9IviFV3eXdxfow==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.21.5': + resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + + '@esbuild/darwin-x64@0.23.0': + resolution: {integrity: sha512-IMQ6eme4AfznElesHUPDZ+teuGwoRmVuuixu7sv92ZkdQcPbsNHzutd+rAfaBKo8YK3IrBEi9SLLKWJdEvJniQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.21.5': + resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-arm64@0.23.0': + resolution: {integrity: sha512-0muYWCng5vqaxobq6LB3YNtevDFSAZGlgtLoAc81PjUfiFz36n4KMpwhtAd4he8ToSI3TGyuhyx5xmiWNYZFyw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.21.5': + resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.23.0': + resolution: {integrity: sha512-XKDVu8IsD0/q3foBzsXGt/KjD/yTKBCIwOHE1XwiXmrRwrX6Hbnd5Eqn/WvDekddK21tfszBSrE/WMaZh+1buQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.21.5': + resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm64@0.23.0': + resolution: {integrity: sha512-j1t5iG8jE7BhonbsEg5d9qOYcVZv/Rv6tghaXM/Ug9xahM0nX/H2gfu6X6z11QRTMT6+aywOMA8TDkhPo8aCGw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.21.5': + resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-arm@0.23.0': + resolution: {integrity: sha512-SEELSTEtOFu5LPykzA395Mc+54RMg1EUgXP+iw2SJ72+ooMwVsgfuwXo5Fn0wXNgWZsTVHwY2cg4Vi/bOD88qw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.21.5': + resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-ia32@0.23.0': + resolution: {integrity: sha512-P7O5Tkh2NbgIm2R6x1zGJJsnacDzTFcRWZyTTMgFdVit6E98LTxO+v8LCCLWRvPrjdzXHx9FEOA8oAZPyApWUA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.21.5': + resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-loong64@0.23.0': + resolution: {integrity: sha512-InQwepswq6urikQiIC/kkx412fqUZudBO4SYKu0N+tGhXRWUqAx+Q+341tFV6QdBifpjYgUndV1hhMq3WeJi7A==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.21.5': + resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-mips64el@0.23.0': + resolution: {integrity: sha512-J9rflLtqdYrxHv2FqXE2i1ELgNjT+JFURt/uDMoPQLcjWQA5wDKgQA4t/dTqGa88ZVECKaD0TctwsUfHbVoi4w==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.21.5': + resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-ppc64@0.23.0': + resolution: {integrity: sha512-cShCXtEOVc5GxU0fM+dsFD10qZ5UpcQ8AM22bYj0u/yaAykWnqXJDpd77ublcX6vdDsWLuweeuSNZk4yUxZwtw==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.21.5': + resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-riscv64@0.23.0': + resolution: {integrity: sha512-HEtaN7Y5UB4tZPeQmgz/UhzoEyYftbMXrBCUjINGjh3uil+rB/QzzpMshz3cNUxqXN7Vr93zzVtpIDL99t9aRw==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.21.5': + resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-s390x@0.23.0': + resolution: {integrity: sha512-WDi3+NVAuyjg/Wxi+o5KPqRbZY0QhI9TjrEEm+8dmpY9Xir8+HE/HNx2JoLckhKbFopW0RdO2D72w8trZOV+Wg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.21.5': + resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + + '@esbuild/linux-x64@0.23.0': + resolution: {integrity: sha512-a3pMQhUEJkITgAw6e0bWA+F+vFtCciMjW/LPtoj99MhVt+Mfb6bbL9hu2wmTZgNd994qTAEw+U/r6k3qHWWaOQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-x64@0.21.5': + resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.23.0': + resolution: {integrity: sha512-cRK+YDem7lFTs2Q5nEv/HHc4LnrfBCbH5+JHu6wm2eP+d8OZNoSMYgPZJq78vqQ9g+9+nMuIsAO7skzphRXHyw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.23.0': + resolution: {integrity: sha512-suXjq53gERueVWu0OKxzWqk7NxiUWSUlrxoZK7usiF50C6ipColGR5qie2496iKGYNLhDZkPxBI3erbnYkU0rQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.21.5': + resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.23.0': + resolution: {integrity: sha512-6p3nHpby0DM/v15IFKMjAaayFhqnXV52aEmv1whZHX56pdkK+MEaLoQWj+H42ssFarP1PcomVhbsR4pkz09qBg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.21.5': + resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + + '@esbuild/sunos-x64@0.23.0': + resolution: {integrity: sha512-BFelBGfrBwk6LVrmFzCq1u1dZbG4zy/Kp93w2+y83Q5UGYF1d8sCzeLI9NXjKyujjBBniQa8R8PzLFAUrSM9OA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.21.5': + resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-arm64@0.23.0': + resolution: {integrity: sha512-lY6AC8p4Cnb7xYHuIxQ6iYPe6MfO2CC43XXKo9nBXDb35krYt7KGhQnOkRGar5psxYkircpCqfbNDB4uJbS2jQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.21.5': + resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-ia32@0.23.0': + resolution: {integrity: sha512-7L1bHlOTcO4ByvI7OXVI5pNN6HSu6pUQq9yodga8izeuB1KcT2UkHaH6118QJwopExPn0rMHIseCTx1CRo/uNA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.21.5': + resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + + '@esbuild/win32-x64@0.23.0': + resolution: {integrity: sha512-Arm+WgUFLUATuoxCJcahGuk6Yj9Pzxd6l11Zb/2aAuv5kWWvvfhLFo2fni4uSK5vzlUdCGZ/BdV5tH8klj8p8g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@eslint-community/eslint-utils@4.4.0': + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.11.0': + resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/eslintrc@2.1.4': + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@eslint/js@8.57.0': + resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@humanwhocodes/config-array@0.11.14': + resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/object-schema@2.0.3': + resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} + deprecated: Use @eslint/object-schema instead + + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + + '@jridgewell/gen-mapping@0.3.5': + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} + engines: {node: '>=6.0.0'} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@pkgr/core@0.1.1': + resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + + '@rollup/rollup-android-arm-eabi@4.20.0': + resolution: {integrity: sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.20.0': + resolution: {integrity: sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.20.0': + resolution: {integrity: sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.20.0': + resolution: {integrity: sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-linux-arm-gnueabihf@4.20.0': + resolution: {integrity: sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.20.0': + resolution: {integrity: sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.20.0': + resolution: {integrity: sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.20.0': + resolution: {integrity: sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': + resolution: {integrity: sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.20.0': + resolution: {integrity: sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.20.0': + resolution: {integrity: sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.20.0': + resolution: {integrity: sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.20.0': + resolution: {integrity: sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.20.0': + resolution: {integrity: sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.20.0': + resolution: {integrity: sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.20.0': + resolution: {integrity: sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==} + cpu: [x64] + os: [win32] + + '@ts-morph/common@0.24.0': + resolution: {integrity: sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==} + + '@types/async-retry@1.4.8': + resolution: {integrity: sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==} + + '@types/commonmark@0.27.9': + resolution: {integrity: sha512-d3+57WgyPCcIc6oshmcPkmP4+JqRRot9eeZLsBsutWtIxwWivpoyc2wEcolOp8MyO3ZWN846mMdoR02kdHSMCw==} + + '@types/eslint-scope@3.7.7': + resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} + + '@types/eslint@8.56.11': + resolution: {integrity: sha512-sVBpJMf7UPo/wGecYOpk2aQya2VUGeHhe38WG7/mN5FufNSubf5VT9Uh9Uyp8/eLJpu1/tuhJ/qTo4mhSB4V4Q==} + + '@types/estree@1.0.5': + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + + '@types/fs-extra@11.0.4': + resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@types/jsonfile@6.1.4': + resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} + + '@types/node-fetch@2.6.11': + resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} + + '@types/node@22.3.0': + resolution: {integrity: sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==} + + '@types/retry@0.12.5': + resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==} + + '@typescript-eslint/eslint-plugin@7.18.0': + resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + '@typescript-eslint/parser': ^7.0.0 + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/parser@7.18.0': + resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/scope-manager@7.18.0': + resolution: {integrity: sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/type-utils@7.18.0': + resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/types@7.18.0': + resolution: {integrity: sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/typescript-estree@7.18.0': + resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/utils@7.18.0': + resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + + '@typescript-eslint/visitor-keys@7.18.0': + resolution: {integrity: sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@ungap/structured-clone@1.2.0': + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + + '@vitest/expect@2.0.5': + resolution: {integrity: sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==} + + '@vitest/pretty-format@2.0.5': + resolution: {integrity: sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==} + + '@vitest/runner@2.0.5': + resolution: {integrity: sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==} + + '@vitest/snapshot@2.0.5': + resolution: {integrity: sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==} + + '@vitest/spy@2.0.5': + resolution: {integrity: sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==} + + '@vitest/utils@2.0.5': + resolution: {integrity: sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==} + + abort-controller@3.0.0: + resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} + engines: {node: '>=6.5'} + + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.12.1: + resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + arg@4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + + argparse@1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + async-retry@1.3.3: + resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==} + + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + atomic-sleep@1.0.0: + resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} + engines: {node: '>=8.0.0'} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + + brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + buffer@6.0.3: + resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} + + cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + chai@5.1.1: + resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} + engines: {node: '>=12'} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + check-error@2.1.1: + resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} + engines: {node: '>= 16'} + + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + code-block-writer@13.0.2: + resolution: {integrity: sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + + commander@12.1.0: + resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} + engines: {node: '>=18'} + + commonmark@0.28.1: + resolution: {integrity: sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==} + hasBin: true + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + + dateformat@4.6.3: + resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} + + debug@4.3.6: + resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + + doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + + end-of-stream@1.4.4: + resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + + entities@1.1.2: + resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} + + esbuild@0.21.5: + resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} + engines: {node: '>=12'} + hasBin: true + + esbuild@0.23.0: + resolution: {integrity: sha512-1lvV17H2bMYda/WaFb2jLPeHU3zml2k4/yagNMG8Q/YtfMjCwEUZa2eXXMgZTVSL5q1n4H7sQ0X6CdJDqqeCFA==} + engines: {node: '>=18'} + hasBin: true + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + eslint-config-prettier@9.1.0: + resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + + eslint-plugin-prettier@5.2.1: + resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + '@types/eslint': '>=8.0.0' + eslint: '>=8.0.0' + eslint-config-prettier: '*' + prettier: '>=3.0.0' + peerDependenciesMeta: + '@types/eslint': + optional: true + eslint-config-prettier: + optional: true + + eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint@8.57.0: + resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + hasBin: true + + espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + esquery@1.6.0: + resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + event-target-shim@5.0.1: + resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} + engines: {node: '>=6'} + + events@3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + + execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} + + fast-copy@3.0.2: + resolution: {integrity: sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-diff@1.3.0: + resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} + + fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} + engines: {node: '>=8.6.0'} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + + fast-redact@3.5.0: + resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==} + engines: {node: '>=6'} + + fast-safe-stringify@2.1.1: + resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + + fastq@1.17.1: + resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} + + file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} + + flatted@3.3.1: + resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + + foreground-child@3.3.0: + resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} + engines: {node: '>=14'} + + form-data@4.0.0: + resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + engines: {node: '>= 6'} + + front-matter@4.0.2: + resolution: {integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==} + + fs-extra@11.2.0: + resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} + engines: {node: '>=14.14'} + + fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + get-func-name@2.0.2: + resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} + + get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + + get-tsconfig@4.7.6: + resolution: {integrity: sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + + glob@10.4.5: + resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + hasBin: true + + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + + glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported + + globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + + globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + help-me@5.0.0: + resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} + + human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} + + husky@9.1.4: + resolution: {integrity: sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==} + engines: {node: '>=18'} + hasBin: true + + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + + is-stream@3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + + jackspeak@4.0.1: + resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==} + engines: {node: 20 || >=22} + + joycon@3.1.1: + resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} + engines: {node: '>=10'} + + js-yaml@3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + + js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + + json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + jsonfile@6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + + keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + + loupe@3.1.1: + resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@11.0.0: + resolution: {integrity: sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==} + engines: {node: 20 || >=22} + + magic-string@0.30.11: + resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} + + marked@13.0.3: + resolution: {integrity: sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==} + engines: {node: '>= 18'} + hasBin: true + + mdurl@1.0.1: + resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} + + merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + micromatch@4.0.7: + resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} + engines: {node: '>=8.6'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + mimic-fn@4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + + mkdirp@3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} + engines: {node: '>=10'} + hasBin: true + + ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + + nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + npm-run-path@5.3.0: + resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + on-exit-leak-free@2.1.2: + resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} + engines: {node: '>=14.0.0'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + onchange@7.1.0: + resolution: {integrity: sha512-ZJcqsPiWUAUpvmnJri5TPBooqJOPmC0ttN65juhN15Q8xA+Nbg3BaxBHXQ45EistKKlKElb0edmbPWnKSBkvMg==} + hasBin: true + + onetime@6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + package-json-from-dist@1.0.0: + resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + + path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + + pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + + pathval@2.0.0: + resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} + engines: {node: '>= 14.16'} + + picocolors@1.0.1: + resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + pino-abstract-transport@1.2.0: + resolution: {integrity: sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==} + + pino-pretty@11.2.2: + resolution: {integrity: sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==} + hasBin: true + + pino-std-serializers@7.0.0: + resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==} + + pino@9.3.2: + resolution: {integrity: sha512-WtARBjgZ7LNEkrGWxMBN/jvlFiE17LTbBoH0konmBU684Kd0uIiDwBXlcTCW7iJnA6HfIKwUssS/2AC6cDEanw==} + hasBin: true + + postcss@8.4.41: + resolution: {integrity: sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==} + engines: {node: ^10 || ^12 || >=14} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + prettier-linter-helpers@1.0.0: + resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} + engines: {node: '>=6.0.0'} + + prettier@3.3.2: + resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==} + engines: {node: '>=14'} + hasBin: true + + process-warning@4.0.0: + resolution: {integrity: sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==} + + process@0.11.10: + resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} + engines: {node: '>= 0.6.0'} + + pump@3.0.0: + resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + quick-format-unescaped@4.0.4: + resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} + + readable-stream@4.5.2: + resolution: {integrity: sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + real-require@0.2.0: + resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} + engines: {node: '>= 12.13.0'} + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + + retry@0.13.1: + resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} + engines: {node: '>= 4'} + + reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + + rimraf@5.0.10: + resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==} + hasBin: true + + rollup@4.20.0: + resolution: {integrity: sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + safe-stable-stringify@2.4.3: + resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} + engines: {node: '>=10'} + + secure-json-parse@2.7.0: + resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} + + semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} + engines: {node: '>=10'} + hasBin: true + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + + sonic-boom@4.0.1: + resolution: {integrity: sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==} + + source-map-js@1.2.0: + resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} + engines: {node: '>=0.10.0'} + + split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + + sprintf-js@1.0.3: + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@3.7.0: + resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + + string.prototype.repeat@0.2.0: + resolution: {integrity: sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + + strip-final-newline@3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + synckit@0.9.1: + resolution: {integrity: sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==} + engines: {node: ^14.18.0 || >=16.0.0} + + text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + + thread-stream@3.1.0: + resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinypool@1.0.0: + resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@1.2.0: + resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} + engines: {node: '>=14.0.0'} + + tinyspy@3.0.0: + resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==} + engines: {node: '>=14.0.0'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + + ts-api-utils@1.3.0: + resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} + engines: {node: '>=16'} + peerDependencies: + typescript: '>=4.2.0' + + ts-morph@23.0.0: + resolution: {integrity: sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==} + + tslib@2.6.3: + resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} + + tsx@4.17.0: + resolution: {integrity: sha512-eN4mnDA5UMKDt4YZixo9tBioibaMBpoxBkD+rIPAjVmYERSG0/dWEY1CEFuV89CgASlKL499q8AhmkMnnjtOJg==} + engines: {node: '>=18.0.0'} + hasBin: true + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + + typescript-eslint@7.18.0: + resolution: {integrity: sha512-PonBkP603E3tt05lDkbOMyaxJjvKqQrXsnow72sVeOFINDE/qNmnnd+f9b4N+U7W6MXnnYyrhtmF2t08QWwUbA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + typescript@5.5.3: + resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.18.2: + resolution: {integrity: sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==} + + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + vite-node@2.0.5: + resolution: {integrity: sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + + vite@5.4.1: + resolution: {integrity: sha512-1oE6yuNXssjrZdblI9AfBbHCC41nnyoVoEZxQnID6yvQZAFBzxxkqoFLtHUMkYunL8hwOLEjgTuxpkRxvba3kA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + + vitest@2.0.5: + resolution: {integrity: sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/node': ^18.0.0 || >=20.0.0 + '@vitest/browser': 2.0.5 + '@vitest/ui': 2.0.5 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + + whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + +snapshots: + + '@ampproject/remapping@2.3.0': + dependencies: + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 + + '@azure-tools/openapi-tools-common@1.2.2': + dependencies: + '@types/async-retry': 1.4.8 + '@types/commonmark': 0.27.9 + '@types/node-fetch': 2.6.11 + async-retry: 1.3.3 + commonmark: 0.28.1 + front-matter: 4.0.2 + node-fetch: 2.7.0 + tslib: 2.6.3 + transitivePeerDependencies: + - encoding + + '@blakeembrey/deque@1.0.5': {} + + '@blakeembrey/template@1.1.0': {} + + '@esbuild/aix-ppc64@0.21.5': + optional: true + + '@esbuild/aix-ppc64@0.23.0': + optional: true + + '@esbuild/android-arm64@0.21.5': + optional: true + + '@esbuild/android-arm64@0.23.0': + optional: true + + '@esbuild/android-arm@0.21.5': + optional: true + + '@esbuild/android-arm@0.23.0': + optional: true + + '@esbuild/android-x64@0.21.5': + optional: true + + '@esbuild/android-x64@0.23.0': + optional: true + + '@esbuild/darwin-arm64@0.21.5': + optional: true + + '@esbuild/darwin-arm64@0.23.0': + optional: true + + '@esbuild/darwin-x64@0.21.5': + optional: true + + '@esbuild/darwin-x64@0.23.0': + optional: true + + '@esbuild/freebsd-arm64@0.21.5': + optional: true + + '@esbuild/freebsd-arm64@0.23.0': + optional: true + + '@esbuild/freebsd-x64@0.21.5': + optional: true + + '@esbuild/freebsd-x64@0.23.0': + optional: true + + '@esbuild/linux-arm64@0.21.5': + optional: true + + '@esbuild/linux-arm64@0.23.0': + optional: true + + '@esbuild/linux-arm@0.21.5': + optional: true + + '@esbuild/linux-arm@0.23.0': + optional: true + + '@esbuild/linux-ia32@0.21.5': + optional: true + + '@esbuild/linux-ia32@0.23.0': + optional: true + + '@esbuild/linux-loong64@0.21.5': + optional: true + + '@esbuild/linux-loong64@0.23.0': + optional: true + + '@esbuild/linux-mips64el@0.21.5': + optional: true + + '@esbuild/linux-mips64el@0.23.0': + optional: true + + '@esbuild/linux-ppc64@0.21.5': + optional: true + + '@esbuild/linux-ppc64@0.23.0': + optional: true + + '@esbuild/linux-riscv64@0.21.5': + optional: true + + '@esbuild/linux-riscv64@0.23.0': + optional: true + + '@esbuild/linux-s390x@0.21.5': + optional: true + + '@esbuild/linux-s390x@0.23.0': + optional: true + + '@esbuild/linux-x64@0.21.5': + optional: true + + '@esbuild/linux-x64@0.23.0': + optional: true + + '@esbuild/netbsd-x64@0.21.5': + optional: true + + '@esbuild/netbsd-x64@0.23.0': + optional: true + + '@esbuild/openbsd-arm64@0.23.0': + optional: true + + '@esbuild/openbsd-x64@0.21.5': + optional: true + + '@esbuild/openbsd-x64@0.23.0': + optional: true + + '@esbuild/sunos-x64@0.21.5': + optional: true + + '@esbuild/sunos-x64@0.23.0': + optional: true + + '@esbuild/win32-arm64@0.21.5': + optional: true + + '@esbuild/win32-arm64@0.23.0': + optional: true + + '@esbuild/win32-ia32@0.21.5': + optional: true + + '@esbuild/win32-ia32@0.23.0': + optional: true + + '@esbuild/win32-x64@0.21.5': + optional: true + + '@esbuild/win32-x64@0.23.0': + optional: true + + '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': + dependencies: + eslint: 8.57.0 + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.11.0': {} + + '@eslint/eslintrc@2.1.4': + dependencies: + ajv: 6.12.6 + debug: 4.3.6 + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.2 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@8.57.0': {} + + '@humanwhocodes/config-array@0.11.14': + dependencies: + '@humanwhocodes/object-schema': 2.0.3 + debug: 4.3.6 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/object-schema@2.0.3': {} + + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + + '@jridgewell/gen-mapping@0.3.5': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.17.1 + + '@pkgjs/parseargs@0.11.0': + optional: true + + '@pkgr/core@0.1.1': {} + + '@rollup/rollup-android-arm-eabi@4.20.0': + optional: true + + '@rollup/rollup-android-arm64@4.20.0': + optional: true + + '@rollup/rollup-darwin-arm64@4.20.0': + optional: true + + '@rollup/rollup-darwin-x64@4.20.0': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.20.0': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.20.0': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.20.0': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.20.0': + optional: true + + '@rollup/rollup-linux-x64-musl@4.20.0': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.20.0': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.20.0': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.20.0': + optional: true + + '@ts-morph/common@0.24.0': + dependencies: + fast-glob: 3.3.2 + minimatch: 9.0.5 + mkdirp: 3.0.1 + path-browserify: 1.0.1 + + '@types/async-retry@1.4.8': + dependencies: + '@types/retry': 0.12.5 + + '@types/commonmark@0.27.9': {} + + '@types/eslint-scope@3.7.7': + dependencies: + '@types/eslint': 8.56.11 + '@types/estree': 1.0.5 + + '@types/eslint@8.56.11': + dependencies: + '@types/estree': 1.0.5 + '@types/json-schema': 7.0.15 + + '@types/estree@1.0.5': {} + + '@types/fs-extra@11.0.4': + dependencies: + '@types/jsonfile': 6.1.4 + '@types/node': 22.3.0 + + '@types/json-schema@7.0.15': {} + + '@types/jsonfile@6.1.4': + dependencies: + '@types/node': 22.3.0 + + '@types/node-fetch@2.6.11': + dependencies: + '@types/node': 22.3.0 + form-data: 4.0.0 + + '@types/node@22.3.0': + dependencies: + undici-types: 6.18.2 + + '@types/retry@0.12.5': {} + + '@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@eslint-community/regexpp': 4.11.0 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/scope-manager': 7.18.0 + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/visitor-keys': 7.18.0 + eslint: 8.57.0 + graphemer: 1.4.0 + ignore: 5.3.2 + natural-compare: 1.4.0 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@typescript-eslint/scope-manager': 7.18.0 + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) + '@typescript-eslint/visitor-keys': 7.18.0 + debug: 4.3.6 + eslint: 8.57.0 + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/scope-manager@7.18.0': + dependencies: + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/visitor-keys': 7.18.0 + + '@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + debug: 4.3.6 + eslint: 8.57.0 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/types@7.18.0': {} + + '@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.3)': + dependencies: + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/visitor-keys': 7.18.0 + debug: 4.3.6 + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + ts-api-utils: 1.3.0(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.3)': + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@typescript-eslint/scope-manager': 7.18.0 + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.3) + eslint: 8.57.0 + transitivePeerDependencies: + - supports-color + - typescript + + '@typescript-eslint/visitor-keys@7.18.0': + dependencies: + '@typescript-eslint/types': 7.18.0 + eslint-visitor-keys: 3.4.3 + + '@ungap/structured-clone@1.2.0': {} + + '@vitest/expect@2.0.5': + dependencies: + '@vitest/spy': 2.0.5 + '@vitest/utils': 2.0.5 + chai: 5.1.1 + tinyrainbow: 1.2.0 + + '@vitest/pretty-format@2.0.5': + dependencies: + tinyrainbow: 1.2.0 + + '@vitest/runner@2.0.5': + dependencies: + '@vitest/utils': 2.0.5 + pathe: 1.1.2 + + '@vitest/snapshot@2.0.5': + dependencies: + '@vitest/pretty-format': 2.0.5 + magic-string: 0.30.11 + pathe: 1.1.2 + + '@vitest/spy@2.0.5': + dependencies: + tinyspy: 3.0.0 + + '@vitest/utils@2.0.5': + dependencies: + '@vitest/pretty-format': 2.0.5 + estree-walker: 3.0.3 + loupe: 3.1.1 + tinyrainbow: 1.2.0 + + abort-controller@3.0.0: + dependencies: + event-target-shim: 5.0.1 + + acorn-jsx@5.3.2(acorn@8.12.1): + dependencies: + acorn: 8.12.1 + + acorn@8.12.1: {} + + ajv@6.12.6: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + ansi-regex@5.0.1: {} + + ansi-regex@6.0.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@6.2.1: {} + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + + arg@4.1.3: {} + + argparse@1.0.10: + dependencies: + sprintf-js: 1.0.3 + + argparse@2.0.1: {} + + array-union@2.1.0: {} + + assertion-error@2.0.1: {} + + async-retry@1.3.3: + dependencies: + retry: 0.13.1 + + asynckit@0.4.0: {} + + atomic-sleep@1.0.0: {} + + balanced-match@1.0.2: {} + + base64-js@1.5.1: {} + + binary-extensions@2.3.0: {} + + brace-expansion@1.1.11: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.0.1: + dependencies: + balanced-match: 1.0.2 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + buffer@6.0.3: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + + cac@6.7.14: {} + + callsites@3.1.0: {} + + chai@5.1.1: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.1 + deep-eql: 5.0.2 + loupe: 3.1.1 + pathval: 2.0.0 + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + check-error@2.1.1: {} + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + code-block-writer@13.0.2: {} + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + colorette@2.0.20: {} + + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + + commander@12.1.0: {} + + commonmark@0.28.1: + dependencies: + entities: 1.1.2 + mdurl: 1.0.1 + minimist: 1.2.8 + string.prototype.repeat: 0.2.0 + + concat-map@0.0.1: {} + + cross-spawn@7.0.3: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + dateformat@4.6.3: {} + + debug@4.3.6: + dependencies: + ms: 2.1.2 + + deep-eql@5.0.2: {} + + deep-is@0.1.4: {} + + delayed-stream@1.0.0: {} + + dir-glob@3.0.1: + dependencies: + path-type: 4.0.0 + + doctrine@3.0.0: + dependencies: + esutils: 2.0.3 + + eastasianwidth@0.2.0: {} + + emoji-regex@8.0.0: {} + + emoji-regex@9.2.2: {} + + end-of-stream@1.4.4: + dependencies: + once: 1.4.0 + + entities@1.1.2: {} + + esbuild@0.21.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.21.5 + '@esbuild/android-arm': 0.21.5 + '@esbuild/android-arm64': 0.21.5 + '@esbuild/android-x64': 0.21.5 + '@esbuild/darwin-arm64': 0.21.5 + '@esbuild/darwin-x64': 0.21.5 + '@esbuild/freebsd-arm64': 0.21.5 + '@esbuild/freebsd-x64': 0.21.5 + '@esbuild/linux-arm': 0.21.5 + '@esbuild/linux-arm64': 0.21.5 + '@esbuild/linux-ia32': 0.21.5 + '@esbuild/linux-loong64': 0.21.5 + '@esbuild/linux-mips64el': 0.21.5 + '@esbuild/linux-ppc64': 0.21.5 + '@esbuild/linux-riscv64': 0.21.5 + '@esbuild/linux-s390x': 0.21.5 + '@esbuild/linux-x64': 0.21.5 + '@esbuild/netbsd-x64': 0.21.5 + '@esbuild/openbsd-x64': 0.21.5 + '@esbuild/sunos-x64': 0.21.5 + '@esbuild/win32-arm64': 0.21.5 + '@esbuild/win32-ia32': 0.21.5 + '@esbuild/win32-x64': 0.21.5 + + esbuild@0.23.0: + optionalDependencies: + '@esbuild/aix-ppc64': 0.23.0 + '@esbuild/android-arm': 0.23.0 + '@esbuild/android-arm64': 0.23.0 + '@esbuild/android-x64': 0.23.0 + '@esbuild/darwin-arm64': 0.23.0 + '@esbuild/darwin-x64': 0.23.0 + '@esbuild/freebsd-arm64': 0.23.0 + '@esbuild/freebsd-x64': 0.23.0 + '@esbuild/linux-arm': 0.23.0 + '@esbuild/linux-arm64': 0.23.0 + '@esbuild/linux-ia32': 0.23.0 + '@esbuild/linux-loong64': 0.23.0 + '@esbuild/linux-mips64el': 0.23.0 + '@esbuild/linux-ppc64': 0.23.0 + '@esbuild/linux-riscv64': 0.23.0 + '@esbuild/linux-s390x': 0.23.0 + '@esbuild/linux-x64': 0.23.0 + '@esbuild/netbsd-x64': 0.23.0 + '@esbuild/openbsd-arm64': 0.23.0 + '@esbuild/openbsd-x64': 0.23.0 + '@esbuild/sunos-x64': 0.23.0 + '@esbuild/win32-arm64': 0.23.0 + '@esbuild/win32-ia32': 0.23.0 + '@esbuild/win32-x64': 0.23.0 + + escape-string-regexp@4.0.0: {} + + eslint-config-prettier@9.1.0(eslint@8.57.0): + dependencies: + eslint: 8.57.0 + + eslint-plugin-prettier@5.2.1(@types/eslint@8.56.11)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.2): + dependencies: + eslint: 8.57.0 + prettier: 3.3.2 + prettier-linter-helpers: 1.0.0 + synckit: 0.9.1 + optionalDependencies: + '@types/eslint': 8.56.11 + eslint-config-prettier: 9.1.0(eslint@8.57.0) + + eslint-scope@7.2.2: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint@8.57.0: + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/regexpp': 4.11.0 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.57.0 + '@humanwhocodes/config-array': 0.11.14 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.6 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.6.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.24.0 + graphemer: 1.4.0 + ignore: 5.3.2 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.4 + strip-ansi: 6.0.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + + espree@9.6.1: + dependencies: + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) + eslint-visitor-keys: 3.4.3 + + esprima@4.0.1: {} + + esquery@1.6.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.5 + + esutils@2.0.3: {} + + event-target-shim@5.0.1: {} + + events@3.3.0: {} + + execa@8.0.1: + dependencies: + cross-spawn: 7.0.3 + get-stream: 8.0.1 + human-signals: 5.0.0 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.3.0 + onetime: 6.0.0 + signal-exit: 4.1.0 + strip-final-newline: 3.0.0 + + fast-copy@3.0.2: {} + + fast-deep-equal@3.1.3: {} + + fast-diff@1.3.0: {} + + fast-glob@3.3.2: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.7 + + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + + fast-redact@3.5.0: {} + + fast-safe-stringify@2.1.1: {} + + fastq@1.17.1: + dependencies: + reusify: 1.0.4 + + file-entry-cache@6.0.1: + dependencies: + flat-cache: 3.2.0 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@3.2.0: + dependencies: + flatted: 3.3.1 + keyv: 4.5.4 + rimraf: 3.0.2 + + flatted@3.3.1: {} + + foreground-child@3.3.0: + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + + form-data@4.0.0: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.35 + + front-matter@4.0.2: + dependencies: + js-yaml: 3.14.1 + + fs-extra@11.2.0: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.1 + + fs.realpath@1.0.0: {} + + fsevents@2.3.3: + optional: true + + get-func-name@2.0.2: {} + + get-stream@8.0.1: {} + + get-tsconfig@4.7.6: + dependencies: + resolve-pkg-maps: 1.0.0 + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + + glob@10.4.5: + dependencies: + foreground-child: 3.3.0 + jackspeak: 3.4.3 + minimatch: 9.0.5 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 1.11.1 + + glob@11.0.0: + dependencies: + foreground-child: 3.3.0 + jackspeak: 4.0.1 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 2.0.0 + + glob@7.2.3: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + + globals@13.24.0: + dependencies: + type-fest: 0.20.2 + + globby@11.1.0: + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.2 + ignore: 5.3.2 + merge2: 1.4.1 + slash: 3.0.0 + + graceful-fs@4.2.11: {} + + graphemer@1.4.0: {} + + has-flag@4.0.0: {} + + help-me@5.0.0: {} + + human-signals@5.0.0: {} + + husky@9.1.4: {} + + ieee754@1.2.1: {} + + ignore@5.3.2: {} + + import-fresh@3.3.0: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + imurmurhash@0.1.4: {} + + inflight@1.0.6: + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + inherits@2.0.4: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + + is-path-inside@3.0.3: {} + + is-stream@3.0.0: {} + + isexe@2.0.0: {} + + jackspeak@3.4.3: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + jackspeak@4.0.1: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + joycon@3.1.1: {} + + js-yaml@3.14.1: + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + + js-yaml@4.1.0: + dependencies: + argparse: 2.0.1 + + json-buffer@3.0.1: {} + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + jsonfile@6.1.0: + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + + keyv@4.5.4: + dependencies: + json-buffer: 3.0.1 + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + lodash.merge@4.6.2: {} + + loupe@3.1.1: + dependencies: + get-func-name: 2.0.2 + + lru-cache@10.4.3: {} + + lru-cache@11.0.0: {} + + magic-string@0.30.11: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + marked@13.0.3: {} + + mdurl@1.0.1: {} + + merge-stream@2.0.0: {} + + merge2@1.4.1: {} + + micromatch@4.0.7: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + mimic-fn@4.0.0: {} + + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.11 + + minimatch@9.0.5: + dependencies: + brace-expansion: 2.0.1 + + minimist@1.2.8: {} + + minipass@7.1.2: {} + + mkdirp@3.0.1: {} + + ms@2.1.2: {} + + nanoid@3.3.7: {} + + natural-compare@1.4.0: {} + + node-fetch@2.7.0: + dependencies: + whatwg-url: 5.0.0 + + normalize-path@3.0.0: {} + + npm-run-path@5.3.0: + dependencies: + path-key: 4.0.0 + + on-exit-leak-free@2.1.2: {} + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + onchange@7.1.0: + dependencies: + '@blakeembrey/deque': 1.0.5 + '@blakeembrey/template': 1.1.0 + arg: 4.1.3 + chokidar: 3.6.0 + cross-spawn: 7.0.3 + ignore: 5.3.2 + tree-kill: 1.2.2 + + onetime@6.0.0: + dependencies: + mimic-fn: 4.0.0 + + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + package-json-from-dist@1.0.0: {} + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + path-browserify@1.0.1: {} + + path-exists@4.0.0: {} + + path-is-absolute@1.0.1: {} + + path-key@3.1.1: {} + + path-key@4.0.0: {} + + path-scurry@1.11.1: + dependencies: + lru-cache: 10.4.3 + minipass: 7.1.2 + + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.0 + minipass: 7.1.2 + + path-type@4.0.0: {} + + pathe@1.1.2: {} + + pathval@2.0.0: {} + + picocolors@1.0.1: {} + + picomatch@2.3.1: {} + + pino-abstract-transport@1.2.0: + dependencies: + readable-stream: 4.5.2 + split2: 4.2.0 + + pino-pretty@11.2.2: + dependencies: + colorette: 2.0.20 + dateformat: 4.6.3 + fast-copy: 3.0.2 + fast-safe-stringify: 2.1.1 + help-me: 5.0.0 + joycon: 3.1.1 + minimist: 1.2.8 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 1.2.0 + pump: 3.0.0 + readable-stream: 4.5.2 + secure-json-parse: 2.7.0 + sonic-boom: 4.0.1 + strip-json-comments: 3.1.1 + + pino-std-serializers@7.0.0: {} + + pino@9.3.2: + dependencies: + atomic-sleep: 1.0.0 + fast-redact: 3.5.0 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 1.2.0 + pino-std-serializers: 7.0.0 + process-warning: 4.0.0 + quick-format-unescaped: 4.0.4 + real-require: 0.2.0 + safe-stable-stringify: 2.4.3 + sonic-boom: 4.0.1 + thread-stream: 3.1.0 + + postcss@8.4.41: + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.1 + source-map-js: 1.2.0 + + prelude-ls@1.2.1: {} + + prettier-linter-helpers@1.0.0: + dependencies: + fast-diff: 1.3.0 + + prettier@3.3.2: {} + + process-warning@4.0.0: {} + + process@0.11.10: {} + + pump@3.0.0: + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + + punycode@2.3.1: {} + + queue-microtask@1.2.3: {} + + quick-format-unescaped@4.0.4: {} + + readable-stream@4.5.2: + dependencies: + abort-controller: 3.0.0 + buffer: 6.0.3 + events: 3.3.0 + process: 0.11.10 + string_decoder: 1.3.0 + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + + real-require@0.2.0: {} + + resolve-from@4.0.0: {} + + resolve-pkg-maps@1.0.0: {} + + retry@0.13.1: {} + + reusify@1.0.4: {} + + rimraf@3.0.2: + dependencies: + glob: 7.2.3 + + rimraf@5.0.10: + dependencies: + glob: 10.4.5 + + rollup@4.20.0: + dependencies: + '@types/estree': 1.0.5 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.20.0 + '@rollup/rollup-android-arm64': 4.20.0 + '@rollup/rollup-darwin-arm64': 4.20.0 + '@rollup/rollup-darwin-x64': 4.20.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.20.0 + '@rollup/rollup-linux-arm-musleabihf': 4.20.0 + '@rollup/rollup-linux-arm64-gnu': 4.20.0 + '@rollup/rollup-linux-arm64-musl': 4.20.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.20.0 + '@rollup/rollup-linux-riscv64-gnu': 4.20.0 + '@rollup/rollup-linux-s390x-gnu': 4.20.0 + '@rollup/rollup-linux-x64-gnu': 4.20.0 + '@rollup/rollup-linux-x64-musl': 4.20.0 + '@rollup/rollup-win32-arm64-msvc': 4.20.0 + '@rollup/rollup-win32-ia32-msvc': 4.20.0 + '@rollup/rollup-win32-x64-msvc': 4.20.0 + fsevents: 2.3.3 + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + safe-buffer@5.2.1: {} + + safe-stable-stringify@2.4.3: {} + + secure-json-parse@2.7.0: {} + + semver@7.6.3: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + siginfo@2.0.0: {} + + signal-exit@4.1.0: {} + + slash@3.0.0: {} + + sonic-boom@4.0.1: + dependencies: + atomic-sleep: 1.0.0 + + source-map-js@1.2.0: {} + + split2@4.2.0: {} + + sprintf-js@1.0.3: {} + + stackback@0.0.2: {} + + std-env@3.7.0: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + + string.prototype.repeat@0.2.0: {} + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.1.0: + dependencies: + ansi-regex: 6.0.1 + + strip-final-newline@3.0.0: {} + + strip-json-comments@3.1.1: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + synckit@0.9.1: + dependencies: + '@pkgr/core': 0.1.1 + tslib: 2.6.3 + + text-table@0.2.0: {} + + thread-stream@3.1.0: + dependencies: + real-require: 0.2.0 + + tinybench@2.9.0: {} + + tinypool@1.0.0: {} + + tinyrainbow@1.2.0: {} + + tinyspy@3.0.0: {} + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tr46@0.0.3: {} + + tree-kill@1.2.2: {} + + ts-api-utils@1.3.0(typescript@5.5.3): + dependencies: + typescript: 5.5.3 + + ts-morph@23.0.0: + dependencies: + '@ts-morph/common': 0.24.0 + code-block-writer: 13.0.2 + + tslib@2.6.3: {} + + tsx@4.17.0: + dependencies: + esbuild: 0.23.0 + get-tsconfig: 4.7.6 + optionalDependencies: + fsevents: 2.3.3 + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + + type-fest@0.20.2: {} + + typescript-eslint@7.18.0(eslint@8.57.0)(typescript@5.5.3): + dependencies: + '@typescript-eslint/eslint-plugin': 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.3) + eslint: 8.57.0 + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + + typescript@5.5.3: {} + + undici-types@6.18.2: {} + + universalify@2.0.1: {} + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + + vite-node@2.0.5(@types/node@22.3.0): + dependencies: + cac: 6.7.14 + debug: 4.3.6 + pathe: 1.1.2 + tinyrainbow: 1.2.0 + vite: 5.4.1(@types/node@22.3.0) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + + vite@5.4.1(@types/node@22.3.0): + dependencies: + esbuild: 0.21.5 + postcss: 8.4.41 + rollup: 4.20.0 + optionalDependencies: + '@types/node': 22.3.0 + fsevents: 2.3.3 + + vitest@2.0.5(@types/node@22.3.0): + dependencies: + '@ampproject/remapping': 2.3.0 + '@vitest/expect': 2.0.5 + '@vitest/pretty-format': 2.0.5 + '@vitest/runner': 2.0.5 + '@vitest/snapshot': 2.0.5 + '@vitest/spy': 2.0.5 + '@vitest/utils': 2.0.5 + chai: 5.1.1 + debug: 4.3.6 + execa: 8.0.1 + magic-string: 0.30.11 + pathe: 1.1.2 + std-env: 3.7.0 + tinybench: 2.9.0 + tinypool: 1.0.0 + tinyrainbow: 1.2.0 + vite: 5.4.1(@types/node@22.3.0) + vite-node: 2.0.5(@types/node@22.3.0) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 22.3.0 + transitivePeerDependencies: + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + + webidl-conversions@3.0.1: {} + + whatwg-url@5.0.0: + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + word-wrap@1.2.5: {} + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + + wrappy@1.0.2: {} + + yocto-queue@0.1.0: {} From e09ac84a206f180a138ab90418ca1d8f79ebc3cf Mon Sep 17 00:00:00 2001 From: wanl Date: Mon, 19 Aug 2024 21:06:53 +0800 Subject: [PATCH 34/35] Add lock Change test case to the same with pr Mix merge conflict... TT Fix CI Add recursive test Fix install rollup failure in ci bug Try optional dep for CI issue Add all supported platform Change tmp folder Update to support latest emitter Update test Update Update --- .gitignore | 3 +- tools/js-sdk-release-tools/package-lock.json | 5569 +++++++++++++++++ tools/js-sdk-release-tools/package.json | 25 +- .../baseline-package/CHANGELOG.md | 23 - .../baseline-package/package.json | 112 +- .../review/ai-translation-text.api.md | 650 -- .../review/arm-servicefabric.api.md | 2071 ++++++ .../baseline-package/src/customClient.ts | 114 - .../baseline-package/src/models.ts | 18 - .../baseline-package/src/parameters.ts | 292 - .../baseline-package/tsconfig.json | 11 - .../current-package/CHANGELOG.md | 30 +- .../current-package/package.json | 74 +- .../review/ai-translation-text.api.md | 650 -- .../review/arm-servicefabric.api.md | 2072 ++++++ .../current-package/src/customClient.ts | 118 - .../current-package/src/models.ts | 18 - .../current-package/src/parameters.ts | 292 - .../src/serviceFabricClient.ts | 42 + .../current-package/tsconfig.json | 17 +- .../package.json | 2 +- .../src/tests/rest-level-client-rule.test.ts | 5 +- .../src/changelog/changelogGenerator.ts | 16 +- .../src/common/interfaces.ts | 2 +- .../hlc/apiVersion/apiVersionTypeExtractor.ts | 2 +- ...utomaticGenerateChangeLogAndBumpVersion.ts | 2 +- .../llc/apiVersion/apiVersionTypeExtractor.ts | 30 +- .../mlc/apiVersion/apiVersionTypeExtractor.ts | 17 +- .../apiVersion/apiVersionExtractor.test.ts | 39 +- .../new-context/src/api/newContext.ts | 68 + .../testCases/rlc-client/src/newClient.ts | 68 + .../testCases/rlc-context/src/newContext.ts | 68 + .../test/changelog/changelogGenerator.test.ts | 27 +- .../xlc/apiVersion/apiVersionTypeExtractor.ts | 8 +- .../src/xlc/apiVersion/utils.ts | 39 +- 35 files changed, 10203 insertions(+), 2391 deletions(-) create mode 100644 tools/js-sdk-release-tools/package-lock.json delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md create mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/arm-servicefabric.api.md delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md create mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/arm-servicefabric.api.md delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts delete mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts create mode 100644 tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serviceFabricClient.ts create mode 100644 tools/js-sdk-release-tools/src/test/apiVersion/testCases/new-context/src/api/newContext.ts create mode 100644 tools/js-sdk-release-tools/src/test/apiVersion/testCases/rlc-client/src/newClient.ts create mode 100644 tools/js-sdk-release-tools/src/test/apiVersion/testCases/rlc-context/src/newContext.ts diff --git a/.gitignore b/.gitignore index 62e1df65316..532105aa4cb 100644 --- a/.gitignore +++ b/.gitignore @@ -517,4 +517,5 @@ tools/apiview/emitters/typespec-apiview/temp/ # JS SDK Release Tools !tools/js-sdk-release-tools/packages/* -tools/js-sdk-release-tools/.tmp/* \ No newline at end of file +tools/js-sdk-release-tools/.tmp/* +tools/js-sdk-release-tools/.tmp-detect/ diff --git a/tools/js-sdk-release-tools/package-lock.json b/tools/js-sdk-release-tools/package-lock.json new file mode 100644 index 00000000000..8f0be8ac1e6 --- /dev/null +++ b/tools/js-sdk-release-tools/package-lock.json @@ -0,0 +1,5569 @@ +{ + "name": "@azure-tools/js-sdk-release-tools", + "version": "2.7.11", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@azure-tools/js-sdk-release-tools", + "version": "2.7.11", + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@ts-common/azure-js-dev-tools": "^21.1.0", + "colors": "1.4.0", + "command-line-args": "^5.1.1", + "comment-json": "^4.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "js-yaml": "^4.1.0", + "parse-ts-to-ast": "^0.1.1", + "semver": "^7.3.5", + "shelljs": "^0.8.4", + "shx": "^0.3.4", + "simple-git": "^3.5.0", + "ts-morph": "^23.0.0", + "tslib": "^1.9.3", + "typescript-codegen-breaking-change-detector": "0.4.11", + "unixify": "^1.0.0", + "winston": "^3.13.1", + "yaml": "^1.10.2" + }, + "bin": { + "changelog-tool": "dist/changelogToolCli.js", + "code-gen-pipeline": "dist/autoGenerateInPipeline.js", + "hlc-code-gen": "dist/hlcCodeGenCli.js", + "hlc-code-gen-for-pipeline": "dist/autoGenerateInPipeline.js", + "rlc-code-gen": "dist/rlcCodegenCli.js" + }, + "devDependencies": { + "@types/node": "^20.12.12", + "@types/shelljs": "^0.8.15", + "@types/unixify": "^1.0.2", + "rimraf": "^3.0.2", + "tsx": "^4.16.5", + "typescript": "5.5.3", + "vitest": "2.0.5" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.20.0", + "@rollup/rollup-android-arm64": "4.20.0", + "@rollup/rollup-darwin-arm64": "4.20.0", + "@rollup/rollup-darwin-x64": "4.20.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.20.0", + "@rollup/rollup-linux-arm-musleabihf": "4.20.0", + "@rollup/rollup-linux-arm64-gnu": "4.20.0", + "@rollup/rollup-linux-arm64-musl": "4.20.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0", + "@rollup/rollup-linux-riscv64-gnu": "4.20.0", + "@rollup/rollup-linux-s390x-gnu": "4.20.0", + "@rollup/rollup-linux-x64-gnu": "4.20.0", + "@rollup/rollup-linux-x64-musl": "4.20.0", + "@rollup/rollup-win32-arm64-msvc": "4.20.0", + "@rollup/rollup-win32-ia32-msvc": "4.20.0", + "@rollup/rollup-win32-x64-msvc": "4.20.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@azure-tools/openapi-tools-common": { + "version": "1.2.2", + "license": "MIT", + "dependencies": { + "@types/async-retry": "^1.4.1", + "@types/commonmark": "^0.27.3", + "@types/node-fetch": "^2.5.7", + "async-retry": "^1.2.3", + "commonmark": "^0.28.1", + "front-matter": "^4.0.2", + "node-fetch": "^2.6.0", + "tslib": "^2.0.0" + } + }, + "node_modules/@azure-tools/openapi-tools-common/node_modules/tslib": { + "version": "2.6.3", + "license": "0BSD" + }, + "node_modules/@azure/abort-controller": { + "version": "2.1.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@azure/abort-controller/node_modules/tslib": { + "version": "2.6.3", + "license": "0BSD" + }, + "node_modules/@azure/core-auth": { + "version": "1.7.2", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.0.0", + "@azure/core-util": "^1.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@azure/core-auth/node_modules/tslib": { + "version": "2.6.3", + "license": "0BSD" + }, + "node_modules/@azure/core-util": { + "version": "1.9.2", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@azure/core-util/node_modules/tslib": { + "version": "2.6.3", + "license": "0BSD" + }, + "node_modules/@azure/logger-js": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "tslib": "^1.9.3" + } + }, + "node_modules/@azure/ms-rest-js": { + "version": "2.7.0", + "license": "MIT", + "dependencies": { + "@azure/core-auth": "^1.1.4", + "abort-controller": "^3.0.0", + "form-data": "^2.5.0", + "node-fetch": "^2.6.7", + "tslib": "^1.10.0", + "tunnel": "0.0.6", + "uuid": "^8.3.2", + "xml2js": "^0.5.0" + } + }, + "node_modules/@azure/storage-blob": { + "version": "10.5.0", + "license": "MIT", + "dependencies": { + "@azure/ms-rest-js": "^2.0.0", + "events": "^3.0.0", + "tslib": "^1.9.3" + } + }, + "node_modules/@colors/colors": { + "version": "1.6.0", + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@dabh/diagnostics": { + "version": "2.0.3", + "license": "MIT", + "dependencies": { + "colorspace": "1.1.x", + "enabled": "2.0.x", + "kuler": "^2.0.0" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.23.0", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.11.0", + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "license": "MIT", + "peer": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "license": "MIT", + "peer": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "license": "BSD-3-Clause", + "peer": true + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "license": "MIT" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@kwsites/file-exists": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "debug": "^4.1.1" + } + }, + "node_modules/@kwsites/promise-deferred": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@octokit/auth-token": { + "version": "2.5.0", + "license": "MIT", + "dependencies": { + "@octokit/types": "^6.0.3" + } + }, + "node_modules/@octokit/core": { + "version": "6.1.2", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/auth-token": "^5.0.0", + "@octokit/graphql": "^8.0.0", + "@octokit/request": "^9.0.0", + "@octokit/request-error": "^6.0.1", + "@octokit/types": "^13.0.0", + "before-after-hook": "^3.0.2", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core/node_modules/@octokit/auth-token": { + "version": "5.1.1", + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core/node_modules/@octokit/endpoint": { + "version": "10.1.1", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/types": "^13.0.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core/node_modules/@octokit/openapi-types": { + "version": "22.2.0", + "license": "MIT", + "peer": true + }, + "node_modules/@octokit/core/node_modules/@octokit/request": { + "version": "9.1.3", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/endpoint": "^10.0.0", + "@octokit/request-error": "^6.0.1", + "@octokit/types": "^13.1.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core/node_modules/@octokit/request-error": { + "version": "6.1.4", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/types": "^13.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core/node_modules/@octokit/types": { + "version": "13.5.0", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/openapi-types": "^22.2.0" + } + }, + "node_modules/@octokit/core/node_modules/before-after-hook": { + "version": "3.0.2", + "license": "Apache-2.0", + "peer": true + }, + "node_modules/@octokit/core/node_modules/universal-user-agent": { + "version": "7.0.2", + "license": "ISC", + "peer": true + }, + "node_modules/@octokit/endpoint": { + "version": "6.0.12", + "license": "MIT", + "dependencies": { + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/endpoint/node_modules/universal-user-agent": { + "version": "6.0.1", + "license": "ISC" + }, + "node_modules/@octokit/graphql": { + "version": "8.1.1", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/request": "^9.0.0", + "@octokit/types": "^13.0.0", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/graphql/node_modules/@octokit/endpoint": { + "version": "10.1.1", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/types": "^13.0.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": { + "version": "22.2.0", + "license": "MIT", + "peer": true + }, + "node_modules/@octokit/graphql/node_modules/@octokit/request": { + "version": "9.1.3", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/endpoint": "^10.0.0", + "@octokit/request-error": "^6.0.1", + "@octokit/types": "^13.1.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/graphql/node_modules/@octokit/request-error": { + "version": "6.1.4", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/types": "^13.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/graphql/node_modules/@octokit/types": { + "version": "13.5.0", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/openapi-types": "^22.2.0" + } + }, + "node_modules/@octokit/graphql/node_modules/universal-user-agent": { + "version": "7.0.2", + "license": "ISC", + "peer": true + }, + "node_modules/@octokit/openapi-types": { + "version": "12.11.0", + "license": "MIT" + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "1.1.2", + "license": "MIT", + "dependencies": { + "@octokit/types": "^2.0.1" + } + }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "2.16.2", + "license": "MIT", + "dependencies": { + "@types/node": ">= 8" + } + }, + "node_modules/@octokit/plugin-request-log": { + "version": "1.0.4", + "license": "MIT", + "peerDependencies": { + "@octokit/core": ">=3" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "2.4.0", + "license": "MIT", + "dependencies": { + "@octokit/types": "^2.0.1", + "deprecation": "^2.3.1" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { + "version": "2.16.2", + "license": "MIT", + "dependencies": { + "@types/node": ">= 8" + } + }, + "node_modules/@octokit/request": { + "version": "5.6.3", + "license": "MIT", + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/request-error": { + "version": "1.2.1", + "license": "MIT", + "dependencies": { + "@octokit/types": "^2.0.0", + "deprecation": "^2.0.0", + "once": "^1.4.0" + } + }, + "node_modules/@octokit/request-error/node_modules/@octokit/types": { + "version": "2.16.2", + "license": "MIT", + "dependencies": { + "@types/node": ">= 8" + } + }, + "node_modules/@octokit/request/node_modules/@octokit/request-error": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" + } + }, + "node_modules/@octokit/request/node_modules/universal-user-agent": { + "version": "6.0.1", + "license": "ISC" + }, + "node_modules/@octokit/rest": { + "version": "16.43.2", + "license": "MIT", + "dependencies": { + "@octokit/auth-token": "^2.4.0", + "@octokit/plugin-paginate-rest": "^1.1.1", + "@octokit/plugin-request-log": "^1.0.0", + "@octokit/plugin-rest-endpoint-methods": "2.4.0", + "@octokit/request": "^5.2.0", + "@octokit/request-error": "^1.0.2", + "atob-lite": "^2.0.0", + "before-after-hook": "^2.0.0", + "btoa-lite": "^1.0.0", + "deprecation": "^2.0.0", + "lodash.get": "^4.4.2", + "lodash.set": "^4.3.2", + "lodash.uniq": "^4.5.0", + "octokit-pagination-methods": "^1.1.0", + "once": "^1.4.0", + "universal-user-agent": "^4.0.0" + } + }, + "node_modules/@octokit/types": { + "version": "6.41.0", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^12.11.0" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.20.0.tgz", + "integrity": "sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.20.0.tgz", + "integrity": "sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.20.0.tgz", + "integrity": "sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.20.0.tgz", + "integrity": "sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.20.0.tgz", + "integrity": "sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.20.0.tgz", + "integrity": "sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.20.0.tgz", + "integrity": "sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.20.0.tgz", + "integrity": "sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.20.0.tgz", + "integrity": "sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==", + "cpu": [ + "ppc64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.20.0.tgz", + "integrity": "sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.20.0.tgz", + "integrity": "sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.20.0.tgz", + "integrity": "sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.20.0.tgz", + "integrity": "sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.20.0.tgz", + "integrity": "sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.20.0.tgz", + "integrity": "sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.20.0.tgz", + "integrity": "sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@ts-common/azure-js-dev-tools": { + "version": "21.4.0", + "license": "MIT", + "dependencies": { + "@azure/logger-js": "^1.3.2", + "@azure/storage-blob": "^10.3.0", + "@octokit/rest": "^16.28.2", + "@types/archiver": "^2.1.2", + "@types/commonmark": "^0.27.1", + "@types/js-yaml": "^3.12.0", + "archiver": "^3.0.0", + "commonmark": "^0.28.1", + "isomorphic-git": "^0.55.2", + "js-yaml": "^3.12.1", + "yargs": "^12.0.5" + } + }, + "node_modules/@ts-common/azure-js-dev-tools/node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@ts-common/azure-js-dev-tools/node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@ts-morph/common": { + "version": "0.24.0", + "license": "MIT", + "dependencies": { + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" + } + }, + "node_modules/@ts-morph/common/node_modules/brace-expansion": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "9.0.5", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@types/archiver": { + "version": "2.1.3", + "license": "MIT", + "dependencies": { + "@types/glob": "*" + } + }, + "node_modules/@types/async-retry": { + "version": "1.4.8", + "license": "MIT", + "dependencies": { + "@types/retry": "*" + } + }, + "node_modules/@types/commonmark": { + "version": "0.27.9", + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/glob": { + "version": "8.1.0", + "license": "MIT", + "dependencies": { + "@types/minimatch": "^5.1.2", + "@types/node": "*" + } + }, + "node_modules/@types/js-yaml": { + "version": "3.12.10", + "license": "MIT" + }, + "node_modules/@types/minimatch": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.14.15", + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/node-fetch": { + "version": "2.6.11", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/node-fetch/node_modules/form-data": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/retry": { + "version": "0.12.5", + "license": "MIT" + }, + "node_modules/@types/shelljs": { + "version": "0.8.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/glob": "~7.2.0", + "@types/node": "*" + } + }, + "node_modules/@types/shelljs/node_modules/@types/glob": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/triple-beam": { + "version": "1.3.5", + "license": "MIT" + }, + "node_modules/@types/unixify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/unixify/-/unixify-1.0.2.tgz", + "integrity": "sha512-N2N0V5iOmxAWdVyiTWLBvLDYTPXSMzIXjxybr9sKwwr4ybFZ+JYc33yoAxnA1RvOVolNG3Fce0WXwiMcDaPh+w==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.18.0", + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "7.18.0", + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.18.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "7.18.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "7.18.0", + "license": "MIT", + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.18.0", + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "7.18.0", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.18.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "license": "ISC", + "peer": true + }, + "node_modules/@vitest/expect": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.0.5.tgz", + "integrity": "sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==", + "dev": true, + "dependencies": { + "@vitest/spy": "2.0.5", + "@vitest/utils": "2.0.5", + "chai": "^5.1.1", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/pretty-format": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.0.5.tgz", + "integrity": "sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==", + "dev": true, + "dependencies": { + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.0.5.tgz", + "integrity": "sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==", + "dev": true, + "dependencies": { + "@vitest/utils": "2.0.5", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.0.5.tgz", + "integrity": "sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==", + "dev": true, + "dependencies": { + "@vitest/pretty-format": "2.0.5", + "magic-string": "^0.30.10", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.0.5.tgz", + "integrity": "sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==", + "dev": true, + "dependencies": { + "tinyspy": "^3.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.0.5.tgz", + "integrity": "sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==", + "dev": true, + "dependencies": { + "@vitest/pretty-format": "2.0.5", + "estree-walker": "^3.0.3", + "loupe": "^3.1.1", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.12.1", + "license": "MIT", + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "license": "MIT", + "peer": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "3.0.1", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/archiver": { + "version": "3.1.1", + "license": "MIT", + "dependencies": { + "archiver-utils": "^2.1.0", + "async": "^2.6.3", + "buffer-crc32": "^0.2.1", + "glob": "^7.1.4", + "readable-stream": "^3.4.0", + "tar-stream": "^2.1.0", + "zip-stream": "^2.1.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/archiver-utils": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "glob": "^7.1.4", + "graceful-fs": "^4.2.0", + "lazystream": "^1.0.0", + "lodash.defaults": "^4.2.0", + "lodash.difference": "^4.5.0", + "lodash.flatten": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.union": "^4.6.0", + "normalize-path": "^3.0.0", + "readable-stream": "^2.0.0" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/archiver-utils/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/archiver-utils/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/archiver-utils/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/archiver-utils/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/archiver/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/array-back": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/array-timsort": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/array-union": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/async": { + "version": "2.6.4", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.14" + } + }, + "node_modules/async-lock": { + "version": "1.4.1", + "license": "MIT" + }, + "node_modules/async-retry": { + "version": "1.3.3", + "license": "MIT", + "dependencies": { + "retry": "0.13.1" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/atob-lite": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "0.0.2", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/before-after-hook": { + "version": "2.2.3", + "license": "Apache-2.0" + }, + "node_modules/bl": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/bops": { + "version": "0.0.7", + "license": "MIT", + "dependencies": { + "base64-js": "0.0.2", + "to-utf8": "0.0.1" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/btoa-lite": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/buffer/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chai": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.1.tgz", + "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==", + "dev": true, + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "peer": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/chalk/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "peer": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/chalk/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT", + "peer": true + }, + "node_modules/check-error": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "dev": true, + "engines": { + "node": ">= 16" + } + }, + "node_modules/clean-git-ref": { + "version": "1.0.3", + "license": "Apache-2.0" + }, + "node_modules/cliui": { + "version": "4.1.0", + "license": "ISC", + "dependencies": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "node_modules/code-block-writer": { + "version": "13.0.2", + "license": "MIT" + }, + "node_modules/code-point-at": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.3", + "color-string": "^1.6.0" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/color-string": { + "version": "1.9.1", + "license": "MIT", + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "node_modules/colorette": { + "version": "2.0.20", + "license": "MIT" + }, + "node_modules/colors": { + "version": "1.4.0", + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/colorspace": { + "version": "1.1.4", + "license": "MIT", + "dependencies": { + "color": "^3.1.3", + "text-hex": "1.0.x" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/command-line-args": { + "version": "5.2.1", + "license": "MIT", + "dependencies": { + "array-back": "^3.1.0", + "find-replace": "^3.0.0", + "lodash.camelcase": "^4.3.0", + "typical": "^4.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/commander": { + "version": "12.1.0", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/comment-json": { + "version": "4.2.5", + "license": "MIT", + "dependencies": { + "array-timsort": "^1.0.3", + "core-util-is": "^1.0.3", + "esprima": "^4.0.1", + "has-own-prop": "^2.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/commonmark": { + "version": "0.28.1", + "license": "BSD-2-Clause", + "dependencies": { + "entities": "~ 1.1.1", + "mdurl": "~ 1.0.1", + "minimist": "~ 1.2.0", + "string.prototype.repeat": "^0.2.0" + }, + "bin": { + "commonmark": "bin/commonmark" + }, + "engines": { + "node": "*" + } + }, + "node_modules/compress-commons": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "buffer-crc32": "^0.2.13", + "crc32-stream": "^3.0.1", + "normalize-path": "^3.0.0", + "readable-stream": "^2.3.6" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/compress-commons/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/compress-commons/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/compress-commons/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/crc": { + "version": "3.8.0", + "license": "MIT", + "dependencies": { + "buffer": "^5.1.0" + } + }, + "node_modules/crc-32": { + "version": "1.2.2", + "license": "Apache-2.0", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/crc32-stream": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "crc": "^3.4.4", + "readable-stream": "^3.4.0" + }, + "engines": { + "node": ">= 6.9.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/dateformat": { + "version": "4.6.3", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/debug": { + "version": "4.3.6", + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress-response": { + "version": "4.2.1", + "license": "MIT", + "dependencies": { + "mimic-response": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "license": "MIT", + "peer": true + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/deprecation": { + "version": "2.3.1", + "license": "ISC" + }, + "node_modules/diff": { + "version": "3.5.0", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-lines": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "diff": "^3.5.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "license": "MIT" + }, + "node_modules/enabled": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/entities": { + "version": "1.1.2", + "license": "BSD-2-Clause" + }, + "node_modules/esbuild": { + "version": "0.23.0", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.23.0", + "@esbuild/android-arm": "0.23.0", + "@esbuild/android-arm64": "0.23.0", + "@esbuild/android-x64": "0.23.0", + "@esbuild/darwin-arm64": "0.23.0", + "@esbuild/darwin-x64": "0.23.0", + "@esbuild/freebsd-arm64": "0.23.0", + "@esbuild/freebsd-x64": "0.23.0", + "@esbuild/linux-arm": "0.23.0", + "@esbuild/linux-arm64": "0.23.0", + "@esbuild/linux-ia32": "0.23.0", + "@esbuild/linux-loong64": "0.23.0", + "@esbuild/linux-mips64el": "0.23.0", + "@esbuild/linux-ppc64": "0.23.0", + "@esbuild/linux-riscv64": "0.23.0", + "@esbuild/linux-s390x": "0.23.0", + "@esbuild/linux-x64": "0.23.0", + "@esbuild/netbsd-x64": "0.23.0", + "@esbuild/openbsd-arm64": "0.23.0", + "@esbuild/openbsd-x64": "0.23.0", + "@esbuild/sunos-x64": "0.23.0", + "@esbuild/win32-arm64": "0.23.0", + "@esbuild/win32-ia32": "0.23.0", + "@esbuild/win32-x64": "0.23.0" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.0", + "license": "MIT", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "license": "MIT", + "peer": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "license": "ISC", + "peer": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "license": "MIT", + "peer": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "license": "MIT", + "peer": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "license": "MIT", + "peer": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/path-exists": { + "version": "4.0.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/yocto-queue": { + "version": "0.1.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "license": "BSD-2-Clause", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "8.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/fast-copy": { + "version": "3.0.2", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "license": "MIT", + "peer": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "license": "MIT", + "peer": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "license": "MIT", + "peer": true + }, + "node_modules/fast-redact": { + "version": "3.5.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.17.1", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fecha": { + "version": "4.2.3", + "license": "MIT" + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "license": "MIT", + "peer": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-replace": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "array-back": "^3.0.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/find-up": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "license": "MIT", + "peer": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "license": "ISC", + "peer": true + }, + "node_modules/fn.name": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/foreground-child": { + "version": "3.3.0", + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "2.5.1", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/front-matter": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "js-yaml": "^3.13.1" + } + }, + "node_modules/front-matter/node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/front-matter/node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/fs-extra": { + "version": "11.2.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/function-bind": { + "version": "1.1.2", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-caller-file": { + "version": "1.0.3", + "license": "ISC" + }, + "node_modules/get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/get-stream": { + "version": "8.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-tsconfig": { + "version": "4.7.6", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/git-apply-delta": { + "version": "0.0.7", + "license": "MIT", + "dependencies": { + "bops": "~0.0.6", + "varint": "0.0.3" + } + }, + "node_modules/glob": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz", + "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "license": "MIT", + "peer": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalyzer": { + "version": "0.1.4", + "license": "MIT" + }, + "node_modules/globby": { + "version": "11.1.0", + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globrex": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-own-prop": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/help-me": { + "version": "5.0.0", + "license": "MIT" + }, + "node_modules/human-signals": { + "version": "5.0.0", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=16.17.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "license": "MIT", + "peer": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/interpret": { + "version": "1.4.0", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/invert-kv": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/is-arrayish": { + "version": "0.3.2", + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.15.0", + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-stream": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/isomorphic-git": { + "version": "0.55.6", + "license": "MIT", + "dependencies": { + "async-lock": "^1.1.0", + "clean-git-ref": "1.0.3", + "crc-32": "^1.2.0", + "diff-lines": "^1.1.1", + "git-apply-delta": "0.0.7", + "globalyzer": "^0.1.0", + "globrex": "^0.1.2", + "ignore": "^5.0.4", + "marky": "^1.2.1", + "minimisted": "^2.0.0", + "pako": "^1.0.10", + "pify": "^4.0.1", + "readable-stream": "^3.1.1", + "sha.js": "^2.4.9", + "simple-get": "^3.0.2" + }, + "bin": { + "isogit": "cli.js" + }, + "engines": { + "node": ">=7.6.0" + } + }, + "node_modules/jackspeak": { + "version": "4.0.1", + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/joycon": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "license": "MIT", + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT", + "peer": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "license": "MIT", + "peer": true + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "license": "MIT", + "peer": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kuler": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/lazystream": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "readable-stream": "^2.0.5" + }, + "engines": { + "node": ">= 0.6.3" + } + }, + "node_modules/lazystream/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/lazystream/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/lazystream/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/lcid": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "invert-kv": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "license": "MIT", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "license": "MIT" + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/lodash.difference": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/lodash.flatten": { + "version": "4.4.0", + "license": "MIT" + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "license": "MIT", + "peer": true + }, + "node_modules/lodash.set": { + "version": "4.3.2", + "license": "MIT" + }, + "node_modules/lodash.union": { + "version": "4.6.0", + "license": "MIT" + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/logform": { + "version": "2.6.1", + "license": "MIT", + "dependencies": { + "@colors/colors": "1.6.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/loupe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.1.tgz", + "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.1" + } + }, + "node_modules/lru-cache": { + "version": "11.0.0", + "license": "ISC", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/macos-release": { + "version": "2.5.1", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/magic-string": { + "version": "0.30.11", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", + "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/map-age-cleaner": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "p-defer": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/marked": { + "version": "13.0.3", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/marky": { + "version": "1.2.5", + "license": "Apache-2.0" + }, + "node_modules/mdurl": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/mem": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/mem/node_modules/mimic-fn": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.7", + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mimic-response": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minimisted": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mkdirp": { + "version": "3.0.1", + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/nice-try": { + "version": "1.0.5", + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "5.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/number-is-nan": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/octokit-pagination-methods": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/on-exit-leak-free": { + "version": "2.1.2", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/one-time": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "fn.name": "1.x.x" + } + }, + "node_modules/onetime": { + "version": "6.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "license": "MIT", + "peer": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/os-locale": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/os-locale/node_modules/cross-spawn": { + "version": "6.0.5", + "license": "MIT", + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/os-locale/node_modules/execa": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/os-locale/node_modules/get-stream": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/os-locale/node_modules/is-stream": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/os-locale/node_modules/npm-run-path": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/os-locale/node_modules/path-key": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/os-locale/node_modules/semver": { + "version": "5.7.2", + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/os-locale/node_modules/shebang-command": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/os-locale/node_modules/shebang-regex": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/os-locale/node_modules/signal-exit": { + "version": "3.0.7", + "license": "ISC" + }, + "node_modules/os-locale/node_modules/which": { + "version": "1.3.1", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/os-name": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "macos-release": "^2.2.0", + "windows-release": "^3.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-defer": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/p-is-promise": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/p-locate": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.0", + "license": "BlueOak-1.0.0" + }, + "node_modules/pako": { + "version": "1.0.11", + "license": "(MIT AND Zlib)" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "license": "MIT", + "peer": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-ts-to-ast": { + "version": "0.1.4", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.10", + "lodash-es": "^4.17.10", + "tslib": "^1.9.3", + "typescript": "^3.0.3" + } + }, + "node_modules/parse-ts-to-ast/node_modules/typescript": { + "version": "3.9.10", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/path-exists": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "2.0.0", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/pathe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "dev": true + }, + "node_modules/pathval": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", + "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", + "dev": true, + "engines": { + "node": ">= 14.16" + } + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "4.0.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pino": { + "version": "9.3.2", + "license": "MIT", + "dependencies": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.1.1", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.2.0", + "pino-std-serializers": "^7.0.0", + "process-warning": "^4.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.2.0", + "safe-stable-stringify": "^2.3.1", + "sonic-boom": "^4.0.1", + "thread-stream": "^3.0.0" + }, + "bin": { + "pino": "bin.js" + } + }, + "node_modules/pino-abstract-transport": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "readable-stream": "^4.0.0", + "split2": "^4.0.0" + } + }, + "node_modules/pino-abstract-transport/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/pino-abstract-transport/node_modules/buffer": { + "version": "6.0.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/pino-abstract-transport/node_modules/readable-stream": { + "version": "4.5.2", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/pino-pretty": { + "version": "11.2.2", + "license": "MIT", + "dependencies": { + "colorette": "^2.0.7", + "dateformat": "^4.6.3", + "fast-copy": "^3.0.2", + "fast-safe-stringify": "^2.1.1", + "help-me": "^5.0.0", + "joycon": "^3.1.1", + "minimist": "^1.2.6", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^1.0.0", + "pump": "^3.0.0", + "readable-stream": "^4.0.0", + "secure-json-parse": "^2.4.0", + "sonic-boom": "^4.0.1", + "strip-json-comments": "^3.1.1" + }, + "bin": { + "pino-pretty": "bin.js" + } + }, + "node_modules/pino-pretty/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/pino-pretty/node_modules/buffer": { + "version": "6.0.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/pino-pretty/node_modules/readable-stream": { + "version": "4.5.2", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/pino-std-serializers": { + "version": "7.0.0", + "license": "MIT" + }, + "node_modules/postcss": { + "version": "8.4.41", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz", + "integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.1", + "source-map-js": "^1.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/process": { + "version": "0.11.10", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/process-warning": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/pump": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/quick-format-unescaped": { + "version": "4.0.4", + "license": "MIT" + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/real-require": { + "version": "0.2.0", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==" + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "1.0.1", + "license": "ISC" + }, + "node_modules/resolve": { + "version": "1.22.8", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.20.0.tgz", + "integrity": "sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.20.0", + "@rollup/rollup-android-arm64": "4.20.0", + "@rollup/rollup-darwin-arm64": "4.20.0", + "@rollup/rollup-darwin-x64": "4.20.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.20.0", + "@rollup/rollup-linux-arm-musleabihf": "4.20.0", + "@rollup/rollup-linux-arm64-gnu": "4.20.0", + "@rollup/rollup-linux-arm64-musl": "4.20.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0", + "@rollup/rollup-linux-riscv64-gnu": "4.20.0", + "@rollup/rollup-linux-s390x-gnu": "4.20.0", + "@rollup/rollup-linux-x64-gnu": "4.20.0", + "@rollup/rollup-linux-x64-musl": "4.20.0", + "@rollup/rollup-win32-arm64-msvc": "4.20.0", + "@rollup/rollup-win32-ia32-msvc": "4.20.0", + "@rollup/rollup-win32-x64-msvc": "4.20.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-stable-stringify": { + "version": "2.4.3", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/sax": { + "version": "1.4.1", + "license": "ISC" + }, + "node_modules/secure-json-parse": { + "version": "2.7.0", + "license": "BSD-3-Clause" + }, + "node_modules/semver": { + "version": "7.6.3", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/sha.js": { + "version": "2.4.11", + "license": "(MIT AND BSD-3-Clause)", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/shelljs": { + "version": "0.8.5", + "license": "BSD-3-Clause", + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shelljs/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/shx": { + "version": "0.3.4", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + }, + "bin": { + "shx": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/simple-concat": { + "version": "1.0.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/simple-get": { + "version": "3.1.1", + "license": "MIT", + "dependencies": { + "decompress-response": "^4.2.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "node_modules/simple-git": { + "version": "3.25.0", + "license": "MIT", + "dependencies": { + "@kwsites/file-exists": "^1.1.1", + "@kwsites/promise-deferred": "^1.1.1", + "debug": "^4.3.5" + }, + "funding": { + "type": "github", + "url": "https://github.com/steveukx/git-js?sponsor=1" + } + }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/sonic-boom": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "atomic-sleep": "^1.0.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "node_modules/stack-trace": { + "version": "0.0.10", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/stackback": { + "version": "0.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "3.7.0", + "dev": true, + "license": "MIT" + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string.prototype.repeat": { + "version": "0.2.0" + }, + "node_modules/strip-ansi": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-eof": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "license": "MIT", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/text-hex": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/text-table": { + "version": "0.2.0", + "license": "MIT", + "peer": true + }, + "node_modules/thread-stream": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "real-require": "^0.2.0" + } + }, + "node_modules/tinybench": { + "version": "2.9.0", + "dev": true, + "license": "MIT" + }, + "node_modules/tinypool": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.0.tgz", + "integrity": "sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==", + "dev": true, + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/tinyrainbow": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", + "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.0.tgz", + "integrity": "sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/to-utf8": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/tr46": { + "version": "0.0.3", + "license": "MIT" + }, + "node_modules/triple-beam": { + "version": "1.4.1", + "license": "MIT", + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.3.0", + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-morph": { + "version": "23.0.0", + "license": "MIT", + "dependencies": { + "@ts-morph/common": "~0.24.0", + "code-block-writer": "^13.0.1" + } + }, + "node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/tsx": { + "version": "4.17.0", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.23.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/tunnel": { + "version": "0.0.6", + "license": "MIT", + "engines": { + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "license": "MIT", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "license": "(MIT OR CC0-1.0)", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.5.3", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-codegen-breaking-change-detector": { + "version": "0.4.11", + "license": "MIT", + "dependencies": { + "@azure-tools/openapi-tools-common": "^1.2.2", + "@typescript-eslint/scope-manager": "^7.17.0", + "@typescript-eslint/types": "^7.17.0", + "@typescript-eslint/typescript-estree": "^7.17.0", + "@typescript-eslint/utils": "^7.17.0", + "@typescript-eslint/visitor-keys": "^7.17.0", + "commander": "^12.1.0", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "marked": "^13.0.2", + "pino": "^9.3.1", + "pino-pretty": "^11.2.1", + "ts-morph": "^23.0.0", + "typescript": "5.5.3", + "typescript-eslint": "^7.17.0" + } + }, + "node_modules/typescript-eslint": { + "version": "7.18.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "7.18.0", + "@typescript-eslint/parser": "7.18.0", + "@typescript-eslint/utils": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/typical": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "license": "MIT" + }, + "node_modules/universal-user-agent": { + "version": "4.0.1", + "license": "ISC", + "dependencies": { + "os-name": "^3.1.0" + } + }, + "node_modules/universalify": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unixify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unixify/-/unixify-1.0.0.tgz", + "integrity": "sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg==", + "dependencies": { + "normalize-path": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unixify/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "8.3.2", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/varint": { + "version": "0.0.3", + "license": "MIT" + }, + "node_modules/vite": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.1.tgz", + "integrity": "sha512-1oE6yuNXssjrZdblI9AfBbHCC41nnyoVoEZxQnID6yvQZAFBzxxkqoFLtHUMkYunL8hwOLEjgTuxpkRxvba3kA==", + "dev": true, + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.41", + "rollup": "^4.13.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-node": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.0.5.tgz", + "integrity": "sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==", + "dev": true, + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.3.5", + "pathe": "^1.1.2", + "tinyrainbow": "^1.2.0", + "vite": "^5.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/vitest": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.0.5.tgz", + "integrity": "sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.3.0", + "@vitest/expect": "2.0.5", + "@vitest/pretty-format": "^2.0.5", + "@vitest/runner": "2.0.5", + "@vitest/snapshot": "2.0.5", + "@vitest/spy": "2.0.5", + "@vitest/utils": "2.0.5", + "chai": "^5.1.1", + "debug": "^4.3.5", + "execa": "^8.0.1", + "magic-string": "^0.30.10", + "pathe": "^1.1.2", + "std-env": "^3.7.0", + "tinybench": "^2.8.0", + "tinypool": "^1.0.0", + "tinyrainbow": "^1.2.0", + "vite": "^5.0.0", + "vite-node": "2.0.5", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/node": "^18.0.0 || >=20.0.0", + "@vitest/browser": "2.0.5", + "@vitest/ui": "2.0.5", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "license": "ISC" + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/windows-release": { + "version": "3.3.3", + "license": "MIT", + "dependencies": { + "execa": "^1.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/windows-release/node_modules/cross-spawn": { + "version": "6.0.5", + "license": "MIT", + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/windows-release/node_modules/execa": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/windows-release/node_modules/get-stream": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/windows-release/node_modules/is-stream": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/windows-release/node_modules/npm-run-path": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/windows-release/node_modules/path-key": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/windows-release/node_modules/semver": { + "version": "5.7.2", + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/windows-release/node_modules/shebang-command": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/windows-release/node_modules/shebang-regex": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/windows-release/node_modules/signal-exit": { + "version": "3.0.7", + "license": "ISC" + }, + "node_modules/windows-release/node_modules/which": { + "version": "1.3.1", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/winston": { + "version": "3.14.2", + "license": "MIT", + "dependencies": { + "@colors/colors": "^1.6.0", + "@dabh/diagnostics": "^2.0.2", + "async": "^3.2.3", + "is-stream": "^2.0.0", + "logform": "^2.6.0", + "one-time": "^1.0.0", + "readable-stream": "^3.4.0", + "safe-stable-stringify": "^2.3.1", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.7.0" + }, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/winston-transport": { + "version": "4.7.1", + "license": "MIT", + "dependencies": { + "logform": "^2.6.1", + "readable-stream": "^3.6.2", + "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/winston/node_modules/async": { + "version": "3.2.5", + "license": "MIT" + }, + "node_modules/winston/node_modules/is-stream": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "license": "ISC" + }, + "node_modules/xml2js": { + "version": "0.5.0", + "license": "MIT", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "license": "MIT", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "license": "ISC" + }, + "node_modules/yaml": { + "version": "1.10.2", + "license": "ISC", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "12.0.5", + "license": "MIT", + "dependencies": { + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" + } + }, + "node_modules/yargs-parser": { + "version": "11.1.1", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "node_modules/zip-stream": { + "version": "2.1.3", + "license": "MIT", + "dependencies": { + "archiver-utils": "^2.1.0", + "compress-commons": "^2.1.1", + "readable-stream": "^3.4.0" + }, + "engines": { + "node": ">= 6" + } + } + } +} diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index 7de7644e833..40cb6e19053 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -27,6 +27,7 @@ "command-line-args": "^5.1.1", "comment-json": "^4.1.0", "fs-extra": "^11.2.0", + "glob": "^11.0.0", "js-yaml": "^4.1.0", "parse-ts-to-ast": "^0.1.1", "semver": "^7.3.5", @@ -35,16 +36,36 @@ "simple-git": "^3.5.0", "ts-morph": "^23.0.0", "tslib": "^1.9.3", - "typescript-codegen-breaking-change-detector": "0.4.8", + "typescript-codegen-breaking-change-detector": "0.4.11", + "unixify": "^1.0.0", "winston": "^3.13.1", "yaml": "^1.10.2" }, "devDependencies": { "@types/node": "^20.12.12", "@types/shelljs": "^0.8.15", + "@types/unixify": "^1.0.2", "rimraf": "^3.0.2", "tsx": "^4.16.5", "typescript": "5.5.3", - "vitest": "^1.6.0" + "vitest": "2.0.5" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.20.0", + "@rollup/rollup-android-arm64": "4.20.0", + "@rollup/rollup-darwin-arm64": "4.20.0", + "@rollup/rollup-darwin-x64": "4.20.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.20.0", + "@rollup/rollup-linux-arm-musleabihf": "4.20.0", + "@rollup/rollup-linux-arm64-gnu": "4.20.0", + "@rollup/rollup-linux-arm64-musl": "4.20.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0", + "@rollup/rollup-linux-riscv64-gnu": "4.20.0", + "@rollup/rollup-linux-s390x-gnu": "4.20.0", + "@rollup/rollup-linux-x64-gnu": "4.20.0", + "@rollup/rollup-linux-x64-musl": "4.20.0", + "@rollup/rollup-win32-arm64-msvc": "4.20.0", + "@rollup/rollup-win32-ia32-msvc": "4.20.0", + "@rollup/rollup-win32-x64-msvc": "4.20.0" } } diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md deleted file mode 100644 index ba5e63ee7e2..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/CHANGELOG.md +++ /dev/null @@ -1,23 +0,0 @@ -# Release History - -## 1.0.0-beta.2 (Unreleased) - -### Features Added -- Added support for AAD authentication. - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.1 (2023-04-18) -Initial release - -### Features Added -- Added support for Text Translation - [Translate API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate) -- Added support for Text Transliteration - [Transliterate API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-transliterate) -- Added support for Finding Sentence Boundaries - [FindSentenceBoundaries API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-break-sentence) -- Added support for Getting the Supported Languages - [GetLanguages API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages) -- Added support for Looking up the Dictionary Entries - [LookupDictionaryEntries API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-lookup) -- Added support for Looking up the Dictionary Examples - [LookupDictionaryExamples API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-examples) diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json index 0d2d53b154f..140803e2a9a 100644 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/package.json @@ -1,24 +1,22 @@ { - "name": "@azure-rest/ai-translation-text", + "name": "@azure-rest/arm-servicefabric", "sdk-type": "client", "author": "Microsoft Corporation", - "version": "1.0.0-beta.2", - "description": "An isomorphic client library for the Azure Cognitive Translator Service", - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md", + "version": "1.0.0-beta.1", + "description": "", "keywords": [ "node", "azure", "cloud", "typescript", "browser", - "isomorphic", - "translate", - "translation" + "isomorphic" ], "license": "MIT", "main": "dist/index.js", "module": "./dist-esm/src/index.js", - "types": "./types/ai-translation-text.d.ts", + "types": "./types/arm-servicefabric.d.ts", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric-rest/README.md", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" @@ -26,38 +24,35 @@ "files": [ "dist/", "dist-esm/src/", - "types/ai-translation-text.d.ts", + "types/arm-servicefabric.d.ts", "README.md", - "CHANGELOG.md", - "LICENSE" + "LICENSE", + "review/*" ], - "engines": { - "node": ">=18.0.0" + "//metadata": { + "constantPaths": [ + { + "path": "swagger/README.md", + "prefix": "package-version" + } + ] }, - "//sampleConfiguration": { - "productName": "Azure Text Translation Service", - "productSlugs": [ - "azure", - "azure-cognitive-services", - "azure-translator" - ], - "requiredResources": { - "Translator resource instance": "https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource" - } + "engines": { + "node": ">=12.0.0" }, "scripts": { "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle --browser-test false", - "build:samples": "echo Obsolete.", + "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1", + "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", + "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", + "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "generate:client": "echo skipped", + "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", + "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -70,56 +65,63 @@ "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", "unit-test:browser": "dev-tool run test:browser", - "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && dev-tool run extract-api" + "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && api-extractor run --local" }, "sideEffects": false, "autoPublish": false, "dependencies": { "@azure/core-auth": "^1.3.0", - "@azure-rest/core-client": "^1.1.0", + "@azure-rest/core-client": "1.0.0-beta.10", "@azure/core-rest-pipeline": "^1.8.0", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.2.0", + "@azure/core-paging": "^1.2.0", + "@azure/core-lro": "^2.2.0" }, "devDependencies": { - "@microsoft/api-extractor": "^7.31.1", + "@microsoft/api-extractor": "7.18.11", "autorest": "latest", - "@types/node": "^18.0.0", - "dotenv": "^16.0.0", - "eslint": "^8.0.0", - "mkdirp": "^3.0.1", - "rimraf": "^5.0.5", + "@types/node": "^12.0.0", + "dotenv": "^8.2.0", + "eslint": "^7.15.0", + "mkdirp": "^1.0.4", + "prettier": "2.2.1", + "rimraf": "^3.0.0", "source-map-support": "^0.5.9", - "typescript": "~5.4.5", + "typescript": "~4.2.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", - "@azure/identity": "^4.0.1", - "@azure-tools/test-recorder": "^3.0.0", - "mocha": "^10.0.0", - "@types/mocha": "^10.0.0", + "@azure/identity": "^2.0.1", + "@azure-tools/test-recorder": "^2.0.0", + "mocha": "^7.1.1", + "mocha-junit-reporter": "^1.18.0", "cross-env": "^7.0.2", "@types/chai": "^4.2.8", "chai": "^4.2.0", "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", + "karma-edge-launcher": "^0.4.2", "karma-env-preprocessor": "^0.1.1", "karma-firefox-launcher": "^1.1.0", + "karma-ie-launcher": "^1.0.0", "karma-junit-reporter": "^2.0.1", "karma-mocha-reporter": "^2.2.5", "karma-mocha": "^2.0.1", "karma-source-map-support": "~1.4.0", "karma-sourcemap-loader": "^0.3.8", "karma": "^6.2.0", - "nyc": "^15.1.0", - "ts-node": "^10.0.0" + "nyc": "^14.0.0" }, - "//metadata": { - "constantPaths": [ - { - "path": "src/customClient.ts", - "prefix": "userAgentInfo" - } - ] + "browser": { + "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" + }, + "//sampleConfiguration": { + "productName": "", + "productSlugs": [ + "azure" + ], + "disableDocsMs": true, + "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure-rest/arm-servicefabric?view=azure-node-preview" } } diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md deleted file mode 100644 index 0c59225e6d7..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/ai-translation-text.api.md +++ /dev/null @@ -1,650 +0,0 @@ -## API Report File for "@azure-rest/ai-translation-text" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { KeyCredential } from '@azure/core-auth'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; - -// @public -export interface BackTranslationOutput { - displayText: string; - frequencyCount: number; - normalizedText: string; - numExamples: number; -} - -// @public -export interface BreakSentenceItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sentLen: number[]; -} - -// @public (undocumented) -export function buildMultiCollection(items: string[], parameterName: string): string; - -// @public -export interface CommonScriptModelOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} - -// @public -function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; -export default createClient; - -// @public -export interface DetectedLanguageOutput { - language: string; - score: number; -} - -// @public -export interface DictionaryExampleItemOutput { - examples: Array; - normalizedSource: string; - normalizedTarget: string; -} - -// @public -export interface DictionaryExampleOutput { - sourcePrefix: string; - sourceSuffix: string; - sourceTerm: string; - targetPrefix: string; - targetSuffix: string; - targetTerm: string; -} - -// @public -export interface DictionaryExampleTextItem extends InputTextItem { - translation: string; -} - -// @public -export interface DictionaryLookupItemOutput { - displaySource: string; - normalizedSource: string; - translations: Array; -} - -// @public -export interface DictionaryTranslationOutput { - backTranslations: Array; - confidence: number; - displayTarget: string; - normalizedTarget: string; - posTag: string; - prefixWord: string; -} - -// @public -export interface ErrorDetailsOutput { - code: number; - message: string; - recursive: Array; -} - -// @public -export interface ErrorResponseOutput { - error: ErrorDetailsOutput; -} - -// @public (undocumented) -export interface FindSentenceBoundaries { - post(options: FindSentenceBoundariesParameters): StreamableMethod; -} - -// @public (undocumented) -export interface FindSentenceBoundaries200Headers { - "x-requestid": string; -} - -// @public -export interface FindSentenceBoundaries200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface FindSentenceBoundariesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface FindSentenceBoundariesDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface FindSentenceBoundariesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} - -// @public (undocumented) -export interface FindSentenceBoundariesHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; - -// @public (undocumented) -export interface FindSentenceBoundariesQueryParam { - // (undocumented) - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} - -// @public (undocumented) -export interface FindSentenceBoundariesQueryParamProperties { - language?: string; - script?: string; -} - -// @public (undocumented) -export interface GetLanguages { - get(optionsAxxx?: GetLanguagesParameters): StreamableMethod; - -} - -// @public (undocumented) -export interface GetLanguages200Headers { - "x-requestid": string; - etag: string; -} - -// @public -export interface GetLanguages200Response extends HttpResponse { - // (undocumented) - body: GetLanguagesResultOutput; - // (undocumented) - headers: RawHttpHeaders & GetLanguages200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface GetLanguagesDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface GetLanguagesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface GetLanguagesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} - -// @public (undocumented) -export interface GetLanguagesHeaders { - "Accept-Language"?: string; - "If-None-Match"?: string; - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type GetLanguagesParameters = GetLanguagesQueryParam & GetLanguagesHeaderParam & RequestParameters; - -// @public (undocumented) -export interface GetLanguagesQueryParam { - // (undocumented) - queryParameters?: GetLanguagesQueryParamProperties; - testFunc(s:string): number - hehe: (c:number)=> string -} - -// @public (undocumented) -export interface GetLanguagesQueryParamProperties { - scope?: string; -} - -// @public -export interface GetLanguagesResultOutput { - dictionary?: Record; - translation?: Record; - transliteration?: Record; -} - -// @public -export interface InputTextItem { - text: string; -} - -// @public (undocumented) -export function isUnexpected(response: GetLanguages200Response | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; - -// @public (undocumented) -export interface LookupDictionaryEntries { - post(options: LookupDictionaryEntriesParameters): StreamableMethod; -} - -// @public (undocumented) -export interface LookupDictionaryEntries200Headers { - "x-requestid": string; -} - -// @public -export interface LookupDictionaryEntries200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; - -// @public (undocumented) -export interface LookupDictionaryEntriesQueryParam { - // (undocumented) - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesQueryParamProperties { - from: string; - to: string; -} - -// @public (undocumented) -export interface LookupDictionaryExamples { - post(options: LookupDictionaryExamplesParameters): StreamableMethod; -} - -// @public (undocumented) -export interface LookupDictionaryExamples200Headers { - "x-requestid": string; -} - -// @public -export interface LookupDictionaryExamples200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; - -// @public (undocumented) -export interface LookupDictionaryExamplesQueryParam { - // (undocumented) - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesQueryParamProperties { - from: string; - to: string; -} - -// @public (undocumented) -export interface Routes { - (path: "/languages"): GetLanguages; - (path: "/translate"): Translate; - (path: "/transliterate"): Transliterate; - (path: "/breaksentence"): FindSentenceBoundaries; - (path: "/dictionary/lookup"): LookupDictionaryEntries; - (path: "/dictionary/examples"): LookupDictionaryExamples; -} - -// @public -export interface SentenceLengthOutput { - srcSentLen: number[]; - transSentLen: number[]; -} - -// @public -export interface SourceDictionaryLanguageOutput { - dir: string; - name: string; - nativeName: string; - translations: Array; -} - -// @public -export interface SourceTextOutput { - text: string; -} - -// @public -export interface TargetDictionaryLanguageOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} - -// @public (undocumented) -export type TextTranslationClient = Client & { - path: Routes; -}; - -// @public (undocumented) -export interface Translate { - post(options: TranslateParameters): StreamableMethod; -} - -// @public (undocumented) -export interface Translate200Headers { - "x-metered-usage": number; - "x-mt-system": string; - "x-requestid": string; -} - -// @public -export interface Translate200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & Translate200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface TranslateBodyParam { - body: Array; -} - -// @public (undocumented) -export interface TranslateDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface TranslateDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & TranslateDefaultHeaders; - // (undocumented) - status: string; -} - -// @public -export interface TranslatedTextAlignmentOutput { - proj: string; -} - -// @public -export interface TranslatedTextItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sourceText?: SourceTextOutput; - translations: Array; -} - -// @public (undocumented) -export interface TranslateHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & TranslateHeaders; -} - -// @public (undocumented) -export interface TranslateHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; - -// @public (undocumented) -export interface TranslateQueryParam { - // (undocumented) - queryParameters: TranslateQueryParamProperties; -} - -// @public (undocumented) -export interface TranslateQueryParamProperties { - allowFallback?: boolean; - category?: string; - from?: string; - fromScript?: string; - includeAlignment?: boolean; - includeSentenceLength?: boolean; - profanityAction?: string; - profanityMarker?: string; - suggestedFrom?: string; - textType?: string; - to: string; - toScript?: string; -} - -// @public -export interface TranslationLanguageOutput { - dir: string; - name: string; - nativeName: string; -} - -// @public -export interface TranslationOutput { - alignment?: TranslatedTextAlignmentOutput; - sentLen?: SentenceLengthOutput; - text: string; - to: string; - transliteration?: TransliteratedTextOutput; -} - -// @public (undocumented) -export interface TranslatorCredential { - // (undocumented) - key: string; - // (undocumented) - region: string; -} - -// @public (undocumented) -export interface TranslatorTokenCredential { - // (undocumented) - azureResourceId: string; - // (undocumented) - region: string; - // (undocumented) - tokenCredential: TokenCredential; -} - -// @public -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - toScripts: Array; -} - -// @public (undocumented) -export interface Transliterate { - post(options: TransliterateParameters): StreamableMethod; -} - -// @public (undocumented) -export interface Transliterate200Headers { - "x-requestid": string; -} - -// @public -export interface Transliterate200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & Transliterate200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface TransliterateBodyParam { - body: Array; -} - -// @public (undocumented) -export interface TransliterateDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface TransliterateDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & TransliterateDefaultHeaders; - // (undocumented) - status: string; -} - -// @public -export interface TransliteratedTextOutput { - script: string; - text: string; -} - -// @public (undocumented) -export interface TransliterateHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & TransliterateHeaders; -} - -// @public (undocumented) -export interface TransliterateHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; - -// @public (undocumented) -export interface TransliterateQueryParam { - // (undocumented) - queryParameters: TransliterateQueryParamProperties; -} - -// @public (undocumented) -export interface TransliterateQueryParamProperties { - fromScript: string; - language: string; - toScript: string; -} - -// @public -export interface TransliterationLanguageOutput { - name: string; - nativeName: string; - scripts: Array; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/arm-servicefabric.api.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/arm-servicefabric.api.md new file mode 100644 index 00000000000..b54c9321979 --- /dev/null +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/review/arm-servicefabric.api.md @@ -0,0 +1,2071 @@ +## API Report File for "@azure-rest/arm-servicefabric" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { LroEngineOptions } from '@azure/core-lro'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PathUncheckedResponse } from '@azure-rest/core-client'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; + +// @public (undocumented) +export interface ApplicationDeltaHealthPolicy { + defaultServiceTypeDeltaHealthPolicy?: ServiceTypeDeltaHealthPolicy; + serviceTypeDeltaHealthPolicies?: Record; +} + +// @public (undocumented) +export interface ApplicationDeltaHealthPolicyOutput { + defaultServiceTypeDeltaHealthPolicy?: ServiceTypeDeltaHealthPolicyOutput; + serviceTypeDeltaHealthPolicies?: Record; +} + +// @public (undocumented) +export interface ApplicationHealthPolicy { + defaultServiceTypeHealthPolicy?: ServiceTypeHealthPolicy; + serviceTypeHealthPolicies?: Record; +} + +// @public (undocumented) +export interface ApplicationHealthPolicyOutput { + defaultServiceTypeHealthPolicy?: ServiceTypeHealthPolicyOutput; + serviceTypeHealthPolicies?: Record; +} + +// @public (undocumented) +export interface ApplicationMetricDescription { + maximumCapacity?: number; + name?: string; + reservationCapacity?: number; + totalApplicationCapacity?: number; +} + +// @public (undocumented) +export interface ApplicationMetricDescriptionOutput { + maximumCapacity?: number; + name?: string; + reservationCapacity?: number; + totalApplicationCapacity?: number; +} + +// @public (undocumented) +export interface ApplicationResource extends ProxyResource { + identity?: ManagedIdentity; + properties?: ApplicationResourceProperties; +} + +// @public (undocumented) +export interface ApplicationResourceListOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ApplicationResourceOutput extends ProxyResourceOutput { + identity?: ManagedIdentityOutput; + properties?: ApplicationResourcePropertiesOutput; +} + +// @public (undocumented) +export interface ApplicationResourceProperties extends ApplicationResourceUpdateProperties { + provisioningState?: string; + typeName?: string; +} + +// @public (undocumented) +export interface ApplicationResourcePropertiesOutput extends ApplicationResourceUpdatePropertiesOutput { + provisioningState?: string; + typeName?: string; +} + +// @public (undocumented) +export interface ApplicationResourceUpdate extends ProxyResource { + properties?: ApplicationResourceUpdateProperties; +} + +// @public (undocumented) +export interface ApplicationResourceUpdateOutput extends ProxyResourceOutput { + properties?: ApplicationResourceUpdatePropertiesOutput; +} + +// @public (undocumented) +export interface ApplicationResourceUpdateProperties { + managedIdentities?: Array; + maximumNodes?: number; + metrics?: Array; + minimumNodes?: number; + parameters?: Record; + removeApplicationCapacity?: boolean; + typeVersion?: string; + upgradePolicy?: ApplicationUpgradePolicy; +} + +// @public (undocumented) +export interface ApplicationResourceUpdatePropertiesOutput { + managedIdentities?: Array; + maximumNodes?: number; + metrics?: Array; + minimumNodes?: number; + parameters?: Record; + removeApplicationCapacity?: boolean; + typeVersion?: string; + upgradePolicy?: ApplicationUpgradePolicyOutput; +} + +// @public +export interface ApplicationsCreateOrUpdate202Response extends HttpResponse { + // (undocumented) + body: ApplicationResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ApplicationsCreateOrUpdateBodyParam { + body: ApplicationResource; +} + +// @public +export interface ApplicationsCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ApplicationsCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ApplicationsCreateOrUpdateParameters = ApplicationsCreateOrUpdateMediaTypesParam & ApplicationsCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ApplicationsDelete202Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "202"; +} + +// @public +export interface ApplicationsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ApplicationsDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationsDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationsGet { + delete(options?: ApplicationsDeleteParameters): StreamableMethod; + get(options?: ApplicationsGetParameters): StreamableMethod; + patch(options: ApplicationsUpdateParameters): StreamableMethod; + put(options: ApplicationsCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ApplicationsGet200Response extends HttpResponse { + // (undocumented) + body: ApplicationResourceOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationsGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationsGetParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationsList { + get(options?: ApplicationsListParameters): StreamableMethod; +} + +// @public +export interface ApplicationsList200Response extends HttpResponse { + // (undocumented) + body: ApplicationResourceListOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationsListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationsListParameters = RequestParameters; + +// @public +export interface ApplicationsUpdate202Response extends HttpResponse { + // (undocumented) + body: ApplicationResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ApplicationsUpdateBodyParam { + body: ApplicationResourceUpdate; +} + +// @public +export interface ApplicationsUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ApplicationsUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ApplicationsUpdateParameters = ApplicationsUpdateMediaTypesParam & ApplicationsUpdateBodyParam & RequestParameters; + +// @public (undocumented) +export interface ApplicationTypeResource extends ProxyResource { + properties?: ApplicationTypeResourceProperties; +} + +// @public (undocumented) +export interface ApplicationTypeResourceListOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ApplicationTypeResourceOutput extends ProxyResourceOutput { + properties?: ApplicationTypeResourcePropertiesOutput; +} + +// @public (undocumented) +export interface ApplicationTypeResourceProperties { + provisioningState?: string; +} + +// @public (undocumented) +export interface ApplicationTypeResourcePropertiesOutput { + provisioningState?: string; +} + +// @public +export interface ApplicationTypesCreateOrUpdate200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeResourceOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ApplicationTypesCreateOrUpdateBodyParam { + body: ApplicationTypeResource; +} + +// @public +export interface ApplicationTypesCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ApplicationTypesCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ApplicationTypesCreateOrUpdateParameters = ApplicationTypesCreateOrUpdateMediaTypesParam & ApplicationTypesCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ApplicationTypesDelete202Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "202"; +} + +// @public +export interface ApplicationTypesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ApplicationTypesDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypesDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypesGet { + delete(options?: ApplicationTypesDeleteParameters): StreamableMethod; + get(options?: ApplicationTypesGetParameters): StreamableMethod; + put(options: ApplicationTypesCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ApplicationTypesGet200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeResourceOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationTypesGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypesGetParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypesList { + get(options?: ApplicationTypesListParameters): StreamableMethod; +} + +// @public +export interface ApplicationTypesList200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeResourceListOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationTypesListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypesListParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypeVersionResource extends ProxyResource { + properties?: ApplicationTypeVersionResourceProperties; +} + +// @public (undocumented) +export interface ApplicationTypeVersionResourceListOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ApplicationTypeVersionResourceOutput extends ProxyResourceOutput { + properties?: ApplicationTypeVersionResourcePropertiesOutput; +} + +// @public (undocumented) +export interface ApplicationTypeVersionResourceProperties { + appPackageUrl: string; + defaultParameterList?: Record; + provisioningState?: string; +} + +// @public (undocumented) +export interface ApplicationTypeVersionResourcePropertiesOutput { + appPackageUrl: string; + defaultParameterList?: Record; + provisioningState?: string; +} + +// @public (undocumented) +export interface ApplicationTypeVersionsCleanupPolicy { + maxUnusedVersionsToKeep: number; +} + +// @public (undocumented) +export interface ApplicationTypeVersionsCleanupPolicyOutput { + maxUnusedVersionsToKeep: number; +} + +// @public +export interface ApplicationTypeVersionsCreateOrUpdate202Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeVersionResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ApplicationTypeVersionsCreateOrUpdateBodyParam { + body: ApplicationTypeVersionResource; +} + +// @public +export interface ApplicationTypeVersionsCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ApplicationTypeVersionsCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ApplicationTypeVersionsCreateOrUpdateParameters = ApplicationTypeVersionsCreateOrUpdateMediaTypesParam & ApplicationTypeVersionsCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ApplicationTypeVersionsDelete202Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "202"; +} + +// @public +export interface ApplicationTypeVersionsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ApplicationTypeVersionsDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypeVersionsDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypeVersionsGet { + delete(options?: ApplicationTypeVersionsDeleteParameters): StreamableMethod; + get(options?: ApplicationTypeVersionsGetParameters): StreamableMethod; + put(options: ApplicationTypeVersionsCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ApplicationTypeVersionsGet200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeVersionResourceOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationTypeVersionsGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypeVersionsGetParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypeVersionsList { + get(options?: ApplicationTypeVersionsListParameters): StreamableMethod; +} + +// @public +export interface ApplicationTypeVersionsList200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeVersionResourceListOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationTypeVersionsListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypeVersionsListParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationUpgradePolicy { + applicationHealthPolicy?: ArmApplicationHealthPolicy; + forceRestart?: boolean; + recreateApplication?: boolean; + rollingUpgradeMonitoringPolicy?: ArmRollingUpgradeMonitoringPolicy; + upgradeMode?: "Invalid" | "UnmonitoredAuto" | "UnmonitoredManual" | "Monitored"; + upgradeReplicaSetCheckTimeout?: string; +} + +// @public (undocumented) +export interface ApplicationUpgradePolicyOutput { + applicationHealthPolicy?: ArmApplicationHealthPolicyOutput; + forceRestart?: boolean; + recreateApplication?: boolean; + rollingUpgradeMonitoringPolicy?: ArmRollingUpgradeMonitoringPolicyOutput; + upgradeMode?: "Invalid" | "UnmonitoredAuto" | "UnmonitoredManual" | "Monitored"; + upgradeReplicaSetCheckTimeout?: string; +} + +// @public (undocumented) +export interface ApplicationUserAssignedIdentity { + name: string; + principalId: string; +} + +// @public (undocumented) +export interface ApplicationUserAssignedIdentityOutput { + name: string; + principalId: string; +} + +// @public (undocumented) +export interface ArmApplicationHealthPolicy { + considerWarningAsError?: boolean; + defaultServiceTypeHealthPolicy?: ArmServiceTypeHealthPolicy; + maxPercentUnhealthyDeployedApplications?: number; + serviceTypeHealthPolicyMap?: Record; +} + +// @public (undocumented) +export interface ArmApplicationHealthPolicyOutput { + considerWarningAsError?: boolean; + defaultServiceTypeHealthPolicy?: ArmServiceTypeHealthPolicyOutput; + maxPercentUnhealthyDeployedApplications?: number; + serviceTypeHealthPolicyMap?: Record; +} + +// @public (undocumented) +export interface ArmRollingUpgradeMonitoringPolicy { + failureAction?: "Rollback" | "Manual"; + healthCheckRetryTimeout?: string; + healthCheckStableDuration?: string; + healthCheckWaitDuration?: string; + upgradeDomainTimeout?: string; + upgradeTimeout?: string; +} + +// @public (undocumented) +export interface ArmRollingUpgradeMonitoringPolicyOutput { + failureAction?: "Rollback" | "Manual"; + healthCheckRetryTimeout?: string; + healthCheckStableDuration?: string; + healthCheckWaitDuration?: string; + upgradeDomainTimeout?: string; + upgradeTimeout?: string; +} + +// @public (undocumented) +export interface ArmServiceTypeHealthPolicy { + maxPercentUnhealthyPartitionsPerService?: number; + maxPercentUnhealthyReplicasPerPartition?: number; + maxPercentUnhealthyServices?: number; +} + +// @public (undocumented) +export interface ArmServiceTypeHealthPolicyOutput { + maxPercentUnhealthyPartitionsPerService?: number; + maxPercentUnhealthyReplicasPerPartition?: number; + maxPercentUnhealthyServices?: number; +} + +// @public (undocumented) +export interface AvailableOperationDisplayOutput { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public (undocumented) +export interface AzureActiveDirectory { + clientApplication?: string; + clusterApplication?: string; + tenantId?: string; +} + +// @public (undocumented) +export interface AzureActiveDirectoryOutput { + clientApplication?: string; + clusterApplication?: string; + tenantId?: string; +} + +// @public (undocumented) +export interface CertificateDescription { + thumbprint: string; + thumbprintSecondary?: string; + x509StoreName?: "AddressBook" | "AuthRoot" | "CertificateAuthority" | "Disallowed" | "My" | "Root" | "TrustedPeople" | "TrustedPublisher"; +} + +// @public (undocumented) +export interface CertificateDescriptionOutput { + thumbprint: string; + thumbprintSecondary?: string; + x509StoreName?: "AddressBook" | "AuthRoot" | "CertificateAuthority" | "Disallowed" | "My" | "Root" | "TrustedPeople" | "TrustedPublisher"; +} + +// @public (undocumented) +export interface ClientCertificateCommonName { + certificateCommonName: string; + certificateIssuerThumbprint: string; + isAdmin: boolean; +} + +// @public (undocumented) +export interface ClientCertificateCommonNameOutput { + certificateCommonName: string; + certificateIssuerThumbprint: string; + isAdmin: boolean; +} + +// @public (undocumented) +export interface ClientCertificateThumbprint { + certificateThumbprint: string; + isAdmin: boolean; +} + +// @public (undocumented) +export interface ClientCertificateThumbprintOutput { + certificateThumbprint: string; + isAdmin: boolean; +} + +// @public (undocumented) +export interface Cluster extends Resource { + properties?: ClusterProperties; +} + +// @public (undocumented) +export interface ClusterCodeVersionsListResultOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ClusterCodeVersionsResultOutput { + id?: string; + name?: string; + properties?: ClusterVersionDetailsOutput; + type?: string; +} + +// @public (undocumented) +export interface ClusterHealthPolicy { + applicationHealthPolicies?: Record; + maxPercentUnhealthyApplications?: number; + maxPercentUnhealthyNodes?: number; +} + +// @public (undocumented) +export interface ClusterHealthPolicyOutput { + applicationHealthPolicies?: Record; + maxPercentUnhealthyApplications?: number; + maxPercentUnhealthyNodes?: number; +} + +// @public (undocumented) +export interface ClusterListResultOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ClusterOutput extends ResourceOutput { + properties?: ClusterPropertiesOutput; +} + +// @public (undocumented) +export interface ClusterProperties { + addOnFeatures?: Array<"RepairManager" | "DnsService" | "BackupRestoreService" | "ResourceMonitorService">; + applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicy; + availableClusterVersions?: Array; + azureActiveDirectory?: AzureActiveDirectory; + certificate?: CertificateDescription; + certificateCommonNames?: ServerCertificateCommonNames; + clientCertificateCommonNames?: Array; + clientCertificateThumbprints?: Array; + clusterCodeVersion?: string; + clusterEndpoint?: string; + clusterId?: string; + clusterState?: "WaitingForNodes" | "Deploying" | "BaselineUpgrade" | "UpdatingUserConfiguration" | "UpdatingUserCertificate" | "UpdatingInfrastructure" | "EnforcingClusterVersion" | "UpgradeServiceUnreachable" | "AutoScale" | "Ready"; + diagnosticsStorageAccountConfig?: DiagnosticsStorageAccountConfig; + eventStoreServiceEnabled?: boolean; + fabricSettings?: Array; + infrastructureServiceManager?: boolean; + managementEndpoint: string; + nodeTypes: Array; + notifications?: Array; + provisioningState?: "Updating" | "Succeeded" | "Failed" | "Canceled"; + reliabilityLevel?: "None" | "Bronze" | "Silver" | "Gold" | "Platinum"; + reverseProxyCertificate?: CertificateDescription; + reverseProxyCertificateCommonNames?: ServerCertificateCommonNames; + sfZonalUpgradeMode?: "Parallel" | "Hierarchical"; + upgradeDescription?: ClusterUpgradePolicy; + upgradeMode?: "Automatic" | "Manual"; + upgradePauseEndTimestampUtc?: Date | string; + upgradePauseStartTimestampUtc?: Date | string; + upgradeWave?: "Wave0" | "Wave1" | "Wave2"; + vmImage?: string; + vmssZonalUpgradeMode?: "Parallel" | "Hierarchical"; + waveUpgradePaused?: boolean; +} + +// @public (undocumented) +export interface ClusterPropertiesOutput { + addOnFeatures?: Array<"RepairManager" | "DnsService" | "BackupRestoreService" | "ResourceMonitorService">; + applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicyOutput; + availableClusterVersions?: Array; + azureActiveDirectory?: AzureActiveDirectoryOutput; + certificate?: CertificateDescriptionOutput; + certificateCommonNames?: ServerCertificateCommonNamesOutput; + clientCertificateCommonNames?: Array; + clientCertificateThumbprints?: Array; + clusterCodeVersion?: string; + clusterEndpoint?: string; + clusterId?: string; + clusterState?: "WaitingForNodes" | "Deploying" | "BaselineUpgrade" | "UpdatingUserConfiguration" | "UpdatingUserCertificate" | "UpdatingInfrastructure" | "EnforcingClusterVersion" | "UpgradeServiceUnreachable" | "AutoScale" | "Ready"; + diagnosticsStorageAccountConfig?: DiagnosticsStorageAccountConfigOutput; + eventStoreServiceEnabled?: boolean; + fabricSettings?: Array; + infrastructureServiceManager?: boolean; + managementEndpoint: string; + nodeTypes: Array; + notifications?: Array; + provisioningState?: "Updating" | "Succeeded" | "Failed" | "Canceled"; + reliabilityLevel?: "None" | "Bronze" | "Silver" | "Gold" | "Platinum"; + reverseProxyCertificate?: CertificateDescriptionOutput; + reverseProxyCertificateCommonNames?: ServerCertificateCommonNamesOutput; + sfZonalUpgradeMode?: "Parallel" | "Hierarchical"; + upgradeDescription?: ClusterUpgradePolicyOutput; + upgradeMode?: "Automatic" | "Manual"; + upgradePauseEndTimestampUtc?: string; + upgradePauseStartTimestampUtc?: string; + upgradeWave?: "Wave0" | "Wave1" | "Wave2"; + vmImage?: string; + vmssZonalUpgradeMode?: "Parallel" | "Hierarchical"; + waveUpgradePaused?: boolean; +} + +// @public (undocumented) +export interface ClusterPropertiesUpdateParameters { + addOnFeatures?: Array<"RepairManager" | "DnsService" | "BackupRestoreService" | "ResourceMonitorService">; + applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicy; + certificate?: CertificateDescription; + certificateCommonNames?: ServerCertificateCommonNames; + clientCertificateCommonNames?: Array; + clientCertificateThumbprints?: Array; + clusterCodeVersion?: string; + eventStoreServiceEnabled?: boolean; + fabricSettings?: Array; + infrastructureServiceManager?: boolean; + nodeTypes?: Array; + notifications?: Array; + reliabilityLevel?: "None" | "Bronze" | "Silver" | "Gold" | "Platinum"; + reverseProxyCertificate?: CertificateDescription; + sfZonalUpgradeMode?: "Parallel" | "Hierarchical"; + upgradeDescription?: ClusterUpgradePolicy; + upgradeMode?: "Automatic" | "Manual"; + upgradePauseEndTimestampUtc?: Date | string; + upgradePauseStartTimestampUtc?: Date | string; + upgradeWave?: "Wave0" | "Wave1" | "Wave2"; + vmssZonalUpgradeMode?: "Parallel" | "Hierarchical"; + waveUpgradePaused?: boolean; +} + +// @public +export interface ClustersCreateOrUpdate200Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersCreateOrUpdate202Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ClustersCreateOrUpdateBodyParam { + body: Cluster; +} + +// @public +export interface ClustersCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ClustersCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ClustersCreateOrUpdateParameters = ClustersCreateOrUpdateMediaTypesParam & ClustersCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ClustersDelete200Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ClustersDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClustersDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ClustersGet { + delete(options?: ClustersDeleteParameters): StreamableMethod; + get(options?: ClustersGetParameters): StreamableMethod; + patch(options: ClustersUpdateParameters): StreamableMethod; + put(options: ClustersCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ClustersGet200Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClustersGetParameters = RequestParameters; + +// @public (undocumented) +export interface ClustersList { + get(options?: ClustersListParameters): StreamableMethod; +} + +// @public +export interface ClustersList200Response extends HttpResponse { + // (undocumented) + body: ClusterListResultOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ClustersListByResourceGroup { + get(options?: ClustersListByResourceGroupParameters): StreamableMethod; +} + +// @public +export interface ClustersListByResourceGroup200Response extends HttpResponse { + // (undocumented) + body: ClusterListResultOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersListByResourceGroupdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClustersListByResourceGroupParameters = RequestParameters; + +// @public +export interface ClustersListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClustersListParameters = RequestParameters; + +// @public (undocumented) +export interface ClustersListUpgradableVersions { + post(options?: ClustersListUpgradableVersionsParameters): StreamableMethod; +} + +// @public +export interface ClustersListUpgradableVersions200Response extends HttpResponse { + // (undocumented) + body: UpgradableVersionPathResultOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ClustersListUpgradableVersionsBodyParam { + body?: UpgradableVersionsDescription; +} + +// @public +export interface ClustersListUpgradableVersionsdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ClustersListUpgradableVersionsMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ClustersListUpgradableVersionsParameters = ClustersListUpgradableVersionsMediaTypesParam & ClustersListUpgradableVersionsBodyParam & RequestParameters; + +// @public +export interface ClustersUpdate200Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersUpdate202Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ClustersUpdateBodyParam { + body: ClusterUpdateParameters; +} + +// @public +export interface ClustersUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ClustersUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ClustersUpdateParameters = ClustersUpdateMediaTypesParam & ClustersUpdateBodyParam & RequestParameters; + +// @public (undocumented) +export interface ClusterUpdateParameters { + properties?: ClusterPropertiesUpdateParameters; + tags?: Record; +} + +// @public (undocumented) +export interface ClusterUpgradeDeltaHealthPolicy { + applicationDeltaHealthPolicies?: Record; + maxPercentDeltaUnhealthyApplications: number; + maxPercentDeltaUnhealthyNodes: number; + maxPercentUpgradeDomainDeltaUnhealthyNodes: number; +} + +// @public (undocumented) +export interface ClusterUpgradeDeltaHealthPolicyOutput { + applicationDeltaHealthPolicies?: Record; + maxPercentDeltaUnhealthyApplications: number; + maxPercentDeltaUnhealthyNodes: number; + maxPercentUpgradeDomainDeltaUnhealthyNodes: number; +} + +// @public (undocumented) +export interface ClusterUpgradePolicy { + deltaHealthPolicy?: ClusterUpgradeDeltaHealthPolicy; + forceRestart?: boolean; + healthCheckRetryTimeout: string; + healthCheckStableDuration: string; + healthCheckWaitDuration: string; + healthPolicy: ClusterHealthPolicy; + upgradeDomainTimeout: string; + upgradeReplicaSetCheckTimeout: string; + upgradeTimeout: string; +} + +// @public (undocumented) +export interface ClusterUpgradePolicyOutput { + deltaHealthPolicy?: ClusterUpgradeDeltaHealthPolicyOutput; + forceRestart?: boolean; + healthCheckRetryTimeout: string; + healthCheckStableDuration: string; + healthCheckWaitDuration: string; + healthPolicy: ClusterHealthPolicyOutput; + upgradeDomainTimeout: string; + upgradeReplicaSetCheckTimeout: string; + upgradeTimeout: string; +} + +// @public (undocumented) +export interface ClusterVersionDetails { + codeVersion?: string; + environment?: "Windows" | "Linux"; + supportExpiryUtc?: string; +} + +// @public (undocumented) +export interface ClusterVersionDetailsOutput { + codeVersion?: string; + environment?: "Windows" | "Linux"; + supportExpiryUtc?: string; +} + +// @public (undocumented) +export interface ClusterVersionsGet { + get(options?: ClusterVersionsGetParameters): StreamableMethod; +} + +// @public +export interface ClusterVersionsGet200Response extends HttpResponse { + // (undocumented) + body: ClusterCodeVersionsListResultOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ClusterVersionsGetByEnvironment { + get(options?: ClusterVersionsGetByEnvironmentParameters): StreamableMethod; +} + +// @public +export interface ClusterVersionsGetByEnvironment200Response extends HttpResponse { + // (undocumented) + body: ClusterCodeVersionsListResultOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClusterVersionsGetByEnvironmentdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClusterVersionsGetByEnvironmentParameters = RequestParameters; + +// @public +export interface ClusterVersionsGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClusterVersionsGetParameters = RequestParameters; + +// @public (undocumented) +export interface ClusterVersionsList { + get(options?: ClusterVersionsListParameters): StreamableMethod; +} + +// @public +export interface ClusterVersionsList200Response extends HttpResponse { + // (undocumented) + body: ClusterCodeVersionsListResultOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ClusterVersionsListByEnvironment { + get(options?: ClusterVersionsListByEnvironmentParameters): StreamableMethod; +} + +// @public +export interface ClusterVersionsListByEnvironment200Response extends HttpResponse { + // (undocumented) + body: ClusterCodeVersionsListResultOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClusterVersionsListByEnvironmentdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClusterVersionsListByEnvironmentParameters = RequestParameters; + +// @public +export interface ClusterVersionsListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClusterVersionsListParameters = RequestParameters; + +// @public (undocumented) +function createClient(credentials: TokenCredential, options?: ClientOptions): ServiceFabricClient; +export default createClient; + +// @public (undocumented) +export interface DiagnosticsStorageAccountConfig { + blobEndpoint: string; + protectedAccountKeyName: string; + protectedAccountKeyName2?: string; + queueEndpoint: string; + storageAccountName: string; + tableEndpoint: string; +} + +// @public (undocumented) +export interface DiagnosticsStorageAccountConfigOutput { + blobEndpoint: string; + protectedAccountKeyName: string; + protectedAccountKeyName2?: string; + queueEndpoint: string; + storageAccountName: string; + tableEndpoint: string; +} + +// @public (undocumented) +export interface EndpointRangeDescription { + endPort: number; + startPort: number; +} + +// @public (undocumented) +export interface EndpointRangeDescriptionOutput { + endPort: number; + startPort: number; +} + +// @public (undocumented) +export interface ErrorModelErrorOutput { + code?: string; + message?: string; +} + +// @public (undocumented) +export interface ErrorModelOutput { + error?: ErrorModelErrorOutput; +} + +// @public +export type GetArrayType = T extends Array ? TData : never; + +// @public +export function getLongRunningPoller(client: Client, initialResponse: TResult, options?: LroEngineOptions>): PollerLike, TResult>; + +// @public +export type GetPage = (pageLink: string, maxPageSize?: number) => Promise<{ + page: TPage; + nextPageLink?: string; +}>; + +// @public (undocumented) +export function isUnexpected(response: ClustersGet200Response | ClustersGetdefaultResponse): response is ClustersGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersCreateOrUpdate200Response | ClustersCreateOrUpdate202Response | ClustersCreateOrUpdatedefaultResponse): response is ClustersCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersUpdate200Response | ClustersUpdate202Response | ClustersUpdatedefaultResponse): response is ClustersUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersDelete200Response | ClustersDelete204Response | ClustersDeletedefaultResponse): response is ClustersDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersListByResourceGroup200Response | ClustersListByResourceGroupdefaultResponse): response is ClustersListByResourceGroupdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersList200Response | ClustersListdefaultResponse): response is ClustersListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersListUpgradableVersions200Response | ClustersListUpgradableVersionsdefaultResponse): response is ClustersListUpgradableVersionsdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClusterVersionsGet200Response | ClusterVersionsGetdefaultResponse): response is ClusterVersionsGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClusterVersionsGetByEnvironment200Response | ClusterVersionsGetByEnvironmentdefaultResponse): response is ClusterVersionsGetByEnvironmentdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClusterVersionsList200Response | ClusterVersionsListdefaultResponse): response is ClusterVersionsListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClusterVersionsListByEnvironment200Response | ClusterVersionsListByEnvironmentdefaultResponse): response is ClusterVersionsListByEnvironmentdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: OperationsList200Response | OperationsListdefaultResponse): response is OperationsListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypesGet200Response | ApplicationTypesGetdefaultResponse): response is ApplicationTypesGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypesCreateOrUpdate200Response | ApplicationTypesCreateOrUpdatedefaultResponse): response is ApplicationTypesCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypesDelete202Response | ApplicationTypesDelete204Response | ApplicationTypesDeletedefaultResponse): response is ApplicationTypesDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypesList200Response | ApplicationTypesListdefaultResponse): response is ApplicationTypesListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypeVersionsGet200Response | ApplicationTypeVersionsGetdefaultResponse): response is ApplicationTypeVersionsGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypeVersionsCreateOrUpdate202Response | ApplicationTypeVersionsCreateOrUpdatedefaultResponse): response is ApplicationTypeVersionsCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypeVersionsDelete202Response | ApplicationTypeVersionsDelete204Response | ApplicationTypeVersionsDeletedefaultResponse): response is ApplicationTypeVersionsDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypeVersionsList200Response | ApplicationTypeVersionsListdefaultResponse): response is ApplicationTypeVersionsListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsGet200Response | ApplicationsGetdefaultResponse): response is ApplicationsGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsCreateOrUpdate202Response | ApplicationsCreateOrUpdatedefaultResponse): response is ApplicationsCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsUpdate202Response | ApplicationsUpdatedefaultResponse): response is ApplicationsUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsDelete202Response | ApplicationsDelete204Response | ApplicationsDeletedefaultResponse): response is ApplicationsDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsList200Response | ApplicationsListdefaultResponse): response is ApplicationsListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesGet200Response | ServicesGetdefaultResponse): response is ServicesGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesCreateOrUpdate202Response | ServicesCreateOrUpdatedefaultResponse): response is ServicesCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesUpdate202Response | ServicesUpdatedefaultResponse): response is ServicesUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesDelete202Response | ServicesDelete204Response | ServicesDeletedefaultResponse): response is ServicesDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesList200Response | ServicesListdefaultResponse): response is ServicesListdefaultResponse; + +// @public (undocumented) +export interface ManagedIdentity { + principalId?: string; + tenantId?: string; + type?: "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; + userAssignedIdentities?: Record; +} + +// @public (undocumented) +export interface ManagedIdentityOutput { + principalId?: string; + tenantId?: string; + type?: "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; + userAssignedIdentities?: Record; +} + +// @public (undocumented) +export interface NamedPartitionSchemeDescription extends PartitionSchemeDescriptionParent { + count: number; + names: Array; + // (undocumented) + partitionScheme: "Named"; +} + +// @public (undocumented) +export interface NamedPartitionSchemeDescriptionOutput extends PartitionSchemeDescriptionOutputParent { + count: number; + names: Array; + // (undocumented) + partitionScheme: "Named"; +} + +// @public (undocumented) +export interface NodeTypeDescription { + applicationPorts?: EndpointRangeDescription; + capacities?: Record; + clientConnectionEndpointPort: number; + durabilityLevel?: "Bronze" | "Silver" | "Gold"; + ephemeralPorts?: EndpointRangeDescription; + httpGatewayEndpointPort: number; + isPrimary: boolean; + isStateless?: boolean; + multipleAvailabilityZones?: boolean; + name: string; + placementProperties?: Record; + reverseProxyEndpointPort?: number; + vmInstanceCount: number; +} + +// @public (undocumented) +export interface NodeTypeDescriptionOutput { + applicationPorts?: EndpointRangeDescriptionOutput; + capacities?: Record; + clientConnectionEndpointPort: number; + durabilityLevel?: "Bronze" | "Silver" | "Gold"; + ephemeralPorts?: EndpointRangeDescriptionOutput; + httpGatewayEndpointPort: number; + isPrimary: boolean; + isStateless?: boolean; + multipleAvailabilityZones?: boolean; + name: string; + placementProperties?: Record; + reverseProxyEndpointPort?: number; + vmInstanceCount: number; +} + +// @public (undocumented) +export interface Notification { + isEnabled: boolean; + notificationCategory: "WaveProgress"; + notificationLevel: "Critical" | "All"; + notificationTargets: Array; +} + +// @public (undocumented) +export interface NotificationOutput { + isEnabled: boolean; + notificationCategory: "WaveProgress"; + notificationLevel: "Critical" | "All"; + notificationTargets: Array; +} + +// @public (undocumented) +export interface NotificationTarget { + notificationChannel: "EmailUser" | "EmailSubscription"; + receivers: Array; +} + +// @public (undocumented) +export interface NotificationTargetOutput { + notificationChannel: "EmailUser" | "EmailSubscription"; + receivers: Array; +} + +// @public (undocumented) +export interface OperationListResultOutput { + nextLink?: string; + value?: Array; +} + +// @public (undocumented) +export interface OperationResultOutput { + display?: AvailableOperationDisplayOutput; + isDataAction?: boolean; + name?: string; + nextLink?: string; + origin?: string; +} + +// @public (undocumented) +export interface OperationsList { + get(options?: OperationsListParameters): StreamableMethod; +} + +// @public +export interface OperationsList200Response extends HttpResponse { + // (undocumented) + body: OperationListResultOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface OperationsListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type OperationsListParameters = RequestParameters; + +// @public +export function paginate(client: Client, initialResponse: TResponse, options?: PagingOptions): PagedAsyncIterableIterator>; + +// @public +export type PaginateReturn = TResult extends { + body: { + value?: infer TPage; + }; +} ? GetArrayType : Array; + +// @public +export interface PagingOptions { + customGetPage?: GetPage[]>; +} + +// @public (undocumented) +export type PartitionSchemeDescription = NamedPartitionSchemeDescription | SingletonPartitionSchemeDescription | UniformInt64RangePartitionSchemeDescription; + +// @public (undocumented) +export type PartitionSchemeDescriptionOutput = NamedPartitionSchemeDescriptionOutput | SingletonPartitionSchemeDescriptionOutput | UniformInt64RangePartitionSchemeDescriptionOutput; + +// @public (undocumented) +export interface PartitionSchemeDescriptionOutputParent { + // (undocumented) + partitionScheme: "PartitionSchemeDescription" | "Named" | "Singleton" | "UniformInt64Range"; +} + +// @public (undocumented) +export interface PartitionSchemeDescriptionParent { + // (undocumented) + partitionScheme: "PartitionSchemeDescription" | "Named" | "Singleton" | "UniformInt64Range"; +} + +// @public (undocumented) +export interface ProxyResource { + etag?: string; + id?: string; + location?: string; + name?: string; + systemData?: SystemData; + tags?: Record; + type?: string; +} + +// @public (undocumented) +export interface ProxyResourceOutput { + etag?: string; + id?: string; + location?: string; + name?: string; + systemData?: SystemDataOutput; + tags?: Record; + type?: string; +} + +// @public (undocumented) +export interface Resource { + etag?: string; + id?: string; + location: string; + name?: string; + systemData?: SystemData; + tags?: Record; + type?: string; +} + +// @public (undocumented) +export interface ResourceOutput { + etag?: string; + id?: string; + location: string; + name?: string; + systemData?: SystemDataOutput; + tags?: Record; + type?: string; +} + +// @public (undocumented) +export interface Routes { + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet; + (path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters", subscriptionId: string, resourceGroupName: string): ClustersListByResourceGroup; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters", subscriptionId: string): ClustersList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/listUpgradableVersions", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersListUpgradableVersions; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}", subscriptionId: string, location: string, clusterVersion: string): ClusterVersionsGet; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}", subscriptionId: string, location: string, environment: "Windows" | "Linux", clusterVersion: string): ClusterVersionsGetByEnvironment; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions", subscriptionId: string, location: string): ClusterVersionsList; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions", subscriptionId: string, location: string, environment: "Windows" | "Linux"): ClusterVersionsListByEnvironment; + (path: "/providers/Microsoft.ServiceFabric/operations"): OperationsList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string): ApplicationTypesGet; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes", subscriptionId: string, resourceGroupName: string, clusterName: string): ApplicationTypesList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string): ApplicationTypeVersionsGet; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string): ApplicationTypeVersionsList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string): ApplicationsGet; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications", subscriptionId: string, resourceGroupName: string, clusterName: string): ApplicationsList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string): ServicesGet; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string): ServicesList; +} + +// @public (undocumented) +export interface ServerCertificateCommonName { + certificateCommonName: string; + certificateIssuerThumbprint: string; +} + +// @public (undocumented) +export interface ServerCertificateCommonNameOutput { + certificateCommonName: string; + certificateIssuerThumbprint: string; +} + +// @public (undocumented) +export interface ServerCertificateCommonNames { + commonNames?: Array; + x509StoreName?: "AddressBook" | "AuthRoot" | "CertificateAuthority" | "Disallowed" | "My" | "Root" | "TrustedPeople" | "TrustedPublisher"; +} + +// @public (undocumented) +export interface ServerCertificateCommonNamesOutput { + commonNames?: Array; + x509StoreName?: "AddressBook" | "AuthRoot" | "CertificateAuthority" | "Disallowed" | "My" | "Root" | "TrustedPeople" | "TrustedPublisher"; +} + +// @public (undocumented) +export interface ServiceCorrelationDescription { + scheme: "Invalid" | "Affinity" | "AlignedAffinity" | "NonAlignedAffinity"; + serviceName: string; +} + +// @public (undocumented) +export interface ServiceCorrelationDescriptionOutput { + scheme: "Invalid" | "Affinity" | "AlignedAffinity" | "NonAlignedAffinity"; + serviceName: string; +} + +// @public (undocumented) +export type ServiceFabricClient = Client & { + path: Routes; +}; + +// @public (undocumented) +export interface ServiceLoadMetricDescription { + defaultLoad?: number; + name: string; + primaryDefaultLoad?: number; + secondaryDefaultLoad?: number; + weight?: "Zero" | "Low" | "Medium" | "High"; +} + +// @public (undocumented) +export interface ServiceLoadMetricDescriptionOutput { + defaultLoad?: number; + name: string; + primaryDefaultLoad?: number; + secondaryDefaultLoad?: number; + weight?: "Zero" | "Low" | "Medium" | "High"; +} + +// @public (undocumented) +export interface ServicePlacementPolicyDescription { + // (undocumented) + type: "ServicePlacementPolicyDescription"; +} + +// @public (undocumented) +export interface ServicePlacementPolicyDescriptionOutput { + // (undocumented) + type: "ServicePlacementPolicyDescription"; +} + +// @public (undocumented) +export interface ServiceResource extends ProxyResource { + properties?: ServiceResourceProperties; +} + +// @public (undocumented) +export interface ServiceResourceListOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ServiceResourceOutput extends ProxyResourceOutput { + properties?: ServiceResourcePropertiesOutput; +} + +// @public (undocumented) +export type ServiceResourceProperties = StatefulServiceProperties | StatelessServiceProperties; + +// @public (undocumented) +export interface ServiceResourcePropertiesBase { + correlationScheme?: Array; + defaultMoveCost?: "Zero" | "Low" | "Medium" | "High"; + placementConstraints?: string; + serviceLoadMetrics?: Array; + servicePlacementPolicies?: Array; +} + +// @public (undocumented) +export interface ServiceResourcePropertiesBaseOutput { + correlationScheme?: Array; + defaultMoveCost?: "Zero" | "Low" | "Medium" | "High"; + placementConstraints?: string; + serviceLoadMetrics?: Array; + servicePlacementPolicies?: Array; +} + +// @public (undocumented) +export type ServiceResourcePropertiesOutput = StatefulServicePropertiesOutput | StatelessServicePropertiesOutput; + +// @public (undocumented) +export interface ServiceResourcePropertiesOutputParent extends ServiceResourcePropertiesBaseOutput { + partitionDescription?: PartitionSchemeDescriptionOutput; + provisioningState?: string; + serviceDnsName?: string; + // (undocumented) + serviceKind: "ServiceResourceProperties" | "Stateful" | "Stateless"; + servicePackageActivationMode?: "SharedProcess" | "ExclusiveProcess"; + serviceTypeName?: string; +} + +// @public (undocumented) +export interface ServiceResourcePropertiesParent extends ServiceResourcePropertiesBase { + partitionDescription?: PartitionSchemeDescription; + provisioningState?: string; + serviceDnsName?: string; + // (undocumented) + serviceKind: "ServiceResourceProperties" | "Stateful" | "Stateless"; + servicePackageActivationMode?: "SharedProcess" | "ExclusiveProcess"; + serviceTypeName?: string; +} + +// @public (undocumented) +export interface ServiceResourceUpdate extends ProxyResource { + properties?: ServiceResourceUpdateProperties; +} + +// @public (undocumented) +export interface ServiceResourceUpdateOutput extends ProxyResourceOutput { + properties?: ServiceResourceUpdatePropertiesOutput; +} + +// @public (undocumented) +export type ServiceResourceUpdateProperties = StatefulServiceUpdateProperties | StatelessServiceUpdateProperties; + +// @public (undocumented) +export type ServiceResourceUpdatePropertiesOutput = StatefulServiceUpdatePropertiesOutput | StatelessServiceUpdatePropertiesOutput; + +// @public (undocumented) +export interface ServiceResourceUpdatePropertiesOutputParent extends ServiceResourcePropertiesBaseOutput { + // (undocumented) + serviceKind: "ServiceResourceUpdateProperties" | "Stateful" | "Stateless"; +} + +// @public (undocumented) +export interface ServiceResourceUpdatePropertiesParent extends ServiceResourcePropertiesBase { + // (undocumented) + serviceKind: "ServiceResourceUpdateProperties" | "Stateful" | "Stateless"; +} + +// @public +export interface ServicesCreateOrUpdate202Response extends HttpResponse { + // (undocumented) + body: ServiceResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ServicesCreateOrUpdateBodyParam { + body: ServiceResource; +} + +// @public +export interface ServicesCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ServicesCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ServicesCreateOrUpdateParameters = ServicesCreateOrUpdateMediaTypesParam & ServicesCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ServicesDelete202Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "202"; +} + +// @public +export interface ServicesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ServicesDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ServicesDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ServicesGet { + delete(options?: ServicesDeleteParameters): StreamableMethod; + get(options?: ServicesGetParameters): StreamableMethod; + patch(options: ServicesUpdateParameters): StreamableMethod; + put(options: ServicesCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ServicesGet200Response extends HttpResponse { + // (undocumented) + body: ServiceResourceOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ServicesGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ServicesGetParameters = RequestParameters; + +// @public (undocumented) +export interface ServicesList { + get(options?: ServicesListParameters): StreamableMethod; +} + +// @public +export interface ServicesList200Response extends HttpResponse { + // (undocumented) + body: ServiceResourceListOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ServicesListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ServicesListParameters = RequestParameters; + +// @public +export interface ServicesUpdate202Response extends HttpResponse { + // (undocumented) + body: ServiceResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ServicesUpdateBodyParam { + body: ServiceResourceUpdate; +} + +// @public +export interface ServicesUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ServicesUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ServicesUpdateParameters = ServicesUpdateMediaTypesParam & ServicesUpdateBodyParam & RequestParameters; + +// @public (undocumented) +export interface ServiceTypeDeltaHealthPolicy { + maxPercentDeltaUnhealthyServices?: number; +} + +// @public (undocumented) +export interface ServiceTypeDeltaHealthPolicyOutput { + maxPercentDeltaUnhealthyServices?: number; +} + +// @public (undocumented) +export interface ServiceTypeHealthPolicy { + maxPercentUnhealthyServices?: number; +} + +// @public (undocumented) +export interface ServiceTypeHealthPolicyOutput { + maxPercentUnhealthyServices?: number; +} + +// @public (undocumented) +export interface SettingsParameterDescription { + name: string; + value: string; +} + +// @public (undocumented) +export interface SettingsParameterDescriptionOutput { + name: string; + value: string; +} + +// @public (undocumented) +export interface SettingsSectionDescription { + name: string; + parameters: Array; +} + +// @public (undocumented) +export interface SettingsSectionDescriptionOutput { + name: string; + parameters: Array; +} + +// @public (undocumented) +export interface SingletonPartitionSchemeDescription extends PartitionSchemeDescriptionParent { + // (undocumented) + partitionScheme: "Singleton"; +} + +// @public (undocumented) +export interface SingletonPartitionSchemeDescriptionOutput extends PartitionSchemeDescriptionOutputParent { + // (undocumented) + partitionScheme: "Singleton"; +} + +// @public (undocumented) +export interface StatefulServiceProperties extends ServiceResourcePropertiesParent { + hasPersistedState?: boolean; + minReplicaSetSize?: number; + quorumLossWaitDuration?: Date | string; + replicaRestartWaitDuration?: Date | string; + // (undocumented) + serviceKind: "Stateful"; + standByReplicaKeepDuration?: Date | string; + targetReplicaSetSize?: number; +} + +// @public (undocumented) +export interface StatefulServicePropertiesOutput extends ServiceResourcePropertiesOutputParent { + hasPersistedState?: boolean; + minReplicaSetSize?: number; + quorumLossWaitDuration?: string; + replicaRestartWaitDuration?: string; + // (undocumented) + serviceKind: "Stateful"; + standByReplicaKeepDuration?: string; + targetReplicaSetSize?: number; +} + +// @public (undocumented) +export interface StatefulServiceUpdateProperties extends ServiceResourceUpdatePropertiesParent { + minReplicaSetSize?: number; + quorumLossWaitDuration?: Date | string; + replicaRestartWaitDuration?: Date | string; + // (undocumented) + serviceKind: "Stateful"; + standByReplicaKeepDuration?: Date | string; + targetReplicaSetSize?: number; +} + +// @public (undocumented) +export interface StatefulServiceUpdatePropertiesOutput extends ServiceResourceUpdatePropertiesOutputParent { + minReplicaSetSize?: number; + quorumLossWaitDuration?: string; + replicaRestartWaitDuration?: string; + // (undocumented) + serviceKind: "Stateful"; + standByReplicaKeepDuration?: string; + targetReplicaSetSize?: number; +} + +// @public (undocumented) +export interface StatelessServiceProperties extends ServiceResourcePropertiesParent { + instanceCloseDelayDuration?: string; + instanceCount?: number; + // (undocumented) + serviceKind: "Stateless"; +} + +// @public (undocumented) +export interface StatelessServicePropertiesOutput extends ServiceResourcePropertiesOutputParent { + instanceCloseDelayDuration?: string; + instanceCount?: number; + // (undocumented) + serviceKind: "Stateless"; +} + +// @public (undocumented) +export interface StatelessServiceUpdateProperties extends ServiceResourceUpdatePropertiesParent { + instanceCloseDelayDuration?: string; + instanceCount?: number; + // (undocumented) + serviceKind: "Stateless"; +} + +// @public (undocumented) +export interface StatelessServiceUpdatePropertiesOutput extends ServiceResourceUpdatePropertiesOutputParent { + instanceCloseDelayDuration?: string; + instanceCount?: number; + // (undocumented) + serviceKind: "Stateless"; +} + +// @public (undocumented) +export interface SystemData { + createdAt?: Date | string; + createdBy?: string; + createdByType?: string; + lastModifiedAt?: Date | string; + lastModifiedBy?: string; + lastModifiedByType?: string; +} + +// @public (undocumented) +export interface SystemDataOutput { + createdAt?: string; + createdBy?: string; + createdByType?: string; + lastModifiedAt?: string; + lastModifiedBy?: string; + lastModifiedByType?: string; +} + +// @public (undocumented) +export interface UniformInt64RangePartitionSchemeDescription extends PartitionSchemeDescriptionParent { + count: number; + highKey: string; + lowKey: string; + // (undocumented) + partitionScheme: "UniformInt64Range"; +} + +// @public (undocumented) +export interface UniformInt64RangePartitionSchemeDescriptionOutput extends PartitionSchemeDescriptionOutputParent { + count: number; + highKey: string; + lowKey: string; + // (undocumented) + partitionScheme: "UniformInt64Range"; +} + +// @public (undocumented) +export interface UpgradableVersionPathResultOutput { + // (undocumented) + supportedPath?: Array; +} + +// @public (undocumented) +export interface UpgradableVersionsDescription { + targetVersion: string; +} + +// @public (undocumented) +export interface UserAssignedIdentity { + clientId?: string; + principalId?: string; +} + +// @public (undocumented) +export interface UserAssignedIdentityOutput { + clientId?: string; + principalId?: string; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts deleted file mode 100644 index 8fa78f0c167..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/customClient.ts +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { getClient, ClientOptions } from '@azure-rest/core-client'; -import { logger } from './logger'; -import * as coreRestPipeline from '@azure/core-rest-pipeline'; -import { TextTranslationClient } from './clientDefinitions'; -import { - DEFAULT_SCOPE, - TranslatorCredential, - TranslatorTokenCredential, - TranslatorAuthenticationPolicy, - TranslatorAzureKeyAuthenticationPolicy, - TranslatorTokenCredentialAuthenticationPolicy, -} from './custom/authentication'; -import { AzureKeyCredential, KeyCredential, TokenCredential } from '@azure/core-auth'; - -const DEFAULT_ENPOINT = 'https://api.cognitive.microsofttranslator.com'; -const PLATFORM_HOST = 'cognitiveservices'; -const PLATFORM_PATH = '/translator/text/v3.0'; - -function isKeyCredential(credential: any): credential is KeyCredential { - return (credential as KeyCredential)?.key !== undefined; -} - -function isTranslatorKeyCredential(credential: any): credential is TranslatorCredential { - return (credential as TranslatorCredential)?.key !== undefined; -} - -function isTokenCredential(credential: any): credential is TokenCredential { - return (credential as TokenCredential)?.getToken !== undefined; -} - -function isTranslatorTokenCredential(credential: any): credential is TranslatorTokenCredential { - return ( - (credential as TranslatorTokenCredential)?.tokenCredential !== undefined && - (credential as TranslatorTokenCredential)?.azureResourceId !== undefined - ); -} - -/** - * Initialize a new instance of `TextTranslationClient` - * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: - * https://api.cognitive.microsofttranslator.com). - * @param options type: ClientOptions, the parameter for all optional parameters - */ -export default function createClient( - endpoint: undefined | string, - credential: - | undefined - | TranslatorCredential - | TranslatorTokenCredential - | KeyCredential - | TokenCredential = undefined, - options: ClientOptions = {} -): TextTranslationClient { - let serviceEndpoint: string; - - options.apiVersion = options.apiVersion ?? '3.0'; - - if (!endpoint) { - serviceEndpoint = DEFAULT_ENPOINT; - } else if (endpoint.toLowerCase().indexOf(PLATFORM_HOST) !== -1) { - serviceEndpoint = `${endpoint}${PLATFORM_PATH}`; - } else { - serviceEndpoint = endpoint; - } - - const baseUrl = options.baseUrl ?? `${serviceEndpoint}`; - - const userAgentInfo = `azsdk-js-ai-translation-text-rest/1.0.0-beta.2`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` - : `${userAgentInfo}`; - options = { - ...options, - userAgentOptions: { - userAgentPrefix, - }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger.info, - }, - }; - - const client = getClient(baseUrl, options) as TextTranslationClient; - - if (isTranslatorKeyCredential(credential)) { - const mtAuthneticationPolicy = new TranslatorAuthenticationPolicy(credential as TranslatorCredential); - client.pipeline.addPolicy(mtAuthneticationPolicy); - } else if (isKeyCredential(credential)) { - const mtKeyAuthenticationPolicy = new TranslatorAzureKeyAuthenticationPolicy(credential as AzureKeyCredential); - client.pipeline.addPolicy(mtKeyAuthenticationPolicy); - } else if (isTokenCredential(credential)) { - client.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credential as TokenCredential, - scopes: DEFAULT_SCOPE, - }) - ); - } else if (isTranslatorTokenCredential(credential)) { - client.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: (credential as TranslatorTokenCredential).tokenCredential, - scopes: DEFAULT_SCOPE, - }) - ); - client.pipeline.addPolicy( - new TranslatorTokenCredentialAuthenticationPolicy(credential as TranslatorTokenCredential) - ); - } - - return client; -} diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts deleted file mode 100644 index 4b2bb73cebb..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/models.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** Element containing the text for translation. */ -export interface InputTextItem { - /** Text to translate. */ - text: string; -} - -/** Element containing the text with translation. */ -export interface DictionaryExampleTextItem extends InputTextItem { - /** - * A string specifying the translated text previously returned by the Dictionary lookup operation. - * This should be the value from the normalizedTarget field in the translations list of the Dictionary - * lookup response. The service will return examples for the specific source-target word-pair. - */ - translation: string; -} diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts deleted file mode 100644 index b5de51d4d11..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/src/parameters.ts +++ /dev/null @@ -1,292 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; -import { RequestParameters } from "@azure-rest/core-client"; -import { InputTextItem, DictionaryExampleTextItem } from "./models"; - -export interface GetLanguagesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; - /** - * The language to use for user interface strings. Some of the fields in the response are names of languages or - * names of regions. Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` - * to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. - * Names are provided in the English language when a target language is not specified or when localization - * is not available. - */ - "Accept-Language"?: string; - /** - * Passing the value of the ETag response header in an If-None-Match field will allow the service to optimize the response. - * If the resource has not been modified, the service will return status code 304 and an empty response body. - */ - "If-None-Match"?: string; -} - -export interface GetLanguagesQueryParamProperties { - /** - * A comma-separated list of names defining the group of languages to return. - * Allowed group names are: `translation`, `transliteration` and `dictionary`. - * If no scope is given, then all groups are returned, which is equivalent to passing - * `scope=translation,transliteration,dictionary`. To decide which set of supported languages - * is appropriate for your scenario, see the description of the [response object](#response-body). - */ - scope?: string; -} - -export interface GetLanguagesQueryParam { - queryParameters?: GetLanguagesQueryParamProperties; -} - -export interface GetLanguagesHeaderParam { - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} - -export type GetLanguagesParameters = GetLanguagesQueryParam & - GetLanguagesHeaderParam & - RequestParameters; - -export interface TranslateHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface TranslateBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface TranslateQueryParamProperties { - /** - * Specifies the language of the output text. The target language must be one of the supported languages included - * in the translation scope. For example, use to=de to translate to German. - * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. - * For example, use to=de&to=it to translate to German and Italian. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request - */ - to: string; - /** - * Specifies the language of the input text. Find which languages are available to translate from by - * looking up supported languages using the translation scope. If the from parameter isn't specified, - * automatic language detection is applied to determine the source language. - * - * You must use the from parameter rather than autodetection when using the dynamic dictionary feature. - * Note: the dynamic dictionary feature is case-sensitive. - */ - from?: string; - /** - * Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, - * complete element. Possible values are: plain (default) or html. - */ - textType?: string; - /** - * A string specifying the category (domain) of the translation. This parameter is used to get translations - * from a customized system built with Custom Translator. Add the Category ID from your Custom Translator - * project details to this parameter to use your deployed customized system. Default value is: general. - */ - category?: string; - /** - * Specifies how profanities should be treated in translations. - * Possible values are: NoAction (default), Marked or Deleted. - */ - profanityAction?: string; - /** - * Specifies how profanities should be marked in translations. - * Possible values are: Asterisk (default) or Tag. - */ - profanityMarker?: string; - /** - * Specifies whether to include alignment projection from source text to translated text. - * Possible values are: true or false (default). - */ - includeAlignment?: boolean; - /** - * Specifies whether to include sentence boundaries for the input text and the translated text. - * Possible values are: true or false (default). - */ - includeSentenceLength?: boolean; - /** - * Specifies a fallback language if the language of the input text can't be identified. - * Language autodetection is applied when the from parameter is omitted. If detection fails, - * the suggestedFrom language will be assumed. - */ - suggestedFrom?: string; - /** Specifies the script of the input text. */ - fromScript?: string; - /** Specifies the script of the translated text. */ - toScript?: string; - /** - * Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. - * Possible values are: true (default) or false. - * - * allowFallback=false specifies that the translation should only use systems trained for the category specified - * by the request. If a translation for language X to language Y requires chaining through a pivot language E, - * then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. - * If no system is found with the specific category, the request will return a 400 status code. allowFallback=true - * specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. - */ - allowFallback?: boolean; -} - -export interface TranslateQueryParam { - queryParameters: TranslateQueryParamProperties; -} - -export interface TranslateHeaderParam { - headers?: RawHttpHeadersInput & TranslateHeaders; -} - -export type TranslateParameters = TranslateQueryParam & - TranslateHeaderParam & - TranslateBodyParam & - RequestParameters; - -export interface TransliterateHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface TransliterateBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface TransliterateQueryParamProperties { - /** - * Specifies the language of the text to convert from one script to another. - * Possible languages are listed in the transliteration scope obtained by querying the service - * for its supported languages. - */ - language: string; - /** - * Specifies the script used by the input text. Look up supported languages using the transliteration scope, - * to find input scripts available for the selected language. - */ - fromScript: string; - /** - * Specifies the output script. Look up supported languages using the transliteration scope, to find output - * scripts available for the selected combination of input language and input script. - */ - toScript: string; -} - -export interface TransliterateQueryParam { - queryParameters: TransliterateQueryParamProperties; -} - -export interface TransliterateHeaderParam { - headers?: RawHttpHeadersInput & TransliterateHeaders; -} - -export type TransliterateParameters = TransliterateQueryParam & - TransliterateHeaderParam & - TransliterateBodyParam & - RequestParameters; - -export interface FindSentenceBoundariesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface FindSentenceBoundariesBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface FindSentenceBoundariesQueryParamProperties { - /** - * Language tag identifying the language of the input text. - * If a code isn't specified, automatic language detection will be applied. - */ - language?: string; - /** - * Script tag identifying the script used by the input text. - * If a script isn't specified, the default script of the language will be assumed. - */ - script?: string; -} - -export interface FindSentenceBoundariesQueryParam { - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} - -export interface FindSentenceBoundariesHeaderParam { - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} - -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & - FindSentenceBoundariesHeaderParam & - FindSentenceBoundariesBodyParam & - RequestParameters; - -export interface LookupDictionaryEntriesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface LookupDictionaryEntriesBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface LookupDictionaryEntriesQueryParamProperties { - /** - * Specifies the language of the input text. - * The source language must be one of the supported languages included in the dictionary scope. - */ - from: string; - /** - * Specifies the language of the output text. - * The target language must be one of the supported languages included in the dictionary scope. - */ - to: string; -} - -export interface LookupDictionaryEntriesQueryParam { - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} - -export interface LookupDictionaryEntriesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} - -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & - LookupDictionaryEntriesHeaderParam & - LookupDictionaryEntriesBodyParam & - RequestParameters; - -export interface LookupDictionaryExamplesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface LookupDictionaryExamplesBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface LookupDictionaryExamplesQueryParamProperties { - /** - * Specifies the language of the input text. - * The source language must be one of the supported languages included in the dictionary scope. - */ - from: string; - /** - * Specifies the language of the output text. - * The target language must be one of the supported languages included in the dictionary scope. - */ - to: string; -} - -export interface LookupDictionaryExamplesQueryParam { - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} - -export interface LookupDictionaryExamplesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} - -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & - LookupDictionaryExamplesHeaderParam & - LookupDictionaryExamplesBodyParam & - RequestParameters; diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json deleted file mode 100644 index 1d1f181774f..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/baseline-package/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../tsconfig.base", - "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - "paths": { - "@azure-rest/ai-translation-text": ["./src/index"] - } - }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts", "review/**/*.ts"] -} diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md index ba5e63ee7e2..daaa1db24a6 100644 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/CHANGELOG.md @@ -1,23 +1,17 @@ # Release History - -## 1.0.0-beta.2 (Unreleased) - + +## 1.0.0 (2024-08-16) + ### Features Added -- Added support for AAD authentication. - -### Breaking Changes -### Bugs Fixed + - Added operation group ClustersGet_DDD + - Added Interface DiagnosticsStorageAccountConfigOutput_FFF -### Other Changes - -## 1.0.0-beta.1 (2023-04-18) -Initial release +### Breaking Changes -### Features Added -- Added support for Text Translation - [Translate API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate) -- Added support for Text Transliteration - [Transliterate API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-transliterate) -- Added support for Finding Sentence Boundaries - [FindSentenceBoundaries API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-break-sentence) -- Added support for Getting the Supported Languages - [GetLanguages API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages) -- Added support for Looking up the Dictionary Entries - [LookupDictionaryEntries API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-lookup) -- Added support for Looking up the Dictionary Examples - [LookupDictionaryExamples API](https://learn.microsoft.com/azure/cognitive-services/translator/reference/v3-0-dictionary-examples) + - Removed operation group ClustersGet + - Operation ClusterVersionsGet.get has a new signature + - Interface DiagnosticsStorageAccountConfig no longer has parameter protectedAccountKeyName + - Interface DiagnosticsStorageAccountConfig has a new required parameter protectedAccountKeyName_GGG + - Type of parameter diagnosticsStorageAccountConfig of interface ClusterPropertiesOutput is changed from DiagnosticsStorageAccountConfigOutput to DiagnosticsStorageAccountConfigOutput_FFF + diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json index 0d2d53b154f..81136257d0c 100644 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/package.json @@ -1,24 +1,22 @@ { - "name": "@azure-rest/ai-translation-text", + "name": "@azure-rest/arm-servicefabric", "sdk-type": "client", "author": "Microsoft Corporation", - "version": "1.0.0-beta.2", - "description": "An isomorphic client library for the Azure Cognitive Translator Service", - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/translation/ai-translation-text-rest/README.md", + "version": "1.0.0", + "description": "", "keywords": [ "node", "azure", "cloud", "typescript", "browser", - "isomorphic", - "translate", - "translation" + "isomorphic" ], "license": "MIT", "main": "dist/index.js", "module": "./dist-esm/src/index.js", - "types": "./types/ai-translation-text.d.ts", + "types": "./types/arm-servicefabric.d.ts", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric-rest/README.md", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" @@ -26,30 +24,27 @@ "files": [ "dist/", "dist-esm/src/", - "types/ai-translation-text.d.ts", + "types/arm-servicefabric.d.ts", "README.md", - "CHANGELOG.md", - "LICENSE" + "LICENSE", + "review/*" ], + "//metadata": { + "constantPaths": [ + { + "path": "swagger/README.md", + "prefix": "package-version" + } + ] + }, "engines": { "node": ">=18.0.0" }, - "//sampleConfiguration": { - "productName": "Azure Text Translation Service", - "productSlugs": [ - "azure", - "azure-cognitive-services", - "azure-translator" - ], - "requiredResources": { - "Translator resource instance": "https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource" - } - }, "scripts": { "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", "build:browser": "tsc -p . && dev-tool run bundle", "build:node": "tsc -p . && dev-tool run bundle --browser-test false", - "build:samples": "echo Obsolete.", + "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", @@ -57,7 +52,7 @@ "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "generate:client": "echo skipped", + "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -76,10 +71,12 @@ "autoPublish": false, "dependencies": { "@azure/core-auth": "^1.3.0", - "@azure-rest/core-client": "^1.1.0", + "@azure-rest/core-client": "^1.0.0", "@azure/core-rest-pipeline": "^1.8.0", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.2.0", + "@azure/core-paging": "^1.2.0", + "@azure/core-lro": "^2.2.0" }, "devDependencies": { "@microsoft/api-extractor": "^7.31.1", @@ -90,14 +87,13 @@ "mkdirp": "^3.0.1", "rimraf": "^5.0.5", "source-map-support": "^0.5.9", - "typescript": "~5.4.5", + "typescript": "~5.5.3", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "mocha": "^10.0.0", - "@types/mocha": "^10.0.0", "cross-env": "^7.0.2", "@types/chai": "^4.2.8", "chai": "^4.2.0", @@ -111,15 +107,19 @@ "karma-source-map-support": "~1.4.0", "karma-sourcemap-loader": "^0.3.8", "karma": "^6.2.0", - "nyc": "^15.1.0", - "ts-node": "^10.0.0" + "nyc": "^17.0.0", + "ts-node": "^10.0.0", + "@types/mocha": "^10.0.0" }, - "//metadata": { - "constantPaths": [ - { - "path": "src/customClient.ts", - "prefix": "userAgentInfo" - } - ] + "browser": { + "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" + }, + "//sampleConfiguration": { + "productName": "", + "productSlugs": [ + "azure" + ], + "disableDocsMs": true, + "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure-rest/arm-servicefabric?view=azure-node-preview" } } diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md deleted file mode 100644 index 27ef4574f03..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/ai-translation-text.api.md +++ /dev/null @@ -1,650 +0,0 @@ -## API Report File for "@azure-rest/ai-translation-text" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - - -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { KeyCredential } from '@azure/core-auth'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; - -// @public -export interface BackTranslationOutput { - displayText: string; - frequencyCount: number; - normalizedText: string; - numExamples: number; -} - -// @public -export interface BreakSentenceItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sentLen: number[]; -} - -// @public (undocumented) -export function buildMultiCollection(items: string[], parameterName: string): string; - -// @public -export interface CommonScriptModelOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} - -// @public -function createClient(endpoint: undefined | string, credential?: undefined | TranslatorCredential | TranslatorTokenCredential | KeyCredential | TokenCredential, options?: ClientOptions): TextTranslationClient; -export default createClient; - -// @public -export interface DetectedLanguageOutput { - language: string; - score: number; -} - -// @public -export interface DictionaryExampleItemOutput { - examples: Array; - normalizedSource: string; - normalizedTarget: string; -} - -// @public -export interface DictionaryExampleOutput { - sourcePrefix: string; - sourceSuffix: string; - sourceTerm: string; - targetPrefix: string; - targetSuffix: string; - targetTerm: string; -} - -// @public -export interface DictionaryExampleTextItem extends InputTextItem { - translation: string; -} - -// @public -export interface DictionaryLookupItemOutput { - displaySource: string; - normalizedSource: string; - translations: Array; -} - -// @public -export interface DictionaryTranslationOutput { - backTranslations: Array; - confidence: number; - displayTarget: string; - normalizedTarget: string; - posTag: string; - prefixWord: string; -} - -// @public -export interface ErrorDetailsOutput { - code: number; - message: string; -} - -// @public -export interface ErrorResponseOutput { - error: ErrorDetailsOutput; -} - -// @public (undocumented) -export interface FindSentenceBoundaries { - post(options: FindSentenceBoundariesParameters): StreamableMethod; -} - -// @public (undocumented) -export interface FindSentenceBoundaries200Headers { - "x-requestid": string; -} - -// @public -export interface FindSentenceBoundaries200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & FindSentenceBoundaries200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface FindSentenceBoundariesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface FindSentenceBoundariesDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface FindSentenceBoundariesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & FindSentenceBoundariesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface FindSentenceBoundariesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} - -// @public (undocumented) -export interface FindSentenceBoundariesHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & FindSentenceBoundariesHeaderParam & FindSentenceBoundariesBodyParam & RequestParameters; - -// @public (undocumented) -export interface FindSentenceBoundariesQueryParam { - // (undocumented) - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} - -// @public (undocumented) -export interface FindSentenceBoundariesQueryParamProperties { - language?: string; - script?: string; -} - -// @public (undocumented) -export interface GetLanguagesUpcoming { - get(options?: GetLanguagesParametersAAAAAAA): StreamableMethod; -} - -// @public (undocumented) -export interface GetLanguages200Headers { - "x-requestid": string; - etag: string; -} - -// @public -export interface GetLanguages200Response_Change extends HttpResponse { - // (undocumented) - body: GetLanguagesResultOutput; - // (undocumented) - headers: RawHttpHeaders & GetLanguages200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface GetLanguagesDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface GetLanguagesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & GetLanguagesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface GetLanguagesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} - -// @public (undocumented) -export interface GetLanguagesHeaders { - "Accept-Language"?: string; - "If-None-Match"?: string; - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type GetLanguagesParametersAAAAAAA = GetLanguagesQueryParamAAA & GetLanguagesHeaderParam & RequestParameters; - -// @public (undocumented) -export interface GetLanguagesQueryParamAAA { - // (undocumented) - queryParameters?: GetLanguagesQueryParamProperties_Change; - testFunc(s:string): number - hehe: (c:number) => string -(v: object): boolean; -(vxxx: object): string; -} - -// @public (undocumented) -export interface GetLanguagesQueryParamProperties_Change { - scope?: string; -} - -// @public -export interface GetLanguagesResultOutput { - dictionary?: Record; - translation?: Record; - transliteration?: Record; -} - -// @public -export interface InputTextItem { - text: string; -} - -// @public (undocumented) -export function isUnexpected(response: GetLanguages200Response_Change | GetLanguagesDefaultResponse): response is GetLanguagesDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response is TranslateDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response is TransliterateDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response is FindSentenceBoundariesDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response is LookupDictionaryEntriesDefaultResponse; - -// @public (undocumented) -export function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response is LookupDictionaryExamplesDefaultResponse; - -// @public (undocumented) -export interface LookupDictionaryEntries { - post(options: LookupDictionaryEntriesParameters): StreamableMethod; -} - -// @public (undocumented) -export interface LookupDictionaryEntries200Headers { - "x-requestid": string; -} - -// @public -export interface LookupDictionaryEntries200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryEntries200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryEntriesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & LookupDictionaryEntriesHeaderParam & LookupDictionaryEntriesBodyParam & RequestParameters; - -// @public (undocumented) -export interface LookupDictionaryEntriesQueryParam { - // (undocumented) - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} - -// @public (undocumented) -export interface LookupDictionaryEntriesQueryParamProperties { - from: string; - to: string; -} - -// @public (undocumented) -export interface LookupDictionaryExamples { - post(options: LookupDictionaryExamplesParameters): StreamableMethod; -} - -// @public (undocumented) -export interface LookupDictionaryExamples200Headers { - "x-requestid": string; -} - -// @public -export interface LookupDictionaryExamples200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryExamples200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesBodyParam { - body: Array; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & LookupDictionaryExamplesDefaultHeaders; - // (undocumented) - status: string; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & LookupDictionaryExamplesHeaderParam & LookupDictionaryExamplesBodyParam & RequestParameters; - -// @public (undocumented) -export interface LookupDictionaryExamplesQueryParam { - // (undocumented) - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} - -// @public (undocumented) -export interface LookupDictionaryExamplesQueryParamProperties { - from: string; - to: string; -} - -// @public (undocumented) -export interface Routes { - (path: "/languages"): GetLanguagesUpcoming; - (path: "/translate"): Translate; - (path: "/transliterate"): Transliterate; - (path: "/breaksentence"): FindSentenceBoundaries; - (path: "/dictionary/lookup"): LookupDictionaryEntries; - (path: "/dictionary/examples"): LookupDictionaryExamples; -} - -// @public -export interface SentenceLengthOutput { - srcSentLen: number[]; - transSentLen: number[]; -} - -// @public -export interface SourceDictionaryLanguageOutput { - dir: string; - name: string; - nativeName: string; - translations: Array; -} - -// @public -export interface SourceTextOutput { - text: string; -} - -// @public -export interface TargetDictionaryLanguageOutput { - code: string; - dir: string; - name: string; - nativeName: string; -} - -// @public (undocumented) -export type TextTranslationClient = Client & { - path: Routes; -}; - -// @public (undocumented) -export interface Translate { - post(options: TranslateParameters): StreamableMethod; -} - -// @public (undocumented) -export interface Translate200Headers { - "x-metered-usage": number; - "x-mt-system": string; - "x-requestid": string; -} - -// @public -export interface Translate200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & Translate200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface TranslateBodyParam { - body: Array; -} - -// @public (undocumented) -export interface TranslateDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface TranslateDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & TranslateDefaultHeaders; - // (undocumented) - status: string; -} - -// @public -export interface TranslatedTextAlignmentOutput { - proj: string; -} - -// @public -export interface TranslatedTextItemOutput { - detectedLanguage?: DetectedLanguageOutput; - sourceText?: SourceTextOutput; - translations: Array; -} - -// @public (undocumented) -export interface TranslateHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & TranslateHeaders; -} - -// @public (undocumented) -export interface TranslateHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type TranslateParameters = TranslateQueryParam & TranslateHeaderParam & TranslateBodyParam & RequestParameters; - -// @public (undocumented) -export interface TranslateQueryParam { - // (undocumented) - queryParameters: TranslateQueryParamProperties; -} - -// @public (undocumented) -export interface TranslateQueryParamProperties { - allowFallback?: boolean; - category?: string; - from?: string; - fromScript?: string; - includeAlignment?: boolean; - includeSentenceLength?: boolean; - profanityAction?: string; - profanityMarker?: string; - suggestedFrom?: string; - textType?: string; - to: string; - toScript?: string; -} - -// @public -export interface TranslationLanguageOutput { - dir: string; - name: string; - nativeName: string; -} - -// @public -export interface TranslationOutput { - alignment?: TranslatedTextAlignmentOutput; - sentLen?: SentenceLengthOutput; - text: string; - to: string; - transliteration?: TransliteratedTextOutput; -} - -// @public (undocumented) -export interface TranslatorCredential { - // (undocumented) - key: string; - // (undocumented) - region: string; -} - -// @public (undocumented) -export interface TranslatorTokenCredential { - // (undocumented) - azureResourceId: string; - // (undocumented) - region: string; - // (undocumented) - tokenCredential: TokenCredential; -} - -// @public -export interface TransliterableScriptOutput extends CommonScriptModelOutput { - toScripts: Array; -} - -// @public (undocumented) -export interface Transliterate { - post(options: TransliterateParameters): StreamableMethod; -} - -// @public (undocumented) -export interface Transliterate200Headers { - "x-requestid": string; -} - -// @public -export interface Transliterate200Response extends HttpResponse { - // (undocumented) - body: Array; - // (undocumented) - headers: RawHttpHeaders & Transliterate200Headers; - // (undocumented) - status: "200"; -} - -// @public (undocumented) -export interface TransliterateBodyParam { - body: Array; -} - -// @public (undocumented) -export interface TransliterateDefaultHeaders { - "x-requestid": string; -} - -// @public (undocumented) -export interface TransliterateDefaultResponse extends HttpResponse { - // (undocumented) - body: ErrorResponseOutput; - // (undocumented) - headers: RawHttpHeaders & TransliterateDefaultHeaders; - // (undocumented) - status: string; -} - -// @public -export interface TransliteratedTextOutput { - script: string; - text: string; -} - -// @public (undocumented) -export interface TransliterateHeaderParam { - // (undocumented) - headers?: RawHttpHeadersInput & TransliterateHeaders; -} - -// @public (undocumented) -export interface TransliterateHeaders { - "X-ClientTraceId"?: string; -} - -// @public (undocumented) -export type TransliterateParameters = TransliterateQueryParam & TransliterateHeaderParam & TransliterateBodyParam & RequestParameters; - -// @public (undocumented) -export interface TransliterateQueryParam { - // (undocumented) - queryParameters: TransliterateQueryParamProperties; -} - -// @public (undocumented) -export interface TransliterateQueryParamProperties { - fromScript: string; - language: string; - toScript: string; -} - -// @public -export interface TransliterationLanguageOutput { - name: string; - nativeName: string; - scripts: Array; -} - -// (No @packageDocumentation comment for this package) -``` diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/arm-servicefabric.api.md b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/arm-servicefabric.api.md new file mode 100644 index 00000000000..3bc37dcb0ed --- /dev/null +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/review/arm-servicefabric.api.md @@ -0,0 +1,2072 @@ +## API Report File for "@azure-rest/arm-servicefabric" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { HttpResponse } from '@azure-rest/core-client'; +import { LroEngineOptions } from '@azure/core-lro'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PathUncheckedResponse } from '@azure-rest/core-client'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; + +// @public (undocumented) +export interface ApplicationDeltaHealthPolicy { + defaultServiceTypeDeltaHealthPolicy?: ServiceTypeDeltaHealthPolicy; + serviceTypeDeltaHealthPolicies?: Record; +} + +// @public (undocumented) +export interface ApplicationDeltaHealthPolicyOutput { + defaultServiceTypeDeltaHealthPolicy?: ServiceTypeDeltaHealthPolicyOutput; + serviceTypeDeltaHealthPolicies?: Record; +} + +// @public (undocumented) +export interface ApplicationHealthPolicy { + defaultServiceTypeHealthPolicy?: ServiceTypeHealthPolicy; + serviceTypeHealthPolicies?: Record; +} + +// @public (undocumented) +export interface ApplicationHealthPolicyOutput { + defaultServiceTypeHealthPolicy?: ServiceTypeHealthPolicyOutput; + serviceTypeHealthPolicies?: Record; +} + +// @public (undocumented) +export interface ApplicationMetricDescription { + maximumCapacity?: number; + name?: string; + reservationCapacity?: number; + totalApplicationCapacity?: number; +} + +// @public (undocumented) +export interface ApplicationMetricDescriptionOutput { + maximumCapacity?: number; + name?: string; + reservationCapacity?: number; + totalApplicationCapacity?: number; +} + +// @public (undocumented) +export interface ApplicationResource extends ProxyResource { + identity?: ManagedIdentity; + properties?: ApplicationResourceProperties; +} + +// @public (undocumented) +export interface ApplicationResourceListOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ApplicationResourceOutput extends ProxyResourceOutput { + identity?: ManagedIdentityOutput; + properties?: ApplicationResourcePropertiesOutput; +} + +// @public (undocumented) +export interface ApplicationResourceProperties extends ApplicationResourceUpdateProperties { + provisioningState?: string; + typeName?: string; +} + +// @public (undocumented) +export interface ApplicationResourcePropertiesOutput extends ApplicationResourceUpdatePropertiesOutput { + provisioningState?: string; + typeName?: string; +} + +// @public (undocumented) +export interface ApplicationResourceUpdate extends ProxyResource { + properties?: ApplicationResourceUpdateProperties; +} + +// @public (undocumented) +export interface ApplicationResourceUpdateOutput extends ProxyResourceOutput { + properties?: ApplicationResourceUpdatePropertiesOutput; +} + +// @public (undocumented) +export interface ApplicationResourceUpdateProperties { + managedIdentities?: Array; + maximumNodes?: number; + metrics?: Array; + minimumNodes?: number; + parameters?: Record; + removeApplicationCapacity?: boolean; + typeVersion?: string; + upgradePolicy?: ApplicationUpgradePolicy; +} + +// @public (undocumented) +export interface ApplicationResourceUpdatePropertiesOutput { + managedIdentities?: Array; + maximumNodes?: number; + metrics?: Array; + minimumNodes?: number; + parameters?: Record; + removeApplicationCapacity?: boolean; + typeVersion?: string; + upgradePolicy?: ApplicationUpgradePolicyOutput; +} + +// @public +export interface ApplicationsCreateOrUpdate202Response extends HttpResponse { + // (undocumented) + body: ApplicationResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ApplicationsCreateOrUpdateBodyParam { + body: ApplicationResource; +} + +// @public +export interface ApplicationsCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ApplicationsCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ApplicationsCreateOrUpdateParameters = ApplicationsCreateOrUpdateMediaTypesParam & ApplicationsCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ApplicationsDelete202Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "202"; +} + +// @public +export interface ApplicationsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ApplicationsDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationsDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationsGet { + delete(options?: ApplicationsDeleteParameters): StreamableMethod; + get(options?: ApplicationsGetParameters): StreamableMethod; + patch(options: ApplicationsUpdateParameters): StreamableMethod; + put(options: ApplicationsCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ApplicationsGet200Response extends HttpResponse { + // (undocumented) + body: ApplicationResourceOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationsGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationsGetParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationsList { + get(options?: ApplicationsListParameters): StreamableMethod; +} + +// @public +export interface ApplicationsList200Response extends HttpResponse { + // (undocumented) + body: ApplicationResourceListOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationsListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationsListParameters = RequestParameters; + +// @public +export interface ApplicationsUpdate202Response extends HttpResponse { + // (undocumented) + body: ApplicationResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ApplicationsUpdateBodyParam { + body: ApplicationResourceUpdate; +} + +// @public +export interface ApplicationsUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ApplicationsUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ApplicationsUpdateParameters = ApplicationsUpdateMediaTypesParam & ApplicationsUpdateBodyParam & RequestParameters; + +// @public (undocumented) +export interface ApplicationTypeResource extends ProxyResource { + properties?: ApplicationTypeResourceProperties; +} + +// @public (undocumented) +export interface ApplicationTypeResourceListOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ApplicationTypeResourceOutput extends ProxyResourceOutput { + properties?: ApplicationTypeResourcePropertiesOutput; +} + +// @public (undocumented) +export interface ApplicationTypeResourceProperties { + provisioningState?: string; +} + +// @public (undocumented) +export interface ApplicationTypeResourcePropertiesOutput { + provisioningState?: string; +} + +// @public +export interface ApplicationTypesCreateOrUpdate200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeResourceOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ApplicationTypesCreateOrUpdateBodyParam { + body: ApplicationTypeResource; +} + +// @public +export interface ApplicationTypesCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ApplicationTypesCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ApplicationTypesCreateOrUpdateParameters = ApplicationTypesCreateOrUpdateMediaTypesParam & ApplicationTypesCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ApplicationTypesDelete202Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "202"; +} + +// @public +export interface ApplicationTypesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ApplicationTypesDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypesDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypesGet { + delete(options?: ApplicationTypesDeleteParameters): StreamableMethod; + get(options?: ApplicationTypesGetParameters): StreamableMethod; + put(options: ApplicationTypesCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ApplicationTypesGet200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeResourceOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationTypesGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypesGetParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypesList { + get(options?: ApplicationTypesListParameters): StreamableMethod; +} + +// @public +export interface ApplicationTypesList200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeResourceListOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationTypesListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypesListParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypeVersionResource extends ProxyResource { + properties?: ApplicationTypeVersionResourceProperties; +} + +// @public (undocumented) +export interface ApplicationTypeVersionResourceListOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ApplicationTypeVersionResourceOutput extends ProxyResourceOutput { + properties?: ApplicationTypeVersionResourcePropertiesOutput; +} + +// @public (undocumented) +export interface ApplicationTypeVersionResourceProperties { + appPackageUrl: string; + defaultParameterList?: Record; + provisioningState?: string; +} + +// @public (undocumented) +export interface ApplicationTypeVersionResourcePropertiesOutput { + appPackageUrl: string; + defaultParameterList?: Record; + provisioningState?: string; +} + +// @public (undocumented) +export interface ApplicationTypeVersionsCleanupPolicy { + maxUnusedVersionsToKeep: number; +} + +// @public (undocumented) +export interface ApplicationTypeVersionsCleanupPolicyOutput { + maxUnusedVersionsToKeep: number; +} + +// @public +export interface ApplicationTypeVersionsCreateOrUpdate202Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeVersionResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ApplicationTypeVersionsCreateOrUpdateBodyParam { + body: ApplicationTypeVersionResource; +} + +// @public +export interface ApplicationTypeVersionsCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ApplicationTypeVersionsCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ApplicationTypeVersionsCreateOrUpdateParameters = ApplicationTypeVersionsCreateOrUpdateMediaTypesParam & ApplicationTypeVersionsCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ApplicationTypeVersionsDelete202Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "202"; +} + +// @public +export interface ApplicationTypeVersionsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ApplicationTypeVersionsDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypeVersionsDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypeVersionsGet { + delete(options?: ApplicationTypeVersionsDeleteParameters): StreamableMethod; + get(options?: ApplicationTypeVersionsGetParameters): StreamableMethod; + put(options: ApplicationTypeVersionsCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ApplicationTypeVersionsGet200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeVersionResourceOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationTypeVersionsGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypeVersionsGetParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationTypeVersionsList { + get(options?: ApplicationTypeVersionsListParameters): StreamableMethod; +} + +// @public +export interface ApplicationTypeVersionsList200Response extends HttpResponse { + // (undocumented) + body: ApplicationTypeVersionResourceListOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ApplicationTypeVersionsListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ApplicationTypeVersionsListParameters = RequestParameters; + +// @public (undocumented) +export interface ApplicationUpgradePolicy { + applicationHealthPolicy?: ArmApplicationHealthPolicy; + forceRestart?: boolean; + recreateApplication?: boolean; + rollingUpgradeMonitoringPolicy?: ArmRollingUpgradeMonitoringPolicy; + upgradeMode?: "Invalid" | "UnmonitoredAuto" | "UnmonitoredManual" | "Monitored"; + upgradeReplicaSetCheckTimeout?: string; +} + +// @public (undocumented) +export interface ApplicationUpgradePolicyOutput { + applicationHealthPolicy?: ArmApplicationHealthPolicyOutput; + forceRestart?: boolean; + recreateApplication?: boolean; + rollingUpgradeMonitoringPolicy?: ArmRollingUpgradeMonitoringPolicyOutput; + upgradeMode?: "Invalid" | "UnmonitoredAuto" | "UnmonitoredManual" | "Monitored"; + upgradeReplicaSetCheckTimeout?: string; +} + +// @public (undocumented) +export interface ApplicationUserAssignedIdentity { + name: string; + principalId: string; +} + +// @public (undocumented) +export interface ApplicationUserAssignedIdentityOutput { + name: string; + principalId: string; +} + +// @public (undocumented) +export interface ArmApplicationHealthPolicy { + considerWarningAsError?: boolean; + defaultServiceTypeHealthPolicy?: ArmServiceTypeHealthPolicy; + maxPercentUnhealthyDeployedApplications?: number; + serviceTypeHealthPolicyMap?: Record; +} + +// @public (undocumented) +export interface ArmApplicationHealthPolicyOutput { + considerWarningAsError?: boolean; + defaultServiceTypeHealthPolicy?: ArmServiceTypeHealthPolicyOutput; + maxPercentUnhealthyDeployedApplications?: number; + serviceTypeHealthPolicyMap?: Record; +} + +// @public (undocumented) +export interface ArmRollingUpgradeMonitoringPolicy { + failureAction?: "Rollback" | "Manual"; + healthCheckRetryTimeout?: string; + healthCheckStableDuration?: string; + healthCheckWaitDuration?: string; + upgradeDomainTimeout?: string; + upgradeTimeout?: string; +} + +// @public (undocumented) +export interface ArmRollingUpgradeMonitoringPolicyOutput { + failureAction?: "Rollback" | "Manual"; + healthCheckRetryTimeout?: string; + healthCheckStableDuration?: string; + healthCheckWaitDuration?: string; + upgradeDomainTimeout?: string; + upgradeTimeout?: string; +} + +// @public (undocumented) +export interface ArmServiceTypeHealthPolicy { + maxPercentUnhealthyPartitionsPerService?: number; + maxPercentUnhealthyReplicasPerPartition?: number; + maxPercentUnhealthyServices?: number; +} + +// @public (undocumented) +export interface ArmServiceTypeHealthPolicyOutput { + maxPercentUnhealthyPartitionsPerService?: number; + maxPercentUnhealthyReplicasPerPartition?: number; + maxPercentUnhealthyServices?: number; +} + +// @public (undocumented) +export interface AvailableOperationDisplayOutput { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public (undocumented) +export interface AzureActiveDirectory { + clientApplication?: string; + clusterApplication?: string; + tenantId?: string; +} + +// @public (undocumented) +export interface AzureActiveDirectoryOutput { + clientApplication?: string; + clusterApplication?: string; + tenantId?: string; +} + +// @public (undocumented) +export interface CertificateDescription { + thumbprint: string; + thumbprintSecondary?: string; + x509StoreName?: "AddressBook" | "AuthRoot" | "CertificateAuthority" | "Disallowed" | "My" | "Root" | "TrustedPeople" | "TrustedPublisher"; +} + +// @public (undocumented) +export interface CertificateDescriptionOutput { + thumbprint: string; + thumbprintSecondary?: string; + x509StoreName?: "AddressBook" | "AuthRoot" | "CertificateAuthority" | "Disallowed" | "My" | "Root" | "TrustedPeople" | "TrustedPublisher"; +} + +// @public (undocumented) +export interface ClientCertificateCommonName { + certificateCommonName: string; + certificateIssuerThumbprint: string; + isAdmin: boolean; +} + +// @public (undocumented) +export interface ClientCertificateCommonNameOutput { + certificateCommonName: string; + certificateIssuerThumbprint: string; + isAdmin: boolean; +} + +// @public (undocumented) +export interface ClientCertificateThumbprint { + certificateThumbprint: string; + isAdmin: boolean; +} + +// @public (undocumented) +export interface ClientCertificateThumbprintOutput { + certificateThumbprint: string; + isAdmin: boolean; +} + +// @public (undocumented) +export interface Cluster extends Resource { + properties?: ClusterProperties; +} + +// @public (undocumented) +export interface ClusterCodeVersionsListResultOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ClusterCodeVersionsResultOutput { + id?: string; + name?: string; + properties?: ClusterVersionDetailsOutput; + type?: string; +} + +// @public (undocumented) +export interface ClusterHealthPolicy { + applicationHealthPolicies?: Record; + maxPercentUnhealthyApplications?: number; + maxPercentUnhealthyNodes?: number; +} + +// @public (undocumented) +export interface ClusterHealthPolicyOutput { + applicationHealthPolicies?: Record; + maxPercentUnhealthyApplications?: number; + maxPercentUnhealthyNodes?: number; +} + +// @public (undocumented) +export interface ClusterListResultOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ClusterOutput extends ResourceOutput { + properties?: ClusterPropertiesOutput; +} + +// @public (undocumented) +export interface ClusterProperties { + addOnFeatures?: Array<"RepairManager" | "DnsService" | "BackupRestoreService" | "ResourceMonitorService">; + applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicy; + availableClusterVersions?: Array; + azureActiveDirectory?: AzureActiveDirectory; + certificate?: CertificateDescription; + certificateCommonNames?: ServerCertificateCommonNames; + clientCertificateCommonNames?: Array; + clientCertificateThumbprints?: Array; + clusterCodeVersion?: string; + clusterEndpoint?: string; + clusterId?: string; + clusterState?: "WaitingForNodes" | "Deploying" | "BaselineUpgrade" | "UpdatingUserConfiguration" | "UpdatingUserCertificate" | "UpdatingInfrastructure" | "EnforcingClusterVersion" | "UpgradeServiceUnreachable" | "AutoScale" | "Ready"; + diagnosticsStorageAccountConfig?: DiagnosticsStorageAccountConfig; + eventStoreServiceEnabled?: boolean; + fabricSettings?: Array; + infrastructureServiceManager?: boolean; + managementEndpoint: string; + nodeTypes: Array; + notifications?: Array; + provisioningState?: "Updating" | "Succeeded" | "Failed" | "Canceled"; + reliabilityLevel?: "None" | "Bronze" | "Silver" | "Gold" | "Platinum"; + reverseProxyCertificate?: CertificateDescription; + reverseProxyCertificateCommonNames?: ServerCertificateCommonNames; + sfZonalUpgradeMode?: "Parallel" | "Hierarchical"; + upgradeDescription?: ClusterUpgradePolicy; + upgradeMode?: "Automatic" | "Manual"; + upgradePauseEndTimestampUtc?: Date | string; + upgradePauseStartTimestampUtc?: Date | string; + upgradeWave?: "Wave0" | "Wave1" | "Wave2"; + vmImage?: string; + vmssZonalUpgradeMode?: "Parallel" | "Hierarchical"; + waveUpgradePaused?: boolean; +} + +// @public (undocumented) +export interface ClusterPropertiesOutput { + addOnFeatures?: Array<"RepairManager" | "DnsService" | "BackupRestoreService" | "ResourceMonitorService">; + applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicyOutput; + availableClusterVersions?: Array; + azureActiveDirectory?: AzureActiveDirectoryOutput; + certificate?: CertificateDescriptionOutput; + certificateCommonNames?: ServerCertificateCommonNamesOutput; + clientCertificateCommonNames?: Array; + clientCertificateThumbprints?: Array; + clusterCodeVersion?: string; + clusterEndpoint?: string; + clusterId?: string; + clusterState?: "WaitingForNodes" | "Deploying" | "BaselineUpgrade" | "UpdatingUserConfiguration" | "UpdatingUserCertificate" | "UpdatingInfrastructure" | "EnforcingClusterVersion" | "UpgradeServiceUnreachable" | "AutoScale" | "Ready"; + diagnosticsStorageAccountConfig?: DiagnosticsStorageAccountConfigOutput_FFF; + eventStoreServiceEnabled?: boolean; + fabricSettings?: Array; + infrastructureServiceManager?: boolean; + managementEndpoint: string; + nodeTypes: Array; + notifications?: Array; + provisioningState?: "Updating" | "Succeeded" | "Failed" | "Canceled"; + reliabilityLevel?: "None" | "Bronze" | "Silver" | "Gold" | "Platinum"; + reverseProxyCertificate?: CertificateDescriptionOutput; + reverseProxyCertificateCommonNames?: ServerCertificateCommonNamesOutput; + sfZonalUpgradeMode?: "Parallel" | "Hierarchical"; + upgradeDescription?: ClusterUpgradePolicyOutput; + upgradeMode?: "Automatic" | "Manual"; + upgradePauseEndTimestampUtc?: string; + upgradePauseStartTimestampUtc?: string; + upgradeWave?: "Wave0" | "Wave1" | "Wave2"; + vmImage?: string; + vmssZonalUpgradeMode?: "Parallel" | "Hierarchical"; + waveUpgradePaused?: boolean; +} + +// @public (undocumented) +export interface ClusterPropertiesUpdateParameters { + addOnFeatures?: Array<"RepairManager" | "DnsService" | "BackupRestoreService" | "ResourceMonitorService">; + applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicy; + certificate?: CertificateDescription; + certificateCommonNames?: ServerCertificateCommonNames; + clientCertificateCommonNames?: Array; + clientCertificateThumbprints?: Array; + clusterCodeVersion?: string; + eventStoreServiceEnabled?: boolean; + fabricSettings?: Array; + infrastructureServiceManager?: boolean; + nodeTypes?: Array; + notifications?: Array; + reliabilityLevel?: "None" | "Bronze" | "Silver" | "Gold" | "Platinum"; + reverseProxyCertificate?: CertificateDescription; + sfZonalUpgradeMode?: "Parallel" | "Hierarchical"; + upgradeDescription?: ClusterUpgradePolicy; + upgradeMode?: "Automatic" | "Manual"; + upgradePauseEndTimestampUtc?: Date | string; + upgradePauseStartTimestampUtc?: Date | string; + upgradeWave?: "Wave0" | "Wave1" | "Wave2"; + vmssZonalUpgradeMode?: "Parallel" | "Hierarchical"; + waveUpgradePaused?: boolean; +} + +// @public +export interface ClustersCreateOrUpdate200Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersCreateOrUpdate202Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ClustersCreateOrUpdateBodyParam { + body: Cluster; +} + +// @public +export interface ClustersCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ClustersCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ClustersCreateOrUpdateParameters = ClustersCreateOrUpdateMediaTypesParam & ClustersCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ClustersDelete200Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ClustersDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClustersDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ClustersGet_DDD { + delete(options?: ClustersDeleteParameters): StreamableMethod; + get(options?: ClustersGetParameters): StreamableMethod; + patch(options: ClustersUpdateParameters): StreamableMethod; + put(options: ClustersCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ClustersGet200Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClustersGetParameters = RequestParameters; + +// @public (undocumented) +export interface ClustersList { + get(options?: ClustersListParameters): StreamableMethod; +} + +// @public +export interface ClustersList200Response extends HttpResponse { + // (undocumented) + body: ClusterListResultOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ClustersListByResourceGroup { + get(options?: ClustersListByResourceGroupParameters): StreamableMethod; +} + +// @public +export interface ClustersListByResourceGroup200Response extends HttpResponse { + // (undocumented) + body: ClusterListResultOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersListByResourceGroupdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClustersListByResourceGroupParameters = RequestParameters; + +// @public +export interface ClustersListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClustersListParameters = RequestParameters; + +// @public (undocumented) +export interface ClustersListUpgradableVersions { + post(options?: ClustersListUpgradableVersionsParameters): StreamableMethod; +} + +// @public +export interface ClustersListUpgradableVersions200Response extends HttpResponse { + // (undocumented) + body: UpgradableVersionPathResultOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ClustersListUpgradableVersionsBodyParam { + body?: UpgradableVersionsDescription; +} + +// @public +export interface ClustersListUpgradableVersionsdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ClustersListUpgradableVersionsMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ClustersListUpgradableVersionsParameters = ClustersListUpgradableVersionsMediaTypesParam & ClustersListUpgradableVersionsBodyParam & RequestParameters; + +// @public +export interface ClustersUpdate200Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClustersUpdate202Response extends HttpResponse { + // (undocumented) + body: ClusterOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ClustersUpdateBodyParam { + body: ClusterUpdateParameters_BBB; +} + +// @public +export interface ClustersUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ClustersUpdateMediaTypesParam_CCC { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ClustersUpdateParameters = ClustersUpdateMediaTypesParam_CCC & ClustersUpdateBodyParam & RequestParameters; + +// @public (undocumented) +export interface ClusterUpdateParameters_BBB { + properties?: ClusterPropertiesUpdateParameters; + tags?: Record; +} + +// @public (undocumented) +export interface ClusterUpgradeDeltaHealthPolicy { + applicationDeltaHealthPolicies?: Record; + maxPercentDeltaUnhealthyApplications: number; + maxPercentDeltaUnhealthyNodes: number; + maxPercentUpgradeDomainDeltaUnhealthyNodes: number; +} + +// @public (undocumented) +export interface ClusterUpgradeDeltaHealthPolicyOutput { + applicationDeltaHealthPolicies?: Record; + maxPercentDeltaUnhealthyApplications: number; + maxPercentDeltaUnhealthyNodes: number; + maxPercentUpgradeDomainDeltaUnhealthyNodes: number; +} + +// @public (undocumented) +export interface ClusterUpgradePolicy { + deltaHealthPolicy?: ClusterUpgradeDeltaHealthPolicy; + forceRestart?: boolean; + healthCheckRetryTimeout: string; + healthCheckStableDuration: string; + healthCheckWaitDuration: string; + healthPolicy: ClusterHealthPolicy; + upgradeDomainTimeout: string; + upgradeReplicaSetCheckTimeout: string; + upgradeTimeout: string; +} + +// @public (undocumented) +export interface ClusterUpgradePolicyOutput { + deltaHealthPolicy?: ClusterUpgradeDeltaHealthPolicyOutput; + forceRestart?: boolean; + healthCheckRetryTimeout: string; + healthCheckStableDuration: string; + healthCheckWaitDuration: string; + healthPolicy: ClusterHealthPolicyOutput; + upgradeDomainTimeout: string; + upgradeReplicaSetCheckTimeout: string; + upgradeTimeout: string; +} + +// @public (undocumented) +export interface ClusterVersionDetails { + codeVersion?: string; + environment?: "Windows" | "Linux"; + supportExpiryUtc?: string; +} + +// @public (undocumented) +export interface ClusterVersionDetailsOutput { + codeVersion?: string; + environment?: "Windows" | "Linux"; + supportExpiryUtc?: string; +} + +// @public (undocumented) +export interface ClusterVersionsGet { + get(options?: ClusterVersionsGetParameters_EEE): StreamableMethod; +} + +// @public +export interface ClusterVersionsGet200Response extends HttpResponse { + // (undocumented) + body: ClusterCodeVersionsListResultOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ClusterVersionsGetByEnvironment { + get(options?: ClusterVersionsGetByEnvironmentParameters): StreamableMethod; +} + +// @public +export interface ClusterVersionsGetByEnvironment200Response extends HttpResponse { + // (undocumented) + body: ClusterCodeVersionsListResultOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClusterVersionsGetByEnvironmentdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClusterVersionsGetByEnvironmentParameters = RequestParameters; + +// @public +export interface ClusterVersionsGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClusterVersionsGetParameters_EEE = RequestParameters; + +// @public (undocumented) +export interface ClusterVersionsList { + get(options?: ClusterVersionsListParameters): StreamableMethod; +} + +// @public +export interface ClusterVersionsList200Response extends HttpResponse { + // (undocumented) + body: ClusterCodeVersionsListResultOutput; + // (undocumented) + status: "200"; +} + +// @public (undocumented) +export interface ClusterVersionsListByEnvironment { + get(options?: ClusterVersionsListByEnvironmentParameters): StreamableMethod; +} + +// @public +export interface ClusterVersionsListByEnvironment200Response extends HttpResponse { + // (undocumented) + body: ClusterCodeVersionsListResultOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ClusterVersionsListByEnvironmentdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClusterVersionsListByEnvironmentParameters = RequestParameters; + +// @public +export interface ClusterVersionsListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ClusterVersionsListParameters = RequestParameters; + +// @public (undocumented) +function createClient(credentials: TokenCredential, options?: ClientOptions): ServiceFabricClient; +export default createClient; + +// @public (undocumented) +export interface DiagnosticsStorageAccountConfig { + blobEndpoint: string; + protectedAccountKeyName_GGG: string; + protectedAccountKeyName2?: string; + queueEndpoint: string; + storageAccountName: string; + tableEndpoint: string; +} + +// @public (undocumented) +export interface DiagnosticsStorageAccountConfigOutput_FFF { + blobEndpoint: string; + protectedAccountKeyName: string; + protectedAccountKeyName2?: string; + queueEndpoint_III: string; + storageAccountName: string; + tableEndpoint: string; +} + +// @public (undocumented) +export interface EndpointRangeDescription { + endPort: number; + startPort: number; +} + +// @public (undocumented) +export interface EndpointRangeDescriptionOutput { + endPort: number; + startPort: number; +} + +// @public (undocumented) +export interface ErrorModelErrorOutput { + code?: string; + message?: string; +} + +// @public (undocumented) +export interface ErrorModelOutput { + error?: ErrorModelErrorOutput; + testRecurvice: Array; +} + +// @public +export type GetArrayType = T extends Array ? TData : never; + +// @public +export function getLongRunningPoller(client: Client, initialResponse: TResult, options?: LroEngineOptions>): PollerLike, TResult>; + +// @public +export type GetPage = (pageLink: string, maxPageSize?: number) => Promise<{ + page: TPage; + nextPageLink?: string; +}>; + +// @public (undocumented) +export function isUnexpected(response: ClustersGet200Response | ClustersGetdefaultResponse): response is ClustersGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersCreateOrUpdate200Response | ClustersCreateOrUpdate202Response | ClustersCreateOrUpdatedefaultResponse): response is ClustersCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersUpdate200Response | ClustersUpdate202Response | ClustersUpdatedefaultResponse): response is ClustersUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersDelete200Response | ClustersDelete204Response | ClustersDeletedefaultResponse): response is ClustersDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersListByResourceGroup200Response | ClustersListByResourceGroupdefaultResponse): response is ClustersListByResourceGroupdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersList200Response | ClustersListdefaultResponse): response is ClustersListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClustersListUpgradableVersions200Response | ClustersListUpgradableVersionsdefaultResponse): response is ClustersListUpgradableVersionsdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClusterVersionsGet200Response | ClusterVersionsGetdefaultResponse): response is ClusterVersionsGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClusterVersionsGetByEnvironment200Response | ClusterVersionsGetByEnvironmentdefaultResponse): response is ClusterVersionsGetByEnvironmentdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClusterVersionsList200Response | ClusterVersionsListdefaultResponse): response is ClusterVersionsListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ClusterVersionsListByEnvironment200Response | ClusterVersionsListByEnvironmentdefaultResponse): response is ClusterVersionsListByEnvironmentdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: OperationsList200Response | OperationsListdefaultResponse): response is OperationsListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypesGet200Response | ApplicationTypesGetdefaultResponse): response is ApplicationTypesGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypesCreateOrUpdate200Response | ApplicationTypesCreateOrUpdatedefaultResponse): response is ApplicationTypesCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypesDelete202Response | ApplicationTypesDelete204Response | ApplicationTypesDeletedefaultResponse): response is ApplicationTypesDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypesList200Response | ApplicationTypesListdefaultResponse): response is ApplicationTypesListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypeVersionsGet200Response | ApplicationTypeVersionsGetdefaultResponse): response is ApplicationTypeVersionsGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypeVersionsCreateOrUpdate202Response | ApplicationTypeVersionsCreateOrUpdatedefaultResponse): response is ApplicationTypeVersionsCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypeVersionsDelete202Response | ApplicationTypeVersionsDelete204Response | ApplicationTypeVersionsDeletedefaultResponse): response is ApplicationTypeVersionsDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationTypeVersionsList200Response | ApplicationTypeVersionsListdefaultResponse): response is ApplicationTypeVersionsListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsGet200Response | ApplicationsGetdefaultResponse): response is ApplicationsGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsCreateOrUpdate202Response | ApplicationsCreateOrUpdatedefaultResponse): response is ApplicationsCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsUpdate202Response | ApplicationsUpdatedefaultResponse): response is ApplicationsUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsDelete202Response | ApplicationsDelete204Response | ApplicationsDeletedefaultResponse): response is ApplicationsDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ApplicationsList200Response | ApplicationsListdefaultResponse): response is ApplicationsListdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesGet200Response | ServicesGetdefaultResponse): response is ServicesGetdefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesCreateOrUpdate202Response | ServicesCreateOrUpdatedefaultResponse): response is ServicesCreateOrUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesUpdate202Response | ServicesUpdatedefaultResponse): response is ServicesUpdatedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesDelete202Response | ServicesDelete204Response | ServicesDeletedefaultResponse): response is ServicesDeletedefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: ServicesList200Response | ServicesListdefaultResponse): response is ServicesListdefaultResponse; + +// @public (undocumented) +export interface ManagedIdentity { + principalId?: string; + tenantId?: string; + type?: "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; + userAssignedIdentities?: Record; +} + +// @public (undocumented) +export interface ManagedIdentityOutput { + principalId?: string; + tenantId?: string; + type?: "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; + userAssignedIdentities?: Record; +} + +// @public (undocumented) +export interface NamedPartitionSchemeDescription extends PartitionSchemeDescriptionParent { + count: number; + names: Array; + // (undocumented) + partitionScheme: "Named"; +} + +// @public (undocumented) +export interface NamedPartitionSchemeDescriptionOutput extends PartitionSchemeDescriptionOutputParent { + count: number; + names: Array; + // (undocumented) + partitionScheme: "Named"; +} + +// @public (undocumented) +export interface NodeTypeDescription { + applicationPorts?: EndpointRangeDescription; + capacities?: Record; + clientConnectionEndpointPort: number; + durabilityLevel?: "Bronze" | "Silver" | "Gold"; + ephemeralPorts?: EndpointRangeDescription; + httpGatewayEndpointPort: number; + isPrimary: boolean; + isStateless?: boolean; + multipleAvailabilityZones?: boolean; + name: string; + placementProperties?: Record; + reverseProxyEndpointPort?: number; + vmInstanceCount: number; +} + +// @public (undocumented) +export interface NodeTypeDescriptionOutput { + applicationPorts?: EndpointRangeDescriptionOutput; + capacities?: Record; + clientConnectionEndpointPort: number; + durabilityLevel?: "Bronze" | "Silver" | "Gold"; + ephemeralPorts?: EndpointRangeDescriptionOutput; + httpGatewayEndpointPort: number; + isPrimary: boolean; + isStateless?: boolean; + multipleAvailabilityZones?: boolean; + name: string; + placementProperties?: Record; + reverseProxyEndpointPort?: number; + vmInstanceCount: number; +} + +// @public (undocumented) +export interface Notification { + isEnabled: boolean; + notificationCategory: "WaveProgress"; + notificationLevel: "Critical" | "All"; + notificationTargets: Array; +} + +// @public (undocumented) +export interface NotificationOutput { + isEnabled: boolean; + notificationCategory: "WaveProgress"; + notificationLevel: "Critical" | "All"; + notificationTargets: Array; +} + +// @public (undocumented) +export interface NotificationTarget { + notificationChannel: "EmailUser" | "EmailSubscription"; + receivers: Array; +} + +// @public (undocumented) +export interface NotificationTargetOutput { + notificationChannel: "EmailUser" | "EmailSubscription"; + receivers: Array; +} + +// @public (undocumented) +export interface OperationListResultOutput { + nextLink?: string; + value?: Array; +} + +// @public (undocumented) +export interface OperationResultOutput { + display?: AvailableOperationDisplayOutput; + isDataAction?: boolean; + name?: string; + nextLink?: string; + origin?: string; +} + +// @public (undocumented) +export interface OperationsList { + get(options?: OperationsListParameters): StreamableMethod; +} + +// @public +export interface OperationsList200Response extends HttpResponse { + // (undocumented) + body: OperationListResultOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface OperationsListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type OperationsListParameters = RequestParameters; + +// @public +export function paginate(client: Client, initialResponse: TResponse, options?: PagingOptions): PagedAsyncIterableIterator>; + +// @public +export type PaginateReturn = TResult extends { + body: { + value?: infer TPage; + }; +} ? GetArrayType : Array; + +// @public +export interface PagingOptions { + customGetPage?: GetPage[]>; +} + +// @public (undocumented) +export type PartitionSchemeDescription = NamedPartitionSchemeDescription | SingletonPartitionSchemeDescription | UniformInt64RangePartitionSchemeDescription; + +// @public (undocumented) +export type PartitionSchemeDescriptionOutput = NamedPartitionSchemeDescriptionOutput | SingletonPartitionSchemeDescriptionOutput | UniformInt64RangePartitionSchemeDescriptionOutput; + +// @public (undocumented) +export interface PartitionSchemeDescriptionOutputParent { + // (undocumented) + partitionScheme: "PartitionSchemeDescription" | "Named" | "Singleton" | "UniformInt64Range"; +} + +// @public (undocumented) +export interface PartitionSchemeDescriptionParent { + // (undocumented) + partitionScheme: "PartitionSchemeDescription" | "Named" | "Singleton" | "UniformInt64Range"; +} + +// @public (undocumented) +export interface ProxyResource { + etag?: string; + id?: string; + location?: string; + name?: string; + systemData?: SystemData; + tags?: Record; + type?: string; +} + +// @public (undocumented) +export interface ProxyResourceOutput { + etag?: string; + id?: string; + location?: string; + name?: string; + systemData?: SystemDataOutput; + tags?: Record; + type?: string; +} + +// @public (undocumented) +export interface Resource { + etag?: string; + id?: string; + location: string; + name?: string; + systemData?: SystemData; + tags?: Record; + type?: string; +} + +// @public (undocumented) +export interface ResourceOutput { + etag?: string; + id?: string; + location: string; + name?: string; + systemData?: SystemDataOutput; + tags?: Record; + type?: string; +} + +// @public (undocumented) +export interface Routes { + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet_DDD; + (path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters", subscriptionId: string, resourceGroupName: string): ClustersListByResourceGroup; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters", subscriptionId: string): ClustersList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/listUpgradableVersions", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersListUpgradableVersions; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}", subscriptionId: string, location: string, clusterVersion: string): ClusterVersionsGet; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}", subscriptionId: string, location: string, environment: "Windows" | "Linux", clusterVersion: string): ClusterVersionsGetByEnvironment; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions", subscriptionId: string, location: string): ClusterVersionsList; + (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions", subscriptionId: string, location: string, environment: "Windows" | "Linux"): ClusterVersionsListByEnvironment; + (path: "/providers/Microsoft.ServiceFabric/operations"): OperationsList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string): ApplicationTypesGet; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes", subscriptionId: string, resourceGroupName: string, clusterName: string): ApplicationTypesList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string): ApplicationTypeVersionsGet; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string): ApplicationTypeVersionsList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string): ApplicationsGet; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications", subscriptionId: string, resourceGroupName: string, clusterName: string): ApplicationsList; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string): ServicesGet; + (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string): ServicesList; +} + +// @public (undocumented) +export interface ServerCertificateCommonName { + certificateCommonName: string; + certificateIssuerThumbprint: string; +} + +// @public (undocumented) +export interface ServerCertificateCommonNameOutput { + certificateCommonName: string; + certificateIssuerThumbprint: string; +} + +// @public (undocumented) +export interface ServerCertificateCommonNames { + commonNames?: Array; + x509StoreName?: "AddressBook" | "AuthRoot" | "CertificateAuthority" | "Disallowed" | "My" | "Root" | "TrustedPeople" | "TrustedPublisher"; +} + +// @public (undocumented) +export interface ServerCertificateCommonNamesOutput { + commonNames?: Array; + x509StoreName?: "AddressBook" | "AuthRoot" | "CertificateAuthority" | "Disallowed" | "My" | "Root" | "TrustedPeople" | "TrustedPublisher"; +} + +// @public (undocumented) +export interface ServiceCorrelationDescription { + scheme: "Invalid" | "Affinity" | "AlignedAffinity" | "NonAlignedAffinity"; + serviceName: string; +} + +// @public (undocumented) +export interface ServiceCorrelationDescriptionOutput { + scheme: "Invalid" | "Affinity" | "AlignedAffinity" | "NonAlignedAffinity"; + serviceName: string; +} + +// @public (undocumented) +export type ServiceFabricClient = Client & { + path: Routes; +}; + +// @public (undocumented) +export interface ServiceLoadMetricDescription { + defaultLoad?: number; + name: string; + primaryDefaultLoad?: number; + secondaryDefaultLoad?: number; + weight?: "Zero" | "Low" | "Medium" | "High"; +} + +// @public (undocumented) +export interface ServiceLoadMetricDescriptionOutput { + defaultLoad?: number; + name: string; + primaryDefaultLoad?: number; + secondaryDefaultLoad?: number; + weight?: "Zero" | "Low" | "Medium" | "High"; +} + +// @public (undocumented) +export interface ServicePlacementPolicyDescription { + // (undocumented) + type: "ServicePlacementPolicyDescription"; +} + +// @public (undocumented) +export interface ServicePlacementPolicyDescriptionOutput { + // (undocumented) + type: "ServicePlacementPolicyDescription"; +} + +// @public (undocumented) +export interface ServiceResource extends ProxyResource { + properties?: ServiceResourceProperties; +} + +// @public (undocumented) +export interface ServiceResourceListOutput { + nextLink?: string; + // (undocumented) + value?: Array; +} + +// @public (undocumented) +export interface ServiceResourceOutput extends ProxyResourceOutput { + properties?: ServiceResourcePropertiesOutput; +} + +// @public (undocumented) +export type ServiceResourceProperties = StatefulServiceProperties | StatelessServiceProperties; + +// @public (undocumented) +export interface ServiceResourcePropertiesBase { + correlationScheme?: Array; + defaultMoveCost?: "Zero" | "Low" | "Medium" | "High"; + placementConstraints?: string; + serviceLoadMetrics?: Array; + servicePlacementPolicies?: Array; +} + +// @public (undocumented) +export interface ServiceResourcePropertiesBaseOutput { + correlationScheme?: Array; + defaultMoveCost?: "Zero" | "Low" | "Medium" | "High"; + placementConstraints?: string; + serviceLoadMetrics?: Array; + servicePlacementPolicies?: Array; +} + +// @public (undocumented) +export type ServiceResourcePropertiesOutput = StatefulServicePropertiesOutput | StatelessServicePropertiesOutput; + +// @public (undocumented) +export interface ServiceResourcePropertiesOutputParent extends ServiceResourcePropertiesBaseOutput { + partitionDescription?: PartitionSchemeDescriptionOutput; + provisioningState?: string; + serviceDnsName?: string; + // (undocumented) + serviceKind: "ServiceResourceProperties" | "Stateful" | "Stateless"; + servicePackageActivationMode?: "SharedProcess" | "ExclusiveProcess"; + serviceTypeName?: string; +} + +// @public (undocumented) +export interface ServiceResourcePropertiesParent extends ServiceResourcePropertiesBase { + partitionDescription?: PartitionSchemeDescription; + provisioningState?: string; + serviceDnsName?: string; + // (undocumented) + serviceKind: "ServiceResourceProperties" | "Stateful" | "Stateless"; + servicePackageActivationMode?: "SharedProcess" | "ExclusiveProcess"; + serviceTypeName?: string; +} + +// @public (undocumented) +export interface ServiceResourceUpdate extends ProxyResource { + properties?: ServiceResourceUpdateProperties; +} + +// @public (undocumented) +export interface ServiceResourceUpdateOutput extends ProxyResourceOutput { + properties?: ServiceResourceUpdatePropertiesOutput; +} + +// @public (undocumented) +export type ServiceResourceUpdateProperties = StatefulServiceUpdateProperties | StatelessServiceUpdateProperties; + +// @public (undocumented) +export type ServiceResourceUpdatePropertiesOutput = StatefulServiceUpdatePropertiesOutput | StatelessServiceUpdatePropertiesOutput; + +// @public (undocumented) +export interface ServiceResourceUpdatePropertiesOutputParent extends ServiceResourcePropertiesBaseOutput { + // (undocumented) + serviceKind: "ServiceResourceUpdateProperties" | "Stateful" | "Stateless"; +} + +// @public (undocumented) +export interface ServiceResourceUpdatePropertiesParent extends ServiceResourcePropertiesBase { + // (undocumented) + serviceKind: "ServiceResourceUpdateProperties" | "Stateful" | "Stateless"; +} + +// @public +export interface ServicesCreateOrUpdate202Response extends HttpResponse { + // (undocumented) + body: ServiceResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ServicesCreateOrUpdateBodyParam { + body: ServiceResource; +} + +// @public +export interface ServicesCreateOrUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ServicesCreateOrUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ServicesCreateOrUpdateParameters = ServicesCreateOrUpdateMediaTypesParam & ServicesCreateOrUpdateBodyParam & RequestParameters; + +// @public +export interface ServicesDelete202Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "202"; +} + +// @public +export interface ServicesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; + // (undocumented) + status: "204"; +} + +// @public +export interface ServicesDeletedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ServicesDeleteParameters = RequestParameters; + +// @public (undocumented) +export interface ServicesGet { + delete(options?: ServicesDeleteParameters): StreamableMethod; + get(options?: ServicesGetParameters): StreamableMethod; + patch(options: ServicesUpdateParameters): StreamableMethod; + put(options: ServicesCreateOrUpdateParameters): StreamableMethod; +} + +// @public +export interface ServicesGet200Response extends HttpResponse { + // (undocumented) + body: ServiceResourceOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ServicesGetdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ServicesGetParameters = RequestParameters; + +// @public (undocumented) +export interface ServicesList { + get(options?: ServicesListParameters): StreamableMethod; +} + +// @public +export interface ServicesList200Response extends HttpResponse { + // (undocumented) + body: ServiceResourceListOutput; + // (undocumented) + status: "200"; +} + +// @public +export interface ServicesListdefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export type ServicesListParameters = RequestParameters; + +// @public +export interface ServicesUpdate202Response extends HttpResponse { + // (undocumented) + body: ServiceResourceOutput; + // (undocumented) + status: "202"; +} + +// @public (undocumented) +export interface ServicesUpdateBodyParam { + body: ServiceResourceUpdate; +} + +// @public +export interface ServicesUpdatedefaultResponse extends HttpResponse { + // (undocumented) + body: ErrorModelOutput; + // (undocumented) + status: string; +} + +// @public (undocumented) +export interface ServicesUpdateMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ServicesUpdateParameters = ServicesUpdateMediaTypesParam & ServicesUpdateBodyParam & RequestParameters; + +// @public (undocumented) +export interface ServiceTypeDeltaHealthPolicy { + maxPercentDeltaUnhealthyServices?: number; +} + +// @public (undocumented) +export interface ServiceTypeDeltaHealthPolicyOutput { + maxPercentDeltaUnhealthyServices?: number; +} + +// @public (undocumented) +export interface ServiceTypeHealthPolicy { + maxPercentUnhealthyServices?: number; +} + +// @public (undocumented) +export interface ServiceTypeHealthPolicyOutput { + maxPercentUnhealthyServices?: number; +} + +// @public (undocumented) +export interface SettingsParameterDescription { + name: string; + value: string; +} + +// @public (undocumented) +export interface SettingsParameterDescriptionOutput { + name: string; + value: string; +} + +// @public (undocumented) +export interface SettingsSectionDescription { + name: string; + parameters: Array; +} + +// @public (undocumented) +export interface SettingsSectionDescriptionOutput { + name: string; + parameters: Array; +} + +// @public (undocumented) +export interface SingletonPartitionSchemeDescription extends PartitionSchemeDescriptionParent { + // (undocumented) + partitionScheme: "Singleton"; +} + +// @public (undocumented) +export interface SingletonPartitionSchemeDescriptionOutput extends PartitionSchemeDescriptionOutputParent { + // (undocumented) + partitionScheme: "Singleton"; +} + +// @public (undocumented) +export interface StatefulServiceProperties extends ServiceResourcePropertiesParent { + hasPersistedState?: boolean; + minReplicaSetSize?: number; + quorumLossWaitDuration?: Date | string; + replicaRestartWaitDuration?: Date | string; + // (undocumented) + serviceKind: "Stateful"; + standByReplicaKeepDuration?: Date | string; + targetReplicaSetSize?: number; +} + +// @public (undocumented) +export interface StatefulServicePropertiesOutput extends ServiceResourcePropertiesOutputParent { + hasPersistedState?: boolean; + minReplicaSetSize?: number; + quorumLossWaitDuration?: string; + replicaRestartWaitDuration?: string; + // (undocumented) + serviceKind: "Stateful"; + standByReplicaKeepDuration?: string; + targetReplicaSetSize?: number; +} + +// @public (undocumented) +export interface StatefulServiceUpdateProperties extends ServiceResourceUpdatePropertiesParent { + minReplicaSetSize?: number; + quorumLossWaitDuration?: Date | string; + replicaRestartWaitDuration?: Date | string; + // (undocumented) + serviceKind: "Stateful"; + standByReplicaKeepDuration?: Date | string; + targetReplicaSetSize?: number; +} + +// @public (undocumented) +export interface StatefulServiceUpdatePropertiesOutput extends ServiceResourceUpdatePropertiesOutputParent { + minReplicaSetSize?: number; + quorumLossWaitDuration?: string; + replicaRestartWaitDuration?: string; + // (undocumented) + serviceKind: "Stateful"; + standByReplicaKeepDuration?: string; + targetReplicaSetSize?: number; +} + +// @public (undocumented) +export interface StatelessServiceProperties extends ServiceResourcePropertiesParent { + instanceCloseDelayDuration?: string; + instanceCount?: number; + // (undocumented) + serviceKind: "Stateless"; +} + +// @public (undocumented) +export interface StatelessServicePropertiesOutput extends ServiceResourcePropertiesOutputParent { + instanceCloseDelayDuration?: string; + instanceCount?: number; + // (undocumented) + serviceKind: "Stateless"; +} + +// @public (undocumented) +export interface StatelessServiceUpdateProperties extends ServiceResourceUpdatePropertiesParent { + instanceCloseDelayDuration?: string; + instanceCount?: number; + // (undocumented) + serviceKind: "Stateless"; +} + +// @public (undocumented) +export interface StatelessServiceUpdatePropertiesOutput extends ServiceResourceUpdatePropertiesOutputParent { + instanceCloseDelayDuration?: string; + instanceCount?: number; + // (undocumented) + serviceKind: "Stateless"; +} + +// @public (undocumented) +export interface SystemData { + createdAt?: Date | string; + createdBy?: string; + createdByType?: string; + lastModifiedAt?: Date | string; + lastModifiedBy?: string; + lastModifiedByType?: string; +} + +// @public (undocumented) +export interface SystemDataOutput { + createdAt?: string; + createdBy?: string; + createdByType?: string; + lastModifiedAt?: string; + lastModifiedBy?: string; + lastModifiedByType?: string; +} + +// @public (undocumented) +export interface UniformInt64RangePartitionSchemeDescription extends PartitionSchemeDescriptionParent { + count: number; + highKey: string; + lowKey: string; + // (undocumented) + partitionScheme: "UniformInt64Range"; +} + +// @public (undocumented) +export interface UniformInt64RangePartitionSchemeDescriptionOutput extends PartitionSchemeDescriptionOutputParent { + count: number; + highKey: string; + lowKey: string; + // (undocumented) + partitionScheme: "UniformInt64Range"; +} + +// @public (undocumented) +export interface UpgradableVersionPathResultOutput { + // (undocumented) + supportedPath?: Array; +} + +// @public (undocumented) +export interface UpgradableVersionsDescription { + targetVersion: string; +} + +// @public (undocumented) +export interface UserAssignedIdentity { + clientId?: string; + principalId?: string; +} + +// @public (undocumented) +export interface UserAssignedIdentityOutput { + clientId?: string; + principalId?: string; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts deleted file mode 100644 index ba2cf16c634..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/customClient.ts +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "./logger"; -import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { TextTranslationClient } from "./clientDefinitions"; -import { - DEFAULT_SCOPE, - TranslatorCredential, - TranslatorTokenCredential, - TranslatorAuthenticationPolicy, - TranslatorAzureKeyAuthenticationPolicy, - TranslatorTokenCredentialAuthenticationPolicy, -} from "./authentication"; -import { AzureKeyCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; - -const DEFAULT_ENPOINT = "https://api.cognitive.microsofttranslator.com"; -const PLATFORM_HOST = "cognitiveservices"; -const PLATFORM_PATH = "/translator/text/v3.0"; - -function isKeyCredential(credential: any): credential is KeyCredential { - return (credential as KeyCredential)?.key !== undefined; -} - -function isTranslatorKeyCredential(credential: any): credential is TranslatorCredential { - return (credential as TranslatorCredential)?.key !== undefined; -} - -function isTokenCredential(credential: any): credential is TokenCredential { - return (credential as TokenCredential)?.getToken !== undefined; -} - -function isTranslatorTokenCredential(credential: any): credential is TranslatorTokenCredential { - return ( - (credential as TranslatorTokenCredential)?.tokenCredential !== undefined && - (credential as TranslatorTokenCredential)?.azureResourceId !== undefined - ); -} - -/** - * Initialize a new instance of `TextTranslationClient` - * @param endpoint type: string, Supported Text Translation endpoints (protocol and hostname, for example: - * https://api.cognitive.microsofttranslator.com). - * @param options type: ClientOptions, the parameter for all optional parameters - */ -export default function createClient( - endpoint: undefined | string, - credential: - | undefined - | TranslatorCredential - | TranslatorTokenCredential - | KeyCredential - | TokenCredential = undefined, - options: ClientOptions = {}, -): TextTranslationClient { - let serviceEndpoint: string; - - options.apiVersion = options.apiVersion ?? "3.0"; - - if (!endpoint) { - serviceEndpoint = DEFAULT_ENPOINT; - } else if (endpoint.toLowerCase().indexOf(PLATFORM_HOST) !== -1) { - serviceEndpoint = `${endpoint}${PLATFORM_PATH}`; - } else { - serviceEndpoint = endpoint; - } - - const baseUrl = options.baseUrl ?? `${serviceEndpoint}`; - - const userAgentInfo = `azsdk-js-ai-translation-text-rest/1.0.0-beta.2`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` - : `${userAgentInfo}`; - options = { - ...options, - userAgentOptions: { - userAgentPrefix, - }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger.info, - }, - }; - - const client = getClient(baseUrl, options) as TextTranslationClient; - - if (isTranslatorKeyCredential(credential)) { - const mtAuthneticationPolicy = new TranslatorAuthenticationPolicy( - credential as TranslatorCredential, - ); - client.pipeline.addPolicy(mtAuthneticationPolicy); - } else if (isKeyCredential(credential)) { - const mtKeyAuthenticationPolicy = new TranslatorAzureKeyAuthenticationPolicy( - credential as AzureKeyCredential, - ); - client.pipeline.addPolicy(mtKeyAuthenticationPolicy); - } else if (isTokenCredential(credential)) { - client.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credential as TokenCredential, - scopes: DEFAULT_SCOPE, - }), - ); - } else if (isTranslatorTokenCredential(credential)) { - client.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: (credential as TranslatorTokenCredential).tokenCredential, - scopes: DEFAULT_SCOPE, - }), - ); - client.pipeline.addPolicy( - new TranslatorTokenCredentialAuthenticationPolicy(credential as TranslatorTokenCredential), - ); - } - - return client; -} diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts deleted file mode 100644 index 4b2bb73cebb..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/models.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** Element containing the text for translation. */ -export interface InputTextItem { - /** Text to translate. */ - text: string; -} - -/** Element containing the text with translation. */ -export interface DictionaryExampleTextItem extends InputTextItem { - /** - * A string specifying the translated text previously returned by the Dictionary lookup operation. - * This should be the value from the normalizedTarget field in the translations list of the Dictionary - * lookup response. The service will return examples for the specific source-target word-pair. - */ - translation: string; -} diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts deleted file mode 100644 index b5de51d4d11..00000000000 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/parameters.ts +++ /dev/null @@ -1,292 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; -import { RequestParameters } from "@azure-rest/core-client"; -import { InputTextItem, DictionaryExampleTextItem } from "./models"; - -export interface GetLanguagesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; - /** - * The language to use for user interface strings. Some of the fields in the response are names of languages or - * names of regions. Use this parameter to define the language in which these names are returned. - * The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` - * to request names in French or use the value `zh-Hant` to request names in Chinese Traditional. - * Names are provided in the English language when a target language is not specified or when localization - * is not available. - */ - "Accept-Language"?: string; - /** - * Passing the value of the ETag response header in an If-None-Match field will allow the service to optimize the response. - * If the resource has not been modified, the service will return status code 304 and an empty response body. - */ - "If-None-Match"?: string; -} - -export interface GetLanguagesQueryParamProperties { - /** - * A comma-separated list of names defining the group of languages to return. - * Allowed group names are: `translation`, `transliteration` and `dictionary`. - * If no scope is given, then all groups are returned, which is equivalent to passing - * `scope=translation,transliteration,dictionary`. To decide which set of supported languages - * is appropriate for your scenario, see the description of the [response object](#response-body). - */ - scope?: string; -} - -export interface GetLanguagesQueryParam { - queryParameters?: GetLanguagesQueryParamProperties; -} - -export interface GetLanguagesHeaderParam { - headers?: RawHttpHeadersInput & GetLanguagesHeaders; -} - -export type GetLanguagesParameters = GetLanguagesQueryParam & - GetLanguagesHeaderParam & - RequestParameters; - -export interface TranslateHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface TranslateBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface TranslateQueryParamProperties { - /** - * Specifies the language of the output text. The target language must be one of the supported languages included - * in the translation scope. For example, use to=de to translate to German. - * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. - * For example, use to=de&to=it to translate to German and Italian. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request - */ - to: string; - /** - * Specifies the language of the input text. Find which languages are available to translate from by - * looking up supported languages using the translation scope. If the from parameter isn't specified, - * automatic language detection is applied to determine the source language. - * - * You must use the from parameter rather than autodetection when using the dynamic dictionary feature. - * Note: the dynamic dictionary feature is case-sensitive. - */ - from?: string; - /** - * Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, - * complete element. Possible values are: plain (default) or html. - */ - textType?: string; - /** - * A string specifying the category (domain) of the translation. This parameter is used to get translations - * from a customized system built with Custom Translator. Add the Category ID from your Custom Translator - * project details to this parameter to use your deployed customized system. Default value is: general. - */ - category?: string; - /** - * Specifies how profanities should be treated in translations. - * Possible values are: NoAction (default), Marked or Deleted. - */ - profanityAction?: string; - /** - * Specifies how profanities should be marked in translations. - * Possible values are: Asterisk (default) or Tag. - */ - profanityMarker?: string; - /** - * Specifies whether to include alignment projection from source text to translated text. - * Possible values are: true or false (default). - */ - includeAlignment?: boolean; - /** - * Specifies whether to include sentence boundaries for the input text and the translated text. - * Possible values are: true or false (default). - */ - includeSentenceLength?: boolean; - /** - * Specifies a fallback language if the language of the input text can't be identified. - * Language autodetection is applied when the from parameter is omitted. If detection fails, - * the suggestedFrom language will be assumed. - */ - suggestedFrom?: string; - /** Specifies the script of the input text. */ - fromScript?: string; - /** Specifies the script of the translated text. */ - toScript?: string; - /** - * Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. - * Possible values are: true (default) or false. - * - * allowFallback=false specifies that the translation should only use systems trained for the category specified - * by the request. If a translation for language X to language Y requires chaining through a pivot language E, - * then all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. - * If no system is found with the specific category, the request will return a 400 status code. allowFallback=true - * specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. - */ - allowFallback?: boolean; -} - -export interface TranslateQueryParam { - queryParameters: TranslateQueryParamProperties; -} - -export interface TranslateHeaderParam { - headers?: RawHttpHeadersInput & TranslateHeaders; -} - -export type TranslateParameters = TranslateQueryParam & - TranslateHeaderParam & - TranslateBodyParam & - RequestParameters; - -export interface TransliterateHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface TransliterateBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface TransliterateQueryParamProperties { - /** - * Specifies the language of the text to convert from one script to another. - * Possible languages are listed in the transliteration scope obtained by querying the service - * for its supported languages. - */ - language: string; - /** - * Specifies the script used by the input text. Look up supported languages using the transliteration scope, - * to find input scripts available for the selected language. - */ - fromScript: string; - /** - * Specifies the output script. Look up supported languages using the transliteration scope, to find output - * scripts available for the selected combination of input language and input script. - */ - toScript: string; -} - -export interface TransliterateQueryParam { - queryParameters: TransliterateQueryParamProperties; -} - -export interface TransliterateHeaderParam { - headers?: RawHttpHeadersInput & TransliterateHeaders; -} - -export type TransliterateParameters = TransliterateQueryParam & - TransliterateHeaderParam & - TransliterateBodyParam & - RequestParameters; - -export interface FindSentenceBoundariesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface FindSentenceBoundariesBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface FindSentenceBoundariesQueryParamProperties { - /** - * Language tag identifying the language of the input text. - * If a code isn't specified, automatic language detection will be applied. - */ - language?: string; - /** - * Script tag identifying the script used by the input text. - * If a script isn't specified, the default script of the language will be assumed. - */ - script?: string; -} - -export interface FindSentenceBoundariesQueryParam { - queryParameters?: FindSentenceBoundariesQueryParamProperties; -} - -export interface FindSentenceBoundariesHeaderParam { - headers?: RawHttpHeadersInput & FindSentenceBoundariesHeaders; -} - -export type FindSentenceBoundariesParameters = FindSentenceBoundariesQueryParam & - FindSentenceBoundariesHeaderParam & - FindSentenceBoundariesBodyParam & - RequestParameters; - -export interface LookupDictionaryEntriesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface LookupDictionaryEntriesBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface LookupDictionaryEntriesQueryParamProperties { - /** - * Specifies the language of the input text. - * The source language must be one of the supported languages included in the dictionary scope. - */ - from: string; - /** - * Specifies the language of the output text. - * The target language must be one of the supported languages included in the dictionary scope. - */ - to: string; -} - -export interface LookupDictionaryEntriesQueryParam { - queryParameters: LookupDictionaryEntriesQueryParamProperties; -} - -export interface LookupDictionaryEntriesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryEntriesHeaders; -} - -export type LookupDictionaryEntriesParameters = LookupDictionaryEntriesQueryParam & - LookupDictionaryEntriesHeaderParam & - LookupDictionaryEntriesBodyParam & - RequestParameters; - -export interface LookupDictionaryExamplesHeaders { - /** A client-generated GUID to uniquely identify the request. */ - "X-ClientTraceId"?: string; -} - -export interface LookupDictionaryExamplesBodyParam { - /** Defines the content of the request */ - body: Array; -} - -export interface LookupDictionaryExamplesQueryParamProperties { - /** - * Specifies the language of the input text. - * The source language must be one of the supported languages included in the dictionary scope. - */ - from: string; - /** - * Specifies the language of the output text. - * The target language must be one of the supported languages included in the dictionary scope. - */ - to: string; -} - -export interface LookupDictionaryExamplesQueryParam { - queryParameters: LookupDictionaryExamplesQueryParamProperties; -} - -export interface LookupDictionaryExamplesHeaderParam { - headers?: RawHttpHeadersInput & LookupDictionaryExamplesHeaders; -} - -export type LookupDictionaryExamplesParameters = LookupDictionaryExamplesQueryParam & - LookupDictionaryExamplesHeaderParam & - LookupDictionaryExamplesBodyParam & - RequestParameters; diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serviceFabricClient.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serviceFabricClient.ts new file mode 100644 index 00000000000..f354610b040 --- /dev/null +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/src/serviceFabricClient.ts @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { ClientOptions, getClient } from "@azure-rest/core-client"; +import { TokenCredential } from "@azure/core-auth"; +import { ServiceFabricClient } from "./clientDefinitions"; +import { customizedApiVersionPolicy } from "./customizedApiVersionPolicy"; + +export default function createClient( + credentials: TokenCredential, + options: ClientOptions = {}, +): ServiceFabricClient { + const baseUrl = options.baseUrl ?? "https://management.azure.com"; + options.apiVersion = options.apiVersion ?? "2021-06-01"; + options = { + ...options, + credentials: { + scopes: ["https://management.azure.com/.default"], + }, + }; + + const userAgentInfo = `azsdk-js-arm-servicefabric-rest/1.0.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + }; + + const client = getClient(baseUrl, credentials, options) as ServiceFabricClient; + // Considering ApiVersionPolicy in core has bugs so we replace with our customized one + client.pipeline.removePolicy({ + name: "ApiVersionPolicy", + }); + client.pipeline.addPolicy(customizedApiVersionPolicy(options)); + + return client; +} diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json index 7ec1bb6badf..9686c443aef 100644 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/misc/test-cases/rest-level-client-to-rest-level-client/current-package/tsconfig.json @@ -1,16 +1,9 @@ { + "extends": "../../../tsconfig", "compilerOptions": { - "jsx": "preserve", - "target": "es5", - "module": "commonjs", - "strict": true, - "esModuleInterop": true, - "lib": ["es2015", "es2017", "esnext"], - "experimentalDecorators": true, - "rootDir": "." + "outDir": "./dist-esm", + "declarationDir": "./types", + "paths": { "@azure-rest/arm-servicefabric": ["./src/index"] } }, - "include": [ - "**/ai-translation-text.api.ts", - ], - "exclude": ["**/node_modules/**/*.*"] + "include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] } diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json index 813169f32be..33fc56a6dad 100644 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/package.json @@ -1,6 +1,6 @@ { "name": "typescript-codegen-breaking-change-detector", - "version": "0.4.8", + "version": "0.4.11", "description": "Detect breaking changes to your TypeScript client generated by open api, typespec and more...", "main": "dist/src/index.js", "types": "./dist/src/index.d.ts", diff --git a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts index c5b17d36be9..4bc5e04326d 100644 --- a/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts +++ b/tools/js-sdk-release-tools/packages/typescript-codegen-breaking-change-detector/src/tests/rest-level-client-rule.test.ts @@ -1,9 +1,8 @@ -import { describe, expect, test } from 'vitest'; import { mkdirp, pathExists } from 'fs-extra'; +import { describe, expect, test } from 'vitest'; -import { InlineDeclarationNameSetMessage } from '../azure/common/types'; -import { detectBreakingChangesBetweenPackages } from '../azure/detect-breaking-changes'; import { join } from 'node:path'; +import { detectBreakingChangesBetweenPackages } from '../azure/detect-breaking-changes'; function getFormattedDate(): string { const today = new Date(); diff --git a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts index e00057f3337..1f768ad0d9e 100644 --- a/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts +++ b/tools/js-sdk-release-tools/src/changelog/changelogGenerator.ts @@ -4,18 +4,16 @@ import { InterfaceDeclaration, TypeAliasDeclaration } from "parse-ts-to-ast"; +// TODO: add detection for routes and overloads in base detector import { InlineDeclarationNameSetMessage, RuleMessage, RuleMessageKind, detectBreakingChangesBetweenPackages } from "typescript-codegen-breaking-change-detector"; import { IntersectionDeclaration } from "parse-ts-to-ast/build/declarations/IntersectionDeclaration"; -import { RestLevelClientChangelogPostProcessor } from "./RestLevelClientChangelogPostProcessor"; -import { SDKType } from "../common/types"; -import { TSExportedMetaData } from "./extractMetaData"; import { TypeLiteralDeclaration } from "parse-ts-to-ast/build/declarations/TypeLiteralDeclaration"; +import { join } from "path"; +import { SDKType } from "../common/types"; import { logger } from "../utils/logger"; - -// TODO: add detection for routes and overloads in base detector - - +import { TSExportedMetaData } from "./extractMetaData"; +import { RestLevelClientChangelogPostProcessor } from "./RestLevelClientChangelogPostProcessor"; export interface ChangelogItem { line: string; @@ -181,8 +179,8 @@ export class Changelog { return; } try { - const messageMap = await detectBreakingChangesBetweenPackages(baselinePackageRoot, currentPackageRoot, baselinePackageRoot, true); - + const tempFolder = join('~/.tmp-breaking-change-detect'); + const messageMap = await detectBreakingChangesBetweenPackages(baselinePackageRoot, currentPackageRoot, tempFolder, false); switch (sdkType) { case SDKType.RestLevelClient: await this.postProcessForRestLevelClient(messageMap); diff --git a/tools/js-sdk-release-tools/src/common/interfaces.ts b/tools/js-sdk-release-tools/src/common/interfaces.ts index 165579494f6..ba29411b3d4 100644 --- a/tools/js-sdk-release-tools/src/common/interfaces.ts +++ b/tools/js-sdk-release-tools/src/common/interfaces.ts @@ -1,5 +1,5 @@ import { ApiVersionType } from "./types"; export interface IApiVersionTypeExtractor { - (packageRoot: string): ApiVersionType; + (packageRoot: string): Promise; } \ No newline at end of file diff --git a/tools/js-sdk-release-tools/src/hlc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/hlc/apiVersion/apiVersionTypeExtractor.ts index 31c6b0a641e..ca600fd5f86 100644 --- a/tools/js-sdk-release-tools/src/hlc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/hlc/apiVersion/apiVersionTypeExtractor.ts @@ -3,7 +3,7 @@ import { IApiVersionTypeExtractor } from "../../common/interfaces"; import { getClassicClientParametersPath, getTsSourceFile } from "../../common/utils"; // TODO: add unit test -export const getApiVersionType: IApiVersionTypeExtractor = (packageRoot: string): ApiVersionType => { +export const getApiVersionType: IApiVersionTypeExtractor = async (packageRoot: string): Promise => { const paraPath = getClassicClientParametersPath(packageRoot); const source = getTsSourceFile(paraPath); const variableDeclarations = source?.getVariableDeclarations(); diff --git a/tools/js-sdk-release-tools/src/hlc/utils/automaticGenerateChangeLogAndBumpVersion.ts b/tools/js-sdk-release-tools/src/hlc/utils/automaticGenerateChangeLogAndBumpVersion.ts index dd6cb74c22e..86fa412200e 100644 --- a/tools/js-sdk-release-tools/src/hlc/utils/automaticGenerateChangeLogAndBumpVersion.ts +++ b/tools/js-sdk-release-tools/src/hlc/utils/automaticGenerateChangeLogAndBumpVersion.ts @@ -27,7 +27,7 @@ import { fixChangelogFormat, getApiReviewPath, getNpmPackageName, getSDKType, tr export async function generateChangelogAndBumpVersion(packageFolderPath: string) { const jsSdkRepoPath = String(shell.pwd()); packageFolderPath = path.join(jsSdkRepoPath, packageFolderPath); - const ApiType = getApiVersionType(packageFolderPath); + const ApiType = await getApiVersionType(packageFolderPath); const isStableRelease = ApiType != ApiVersionType.Preview; const packageName = getNpmPackageName(packageFolderPath); const npm = new NPMScope({ executionFolderPath: packageFolderPath }); diff --git a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts index b5f13008fc6..b643fa32346 100644 --- a/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/llc/apiVersion/apiVersionTypeExtractor.ts @@ -1,28 +1,20 @@ -import { findParametersPath, getApiVersionTypeFromOperations, getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; +import { findParametersPath, getApiVersionTypeFromOperations, getApiVersionTypeFromRestClient, tryFindRestClientPath } from "../../xlc/apiVersion/utils"; import { ApiVersionType } from "../../common/types"; import { IApiVersionTypeExtractor } from "../../common/interfaces"; -import path from "path"; -import shell from "shelljs"; -const findRestClientPath = (packageRoot: string): string => { - const restPath = path.join(packageRoot, "src/"); - const fileNames = shell.ls(restPath); - const clientFiles = fileNames.filter((f) => f.endsWith("Client.ts")); - if (clientFiles.length !== 1) - throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); - - const clientPath = path.join(restPath, clientFiles[0]); - return clientPath; -}; - -export const getApiVersionType: IApiVersionTypeExtractor = ( +export const getApiVersionType: IApiVersionTypeExtractor = async ( packageRoot: string -): ApiVersionType => { - const relativeRestSrcFolder = "src/"; - const typeFromClient = getApiVersionTypeFromRestClient(packageRoot, relativeRestSrcFolder, findRestClientPath); +): Promise => { + let clientPattern = "src/*Context.ts"; + let typeFromClient = await getApiVersionTypeFromRestClient(packageRoot, clientPattern, tryFindRestClientPath); + if (typeFromClient !== ApiVersionType.None) return typeFromClient; + + clientPattern = "src/*Client.ts"; + typeFromClient = await getApiVersionTypeFromRestClient(packageRoot, clientPattern, tryFindRestClientPath); if (typeFromClient !== ApiVersionType.None) return typeFromClient; - const typeFromOperations = getApiVersionTypeFromOperations(packageRoot, relativeRestSrcFolder, findParametersPath); + + const typeFromOperations = getApiVersionTypeFromOperations(packageRoot, clientPattern, findParametersPath); if (typeFromOperations !== ApiVersionType.None) return typeFromOperations; return ApiVersionType.Stable; }; diff --git a/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts index cd2ee6fbcb0..591c0f70e5b 100644 --- a/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/mlc/apiVersion/apiVersionTypeExtractor.ts @@ -1,14 +1,19 @@ import { ApiVersionType } from "../../common/types"; import { IApiVersionTypeExtractor } from "../../common/interfaces"; -import { findParametersPath, findRestClientPath, getApiVersionTypeFromOperations, getApiVersionTypeFromRestClient } from "../../xlc/apiVersion/utils"; +import { findParametersPath, getApiVersionTypeFromOperations, getApiVersionTypeFromRestClient, tryFindRestClientPath } from "../../xlc/apiVersion/utils"; -export const getApiVersionType: IApiVersionTypeExtractor = ( +export const getApiVersionType: IApiVersionTypeExtractor = async ( packageRoot: string -): ApiVersionType => { - const relativeRestSrcFolder = "src/rest/"; - const typeFromClient = getApiVersionTypeFromRestClient(packageRoot, relativeRestSrcFolder, findRestClientPath); +): Promise => { + let clientPattern = "src/api/*Context.ts"; + let typeFromClient = await getApiVersionTypeFromRestClient(packageRoot, clientPattern, tryFindRestClientPath); if (typeFromClient !== ApiVersionType.None) return typeFromClient; - const typeFromOperations = getApiVersionTypeFromOperations(packageRoot, relativeRestSrcFolder, findParametersPath); + + clientPattern = "src/rest/*Client.ts"; + typeFromClient = await getApiVersionTypeFromRestClient(packageRoot, clientPattern, tryFindRestClientPath); + if (typeFromClient !== ApiVersionType.None) return typeFromClient; + + const typeFromOperations = getApiVersionTypeFromOperations(packageRoot, clientPattern, findParametersPath); if (typeFromOperations !== ApiVersionType.None) return typeFromOperations; return ApiVersionType.Stable; }; diff --git a/tools/js-sdk-release-tools/src/test/apiVersion/apiVersionExtractor.test.ts b/tools/js-sdk-release-tools/src/test/apiVersion/apiVersionExtractor.test.ts index fcb4424840c..bac8f4dfa52 100644 --- a/tools/js-sdk-release-tools/src/test/apiVersion/apiVersionExtractor.test.ts +++ b/tools/js-sdk-release-tools/src/test/apiVersion/apiVersionExtractor.test.ts @@ -1,5 +1,6 @@ -import { expect, test } from "vitest"; +import { describe, expect, test } from "vitest"; import { getApiVersionType } from "../../mlc/apiVersion/apiVersionTypeExtractor"; +import { getApiVersionType as getApiVersionTypeInRLC } from "../../llc/apiVersion/apiVersionTypeExtractor"; import { join } from "path"; import { ApiVersionType } from "../../common/types"; import { findApiVersionInRestClient } from "../../xlc/apiVersion/utils"; @@ -12,7 +13,7 @@ test("MLC api-version Extractor: new createClient function", async () => { test("MLC api-version Extractor: get api version type from new createClient function", async () => { const root = join(__dirname, 'testCases/new/'); - const version = getApiVersionType(root); + const version = await getApiVersionType(root); expect(version).toBe(ApiVersionType.Preview); }); @@ -24,7 +25,7 @@ test("MLC api-version Extractor: old createClient function 1", async () => { test("MLC api-version Extractor: get api version type from old createClient function 1", async () => { const root = join(__dirname, 'testCases/old1/'); - const version = getApiVersionType(root); + const version = await getApiVersionType(root); expect(version).toBe(ApiVersionType.Preview); }); @@ -36,6 +37,36 @@ test("MLC api-version Extractor: old createClient function 2", async () => { test("MLC api-version Extractor: get api version type from old createClient function 2", async () => { const root = join(__dirname, 'testCases/old2/'); - const version = getApiVersionType(root); + const version = await getApiVersionType(root); expect(version).toBe(ApiVersionType.Stable); +}); + +describe("Rest client file fallbacks", () => { + // Modular + { + test("Modular: src/api/xxxContext.ts exists", async () => { + const root = join(__dirname, 'testCases/new-context/'); + const version = await getApiVersionType(root); + expect(version).toBe(ApiVersionType.Preview); + }); + test("Modular: src/api/xxxContext.ts doesn't exists, fallback to src/rest/xxxClient.ts", async () => { + const root = join(__dirname, 'testCases/new/'); + const version = await getApiVersionType(root); + expect(version).toBe(ApiVersionType.Preview); + }); + } + // RLC + { + test("RLC: src/xxxContext.ts exists", async () => { + const root = join(__dirname, 'testCases/rlc-context/'); + const version = await getApiVersionTypeInRLC(root); + expect(version).toBe(ApiVersionType.Preview); + + }); + test("RLC: src/xxxContext.ts doesn't exists, fallback to src/xxxClient.ts", async () => { + const root = join(__dirname, 'testCases/rlc-client/'); + const version = await getApiVersionTypeInRLC(root); + expect(version).toBe(ApiVersionType.Preview); + }); + } }); \ No newline at end of file diff --git a/tools/js-sdk-release-tools/src/test/apiVersion/testCases/new-context/src/api/newContext.ts b/tools/js-sdk-release-tools/src/test/apiVersion/testCases/new-context/src/api/newContext.ts new file mode 100644 index 00000000000..83492bbb81b --- /dev/null +++ b/tools/js-sdk-release-tools/src/test/apiVersion/testCases/new-context/src/api/newContext.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "../logger.js"; +import { TokenCredential } from "@azure/core-auth"; +import { DocumentDBContext } from "./clientDefinitions.js"; + +/** The optional parameters for the client */ +export interface DocumentDBContextOptions extends ClientOptions { + /** The api version option of the client */ + apiVersion?: string; +} + +/** + * Initialize a new instance of `DocumentDBContext` + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters + */ +export default function createClient( + credentials: TokenCredential, + { + apiVersion = "2024-03-01-preview", + ...options + }: DocumentDBContextOptions = {}, +): DocumentDBContext { + const endpointUrl = + options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; + const userAgentInfo = `azsdk-js-arm-mongocluster/1.0.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + const client = getClient( + endpointUrl, + credentials, + options, + ) as DocumentDBContext; + + client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + client.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version") && apiVersion) { + req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } + + return next(req); + }, + }); + return client; +} diff --git a/tools/js-sdk-release-tools/src/test/apiVersion/testCases/rlc-client/src/newClient.ts b/tools/js-sdk-release-tools/src/test/apiVersion/testCases/rlc-client/src/newClient.ts new file mode 100644 index 00000000000..83492bbb81b --- /dev/null +++ b/tools/js-sdk-release-tools/src/test/apiVersion/testCases/rlc-client/src/newClient.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "../logger.js"; +import { TokenCredential } from "@azure/core-auth"; +import { DocumentDBContext } from "./clientDefinitions.js"; + +/** The optional parameters for the client */ +export interface DocumentDBContextOptions extends ClientOptions { + /** The api version option of the client */ + apiVersion?: string; +} + +/** + * Initialize a new instance of `DocumentDBContext` + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters + */ +export default function createClient( + credentials: TokenCredential, + { + apiVersion = "2024-03-01-preview", + ...options + }: DocumentDBContextOptions = {}, +): DocumentDBContext { + const endpointUrl = + options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; + const userAgentInfo = `azsdk-js-arm-mongocluster/1.0.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + const client = getClient( + endpointUrl, + credentials, + options, + ) as DocumentDBContext; + + client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + client.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version") && apiVersion) { + req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } + + return next(req); + }, + }); + return client; +} diff --git a/tools/js-sdk-release-tools/src/test/apiVersion/testCases/rlc-context/src/newContext.ts b/tools/js-sdk-release-tools/src/test/apiVersion/testCases/rlc-context/src/newContext.ts new file mode 100644 index 00000000000..83492bbb81b --- /dev/null +++ b/tools/js-sdk-release-tools/src/test/apiVersion/testCases/rlc-context/src/newContext.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "../logger.js"; +import { TokenCredential } from "@azure/core-auth"; +import { DocumentDBContext } from "./clientDefinitions.js"; + +/** The optional parameters for the client */ +export interface DocumentDBContextOptions extends ClientOptions { + /** The api version option of the client */ + apiVersion?: string; +} + +/** + * Initialize a new instance of `DocumentDBContext` + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters + */ +export default function createClient( + credentials: TokenCredential, + { + apiVersion = "2024-03-01-preview", + ...options + }: DocumentDBContextOptions = {}, +): DocumentDBContext { + const endpointUrl = + options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; + const userAgentInfo = `azsdk-js-arm-mongocluster/1.0.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` + : `${userAgentInfo}`; + options = { + ...options, + userAgentOptions: { + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + const client = getClient( + endpointUrl, + credentials, + options, + ) as DocumentDBContext; + + client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + client.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version") && apiVersion) { + req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } + + return next(req); + }, + }); + return client; +} diff --git a/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts b/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts index 269673c8f41..855c43097cc 100644 --- a/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts +++ b/tools/js-sdk-release-tools/src/test/changelog/changelogGenerator.test.ts @@ -4,7 +4,7 @@ import path, { join } from "path"; import { SDKType } from "../../common/types"; import { describe } from "node:test"; import { tryReadNpmPackageChangelog } from "../../common/utils"; -import { rmdirSync, writeFileSync } from "fs"; +import { ensureDirSync, removeSync, outputFileSync } from "fs-extra"; function getRandomInt(max) { return Math.floor(Math.random() * max); @@ -138,20 +138,21 @@ describe("Breaking change detection", () => { }); describe("Changelog reading", () => { - const tempPackageFolder = `./tmp/package-${getRandomInt(10000)}`; - try { test("Read changelog that doesn't exist", () => { - const content = tryReadNpmPackageChangelog(tempPackageFolder); + const content = tryReadNpmPackageChangelog('./do/not/exist'); expect(content).toBe(""); }); - const changelogPath = join(tempPackageFolder, 'CHANGELOG.md') - writeFileSync(changelogPath, 'aaa', 'utf-8'); - test("Read changelog that exists", () => { - const content = tryReadNpmPackageChangelog(tempPackageFolder); - expect(content).toBe("aaa"); + test("Read changelog that exists", () => { + const tempPackageFolder = path.join(__dirname, `tmp/package-${getRandomInt(10000)}`); + try { + ensureDirSync(tempPackageFolder); + const changelogPath = path.join(tempPackageFolder, 'changelog-temp', 'package', 'CHANGELOG.md') + outputFileSync(changelogPath, 'aaa', 'utf-8'); + const content = tryReadNpmPackageChangelog(tempPackageFolder); + expect(content).toBe("aaa"); + } finally { + removeSync(tempPackageFolder); + } }) - } finally { - rmdirSync(tempPackageFolder); - } -}); +}); \ No newline at end of file diff --git a/tools/js-sdk-release-tools/src/xlc/apiVersion/apiVersionTypeExtractor.ts b/tools/js-sdk-release-tools/src/xlc/apiVersion/apiVersionTypeExtractor.ts index a309a3e5517..88301468953 100644 --- a/tools/js-sdk-release-tools/src/xlc/apiVersion/apiVersionTypeExtractor.ts +++ b/tools/js-sdk-release-tools/src/xlc/apiVersion/apiVersionTypeExtractor.ts @@ -6,15 +6,15 @@ import * as hlcApi from '../../hlc/apiVersion/apiVersionTypeExtractor' import * as rlcApi from '../../llc/apiVersion/apiVersionTypeExtractor' // TODO: move to x-level-client folder -export const getApiVersionType: IApiVersionTypeExtractor = (packageRoot: string): ApiVersionType => { +export const getApiVersionType: IApiVersionTypeExtractor = async (packageRoot: string): Promise => { const sdkType = getSDKType(packageRoot); switch (sdkType) { case SDKType.ModularClient: - return mlcApi.getApiVersionType(packageRoot); + return await mlcApi.getApiVersionType(packageRoot); case SDKType.HighLevelClient: - return hlcApi.getApiVersionType(packageRoot); + return await hlcApi.getApiVersionType(packageRoot); case SDKType.RestLevelClient: - return rlcApi.getApiVersionType(packageRoot); + return await rlcApi.getApiVersionType(packageRoot); default: console.warn(`Unsupported SDK type ${sdkType} to get detact api version`); return ApiVersionType.None; diff --git a/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts b/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts index 0345a6248a6..14e197a92ec 100644 --- a/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts +++ b/tools/js-sdk-release-tools/src/xlc/apiVersion/utils.ts @@ -1,11 +1,14 @@ import { readFileSync } from "node:fs"; import { getTsSourceFile } from "../../common/utils"; -import { ApiVersionType } from "../../common/types"; +import { ApiVersionType, SDKType } from "../../common/types"; import ts from "typescript"; import path from "node:path"; import shell from "shelljs"; import { SourceFile, SyntaxKind } from "ts-morph"; -import { IApiVersionTypeExtractor } from "../../common/interfaces"; +import { logger } from "../../utils/logger"; +import { glob } from 'glob' + +var unixify = require('unixify'); const findApiVersionInRestClientV1 = ( clientPath: string @@ -85,34 +88,34 @@ export const findApiVersionInRestClient = (clientPath: string): string | undefin return version1; }; -export const findRestClientPath = (packageRoot: string, relativeRestSrcFolder: string): string => { - const restPath = path.join(packageRoot, relativeRestSrcFolder); - const fileNames = shell.ls(restPath); - const clientFiles = fileNames.filter((f) => f.endsWith("Client.ts")); - if (clientFiles.length !== 1) - throw new Error(`Single client is supported, but found "${clientFiles}" in ${restPath}`); - - const clientPath = path.join(restPath, clientFiles[0]); - return clientPath; -}; +export const tryFindRestClientPath = async (packageRoot: string, clientPattern: string): Promise => { + const pattern = unixify(path.join(packageRoot, clientPattern)); + const clientFiles = await glob(pattern); + if (clientFiles.length !== 1) { + logger.warn(`Failed to find extactly one REST client in pattern '${pattern}', got '${clientFiles}'.`); + return undefined; + } + return clientFiles[0]; +}; export const findParametersPath = (packageRoot: string, relativeParametersFolder: string): string => { const parametersPath = path.join(packageRoot, relativeParametersFolder); const fileNames = shell.ls(parametersPath); const clientFiles = fileNames.filter((f) => f === "parameters.ts"); if (clientFiles.length !== 1) - throw new Error(`Single client is supported, but found "${clientFiles}" in ${parametersPath}`); + throw new Error(`Expected 1 'parameters.ts' file, but found '${clientFiles}' in '${parametersPath}'.`); const clientPath = path.join(parametersPath, clientFiles[0]); return clientPath; }; -export const getApiVersionTypeFromRestClient = ( +export const getApiVersionTypeFromRestClient = async ( packageRoot: string, - relativeRestSrcFolder: string, - findRestClientPath: (packageRoot: string, relativeRestSrcFolder: string) => string -): ApiVersionType => { - const clientPath = findRestClientPath(packageRoot, relativeRestSrcFolder); + clientPattern: string, + findRestClientPath: (packageRoot: string, clientPattern: string) => Promise +): Promise => { + const clientPath = await findRestClientPath(packageRoot, clientPattern); + if (!clientPath) return ApiVersionType.None; const apiVersion = findApiVersionInRestClient(clientPath); if (apiVersion && apiVersion.indexOf("-preview") >= 0) return ApiVersionType.Preview; From a622d021c4a550b03db1ee30e658ffab5e16f0b0 Mon Sep 17 00:00:00 2001 From: wanl Date: Mon, 19 Aug 2024 21:10:06 +0800 Subject: [PATCH 35/35] Add gitignore --- .gitignore | 7 +------ tools/js-sdk-release-tools/.gitignore | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 tools/js-sdk-release-tools/.gitignore diff --git a/.gitignore b/.gitignore index 532105aa4cb..fdacc65c4d0 100644 --- a/.gitignore +++ b/.gitignore @@ -513,9 +513,4 @@ src/swift/**/*.xcodeproj/xcuserdata/ tools/apiview/emitters/cadl-apiview/cadl-output/ tools/apiview/emitters/cadl-apiview/temp/ tools/apiview/emitters/typespec-apiview/tsp-output/ -tools/apiview/emitters/typespec-apiview/temp/ - -# JS SDK Release Tools -!tools/js-sdk-release-tools/packages/* -tools/js-sdk-release-tools/.tmp/* -tools/js-sdk-release-tools/.tmp-detect/ +tools/apiview/emitters/typespec-apiview/temp/ \ No newline at end of file diff --git a/tools/js-sdk-release-tools/.gitignore b/tools/js-sdk-release-tools/.gitignore new file mode 100644 index 00000000000..4aa7824e1bb --- /dev/null +++ b/tools/js-sdk-release-tools/.gitignore @@ -0,0 +1,4 @@ +# JS SDK Release Tools +!packages/* +.tmp/* +.tmp-detect/ \ No newline at end of file